diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 5a345492f9426..95f7cdb4d5e24 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -976,6 +976,16 @@ "Dspotbugs", "Pdev" ] + }, + { + "filename": "sdk/purview/azure-analytics-purview-sharing/**", + "words": [ + "ADLS", + "Adls" + ], + "ignoreRegExpList": [ + "/\/\/\\s*(BEGIN:|END:).*/" + ] } ], "allowCompoundWords": true diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 937cbc4d5de51..c6ef6254ca95d 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -178,6 +178,7 @@ com.azure:perf-test-core;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-communication-email;1.0.0-beta.1;1.0.0-beta.2 com.azure:azure-developer-loadtesting;1.0.0-beta.2;1.0.0 com.azure:azure-identity-extensions;1.1.1;1.2.0-beta.2 +com.azure:azure-analytics-purview-sharing;1.0.0-beta.1;1.0.0-beta.1 com.azure.spring:spring-cloud-azure-appconfiguration-config-web;2.11.0;4.0.0-beta.2 com.azure.spring:spring-cloud-azure-appconfiguration-config;2.11.0;4.0.0-beta.2 com.azure.spring:spring-cloud-azure-feature-management-web;2.10.0;4.0.0-beta.4 diff --git a/sdk/purview/azure-analytics-purview-sharing/CHANGELOG.md b/sdk/purview/azure-analytics-purview-sharing/CHANGELOG.md new file mode 100644 index 0000000000000..df5691438394e --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/CHANGELOG.md @@ -0,0 +1,7 @@ +# Release History + +## 1.0.0-beta.1 (2023-03-06) + +### New Features + +- Initial release of the Purview Share client library for Java diff --git a/sdk/purview/azure-analytics-purview-sharing/README.md b/sdk/purview/azure-analytics-purview-sharing/README.md new file mode 100644 index 0000000000000..b51e132e89a3e --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/README.md @@ -0,0 +1,346 @@ +# Azure Purview Sharing client library for Java + +**Please rely heavily on the [service's documentation][product_documentation] to use this library** + +[Source code][source_code] | [Package (Maven)][package] | [API reference documentation][docs] | [Product Documentation][share_product_documentation] | [Samples][samples_code] + +## Getting started + +### Prerequisites + +- [Java Development Kit (JDK)][jdk] with version 8 or above +- [Azure Subscription][azure_subscription] +- An existing Microsoft Purview account. + +For more information about creating a Microsoft Purview account, see [here][create_azure_purview_account]. + +## Documentation + +Various documentation is available to help you get started + +- [API reference documentation][docs] +- [Product documentation][share_product_documentation] + +### Adding the package to your product + +[//]: # ({x-version-update-start;com.azure:azure-analytics-purview-sharing;current}) +```xml + + com.azure + azure-analytics-purview-sharing + 1.0.0-beta.1 + +``` +[//]: # ({x-version-update-end}) + +### Authentication + +[Azure Identity][azure_identity] package provides the default implementation for authenticating the client. + +## Key concepts + +## Examples + +### Create a Sent Share Client +```java com.azure.analytics.purview.sharing.createSentShareClient +SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); +``` + +### Create a Sent Share +```java com.azure.analytics.purview.sharing.createSentShare +SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + +String sentShareId = UUID.randomUUID().toString(); +InPlaceSentShare sentShare = new InPlaceSentShare() + .setDisplayName("sample-share") + .setDescription("A sample share"); + +StoreReference storeReference = new StoreReference() + .setReferenceName("/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage") + .setType(ReferenceNameType.ARM_RESOURCE_REFERENCE); + +StorageAccountPath storageAccountPath = new StorageAccountPath() + .setContainerName("container-name") + .setReceiverPath("shared-file-name.txt") + .setSenderPath("original/file-name.txt"); + +BlobStorageArtifact artifact = new BlobStorageArtifact() + .setStoreReference(storeReference) + .setPaths(List.of(storageAccountPath)); + +sentShare.setArtifact(artifact); + +SyncPoller response = + sentSharesClient.beginCreateOrReplaceSentShare( + sentShareId, + BinaryData.fromObject(sentShare), + new RequestOptions()); +``` + +### Get a Sent Share +```java com.azure.analytics.purview.sharing.getSentShare +SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + +SentShare retrievedSentShare = sentSharesClient + .getSentShareWithResponse("", new RequestOptions()) + .getValue() + .toObject(SentShare.class); +``` + +### Get All Sent Shares +```java com.azure.analytics.purview.sharing.getAllSentShares +SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + +PagedIterable sentShareResults = sentSharesClient.getAllSentShares( + "/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage", + new RequestOptions()); + +List sentShares = sentShareResults.stream() + .map(binaryData -> binaryData.toObject(SentShare.class)) + .collect(Collectors.toList()); +``` + +### Delete a Sent Share +```java com.azure.analytics.purview.sharing.deleteSentShare +SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + +sentSharesClient.beginDeleteSentShare(".purview.azure.com/share") + .buildClient(); + +String sentShareId = ""; +String sentShareInvitationId = UUID.randomUUID().toString(); + +UserInvitation sentShareInvitation = new UserInvitation() + .setTargetEmail("receiver@microsoft.com") + .setNotify(true) + .setExpirationDate(OffsetDateTime.now().plusDays(60)); + +Response response = + sentSharesClient.createSentShareInvitationWithResponse( + sentShareId, + sentShareInvitationId, + BinaryData.fromObject(sentShareInvitation), + new RequestOptions()); +``` + +### Send a Share Invitation to a Service +```java com.azure.analytics.purview.sharing.sendServiceInvitation +SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + +String sentShareId = ""; +String sentShareInvitationId = UUID.randomUUID().toString(); + +ServiceInvitation sentShareInvitation = new ServiceInvitation() + .setTargetActiveDirectoryId(UUID.fromString("")) + .setTargetObjectId(UUID.fromString("")) + .setExpirationDate(OffsetDateTime.now().plusDays(60)); + +Response response = + sentSharesClient.createSentShareInvitationWithResponse( + sentShareId, + sentShareInvitationId, + BinaryData.fromObject(sentShareInvitation), + new RequestOptions()); +``` + +### Get All Sent Share Invitations +```java com.azure.analytics.purview.sharing.getAllSentShareInvitations +SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + +String sentShareId = ""; + +RequestOptions requestOptions = new RequestOptions().addQueryParam("$orderBy", "properties/sentAt desc"); +PagedIterable response = + sentSharesClient.getAllSentShareInvitations(sentShareId, requestOptions); +``` + +### Get Sent Share Invitation +```java com.azure.analytics.purview.sharing.getSentShareInvitation +SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + +String sentShareId = ""; +String sentShareInvitationId = ""; + +Response sentShareInvitation = + sentSharesClient.getSentShareInvitationWithResponse(sentShareId, sentShareInvitationId, new RequestOptions()); +``` + +### Create a Received Share Client +```java com.azure.analytics.purview.sharing.createReceivedShareClient +ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); +``` + +### Get All Detached Received Shares +```java com.azure.analytics.purview.sharing.getAllDetachedReceivedShares +ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + +RequestOptions requestOptions = new RequestOptions().addQueryParam("$orderBy", "properties/createdAt desc"); +PagedIterable response = receivedSharesClient.getAllDetachedReceivedShares(requestOptions); +``` +### Get Received Share +```java com.azure.analytics.purview.sharing.getReceivedShare +ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + +Response receivedShare = + receivedSharesClient.getReceivedShareWithResponse("", new RequestOptions()); +``` + +### Attach Received Shares +```java com.azure.analytics.purview.sharing.attachReceivedShare +ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + +RequestOptions listRequestOptions = new RequestOptions().addQueryParam("$orderBy", "properties/createdAt desc"); +PagedIterable listResponse = receivedSharesClient.getAllDetachedReceivedShares(listRequestOptions); + +Optional detachedReceivedShare = listResponse.stream().findFirst(); + +if (detachedReceivedShare.isEmpty()) { + return; +} + +String receivedShareId = new ObjectMapper() + .readValue(detachedReceivedShare.get().toString(), ObjectNode.class) + .get("id") + .textValue(); + +InPlaceReceivedShare receivedShare = new InPlaceReceivedShare() + .setDisplayName("my-received-share"); + +StoreReference storeReference = new StoreReference() + .setReferenceName("/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/receiver-storage-rg/providers/Microsoft.Storage/storageAccounts/receiverstorage") + .setType(ReferenceNameType.ARM_RESOURCE_REFERENCE); + +BlobAccountSink sink = new BlobAccountSink() + .setStoreReference(storeReference) + .setContainerName("container-name") + .setFolder("folderName") + .setMountPath("optionalMountPath"); + +receivedShare.setSink(sink); + +SyncPoller createResponse = + receivedSharesClient.beginCreateOrReplaceReceivedShare(receivedShareId, BinaryData.fromObject(receivedShare), new RequestOptions()); +``` + +### Get All Attached Received Shares +```java com.azure.analytics.purview.sharing.getAllAttachedReceivedShares +ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + +RequestOptions requestOptions = new RequestOptions().addQueryParam("$orderBy", "properties/createdAt desc"); +PagedIterable response = + receivedSharesClient.getAllAttachedReceivedShares( + "/subscriptions/4D8FD81D-431D-4B1D-B46C-C770CFC034FC/resourceGroups/contoso-rg/providers/Microsoft.Storage/storageAccounts/blobAccount", + requestOptions); + +Optional receivedShare = response.stream().findFirst(); + +if (receivedShare.isEmpty()) { + return; +} + +ReceivedShare receivedShareResponse = receivedShare.get().toObject(InPlaceReceivedShare.class); +``` + +### Delete a Received Share +```java com.azure.analytics.purview.sharing.deleteReceivedShare +ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + +receivedSharesClient.beginDeleteReceivedShare(" +[source_code]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/purview/azure-analytics-purview-sharing/src +[package]: https://mvnrepository.com/artifact/com.azure/azure-analytics-purview-sharing +[share_product_documentation]: https://docs.microsoft.com/azure/purview/concept-data-share +[samples_code]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/purview/azure-analytics-purview-sharing/src/samples/ +[product_documentation]: https://azure.microsoft.com/services/ +[docs]: https://azure.github.io/azure-sdk-for-java/ +[jdk]: https://docs.microsoft.com/java/azure/jdk/ +[azure_subscription]: https://azure.microsoft.com/free/ +[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity +[create_azure_purview_account]: https://docs.microsoft.com/azure/purview/create-catalog-portal +[logging]: https://github.com/Azure/azure-sdk-for-java/wiki/Logging-with-Azure-SDK diff --git a/sdk/purview/azure-analytics-purview-sharing/pom.xml b/sdk/purview/azure-analytics-purview-sharing/pom.xml new file mode 100644 index 0000000000000..01d42747f67c5 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/pom.xml @@ -0,0 +1,86 @@ + + 4.0.0 + + com.azure + azure-client-sdk-parent + 1.7.0 + ../../parents/azure-client-sdk-parent + + + com.azure + azure-analytics-purview-sharing + 1.0.0-beta.1 + jar + + Microsoft Azure SDK for PurviewShareClient Management + This package contains Microsoft Azure PurviewShareClient client library. + https://github.com/Azure/azure-sdk-for-java + + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + + https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + + microsoft + Microsoft + + + + UTF-8 + 0.25 + 0.15 + + + + com.azure + azure-core + 1.36.0 + + + com.azure + azure-core-http-netty + 1.13.0 + + + org.junit.jupiter + junit-jupiter-api + 5.9.1 + test + + + org.junit.jupiter + junit-jupiter-engine + 5.9.1 + test + + + org.mockito + mockito-core + 4.5.1 + test + + + com.azure + azure-core-test + 1.14.1 + test + + + com.azure + azure-identity + 1.8.0 + test + + + diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/PurviewShareServiceVersion.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/PurviewShareServiceVersion.java new file mode 100644 index 0000000000000..e4dc106a334a7 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/PurviewShareServiceVersion.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing; + +import com.azure.core.util.ServiceVersion; + +/** Service version of PurviewShareClient. */ +public enum PurviewShareServiceVersion implements ServiceVersion { + /** Enum value 2023-02-15-preview. */ + V2023_02_15_PREVIEW("2023-02-15-preview"); + + private final String version; + + PurviewShareServiceVersion(String version) { + this.version = version; + } + + /** {@inheritDoc} */ + @Override + public String getVersion() { + return this.version; + } + + /** + * Gets the latest service version supported by this client library. + * + * @return The latest {@link PurviewShareServiceVersion}. + */ + public static PurviewShareServiceVersion getLatest() { + return V2023_02_15_PREVIEW; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/ReceivedSharesAsyncClient.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/ReceivedSharesAsyncClient.java new file mode 100644 index 0000000000000..353db8932f132 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/ReceivedSharesAsyncClient.java @@ -0,0 +1,316 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing; + +import com.azure.analytics.purview.sharing.implementation.ReceivedSharesImpl; +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceClient; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.exception.ClientAuthenticationException; +import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.PollerFlux; +import reactor.core.publisher.Mono; + +/** Initializes a new instance of the asynchronous PurviewShareClient type. */ +@ServiceClient(builder = ReceivedSharesClientBuilder.class, isAsync = true) +public final class ReceivedSharesAsyncClient { + @Generated private final ReceivedSharesImpl serviceClient; + + /** + * Initializes an instance of ReceivedSharesAsyncClient class. + * + * @param serviceClient the service client implementation. + */ + @Generated + ReceivedSharesAsyncClient(ReceivedSharesImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * Get a received share by unique id. + * + *

Get a received share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param receivedShareId Id of the received share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a received share along with {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getReceivedShareWithResponse( + String receivedShareId, RequestOptions requestOptions) { + return this.serviceClient.getReceivedShareWithResponseAsync(receivedShareId, requestOptions); + } + + /** + * Create or replace a received share. + * + *

Update changes to a received share. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param receivedShareId Id of the received share. + * @param receivedShare The received share to create or replace. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of a received share data transfer object. + */ + @Generated + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux beginCreateOrReplaceReceivedShare( + String receivedShareId, BinaryData receivedShare, RequestOptions requestOptions) { + return this.serviceClient.beginCreateOrReplaceReceivedShareAsync( + receivedShareId, receivedShare, requestOptions); + } + + /** + * Deletes a received share + * + *

Delete a received share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     endTime: OffsetDateTime (Optional)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         message: String (Required)
+     *         target: String (Optional)
+     *     }
+     *     id: String (Optional)
+     *     startTime: OffsetDateTime (Optional)
+     *     status: String(Running/TransientFailure/Succeeded/Failed/NotStarted) (Required)
+     * }
+     * }
+ * + * @param receivedShareId Id of the received share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of response for long running operation. + */ + @Generated + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux beginDeleteReceivedShare( + String receivedShareId, RequestOptions requestOptions) { + return this.serviceClient.beginDeleteReceivedShareAsync(receivedShareId, requestOptions); + } + + /** + * Get a list of attached received shares. + * + *

List attached received shares. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param referenceName A name that references a data store. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of received shares as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux getAllAttachedReceivedShares(String referenceName, RequestOptions requestOptions) { + return this.serviceClient.getAllAttachedReceivedSharesAsync(referenceName, requestOptions); + } + + /** + * Get a list of detached received shares. + * + *

List detached received shares. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of received shares as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux getAllDetachedReceivedShares(RequestOptions requestOptions) { + return this.serviceClient.getAllDetachedReceivedSharesAsync(requestOptions); + } + + /** + * Activates the tenant and email combination using the activation code received. + * + *

Activates the email registration for current tenant. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     *     properties (Optional): {
+     *         activationCode: String (Required)
+     *         activationExpiration: OffsetDateTime (Optional)
+     *         email: String (Optional)
+     *         registrationStatus: String(ActivationPending/Activated/ActivationAttemptsExhausted) (Optional)
+     *         state: String(Unknown/Succeeded/Creating/Deleting/Moving/Failed) (Optional)
+     *         tenantId: String (Optional)
+     *     }
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     *     properties (Optional): {
+     *         activationCode: String (Required)
+     *         activationExpiration: OffsetDateTime (Optional)
+     *         email: String (Optional)
+     *         registrationStatus: String(ActivationPending/Activated/ActivationAttemptsExhausted) (Optional)
+     *         state: String(Unknown/Succeeded/Creating/Deleting/Moving/Failed) (Optional)
+     *         tenantId: String (Optional)
+     *     }
+     * }
+     * }
+ * + * @param tenantEmailRegistration The tenant email registration payload. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a tenant email registration data transfer object along with {@link Response} on successful completion of + * {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> activateTenantEmailRegistrationWithResponse( + BinaryData tenantEmailRegistration, RequestOptions requestOptions) { + return this.serviceClient.activateTenantEmailRegistrationWithResponseAsync( + tenantEmailRegistration, requestOptions); + } + + /** + * Registers the tenant and email combination for activation. + * + *

Register an email for the current tenant. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     *     properties (Optional): {
+     *         activationCode: String (Required)
+     *         activationExpiration: OffsetDateTime (Optional)
+     *         email: String (Optional)
+     *         registrationStatus: String(ActivationPending/Activated/ActivationAttemptsExhausted) (Optional)
+     *         state: String(Unknown/Succeeded/Creating/Deleting/Moving/Failed) (Optional)
+     *         tenantId: String (Optional)
+     *     }
+     * }
+     * }
+ * + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a tenant email registration data transfer object along with {@link Response} on successful completion of + * {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> registerTenantEmailRegistrationWithResponse(RequestOptions requestOptions) { + return this.serviceClient.registerTenantEmailRegistrationWithResponseAsync(requestOptions); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/ReceivedSharesClient.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/ReceivedSharesClient.java new file mode 100644 index 0000000000000..92bff325ec32d --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/ReceivedSharesClient.java @@ -0,0 +1,311 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceClient; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.exception.ClientAuthenticationException; +import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.SyncPoller; + +/** Initializes a new instance of the synchronous PurviewShareClient type. */ +@ServiceClient(builder = ReceivedSharesClientBuilder.class) +public final class ReceivedSharesClient { + @Generated private final ReceivedSharesAsyncClient client; + + /** + * Initializes an instance of ReceivedSharesClient class. + * + * @param client the async client. + */ + @Generated + ReceivedSharesClient(ReceivedSharesAsyncClient client) { + this.client = client; + } + + /** + * Get a received share by unique id. + * + *

Get a received share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param receivedShareId Id of the received share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a received share along with {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getReceivedShareWithResponse(String receivedShareId, RequestOptions requestOptions) { + return this.client.getReceivedShareWithResponse(receivedShareId, requestOptions).block(); + } + + /** + * Create or replace a received share. + * + *

Update changes to a received share. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param receivedShareId Id of the received share. + * @param receivedShare The received share to create or replace. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link SyncPoller} for polling of a received share data transfer object. + */ + @Generated + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller beginCreateOrReplaceReceivedShare( + String receivedShareId, BinaryData receivedShare, RequestOptions requestOptions) { + return this.client + .beginCreateOrReplaceReceivedShare(receivedShareId, receivedShare, requestOptions) + .getSyncPoller(); + } + + /** + * Deletes a received share + * + *

Delete a received share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     endTime: OffsetDateTime (Optional)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         message: String (Required)
+     *         target: String (Optional)
+     *     }
+     *     id: String (Optional)
+     *     startTime: OffsetDateTime (Optional)
+     *     status: String(Running/TransientFailure/Succeeded/Failed/NotStarted) (Required)
+     * }
+     * }
+ * + * @param receivedShareId Id of the received share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link SyncPoller} for polling of response for long running operation. + */ + @Generated + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller beginDeleteReceivedShare( + String receivedShareId, RequestOptions requestOptions) { + return this.client.beginDeleteReceivedShare(receivedShareId, requestOptions).getSyncPoller(); + } + + /** + * Get a list of attached received shares. + * + *

List attached received shares. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param referenceName A name that references a data store. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of received shares as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable getAllAttachedReceivedShares(String referenceName, RequestOptions requestOptions) { + return new PagedIterable<>(this.client.getAllAttachedReceivedShares(referenceName, requestOptions)); + } + + /** + * Get a list of detached received shares. + * + *

List detached received shares. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of received shares as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable getAllDetachedReceivedShares(RequestOptions requestOptions) { + return new PagedIterable<>(this.client.getAllDetachedReceivedShares(requestOptions)); + } + + /** + * Activates the tenant and email combination using the activation code received. + * + *

Activates the email registration for current tenant. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     *     properties (Optional): {
+     *         activationCode: String (Required)
+     *         activationExpiration: OffsetDateTime (Optional)
+     *         email: String (Optional)
+     *         registrationStatus: String(ActivationPending/Activated/ActivationAttemptsExhausted) (Optional)
+     *         state: String(Unknown/Succeeded/Creating/Deleting/Moving/Failed) (Optional)
+     *         tenantId: String (Optional)
+     *     }
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     *     properties (Optional): {
+     *         activationCode: String (Required)
+     *         activationExpiration: OffsetDateTime (Optional)
+     *         email: String (Optional)
+     *         registrationStatus: String(ActivationPending/Activated/ActivationAttemptsExhausted) (Optional)
+     *         state: String(Unknown/Succeeded/Creating/Deleting/Moving/Failed) (Optional)
+     *         tenantId: String (Optional)
+     *     }
+     * }
+     * }
+ * + * @param tenantEmailRegistration The tenant email registration payload. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a tenant email registration data transfer object along with {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response activateTenantEmailRegistrationWithResponse( + BinaryData tenantEmailRegistration, RequestOptions requestOptions) { + return this.client.activateTenantEmailRegistrationWithResponse(tenantEmailRegistration, requestOptions).block(); + } + + /** + * Registers the tenant and email combination for activation. + * + *

Register an email for the current tenant. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     *     properties (Optional): {
+     *         activationCode: String (Required)
+     *         activationExpiration: OffsetDateTime (Optional)
+     *         email: String (Optional)
+     *         registrationStatus: String(ActivationPending/Activated/ActivationAttemptsExhausted) (Optional)
+     *         state: String(Unknown/Succeeded/Creating/Deleting/Moving/Failed) (Optional)
+     *         tenantId: String (Optional)
+     *     }
+     * }
+     * }
+ * + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a tenant email registration data transfer object along with {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response registerTenantEmailRegistrationWithResponse(RequestOptions requestOptions) { + return this.client.registerTenantEmailRegistrationWithResponse(requestOptions).block(); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/ReceivedSharesClientBuilder.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/ReceivedSharesClientBuilder.java new file mode 100644 index 0000000000000..79bd05b9e6595 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/ReceivedSharesClientBuilder.java @@ -0,0 +1,292 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing; + +import com.azure.analytics.purview.sharing.implementation.PurviewShareClientImpl; +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.ServiceClientBuilder; +import com.azure.core.client.traits.ConfigurationTrait; +import com.azure.core.client.traits.EndpointTrait; +import com.azure.core.client.traits.HttpTrait; +import com.azure.core.client.traits.TokenCredentialTrait; +import com.azure.core.credential.TokenCredential; +import com.azure.core.http.HttpClient; +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.HttpPipelinePosition; +import com.azure.core.http.policy.AddDatePolicy; +import com.azure.core.http.policy.AddHeadersFromContextPolicy; +import com.azure.core.http.policy.AddHeadersPolicy; +import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; +import com.azure.core.http.policy.CookiePolicy; +import com.azure.core.http.policy.HttpLogOptions; +import com.azure.core.http.policy.HttpLoggingPolicy; +import com.azure.core.http.policy.HttpPipelinePolicy; +import com.azure.core.http.policy.HttpPolicyProviders; +import com.azure.core.http.policy.RequestIdPolicy; +import com.azure.core.http.policy.RetryOptions; +import com.azure.core.http.policy.RetryPolicy; +import com.azure.core.http.policy.UserAgentPolicy; +import com.azure.core.util.ClientOptions; +import com.azure.core.util.Configuration; +import com.azure.core.util.CoreUtils; +import com.azure.core.util.builder.ClientBuilderUtil; +import com.azure.core.util.serializer.JacksonAdapter; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** A builder for creating a new instance of the ReceivedSharesClient type. */ +@ServiceClientBuilder(serviceClients = {ReceivedSharesClient.class, ReceivedSharesAsyncClient.class}) +public final class ReceivedSharesClientBuilder + implements HttpTrait, + ConfigurationTrait, + TokenCredentialTrait, + EndpointTrait { + @Generated private static final String SDK_NAME = "name"; + + @Generated private static final String SDK_VERSION = "version"; + + @Generated private static final String[] DEFAULT_SCOPES = new String[] {"https://purview.azure.net/.default"}; + + @Generated + private static final Map PROPERTIES = + CoreUtils.getProperties("azure-analytics-purview-sharing.properties"); + + @Generated private final List pipelinePolicies; + + /** Create an instance of the ReceivedSharesClientBuilder. */ + @Generated + public ReceivedSharesClientBuilder() { + this.pipelinePolicies = new ArrayList<>(); + } + + /* + * The HTTP pipeline to send requests through. + */ + @Generated private HttpPipeline pipeline; + + /** {@inheritDoc}. */ + @Generated + @Override + public ReceivedSharesClientBuilder pipeline(HttpPipeline pipeline) { + this.pipeline = pipeline; + return this; + } + + /* + * The HTTP client used to send the request. + */ + @Generated private HttpClient httpClient; + + /** {@inheritDoc}. */ + @Generated + @Override + public ReceivedSharesClientBuilder httpClient(HttpClient httpClient) { + this.httpClient = httpClient; + return this; + } + + /* + * The logging configuration for HTTP requests and responses. + */ + @Generated private HttpLogOptions httpLogOptions; + + /** {@inheritDoc}. */ + @Generated + @Override + public ReceivedSharesClientBuilder httpLogOptions(HttpLogOptions httpLogOptions) { + this.httpLogOptions = httpLogOptions; + return this; + } + + /* + * The client options such as application ID and custom headers to set on a request. + */ + @Generated private ClientOptions clientOptions; + + /** {@inheritDoc}. */ + @Generated + @Override + public ReceivedSharesClientBuilder clientOptions(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + return this; + } + + /* + * The retry options to configure retry policy for failed requests. + */ + @Generated private RetryOptions retryOptions; + + /** {@inheritDoc}. */ + @Generated + @Override + public ReceivedSharesClientBuilder retryOptions(RetryOptions retryOptions) { + this.retryOptions = retryOptions; + return this; + } + + /** {@inheritDoc}. */ + @Generated + @Override + public ReceivedSharesClientBuilder addPolicy(HttpPipelinePolicy customPolicy) { + Objects.requireNonNull(customPolicy, "'customPolicy' cannot be null."); + pipelinePolicies.add(customPolicy); + return this; + } + + /* + * The configuration store that is used during construction of the service client. + */ + @Generated private Configuration configuration; + + /** {@inheritDoc}. */ + @Generated + @Override + public ReceivedSharesClientBuilder configuration(Configuration configuration) { + this.configuration = configuration; + return this; + } + + /* + * The TokenCredential used for authentication. + */ + @Generated private TokenCredential tokenCredential; + + /** {@inheritDoc}. */ + @Generated + @Override + public ReceivedSharesClientBuilder credential(TokenCredential tokenCredential) { + this.tokenCredential = tokenCredential; + return this; + } + + /* + * The service endpoint + */ + @Generated private String endpoint; + + /** {@inheritDoc}. */ + @Generated + @Override + public ReceivedSharesClientBuilder endpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + /* + * Service version + */ + @Generated private PurviewShareServiceVersion serviceVersion; + + /** + * Sets Service version. + * + * @param serviceVersion the serviceVersion value. + * @return the ReceivedSharesClientBuilder. + */ + @Generated + public ReceivedSharesClientBuilder serviceVersion(PurviewShareServiceVersion serviceVersion) { + this.serviceVersion = serviceVersion; + return this; + } + + /* + * The retry policy that will attempt to retry failed requests, if applicable. + */ + @Generated private RetryPolicy retryPolicy; + + /** + * Sets The retry policy that will attempt to retry failed requests, if applicable. + * + * @param retryPolicy the retryPolicy value. + * @return the ReceivedSharesClientBuilder. + */ + @Generated + public ReceivedSharesClientBuilder retryPolicy(RetryPolicy retryPolicy) { + this.retryPolicy = retryPolicy; + return this; + } + + /** + * Builds an instance of PurviewShareClientImpl with the provided parameters. + * + * @return an instance of PurviewShareClientImpl. + */ + @Generated + private PurviewShareClientImpl buildInnerClient() { + HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline(); + PurviewShareServiceVersion localServiceVersion = + (serviceVersion != null) ? serviceVersion : PurviewShareServiceVersion.getLatest(); + PurviewShareClientImpl client = + new PurviewShareClientImpl( + localPipeline, JacksonAdapter.createDefaultSerializerAdapter(), endpoint, localServiceVersion); + return client; + } + + @Generated + private HttpPipeline createHttpPipeline() { + Configuration buildConfiguration = + (configuration == null) ? Configuration.getGlobalConfiguration() : configuration; + HttpLogOptions localHttpLogOptions = this.httpLogOptions == null ? new HttpLogOptions() : this.httpLogOptions; + ClientOptions localClientOptions = this.clientOptions == null ? new ClientOptions() : this.clientOptions; + List policies = new ArrayList<>(); + String clientName = PROPERTIES.getOrDefault(SDK_NAME, "UnknownName"); + String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion"); + String applicationId = CoreUtils.getApplicationId(localClientOptions, localHttpLogOptions); + policies.add(new UserAgentPolicy(applicationId, clientName, clientVersion, buildConfiguration)); + policies.add(new RequestIdPolicy()); + policies.add(new AddHeadersFromContextPolicy()); + HttpHeaders headers = new HttpHeaders(); + localClientOptions.getHeaders().forEach(header -> headers.set(header.getName(), header.getValue())); + if (headers.getSize() > 0) { + policies.add(new AddHeadersPolicy(headers)); + } + this.pipelinePolicies.stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) + .forEach(p -> policies.add(p)); + HttpPolicyProviders.addBeforeRetryPolicies(policies); + policies.add(ClientBuilderUtil.validateAndGetRetryPolicy(retryPolicy, retryOptions, new RetryPolicy())); + policies.add(new AddDatePolicy()); + policies.add(new CookiePolicy()); + if (tokenCredential != null) { + policies.add(new BearerTokenAuthenticationPolicy(tokenCredential, DEFAULT_SCOPES)); + } + this.pipelinePolicies.stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) + .forEach(p -> policies.add(p)); + HttpPolicyProviders.addAfterRetryPolicies(policies); + policies.add(new HttpLoggingPolicy(httpLogOptions)); + HttpPipeline httpPipeline = + new HttpPipelineBuilder() + .policies(policies.toArray(new HttpPipelinePolicy[0])) + .httpClient(httpClient) + .clientOptions(localClientOptions) + .build(); + return httpPipeline; + } + + /** + * Builds an instance of ReceivedSharesAsyncClient class. + * + * @return an instance of ReceivedSharesAsyncClient. + */ + @Generated + public ReceivedSharesAsyncClient buildAsyncClient() { + return new ReceivedSharesAsyncClient(buildInnerClient().getReceivedShares()); + } + + /** + * Builds an instance of ReceivedSharesClient class. + * + * @return an instance of ReceivedSharesClient. + */ + @Generated + public ReceivedSharesClient buildClient() { + return new ReceivedSharesClient(new ReceivedSharesAsyncClient(buildInnerClient().getReceivedShares())); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/SentSharesAsyncClient.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/SentSharesAsyncClient.java new file mode 100644 index 0000000000000..dae7a1ce38586 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/SentSharesAsyncClient.java @@ -0,0 +1,371 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing; + +import com.azure.analytics.purview.sharing.implementation.SentSharesImpl; +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceClient; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.exception.ClientAuthenticationException; +import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.PollerFlux; +import reactor.core.publisher.Mono; + +/** Initializes a new instance of the asynchronous PurviewShareClient type. */ +@ServiceClient(builder = SentSharesClientBuilder.class, isAsync = true) +public final class SentSharesAsyncClient { + @Generated private final SentSharesImpl serviceClient; + + /** + * Initializes an instance of SentSharesAsyncClient class. + * + * @param serviceClient the service client implementation. + */ + @Generated + SentSharesAsyncClient(SentSharesImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * Get a list of sent shares. + * + *

List sent shares. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param referenceName A name that references a data store. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of sent shares as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux getAllSentShares(String referenceName, RequestOptions requestOptions) { + return this.serviceClient.getAllSentSharesAsync(referenceName, requestOptions); + } + + /** + * Get a sent share by guid. + * + *

Get a sent share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a sent share along with {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getSentShareWithResponse(String sentShareId, RequestOptions requestOptions) { + return this.serviceClient.getSentShareWithResponseAsync(sentShareId, requestOptions); + } + + /** + * Create or replace a sent share. + * + *

Create or replace a sent share. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShare The sent share to create or replace. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of a sent share data transfer object. + */ + @Generated + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux beginCreateOrReplaceSentShare( + String sentShareId, BinaryData sentShare, RequestOptions requestOptions) { + return this.serviceClient.beginCreateOrReplaceSentShareAsync(sentShareId, sentShare, requestOptions); + } + + /** + * Deletes a sent share. + * + *

Delete a sent share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     endTime: OffsetDateTime (Optional)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         message: String (Required)
+     *         target: String (Optional)
+     *     }
+     *     id: String (Optional)
+     *     startTime: OffsetDateTime (Optional)
+     *     status: String(Running/TransientFailure/Succeeded/Failed/NotStarted) (Required)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of response for long running operation. + */ + @Generated + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux beginDeleteSentShare(String sentShareId, RequestOptions requestOptions) { + return this.serviceClient.beginDeleteSentShareAsync(sentShareId, requestOptions); + } + + /** + * List all sent share invitations in a sent share + * + *

List sent share recipients. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of the sent share invitations as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux getAllSentShareInvitations(String sentShareId, RequestOptions requestOptions) { + return this.serviceClient.getAllSentShareInvitationsAsync(sentShareId, requestOptions); + } + + /** + * Get sent share invitation for a given sent share + * + *

Get recipient for a given sent share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShareInvitationId Id of the sent share invitation. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return recipient for a given sent share along with {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getSentShareInvitationWithResponse( + String sentShareId, String sentShareInvitationId, RequestOptions requestOptions) { + return this.serviceClient.getSentShareInvitationWithResponseAsync( + sentShareId, sentShareInvitationId, requestOptions); + } + + /** + * Create a sent share invitation. + * + *

Create a recipient for a given sent share. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShareInvitationId Id of the sent share invitation. + * @param sentShareInvitation The sent share invitation to create. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a sent share invitation data transfer object along with {@link Response} on successful completion of + * {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createSentShareInvitationWithResponse( + String sentShareId, + String sentShareInvitationId, + BinaryData sentShareInvitation, + RequestOptions requestOptions) { + return this.serviceClient.createSentShareInvitationWithResponseAsync( + sentShareId, sentShareInvitationId, sentShareInvitation, requestOptions); + } + + /** + * Delete Invitation in a share. + * + *

Delete a sent share invitation. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     endTime: OffsetDateTime (Optional)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         message: String (Required)
+     *         target: String (Optional)
+     *     }
+     *     id: String (Optional)
+     *     startTime: OffsetDateTime (Optional)
+     *     status: String(Running/TransientFailure/Succeeded/Failed/NotStarted) (Required)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShareInvitationId Id of the sent share invitation. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of response for long running operation. + */ + @Generated + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux beginDeleteSentShareInvitation( + String sentShareId, String sentShareInvitationId, RequestOptions requestOptions) { + return this.serviceClient.beginDeleteSentShareInvitationAsync( + sentShareId, sentShareInvitationId, requestOptions); + } + + /** + * Notifies the recipient of the sent share invitation. + * + *

Notifies the user recipient of the sent share invitation, does not apply to service invitations. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShareInvitationId Id of the sent share invitation. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a sent share invitation data transfer object along with {@link Response} on successful completion of + * {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> notifyUserSentShareInvitationWithResponse( + String sentShareId, String sentShareInvitationId, RequestOptions requestOptions) { + return this.serviceClient.notifyUserSentShareInvitationWithResponseAsync( + sentShareId, sentShareInvitationId, requestOptions); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/SentSharesClient.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/SentSharesClient.java new file mode 100644 index 0000000000000..f468f8b59552c --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/SentSharesClient.java @@ -0,0 +1,372 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceClient; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.exception.ClientAuthenticationException; +import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.SyncPoller; + +/** Initializes a new instance of the synchronous PurviewShareClient type. */ +@ServiceClient(builder = SentSharesClientBuilder.class) +public final class SentSharesClient { + @Generated private final SentSharesAsyncClient client; + + /** + * Initializes an instance of SentSharesClient class. + * + * @param client the async client. + */ + @Generated + SentSharesClient(SentSharesAsyncClient client) { + this.client = client; + } + + /** + * Get a list of sent shares. + * + *

List sent shares. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param referenceName A name that references a data store. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of sent shares as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable getAllSentShares(String referenceName, RequestOptions requestOptions) { + return new PagedIterable<>(this.client.getAllSentShares(referenceName, requestOptions)); + } + + /** + * Get a sent share by guid. + * + *

Get a sent share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a sent share along with {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getSentShareWithResponse(String sentShareId, RequestOptions requestOptions) { + return this.client.getSentShareWithResponse(sentShareId, requestOptions).block(); + } + + /** + * Create or replace a sent share. + * + *

Create or replace a sent share. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShare The sent share to create or replace. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link SyncPoller} for polling of a sent share data transfer object. + */ + @Generated + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller beginCreateOrReplaceSentShare( + String sentShareId, BinaryData sentShare, RequestOptions requestOptions) { + return this.client.beginCreateOrReplaceSentShare(sentShareId, sentShare, requestOptions).getSyncPoller(); + } + + /** + * Deletes a sent share. + * + *

Delete a sent share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     endTime: OffsetDateTime (Optional)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         message: String (Required)
+     *         target: String (Optional)
+     *     }
+     *     id: String (Optional)
+     *     startTime: OffsetDateTime (Optional)
+     *     status: String(Running/TransientFailure/Succeeded/Failed/NotStarted) (Required)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link SyncPoller} for polling of response for long running operation. + */ + @Generated + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller beginDeleteSentShare(String sentShareId, RequestOptions requestOptions) { + return this.client.beginDeleteSentShare(sentShareId, requestOptions).getSyncPoller(); + } + + /** + * List all sent share invitations in a sent share + * + *

List sent share recipients. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of the sent share invitations as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable getAllSentShareInvitations(String sentShareId, RequestOptions requestOptions) { + return new PagedIterable<>(this.client.getAllSentShareInvitations(sentShareId, requestOptions)); + } + + /** + * Get sent share invitation for a given sent share + * + *

Get recipient for a given sent share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShareInvitationId Id of the sent share invitation. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return recipient for a given sent share along with {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getSentShareInvitationWithResponse( + String sentShareId, String sentShareInvitationId, RequestOptions requestOptions) { + return this.client + .getSentShareInvitationWithResponse(sentShareId, sentShareInvitationId, requestOptions) + .block(); + } + + /** + * Create a sent share invitation. + * + *

Create a recipient for a given sent share. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShareInvitationId Id of the sent share invitation. + * @param sentShareInvitation The sent share invitation to create. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a sent share invitation data transfer object along with {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createSentShareInvitationWithResponse( + String sentShareId, + String sentShareInvitationId, + BinaryData sentShareInvitation, + RequestOptions requestOptions) { + return this.client + .createSentShareInvitationWithResponse( + sentShareId, sentShareInvitationId, sentShareInvitation, requestOptions) + .block(); + } + + /** + * Delete Invitation in a share. + * + *

Delete a sent share invitation. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     endTime: OffsetDateTime (Optional)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         message: String (Required)
+     *         target: String (Optional)
+     *     }
+     *     id: String (Optional)
+     *     startTime: OffsetDateTime (Optional)
+     *     status: String(Running/TransientFailure/Succeeded/Failed/NotStarted) (Required)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShareInvitationId Id of the sent share invitation. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link SyncPoller} for polling of response for long running operation. + */ + @Generated + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller beginDeleteSentShareInvitation( + String sentShareId, String sentShareInvitationId, RequestOptions requestOptions) { + return this.client + .beginDeleteSentShareInvitation(sentShareId, sentShareInvitationId, requestOptions) + .getSyncPoller(); + } + + /** + * Notifies the recipient of the sent share invitation. + * + *

Notifies the user recipient of the sent share invitation, does not apply to service invitations. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShareInvitationId Id of the sent share invitation. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a sent share invitation data transfer object along with {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response notifyUserSentShareInvitationWithResponse( + String sentShareId, String sentShareInvitationId, RequestOptions requestOptions) { + return this.client + .notifyUserSentShareInvitationWithResponse(sentShareId, sentShareInvitationId, requestOptions) + .block(); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/SentSharesClientBuilder.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/SentSharesClientBuilder.java new file mode 100644 index 0000000000000..bac8609ada002 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/SentSharesClientBuilder.java @@ -0,0 +1,292 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing; + +import com.azure.analytics.purview.sharing.implementation.PurviewShareClientImpl; +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.ServiceClientBuilder; +import com.azure.core.client.traits.ConfigurationTrait; +import com.azure.core.client.traits.EndpointTrait; +import com.azure.core.client.traits.HttpTrait; +import com.azure.core.client.traits.TokenCredentialTrait; +import com.azure.core.credential.TokenCredential; +import com.azure.core.http.HttpClient; +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.HttpPipelinePosition; +import com.azure.core.http.policy.AddDatePolicy; +import com.azure.core.http.policy.AddHeadersFromContextPolicy; +import com.azure.core.http.policy.AddHeadersPolicy; +import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; +import com.azure.core.http.policy.CookiePolicy; +import com.azure.core.http.policy.HttpLogOptions; +import com.azure.core.http.policy.HttpLoggingPolicy; +import com.azure.core.http.policy.HttpPipelinePolicy; +import com.azure.core.http.policy.HttpPolicyProviders; +import com.azure.core.http.policy.RequestIdPolicy; +import com.azure.core.http.policy.RetryOptions; +import com.azure.core.http.policy.RetryPolicy; +import com.azure.core.http.policy.UserAgentPolicy; +import com.azure.core.util.ClientOptions; +import com.azure.core.util.Configuration; +import com.azure.core.util.CoreUtils; +import com.azure.core.util.builder.ClientBuilderUtil; +import com.azure.core.util.serializer.JacksonAdapter; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** A builder for creating a new instance of the SentSharesClient type. */ +@ServiceClientBuilder(serviceClients = {SentSharesClient.class, SentSharesAsyncClient.class}) +public final class SentSharesClientBuilder + implements HttpTrait, + ConfigurationTrait, + TokenCredentialTrait, + EndpointTrait { + @Generated private static final String SDK_NAME = "name"; + + @Generated private static final String SDK_VERSION = "version"; + + @Generated private static final String[] DEFAULT_SCOPES = new String[] {"https://purview.azure.net/.default"}; + + @Generated + private static final Map PROPERTIES = + CoreUtils.getProperties("azure-analytics-purview-sharing.properties"); + + @Generated private final List pipelinePolicies; + + /** Create an instance of the SentSharesClientBuilder. */ + @Generated + public SentSharesClientBuilder() { + this.pipelinePolicies = new ArrayList<>(); + } + + /* + * The HTTP pipeline to send requests through. + */ + @Generated private HttpPipeline pipeline; + + /** {@inheritDoc}. */ + @Generated + @Override + public SentSharesClientBuilder pipeline(HttpPipeline pipeline) { + this.pipeline = pipeline; + return this; + } + + /* + * The HTTP client used to send the request. + */ + @Generated private HttpClient httpClient; + + /** {@inheritDoc}. */ + @Generated + @Override + public SentSharesClientBuilder httpClient(HttpClient httpClient) { + this.httpClient = httpClient; + return this; + } + + /* + * The logging configuration for HTTP requests and responses. + */ + @Generated private HttpLogOptions httpLogOptions; + + /** {@inheritDoc}. */ + @Generated + @Override + public SentSharesClientBuilder httpLogOptions(HttpLogOptions httpLogOptions) { + this.httpLogOptions = httpLogOptions; + return this; + } + + /* + * The client options such as application ID and custom headers to set on a request. + */ + @Generated private ClientOptions clientOptions; + + /** {@inheritDoc}. */ + @Generated + @Override + public SentSharesClientBuilder clientOptions(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + return this; + } + + /* + * The retry options to configure retry policy for failed requests. + */ + @Generated private RetryOptions retryOptions; + + /** {@inheritDoc}. */ + @Generated + @Override + public SentSharesClientBuilder retryOptions(RetryOptions retryOptions) { + this.retryOptions = retryOptions; + return this; + } + + /** {@inheritDoc}. */ + @Generated + @Override + public SentSharesClientBuilder addPolicy(HttpPipelinePolicy customPolicy) { + Objects.requireNonNull(customPolicy, "'customPolicy' cannot be null."); + pipelinePolicies.add(customPolicy); + return this; + } + + /* + * The configuration store that is used during construction of the service client. + */ + @Generated private Configuration configuration; + + /** {@inheritDoc}. */ + @Generated + @Override + public SentSharesClientBuilder configuration(Configuration configuration) { + this.configuration = configuration; + return this; + } + + /* + * The TokenCredential used for authentication. + */ + @Generated private TokenCredential tokenCredential; + + /** {@inheritDoc}. */ + @Generated + @Override + public SentSharesClientBuilder credential(TokenCredential tokenCredential) { + this.tokenCredential = tokenCredential; + return this; + } + + /* + * The service endpoint + */ + @Generated private String endpoint; + + /** {@inheritDoc}. */ + @Generated + @Override + public SentSharesClientBuilder endpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + /* + * Service version + */ + @Generated private PurviewShareServiceVersion serviceVersion; + + /** + * Sets Service version. + * + * @param serviceVersion the serviceVersion value. + * @return the SentSharesClientBuilder. + */ + @Generated + public SentSharesClientBuilder serviceVersion(PurviewShareServiceVersion serviceVersion) { + this.serviceVersion = serviceVersion; + return this; + } + + /* + * The retry policy that will attempt to retry failed requests, if applicable. + */ + @Generated private RetryPolicy retryPolicy; + + /** + * Sets The retry policy that will attempt to retry failed requests, if applicable. + * + * @param retryPolicy the retryPolicy value. + * @return the SentSharesClientBuilder. + */ + @Generated + public SentSharesClientBuilder retryPolicy(RetryPolicy retryPolicy) { + this.retryPolicy = retryPolicy; + return this; + } + + /** + * Builds an instance of PurviewShareClientImpl with the provided parameters. + * + * @return an instance of PurviewShareClientImpl. + */ + @Generated + private PurviewShareClientImpl buildInnerClient() { + HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline(); + PurviewShareServiceVersion localServiceVersion = + (serviceVersion != null) ? serviceVersion : PurviewShareServiceVersion.getLatest(); + PurviewShareClientImpl client = + new PurviewShareClientImpl( + localPipeline, JacksonAdapter.createDefaultSerializerAdapter(), endpoint, localServiceVersion); + return client; + } + + @Generated + private HttpPipeline createHttpPipeline() { + Configuration buildConfiguration = + (configuration == null) ? Configuration.getGlobalConfiguration() : configuration; + HttpLogOptions localHttpLogOptions = this.httpLogOptions == null ? new HttpLogOptions() : this.httpLogOptions; + ClientOptions localClientOptions = this.clientOptions == null ? new ClientOptions() : this.clientOptions; + List policies = new ArrayList<>(); + String clientName = PROPERTIES.getOrDefault(SDK_NAME, "UnknownName"); + String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion"); + String applicationId = CoreUtils.getApplicationId(localClientOptions, localHttpLogOptions); + policies.add(new UserAgentPolicy(applicationId, clientName, clientVersion, buildConfiguration)); + policies.add(new RequestIdPolicy()); + policies.add(new AddHeadersFromContextPolicy()); + HttpHeaders headers = new HttpHeaders(); + localClientOptions.getHeaders().forEach(header -> headers.set(header.getName(), header.getValue())); + if (headers.getSize() > 0) { + policies.add(new AddHeadersPolicy(headers)); + } + this.pipelinePolicies.stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) + .forEach(p -> policies.add(p)); + HttpPolicyProviders.addBeforeRetryPolicies(policies); + policies.add(ClientBuilderUtil.validateAndGetRetryPolicy(retryPolicy, retryOptions, new RetryPolicy())); + policies.add(new AddDatePolicy()); + policies.add(new CookiePolicy()); + if (tokenCredential != null) { + policies.add(new BearerTokenAuthenticationPolicy(tokenCredential, DEFAULT_SCOPES)); + } + this.pipelinePolicies.stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) + .forEach(p -> policies.add(p)); + HttpPolicyProviders.addAfterRetryPolicies(policies); + policies.add(new HttpLoggingPolicy(httpLogOptions)); + HttpPipeline httpPipeline = + new HttpPipelineBuilder() + .policies(policies.toArray(new HttpPipelinePolicy[0])) + .httpClient(httpClient) + .clientOptions(localClientOptions) + .build(); + return httpPipeline; + } + + /** + * Builds an instance of SentSharesAsyncClient class. + * + * @return an instance of SentSharesAsyncClient. + */ + @Generated + public SentSharesAsyncClient buildAsyncClient() { + return new SentSharesAsyncClient(buildInnerClient().getSentShares()); + } + + /** + * Builds an instance of SentSharesClient class. + * + * @return an instance of SentSharesClient. + */ + @Generated + public SentSharesClient buildClient() { + return new SentSharesClient(new SentSharesAsyncClient(buildInnerClient().getSentShares())); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/implementation/PurviewShareClientImpl.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/implementation/PurviewShareClientImpl.java new file mode 100644 index 0000000000000..16ea7f0254bd0 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/implementation/PurviewShareClientImpl.java @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.implementation; + +import com.azure.analytics.purview.sharing.PurviewShareServiceVersion; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.policy.CookiePolicy; +import com.azure.core.http.policy.RetryPolicy; +import com.azure.core.http.policy.UserAgentPolicy; +import com.azure.core.util.serializer.JacksonAdapter; +import com.azure.core.util.serializer.SerializerAdapter; + +/** Initializes a new instance of the PurviewShareClient type. */ +public final class PurviewShareClientImpl { + /** The sharing endpoint of your purview account. Example: https://{accountName}.purview.azure.com/share. */ + private final String endpoint; + + /** + * Gets The sharing endpoint of your purview account. Example: https://{accountName}.purview.azure.com/share. + * + * @return the endpoint value. + */ + public String getEndpoint() { + return this.endpoint; + } + + /** Service version. */ + private final PurviewShareServiceVersion serviceVersion; + + /** + * Gets Service version. + * + * @return the serviceVersion value. + */ + public PurviewShareServiceVersion getServiceVersion() { + return this.serviceVersion; + } + + /** The HTTP pipeline to send requests through. */ + private final HttpPipeline httpPipeline; + + /** + * Gets The HTTP pipeline to send requests through. + * + * @return the httpPipeline value. + */ + public HttpPipeline getHttpPipeline() { + return this.httpPipeline; + } + + /** The serializer to serialize an object into a string. */ + private final SerializerAdapter serializerAdapter; + + /** + * Gets The serializer to serialize an object into a string. + * + * @return the serializerAdapter value. + */ + public SerializerAdapter getSerializerAdapter() { + return this.serializerAdapter; + } + + /** The ReceivedSharesImpl object to access its operations. */ + private final ReceivedSharesImpl receivedShares; + + /** + * Gets the ReceivedSharesImpl object to access its operations. + * + * @return the ReceivedSharesImpl object. + */ + public ReceivedSharesImpl getReceivedShares() { + return this.receivedShares; + } + + /** The SentSharesImpl object to access its operations. */ + private final SentSharesImpl sentShares; + + /** + * Gets the SentSharesImpl object to access its operations. + * + * @return the SentSharesImpl object. + */ + public SentSharesImpl getSentShares() { + return this.sentShares; + } + + /** + * Initializes an instance of PurviewShareClient client. + * + * @param endpoint The sharing endpoint of your purview account. Example: + * https://{accountName}.purview.azure.com/share. + * @param serviceVersion Service version. + */ + public PurviewShareClientImpl(String endpoint, PurviewShareServiceVersion serviceVersion) { + this( + new HttpPipelineBuilder() + .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()) + .build(), + JacksonAdapter.createDefaultSerializerAdapter(), + endpoint, + serviceVersion); + } + + /** + * Initializes an instance of PurviewShareClient client. + * + * @param httpPipeline The HTTP pipeline to send requests through. + * @param endpoint The sharing endpoint of your purview account. Example: + * https://{accountName}.purview.azure.com/share. + * @param serviceVersion Service version. + */ + public PurviewShareClientImpl( + HttpPipeline httpPipeline, String endpoint, PurviewShareServiceVersion serviceVersion) { + this(httpPipeline, JacksonAdapter.createDefaultSerializerAdapter(), endpoint, serviceVersion); + } + + /** + * Initializes an instance of PurviewShareClient client. + * + * @param httpPipeline The HTTP pipeline to send requests through. + * @param serializerAdapter The serializer to serialize an object into a string. + * @param endpoint The sharing endpoint of your purview account. Example: + * https://{accountName}.purview.azure.com/share. + * @param serviceVersion Service version. + */ + public PurviewShareClientImpl( + HttpPipeline httpPipeline, + SerializerAdapter serializerAdapter, + String endpoint, + PurviewShareServiceVersion serviceVersion) { + this.httpPipeline = httpPipeline; + this.serializerAdapter = serializerAdapter; + this.endpoint = endpoint; + this.serviceVersion = serviceVersion; + this.receivedShares = new ReceivedSharesImpl(this); + this.sentShares = new SentSharesImpl(this); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/implementation/ReceivedSharesImpl.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/implementation/ReceivedSharesImpl.java new file mode 100644 index 0000000000000..f7f867a72651e --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/implementation/ReceivedSharesImpl.java @@ -0,0 +1,1160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.exception.ClientAuthenticationException; +import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.DefaultPollingStrategy; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.core.util.serializer.TypeReference; +import java.time.Duration; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in ReceivedShares. */ +public final class ReceivedSharesImpl { + /** The proxy service used to perform REST calls. */ + private final ReceivedSharesService service; + + /** The service client containing this operation class. */ + private final PurviewShareClientImpl client; + + /** + * Initializes an instance of ReceivedSharesImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ReceivedSharesImpl(PurviewShareClientImpl client) { + this.service = + RestProxy.create(ReceivedSharesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for PurviewShareClientReceivedShares to be used by the proxy service to + * perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "PurviewShareClientRe") + public interface ReceivedSharesService { + @Get("/receivedShares/{receivedShareId}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> getReceivedShare( + @HostParam("endpoint") String endpoint, + @PathParam("receivedShareId") String receivedShareId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Put("/receivedShares/{receivedShareId}") + @ExpectedResponses({200, 201}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> createOrReplaceReceivedShare( + @HostParam("endpoint") String endpoint, + @PathParam("receivedShareId") String receivedShareId, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") BinaryData receivedShare, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Delete("/receivedShares/{receivedShareId}") + @ExpectedResponses({202}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> deleteReceivedShare( + @HostParam("endpoint") String endpoint, + @PathParam("receivedShareId") String receivedShareId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Get("/receivedShares/attached") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> getAllAttachedReceivedShares( + @HostParam("endpoint") String endpoint, + @QueryParam("referenceName") String referenceName, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Get("/receivedShares/detached") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> getAllDetachedReceivedShares( + @HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Post("/emails:activate") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> activateTenantEmailRegistration( + @HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") BinaryData tenantEmailRegistration, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Post("/emails:register") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> registerTenantEmailRegistration( + @HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> getAllAttachedReceivedSharesNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> getAllDetachedReceivedSharesNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + } + + /** + * Get a received share by unique id. + * + *

Get a received share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param receivedShareId Id of the received share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a received share along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getReceivedShareWithResponseAsync( + String receivedShareId, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.getReceivedShare( + this.client.getEndpoint(), + receivedShareId, + this.client.getServiceVersion().getVersion(), + accept, + requestOptions, + context)); + } + + /** + * Get a received share by unique id. + * + *

Get a received share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param receivedShareId Id of the received share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a received share along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getReceivedShareWithResponse(String receivedShareId, RequestOptions requestOptions) { + return getReceivedShareWithResponseAsync(receivedShareId, requestOptions).block(); + } + + /** + * Create or replace a received share. + * + *

Update changes to a received share. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param receivedShareId Id of the received share. + * @param receivedShare The received share to create or replace. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a received share data transfer object along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrReplaceReceivedShareWithResponseAsync( + String receivedShareId, BinaryData receivedShare, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.createOrReplaceReceivedShare( + this.client.getEndpoint(), + receivedShareId, + this.client.getServiceVersion().getVersion(), + receivedShare, + accept, + requestOptions, + context)); + } + + /** + * Create or replace a received share. + * + *

Update changes to a received share. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param receivedShareId Id of the received share. + * @param receivedShare The received share to create or replace. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of a received share data transfer object. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux beginCreateOrReplaceReceivedShareAsync( + String receivedShareId, BinaryData receivedShare, RequestOptions requestOptions) { + return PollerFlux.create( + Duration.ofSeconds(1), + () -> + this.createOrReplaceReceivedShareWithResponseAsync( + receivedShareId, receivedShare, requestOptions), + new DefaultPollingStrategy<>( + this.client.getHttpPipeline(), + "{endpoint}".replace("{endpoint}", this.client.getEndpoint()), + null, + requestOptions != null && requestOptions.getContext() != null + ? requestOptions.getContext() + : Context.NONE), + TypeReference.createInstance(BinaryData.class), + TypeReference.createInstance(BinaryData.class)); + } + + /** + * Create or replace a received share. + * + *

Update changes to a received share. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param receivedShareId Id of the received share. + * @param receivedShare The received share to create or replace. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link SyncPoller} for polling of a received share data transfer object. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller beginCreateOrReplaceReceivedShare( + String receivedShareId, BinaryData receivedShare, RequestOptions requestOptions) { + return this.beginCreateOrReplaceReceivedShareAsync(receivedShareId, receivedShare, requestOptions) + .getSyncPoller(); + } + + /** + * Deletes a received share + * + *

Delete a received share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     endTime: OffsetDateTime (Optional)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         message: String (Required)
+     *         target: String (Optional)
+     *     }
+     *     id: String (Optional)
+     *     startTime: OffsetDateTime (Optional)
+     *     status: String(Running/TransientFailure/Succeeded/Failed/NotStarted) (Required)
+     * }
+     * }
+ * + * @param receivedShareId Id of the received share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return response for long running operation along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteReceivedShareWithResponseAsync( + String receivedShareId, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.deleteReceivedShare( + this.client.getEndpoint(), + receivedShareId, + this.client.getServiceVersion().getVersion(), + accept, + requestOptions, + context)); + } + + /** + * Deletes a received share + * + *

Delete a received share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     endTime: OffsetDateTime (Optional)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         message: String (Required)
+     *         target: String (Optional)
+     *     }
+     *     id: String (Optional)
+     *     startTime: OffsetDateTime (Optional)
+     *     status: String(Running/TransientFailure/Succeeded/Failed/NotStarted) (Required)
+     * }
+     * }
+ * + * @param receivedShareId Id of the received share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of response for long running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux beginDeleteReceivedShareAsync( + String receivedShareId, RequestOptions requestOptions) { + return PollerFlux.create( + Duration.ofSeconds(1), + () -> this.deleteReceivedShareWithResponseAsync(receivedShareId, requestOptions), + new DefaultPollingStrategy<>( + this.client.getHttpPipeline(), + "{endpoint}".replace("{endpoint}", this.client.getEndpoint()), + null, + requestOptions != null && requestOptions.getContext() != null + ? requestOptions.getContext() + : Context.NONE), + TypeReference.createInstance(BinaryData.class), + TypeReference.createInstance(Void.class)); + } + + /** + * Deletes a received share + * + *

Delete a received share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     endTime: OffsetDateTime (Optional)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         message: String (Required)
+     *         target: String (Optional)
+     *     }
+     *     id: String (Optional)
+     *     startTime: OffsetDateTime (Optional)
+     *     status: String(Running/TransientFailure/Succeeded/Failed/NotStarted) (Required)
+     * }
+     * }
+ * + * @param receivedShareId Id of the received share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link SyncPoller} for polling of response for long running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller beginDeleteReceivedShare( + String receivedShareId, RequestOptions requestOptions) { + return this.beginDeleteReceivedShareAsync(receivedShareId, requestOptions).getSyncPoller(); + } + + /** + * Get a list of attached received shares. + * + *

List attached received shares. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param referenceName A name that references a data store. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of received shares along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getAllAttachedReceivedSharesSinglePageAsync( + String referenceName, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.getAllAttachedReceivedShares( + this.client.getEndpoint(), + referenceName, + this.client.getServiceVersion().getVersion(), + accept, + requestOptions, + context)) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + getValues(res.getValue(), "value"), + getNextLink(res.getValue(), "nextLink"), + null)); + } + + /** + * Get a list of attached received shares. + * + *

List attached received shares. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param referenceName A name that references a data store. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of received shares as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux getAllAttachedReceivedSharesAsync( + String referenceName, RequestOptions requestOptions) { + RequestOptions requestOptionsForNextPage = new RequestOptions(); + requestOptionsForNextPage.setContext( + requestOptions != null && requestOptions.getContext() != null + ? requestOptions.getContext() + : Context.NONE); + return new PagedFlux<>( + () -> getAllAttachedReceivedSharesSinglePageAsync(referenceName, requestOptions), + nextLink -> getAllAttachedReceivedSharesNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + } + + /** + * Get a list of attached received shares. + * + *

List attached received shares. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param referenceName A name that references a data store. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of received shares as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable getAllAttachedReceivedShares(String referenceName, RequestOptions requestOptions) { + return new PagedIterable<>(getAllAttachedReceivedSharesAsync(referenceName, requestOptions)); + } + + /** + * Get a list of detached received shares. + * + *

List detached received shares. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of received shares along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getAllDetachedReceivedSharesSinglePageAsync(RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.getAllDetachedReceivedShares( + this.client.getEndpoint(), + this.client.getServiceVersion().getVersion(), + accept, + requestOptions, + context)) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + getValues(res.getValue(), "value"), + getNextLink(res.getValue(), "nextLink"), + null)); + } + + /** + * Get a list of detached received shares. + * + *

List detached received shares. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of received shares as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux getAllDetachedReceivedSharesAsync(RequestOptions requestOptions) { + RequestOptions requestOptionsForNextPage = new RequestOptions(); + requestOptionsForNextPage.setContext( + requestOptions != null && requestOptions.getContext() != null + ? requestOptions.getContext() + : Context.NONE); + return new PagedFlux<>( + () -> getAllDetachedReceivedSharesSinglePageAsync(requestOptions), + nextLink -> getAllDetachedReceivedSharesNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + } + + /** + * Get a list of detached received shares. + * + *

List detached received shares. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of received shares as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable getAllDetachedReceivedShares(RequestOptions requestOptions) { + return new PagedIterable<>(getAllDetachedReceivedSharesAsync(requestOptions)); + } + + /** + * Activates the tenant and email combination using the activation code received. + * + *

Activates the email registration for current tenant. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     *     properties (Optional): {
+     *         activationCode: String (Required)
+     *         activationExpiration: OffsetDateTime (Optional)
+     *         email: String (Optional)
+     *         registrationStatus: String(ActivationPending/Activated/ActivationAttemptsExhausted) (Optional)
+     *         state: String(Unknown/Succeeded/Creating/Deleting/Moving/Failed) (Optional)
+     *         tenantId: String (Optional)
+     *     }
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     *     properties (Optional): {
+     *         activationCode: String (Required)
+     *         activationExpiration: OffsetDateTime (Optional)
+     *         email: String (Optional)
+     *         registrationStatus: String(ActivationPending/Activated/ActivationAttemptsExhausted) (Optional)
+     *         state: String(Unknown/Succeeded/Creating/Deleting/Moving/Failed) (Optional)
+     *         tenantId: String (Optional)
+     *     }
+     * }
+     * }
+ * + * @param tenantEmailRegistration The tenant email registration payload. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a tenant email registration data transfer object along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> activateTenantEmailRegistrationWithResponseAsync( + BinaryData tenantEmailRegistration, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.activateTenantEmailRegistration( + this.client.getEndpoint(), + this.client.getServiceVersion().getVersion(), + tenantEmailRegistration, + accept, + requestOptions, + context)); + } + + /** + * Activates the tenant and email combination using the activation code received. + * + *

Activates the email registration for current tenant. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     *     properties (Optional): {
+     *         activationCode: String (Required)
+     *         activationExpiration: OffsetDateTime (Optional)
+     *         email: String (Optional)
+     *         registrationStatus: String(ActivationPending/Activated/ActivationAttemptsExhausted) (Optional)
+     *         state: String(Unknown/Succeeded/Creating/Deleting/Moving/Failed) (Optional)
+     *         tenantId: String (Optional)
+     *     }
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     *     properties (Optional): {
+     *         activationCode: String (Required)
+     *         activationExpiration: OffsetDateTime (Optional)
+     *         email: String (Optional)
+     *         registrationStatus: String(ActivationPending/Activated/ActivationAttemptsExhausted) (Optional)
+     *         state: String(Unknown/Succeeded/Creating/Deleting/Moving/Failed) (Optional)
+     *         tenantId: String (Optional)
+     *     }
+     * }
+     * }
+ * + * @param tenantEmailRegistration The tenant email registration payload. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a tenant email registration data transfer object along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response activateTenantEmailRegistrationWithResponse( + BinaryData tenantEmailRegistration, RequestOptions requestOptions) { + return activateTenantEmailRegistrationWithResponseAsync(tenantEmailRegistration, requestOptions).block(); + } + + /** + * Registers the tenant and email combination for activation. + * + *

Register an email for the current tenant. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     *     properties (Optional): {
+     *         activationCode: String (Required)
+     *         activationExpiration: OffsetDateTime (Optional)
+     *         email: String (Optional)
+     *         registrationStatus: String(ActivationPending/Activated/ActivationAttemptsExhausted) (Optional)
+     *         state: String(Unknown/Succeeded/Creating/Deleting/Moving/Failed) (Optional)
+     *         tenantId: String (Optional)
+     *     }
+     * }
+     * }
+ * + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a tenant email registration data transfer object along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> registerTenantEmailRegistrationWithResponseAsync(RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.registerTenantEmailRegistration( + this.client.getEndpoint(), + this.client.getServiceVersion().getVersion(), + accept, + requestOptions, + context)); + } + + /** + * Registers the tenant and email combination for activation. + * + *

Register an email for the current tenant. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     *     properties (Optional): {
+     *         activationCode: String (Required)
+     *         activationExpiration: OffsetDateTime (Optional)
+     *         email: String (Optional)
+     *         registrationStatus: String(ActivationPending/Activated/ActivationAttemptsExhausted) (Optional)
+     *         state: String(Unknown/Succeeded/Creating/Deleting/Moving/Failed) (Optional)
+     *         tenantId: String (Optional)
+     *     }
+     * }
+     * }
+ * + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a tenant email registration data transfer object along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response registerTenantEmailRegistrationWithResponse(RequestOptions requestOptions) { + return registerTenantEmailRegistrationWithResponseAsync(requestOptions).block(); + } + + /** + * Get the next page of items. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of received shares along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getAllAttachedReceivedSharesNextSinglePageAsync( + String nextLink, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.getAllAttachedReceivedSharesNext( + nextLink, this.client.getEndpoint(), accept, requestOptions, context)) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + getValues(res.getValue(), "value"), + getNextLink(res.getValue(), "nextLink"), + null)); + } + + /** + * Get the next page of items. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of received shares along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getAllDetachedReceivedSharesNextSinglePageAsync( + String nextLink, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.getAllDetachedReceivedSharesNext( + nextLink, this.client.getEndpoint(), accept, requestOptions, context)) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + getValues(res.getValue(), "value"), + getNextLink(res.getValue(), "nextLink"), + null)); + } + + private List getValues(BinaryData binaryData, String path) { + try { + Map obj = binaryData.toObject(Map.class); + List values = (List) obj.get(path); + return values.stream().map(BinaryData::fromObject).collect(Collectors.toList()); + } catch (RuntimeException e) { + return null; + } + } + + private String getNextLink(BinaryData binaryData, String path) { + try { + Map obj = binaryData.toObject(Map.class); + return (String) obj.get(path); + } catch (RuntimeException e) { + return null; + } + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/implementation/SentSharesImpl.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/implementation/SentSharesImpl.java new file mode 100644 index 0000000000000..e50442a940229 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/implementation/SentSharesImpl.java @@ -0,0 +1,1390 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.exception.ClientAuthenticationException; +import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.DefaultPollingStrategy; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.core.util.serializer.TypeReference; +import java.time.Duration; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in SentShares. */ +public final class SentSharesImpl { + /** The proxy service used to perform REST calls. */ + private final SentSharesService service; + + /** The service client containing this operation class. */ + private final PurviewShareClientImpl client; + + /** + * Initializes an instance of SentSharesImpl. + * + * @param client the instance of the service client containing this operation class. + */ + SentSharesImpl(PurviewShareClientImpl client) { + this.service = + RestProxy.create(SentSharesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for PurviewShareClientSentShares to be used by the proxy service to + * perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "PurviewShareClientSe") + public interface SentSharesService { + @Get("/sentShares") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> getAllSentShares( + @HostParam("endpoint") String endpoint, + @QueryParam("referenceName") String referenceName, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Get("/sentShares/{sentShareId}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> getSentShare( + @HostParam("endpoint") String endpoint, + @PathParam("sentShareId") String sentShareId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Put("/sentShares/{sentShareId}") + @ExpectedResponses({200, 201}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> createOrReplaceSentShare( + @HostParam("endpoint") String endpoint, + @PathParam("sentShareId") String sentShareId, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") BinaryData sentShare, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Delete("/sentShares/{sentShareId}") + @ExpectedResponses({202}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> deleteSentShare( + @HostParam("endpoint") String endpoint, + @PathParam("sentShareId") String sentShareId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Get("/sentShares/{sentShareId}/sentShareInvitations") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> getAllSentShareInvitations( + @HostParam("endpoint") String endpoint, + @PathParam("sentShareId") String sentShareId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Get("/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> getSentShareInvitation( + @HostParam("endpoint") String endpoint, + @PathParam("sentShareId") String sentShareId, + @PathParam("sentShareInvitationId") String sentShareInvitationId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Put("/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}") + @ExpectedResponses({201}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> createSentShareInvitation( + @HostParam("endpoint") String endpoint, + @PathParam("sentShareId") String sentShareId, + @PathParam("sentShareInvitationId") String sentShareInvitationId, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") BinaryData sentShareInvitation, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Delete("/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}") + @ExpectedResponses({202}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> deleteSentShareInvitation( + @HostParam("endpoint") String endpoint, + @PathParam("sentShareId") String sentShareId, + @PathParam("sentShareInvitationId") String sentShareInvitationId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Post("/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> notifyUserSentShareInvitation( + @HostParam("endpoint") String endpoint, + @PathParam("sentShareId") String sentShareId, + @PathParam("sentShareInvitationId") String sentShareInvitationId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> getAllSentSharesNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType( + value = ClientAuthenticationException.class, + code = {401}) + @UnexpectedResponseExceptionType( + value = ResourceNotFoundException.class, + code = {404}) + @UnexpectedResponseExceptionType( + value = ResourceModifiedException.class, + code = {409}) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> getAllSentShareInvitationsNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, + RequestOptions requestOptions, + Context context); + } + + /** + * Get a list of sent shares. + * + *

List sent shares. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param referenceName A name that references a data store. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of sent shares along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getAllSentSharesSinglePageAsync( + String referenceName, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.getAllSentShares( + this.client.getEndpoint(), + referenceName, + this.client.getServiceVersion().getVersion(), + accept, + requestOptions, + context)) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + getValues(res.getValue(), "value"), + getNextLink(res.getValue(), "nextLink"), + null)); + } + + /** + * Get a list of sent shares. + * + *

List sent shares. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param referenceName A name that references a data store. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of sent shares as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux getAllSentSharesAsync(String referenceName, RequestOptions requestOptions) { + RequestOptions requestOptionsForNextPage = new RequestOptions(); + requestOptionsForNextPage.setContext( + requestOptions != null && requestOptions.getContext() != null + ? requestOptions.getContext() + : Context.NONE); + return new PagedFlux<>( + () -> getAllSentSharesSinglePageAsync(referenceName, requestOptions), + nextLink -> getAllSentSharesNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + } + + /** + * Get a list of sent shares. + * + *

List sent shares. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param referenceName A name that references a data store. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of sent shares as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable getAllSentShares(String referenceName, RequestOptions requestOptions) { + return new PagedIterable<>(getAllSentSharesAsync(referenceName, requestOptions)); + } + + /** + * Get a sent share by guid. + * + *

Get a sent share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a sent share along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getSentShareWithResponseAsync(String sentShareId, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.getSentShare( + this.client.getEndpoint(), + sentShareId, + this.client.getServiceVersion().getVersion(), + accept, + requestOptions, + context)); + } + + /** + * Get a sent share by guid. + * + *

Get a sent share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a sent share along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getSentShareWithResponse(String sentShareId, RequestOptions requestOptions) { + return getSentShareWithResponseAsync(sentShareId, requestOptions).block(); + } + + /** + * Create or replace a sent share. + * + *

Create or replace a sent share. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShare The sent share to create or replace. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a sent share data transfer object along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrReplaceSentShareWithResponseAsync( + String sentShareId, BinaryData sentShare, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.createOrReplaceSentShare( + this.client.getEndpoint(), + sentShareId, + this.client.getServiceVersion().getVersion(), + sentShare, + accept, + requestOptions, + context)); + } + + /** + * Create or replace a sent share. + * + *

Create or replace a sent share. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShare The sent share to create or replace. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of a sent share data transfer object. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux beginCreateOrReplaceSentShareAsync( + String sentShareId, BinaryData sentShare, RequestOptions requestOptions) { + return PollerFlux.create( + Duration.ofSeconds(1), + () -> this.createOrReplaceSentShareWithResponseAsync(sentShareId, sentShare, requestOptions), + new DefaultPollingStrategy<>( + this.client.getHttpPipeline(), + "{endpoint}".replace("{endpoint}", this.client.getEndpoint()), + null, + requestOptions != null && requestOptions.getContext() != null + ? requestOptions.getContext() + : Context.NONE), + TypeReference.createInstance(BinaryData.class), + TypeReference.createInstance(BinaryData.class)); + } + + /** + * Create or replace a sent share. + * + *

Create or replace a sent share. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShare The sent share to create or replace. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link SyncPoller} for polling of a sent share data transfer object. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller beginCreateOrReplaceSentShare( + String sentShareId, BinaryData sentShare, RequestOptions requestOptions) { + return this.beginCreateOrReplaceSentShareAsync(sentShareId, sentShare, requestOptions).getSyncPoller(); + } + + /** + * Deletes a sent share. + * + *

Delete a sent share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     endTime: OffsetDateTime (Optional)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         message: String (Required)
+     *         target: String (Optional)
+     *     }
+     *     id: String (Optional)
+     *     startTime: OffsetDateTime (Optional)
+     *     status: String(Running/TransientFailure/Succeeded/Failed/NotStarted) (Required)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return response for long running operation along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteSentShareWithResponseAsync( + String sentShareId, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.deleteSentShare( + this.client.getEndpoint(), + sentShareId, + this.client.getServiceVersion().getVersion(), + accept, + requestOptions, + context)); + } + + /** + * Deletes a sent share. + * + *

Delete a sent share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     endTime: OffsetDateTime (Optional)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         message: String (Required)
+     *         target: String (Optional)
+     *     }
+     *     id: String (Optional)
+     *     startTime: OffsetDateTime (Optional)
+     *     status: String(Running/TransientFailure/Succeeded/Failed/NotStarted) (Required)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of response for long running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux beginDeleteSentShareAsync(String sentShareId, RequestOptions requestOptions) { + return PollerFlux.create( + Duration.ofSeconds(1), + () -> this.deleteSentShareWithResponseAsync(sentShareId, requestOptions), + new DefaultPollingStrategy<>( + this.client.getHttpPipeline(), + "{endpoint}".replace("{endpoint}", this.client.getEndpoint()), + null, + requestOptions != null && requestOptions.getContext() != null + ? requestOptions.getContext() + : Context.NONE), + TypeReference.createInstance(BinaryData.class), + TypeReference.createInstance(Void.class)); + } + + /** + * Deletes a sent share. + * + *

Delete a sent share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     endTime: OffsetDateTime (Optional)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         message: String (Required)
+     *         target: String (Optional)
+     *     }
+     *     id: String (Optional)
+     *     startTime: OffsetDateTime (Optional)
+     *     status: String(Running/TransientFailure/Succeeded/Failed/NotStarted) (Required)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link SyncPoller} for polling of response for long running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller beginDeleteSentShare(String sentShareId, RequestOptions requestOptions) { + return this.beginDeleteSentShareAsync(sentShareId, requestOptions).getSyncPoller(); + } + + /** + * List all sent share invitations in a sent share + * + *

List sent share recipients. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of the sent share invitations along with {@link PagedResponse} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getAllSentShareInvitationsSinglePageAsync( + String sentShareId, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.getAllSentShareInvitations( + this.client.getEndpoint(), + sentShareId, + this.client.getServiceVersion().getVersion(), + accept, + requestOptions, + context)) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + getValues(res.getValue(), "value"), + getNextLink(res.getValue(), "nextLink"), + null)); + } + + /** + * List all sent share invitations in a sent share + * + *

List sent share recipients. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of the sent share invitations as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux getAllSentShareInvitationsAsync(String sentShareId, RequestOptions requestOptions) { + RequestOptions requestOptionsForNextPage = new RequestOptions(); + requestOptionsForNextPage.setContext( + requestOptions != null && requestOptions.getContext() != null + ? requestOptions.getContext() + : Context.NONE); + return new PagedFlux<>( + () -> getAllSentShareInvitationsSinglePageAsync(sentShareId, requestOptions), + nextLink -> getAllSentShareInvitationsNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + } + + /** + * List all sent share invitations in a sent share + * + *

List sent share recipients. + * + *

Query Parameters + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
skipTokenStringNoThe continuation token to list the next page
filterStringNoFilters the results using OData syntax
orderbyStringNoSorts the results using OData syntax
+ * + * You can add these to a request with {@link RequestOptions#addQueryParam} + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of the sent share invitations as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable getAllSentShareInvitations(String sentShareId, RequestOptions requestOptions) { + return new PagedIterable<>(getAllSentShareInvitationsAsync(sentShareId, requestOptions)); + } + + /** + * Get sent share invitation for a given sent share + * + *

Get recipient for a given sent share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShareInvitationId Id of the sent share invitation. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return recipient for a given sent share along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getSentShareInvitationWithResponseAsync( + String sentShareId, String sentShareInvitationId, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.getSentShareInvitation( + this.client.getEndpoint(), + sentShareId, + sentShareInvitationId, + this.client.getServiceVersion().getVersion(), + accept, + requestOptions, + context)); + } + + /** + * Get sent share invitation for a given sent share + * + *

Get recipient for a given sent share. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShareInvitationId Id of the sent share invitation. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return recipient for a given sent share along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getSentShareInvitationWithResponse( + String sentShareId, String sentShareInvitationId, RequestOptions requestOptions) { + return getSentShareInvitationWithResponseAsync(sentShareId, sentShareInvitationId, requestOptions).block(); + } + + /** + * Create a sent share invitation. + * + *

Create a recipient for a given sent share. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShareInvitationId Id of the sent share invitation. + * @param sentShareInvitation The sent share invitation to create. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a sent share invitation data transfer object along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createSentShareInvitationWithResponseAsync( + String sentShareId, + String sentShareInvitationId, + BinaryData sentShareInvitation, + RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.createSentShareInvitation( + this.client.getEndpoint(), + sentShareId, + sentShareInvitationId, + this.client.getServiceVersion().getVersion(), + sentShareInvitation, + accept, + requestOptions, + context)); + } + + /** + * Create a sent share invitation. + * + *

Create a recipient for a given sent share. + * + *

Request Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShareInvitationId Id of the sent share invitation. + * @param sentShareInvitation The sent share invitation to create. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a sent share invitation data transfer object along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createSentShareInvitationWithResponse( + String sentShareId, + String sentShareInvitationId, + BinaryData sentShareInvitation, + RequestOptions requestOptions) { + return createSentShareInvitationWithResponseAsync( + sentShareId, sentShareInvitationId, sentShareInvitation, requestOptions) + .block(); + } + + /** + * Delete Invitation in a share. + * + *

Delete a sent share invitation. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     endTime: OffsetDateTime (Optional)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         message: String (Required)
+     *         target: String (Optional)
+     *     }
+     *     id: String (Optional)
+     *     startTime: OffsetDateTime (Optional)
+     *     status: String(Running/TransientFailure/Succeeded/Failed/NotStarted) (Required)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShareInvitationId Id of the sent share invitation. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return response for long running operation along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteSentShareInvitationWithResponseAsync( + String sentShareId, String sentShareInvitationId, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.deleteSentShareInvitation( + this.client.getEndpoint(), + sentShareId, + sentShareInvitationId, + this.client.getServiceVersion().getVersion(), + accept, + requestOptions, + context)); + } + + /** + * Delete Invitation in a share. + * + *

Delete a sent share invitation. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     endTime: OffsetDateTime (Optional)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         message: String (Required)
+     *         target: String (Optional)
+     *     }
+     *     id: String (Optional)
+     *     startTime: OffsetDateTime (Optional)
+     *     status: String(Running/TransientFailure/Succeeded/Failed/NotStarted) (Required)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShareInvitationId Id of the sent share invitation. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link PollerFlux} for polling of response for long running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux beginDeleteSentShareInvitationAsync( + String sentShareId, String sentShareInvitationId, RequestOptions requestOptions) { + return PollerFlux.create( + Duration.ofSeconds(1), + () -> + this.deleteSentShareInvitationWithResponseAsync( + sentShareId, sentShareInvitationId, requestOptions), + new DefaultPollingStrategy<>( + this.client.getHttpPipeline(), + "{endpoint}".replace("{endpoint}", this.client.getEndpoint()), + null, + requestOptions != null && requestOptions.getContext() != null + ? requestOptions.getContext() + : Context.NONE), + TypeReference.createInstance(BinaryData.class), + TypeReference.createInstance(Void.class)); + } + + /** + * Delete Invitation in a share. + * + *

Delete a sent share invitation. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     endTime: OffsetDateTime (Optional)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         message: String (Required)
+     *         target: String (Optional)
+     *     }
+     *     id: String (Optional)
+     *     startTime: OffsetDateTime (Optional)
+     *     status: String(Running/TransientFailure/Succeeded/Failed/NotStarted) (Required)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShareInvitationId Id of the sent share invitation. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link SyncPoller} for polling of response for long running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller beginDeleteSentShareInvitation( + String sentShareId, String sentShareInvitationId, RequestOptions requestOptions) { + return this.beginDeleteSentShareInvitationAsync(sentShareId, sentShareInvitationId, requestOptions) + .getSyncPoller(); + } + + /** + * Notifies the recipient of the sent share invitation. + * + *

Notifies the user recipient of the sent share invitation, does not apply to service invitations. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShareInvitationId Id of the sent share invitation. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a sent share invitation data transfer object along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> notifyUserSentShareInvitationWithResponseAsync( + String sentShareId, String sentShareInvitationId, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.notifyUserSentShareInvitation( + this.client.getEndpoint(), + sentShareId, + sentShareInvitationId, + this.client.getServiceVersion().getVersion(), + accept, + requestOptions, + context)); + } + + /** + * Notifies the recipient of the sent share invitation. + * + *

Notifies the user recipient of the sent share invitation, does not apply to service invitations. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param sentShareId Id of the sent share. + * @param sentShareInvitationId Id of the sent share invitation. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return a sent share invitation data transfer object along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response notifyUserSentShareInvitationWithResponse( + String sentShareId, String sentShareInvitationId, RequestOptions requestOptions) { + return notifyUserSentShareInvitationWithResponseAsync(sentShareId, sentShareInvitationId, requestOptions) + .block(); + } + + /** + * Get the next page of items. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of sent shares along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getAllSentSharesNextSinglePageAsync( + String nextLink, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.getAllSentSharesNext( + nextLink, this.client.getEndpoint(), accept, requestOptions, context)) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + getValues(res.getValue(), "value"), + getNextLink(res.getValue(), "nextLink"), + null)); + } + + /** + * Get the next page of items. + * + *

Response Body Schema + * + *

{@code
+     * {
+     *     id: String (Optional)
+     *     type: String (Optional)
+     * }
+     * }
+ * + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return list of the sent share invitations along with {@link PagedResponse} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getAllSentShareInvitationsNextSinglePageAsync( + String nextLink, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.getAllSentShareInvitationsNext( + nextLink, this.client.getEndpoint(), accept, requestOptions, context)) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + getValues(res.getValue(), "value"), + getNextLink(res.getValue(), "nextLink"), + null)); + } + + private List getValues(BinaryData binaryData, String path) { + try { + Map obj = binaryData.toObject(Map.class); + List values = (List) obj.get(path); + return values.stream().map(BinaryData::fromObject).collect(Collectors.toList()); + } catch (RuntimeException e) { + return null; + } + } + + private String getNextLink(BinaryData binaryData, String path) { + try { + Map obj = binaryData.toObject(Map.class); + return (String) obj.get(path); + } catch (RuntimeException e) { + return null; + } + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/implementation/package-info.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/implementation/package-info.java new file mode 100644 index 0000000000000..66eb79a8b9701 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/implementation/package-info.java @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +/** Package containing the implementations for PurviewShareClient. Creates a data plane client for Purview Share. */ +package com.azure.analytics.purview.sharing.implementation; diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/AdlsGen2AccountSink.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/AdlsGen2AccountSink.java new file mode 100644 index 0000000000000..e163c7b129794 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/AdlsGen2AccountSink.java @@ -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.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** AdlsGen2 Sink. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "storeKind") +@JsonTypeName("AdlsGen2Account") +@JsonFlatten +@Fluent +public class AdlsGen2AccountSink extends Sink { + /* + * Adls Gen 2 Container Name + */ + @JsonProperty(value = "properties.containerName", required = true) + private String containerName; + + /* + * Adls Gen 2 Folder + */ + @JsonProperty(value = "properties.folder", required = true) + private String folder; + + /* + * Adls Gen 2 Location + */ + @JsonProperty(value = "properties.location", access = JsonProperty.Access.WRITE_ONLY) + private String location; + + /* + * Adls Gen 2 Mount Path + */ + @JsonProperty(value = "properties.mountPath") + private String mountPath; + + /** Creates an instance of AdlsGen2AccountSink class. */ + public AdlsGen2AccountSink() {} + + /** + * Get the containerName property: Adls Gen 2 Container Name. + * + * @return the containerName value. + */ + public String getContainerName() { + return this.containerName; + } + + /** + * Set the containerName property: Adls Gen 2 Container Name. + * + * @param containerName the containerName value to set. + * @return the AdlsGen2AccountSink object itself. + */ + public AdlsGen2AccountSink setContainerName(String containerName) { + this.containerName = containerName; + return this; + } + + /** + * Get the folder property: Adls Gen 2 Folder. + * + * @return the folder value. + */ + public String getFolder() { + return this.folder; + } + + /** + * Set the folder property: Adls Gen 2 Folder. + * + * @param folder the folder value to set. + * @return the AdlsGen2AccountSink object itself. + */ + public AdlsGen2AccountSink setFolder(String folder) { + this.folder = folder; + return this; + } + + /** + * Get the location property: Adls Gen 2 Location. + * + * @return the location value. + */ + public String getLocation() { + return this.location; + } + + /** + * Get the mountPath property: Adls Gen 2 Mount Path. + * + * @return the mountPath value. + */ + public String getMountPath() { + return this.mountPath; + } + + /** + * Set the mountPath property: Adls Gen 2 Mount Path. + * + * @param mountPath the mountPath value to set. + * @return the AdlsGen2AccountSink object itself. + */ + public AdlsGen2AccountSink setMountPath(String mountPath) { + this.mountPath = mountPath; + return this; + } + + /** {@inheritDoc} */ + @Override + public AdlsGen2AccountSink setStoreReference(StoreReference storeReference) { + super.setStoreReference(storeReference); + return this; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/AdlsGen2Artifact.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/AdlsGen2Artifact.java new file mode 100644 index 0000000000000..239e7edb80497 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/AdlsGen2Artifact.java @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.List; + +/** An ADLS Gen2 account artifact. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "storeKind") +@JsonTypeName("AdlsGen2Account") +@JsonFlatten +@Fluent +public class AdlsGen2Artifact extends Artifact { + /* + * Location of the storage account. + */ + @JsonProperty(value = "properties.location", access = JsonProperty.Access.WRITE_ONLY) + private String location; + + /* + * A list of ADLS Gen2 storage account paths. + */ + @JsonProperty(value = "properties.paths", required = true) + private List paths; + + /** Creates an instance of AdlsGen2Artifact class. */ + public AdlsGen2Artifact() {} + + /** + * Get the location property: Location of the storage account. + * + * @return the location value. + */ + public String getLocation() { + return this.location; + } + + /** + * Get the paths property: A list of ADLS Gen2 storage account paths. + * + * @return the paths value. + */ + public List getPaths() { + return this.paths; + } + + /** + * Set the paths property: A list of ADLS Gen2 storage account paths. + * + * @param paths the paths value to set. + * @return the AdlsGen2Artifact object itself. + */ + public AdlsGen2Artifact setPaths(List paths) { + this.paths = paths; + return this; + } + + /** {@inheritDoc} */ + @Override + public AdlsGen2Artifact setStoreReference(StoreReference storeReference) { + super.setStoreReference(storeReference); + return this; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/Artifact.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/Artifact.java new file mode 100644 index 0000000000000..5f154d26028d4 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/Artifact.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** A class for sent share artifact. */ +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "storeKind", + defaultImpl = Artifact.class) +@JsonTypeName("Artifact") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "AdlsGen2Account", value = AdlsGen2Artifact.class), + @JsonSubTypes.Type(name = "BlobAccount", value = BlobStorageArtifact.class) +}) +@Fluent +public class Artifact { + /* + * A Store Reference for an artifact or sink. + */ + @JsonProperty(value = "storeReference", required = true) + private StoreReference storeReference; + + /** Creates an instance of Artifact class. */ + public Artifact() {} + + /** + * Get the storeReference property: A Store Reference for an artifact or sink. + * + * @return the storeReference value. + */ + public StoreReference getStoreReference() { + return this.storeReference; + } + + /** + * Set the storeReference property: A Store Reference for an artifact or sink. + * + * @param storeReference the storeReference value to set. + * @return the Artifact object itself. + */ + public Artifact setStoreReference(StoreReference storeReference) { + this.storeReference = storeReference; + return this; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/BlobAccountSink.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/BlobAccountSink.java new file mode 100644 index 0000000000000..e057aeb77182b --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/BlobAccountSink.java @@ -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.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** Blob Sink. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "storeKind") +@JsonTypeName("BlobAccount") +@JsonFlatten +@Fluent +public class BlobAccountSink extends Sink { + /* + * Blob Container Name + */ + @JsonProperty(value = "properties.containerName", required = true) + private String containerName; + + /* + * Blob Folder + */ + @JsonProperty(value = "properties.folder", required = true) + private String folder; + + /* + * Blob Location + */ + @JsonProperty(value = "properties.location", access = JsonProperty.Access.WRITE_ONLY) + private String location; + + /* + * Blob Mount Path + */ + @JsonProperty(value = "properties.mountPath") + private String mountPath; + + /** Creates an instance of BlobAccountSink class. */ + public BlobAccountSink() {} + + /** + * Get the containerName property: Blob Container Name. + * + * @return the containerName value. + */ + public String getContainerName() { + return this.containerName; + } + + /** + * Set the containerName property: Blob Container Name. + * + * @param containerName the containerName value to set. + * @return the BlobAccountSink object itself. + */ + public BlobAccountSink setContainerName(String containerName) { + this.containerName = containerName; + return this; + } + + /** + * Get the folder property: Blob Folder. + * + * @return the folder value. + */ + public String getFolder() { + return this.folder; + } + + /** + * Set the folder property: Blob Folder. + * + * @param folder the folder value to set. + * @return the BlobAccountSink object itself. + */ + public BlobAccountSink setFolder(String folder) { + this.folder = folder; + return this; + } + + /** + * Get the location property: Blob Location. + * + * @return the location value. + */ + public String getLocation() { + return this.location; + } + + /** + * Get the mountPath property: Blob Mount Path. + * + * @return the mountPath value. + */ + public String getMountPath() { + return this.mountPath; + } + + /** + * Set the mountPath property: Blob Mount Path. + * + * @param mountPath the mountPath value to set. + * @return the BlobAccountSink object itself. + */ + public BlobAccountSink setMountPath(String mountPath) { + this.mountPath = mountPath; + return this; + } + + /** {@inheritDoc} */ + @Override + public BlobAccountSink setStoreReference(StoreReference storeReference) { + super.setStoreReference(storeReference); + return this; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/BlobStorageArtifact.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/BlobStorageArtifact.java new file mode 100644 index 0000000000000..c8d6c00a5618f --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/BlobStorageArtifact.java @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.List; + +/** Blob storage account artifact. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "storeKind") +@JsonTypeName("BlobAccount") +@JsonFlatten +@Fluent +public class BlobStorageArtifact extends Artifact { + /* + * Location of the storage account. + */ + @JsonProperty(value = "properties.location", access = JsonProperty.Access.WRITE_ONLY) + private String location; + + /* + * A list of blob storage account paths. + */ + @JsonProperty(value = "properties.paths", required = true) + private List paths; + + /** Creates an instance of BlobStorageArtifact class. */ + public BlobStorageArtifact() {} + + /** + * Get the location property: Location of the storage account. + * + * @return the location value. + */ + public String getLocation() { + return this.location; + } + + /** + * Get the paths property: A list of blob storage account paths. + * + * @return the paths value. + */ + public List getPaths() { + return this.paths; + } + + /** + * Set the paths property: A list of blob storage account paths. + * + * @param paths the paths value to set. + * @return the BlobStorageArtifact object itself. + */ + public BlobStorageArtifact setPaths(List paths) { + this.paths = paths; + return this; + } + + /** {@inheritDoc} */ + @Override + public BlobStorageArtifact setStoreReference(StoreReference storeReference) { + super.setStoreReference(storeReference); + return this; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/InPlaceReceivedShare.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/InPlaceReceivedShare.java new file mode 100644 index 0000000000000..1bfd6ecad8576 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/InPlaceReceivedShare.java @@ -0,0 +1,306 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.time.OffsetDateTime; + +/** An InPlace received share kind. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "shareKind") +@JsonTypeName("InPlace") +@JsonFlatten +@Fluent +public class InPlaceReceivedShare extends ReceivedShare { + /* + * Location of the shared Asset. + */ + @JsonProperty(value = "properties.assetLocation", access = JsonProperty.Access.WRITE_ONLY) + private String assetLocation; + + /* + * The types of asset. + */ + @JsonProperty(value = "properties.assetStoreKind", access = JsonProperty.Access.WRITE_ONLY) + private StoreKind assetStoreKind; + + /* + * Time at which the received share was created. + */ + @JsonProperty(value = "properties.createdAt", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdAt; + + /* + * Received Share Name + */ + @JsonProperty(value = "properties.displayName") + private String displayName; + + /* + * The expiration date of the received share. + */ + @JsonProperty(value = "properties.expirationDate", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime expirationDate; + + /* + * Provisioning status of the resource + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private ProvisioningState provisioningState; + + /* + * Email of the user/receiver who received the sent share invitation + */ + @JsonProperty(value = "properties.receiverEmail", access = JsonProperty.Access.WRITE_ONLY) + private String receiverEmail; + + /* + * Name of the user/receiver who received the sent share invitation + */ + @JsonProperty(value = "properties.receiverName", access = JsonProperty.Access.WRITE_ONLY) + private String receiverName; + + /* + * Tenant name of the user/receiver who received the sent share invitation + */ + @JsonProperty(value = "properties.receiverTenantName", access = JsonProperty.Access.WRITE_ONLY) + private String receiverTenantName; + + /* + * Email of the sender who created the sent share invitation + */ + @JsonProperty(value = "properties.senderEmail", access = JsonProperty.Access.WRITE_ONLY) + private String senderEmail; + + /* + * Name of the sender who created the sent share invitation + */ + @JsonProperty(value = "properties.senderName", access = JsonProperty.Access.WRITE_ONLY) + private String senderName; + + /* + * Tenant name of the sender who created the sent share invitation + */ + @JsonProperty(value = "properties.senderTenantName", access = JsonProperty.Access.WRITE_ONLY) + private String senderTenantName; + + /* + * Share description. + */ + @JsonProperty(value = "properties.sentShareDescription", access = JsonProperty.Access.WRITE_ONLY) + private String sentShareDescription; + + /* + * Time at which the sent share was shared. + */ + @JsonProperty(value = "properties.sharedAt", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime sharedAt; + + /* + * Share status. + */ + @JsonProperty(value = "properties.shareStatus", access = JsonProperty.Access.WRITE_ONLY) + private ShareStatus shareStatus; + + /* + * Received share sink + */ + @JsonProperty(value = "properties.sink") + private Sink sink; + + /** Creates an instance of InPlaceReceivedShare class. */ + public InPlaceReceivedShare() {} + + /** + * Get the assetLocation property: Location of the shared Asset. + * + * @return the assetLocation value. + */ + public String getAssetLocation() { + return this.assetLocation; + } + + /** + * Get the assetStoreKind property: The types of asset. + * + * @return the assetStoreKind value. + */ + public StoreKind getAssetStoreKind() { + return this.assetStoreKind; + } + + /** + * Set the assetStoreKind property: The types of asset. + * + * @param assetStoreKind the assetStoreKind value to set. + * @return the InPlaceReceivedShare object itself. + */ + public InPlaceReceivedShare setAssetStoreKind(StoreKind assetStoreKind) { + this.assetStoreKind = assetStoreKind; + return this; + } + + /** + * Get the createdAt property: Time at which the received share was created. + * + * @return the createdAt value. + */ + public OffsetDateTime getCreatedAt() { + return this.createdAt; + } + + /** + * Get the displayName property: Received Share Name. + * + * @return the displayName value. + */ + public String getDisplayName() { + return this.displayName; + } + + /** + * Set the displayName property: Received Share Name. + * + * @param displayName the displayName value to set. + * @return the InPlaceReceivedShare object itself. + */ + public InPlaceReceivedShare setDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get the expirationDate property: The expiration date of the received share. + * + * @return the expirationDate value. + */ + public OffsetDateTime getExpirationDate() { + return this.expirationDate; + } + + /** + * Get the provisioningState property: Provisioning status of the resource. + * + * @return the provisioningState value. + */ + public ProvisioningState getProvisioningState() { + return this.provisioningState; + } + + /** + * Get the receiverEmail property: Email of the user/receiver who received the sent share invitation. + * + * @return the receiverEmail value. + */ + public String getReceiverEmail() { + return this.receiverEmail; + } + + /** + * Get the receiverName property: Name of the user/receiver who received the sent share invitation. + * + * @return the receiverName value. + */ + public String getReceiverName() { + return this.receiverName; + } + + /** + * Get the receiverTenantName property: Tenant name of the user/receiver who received the sent share invitation. + * + * @return the receiverTenantName value. + */ + public String getReceiverTenantName() { + return this.receiverTenantName; + } + + /** + * Get the senderEmail property: Email of the sender who created the sent share invitation. + * + * @return the senderEmail value. + */ + public String getSenderEmail() { + return this.senderEmail; + } + + /** + * Get the senderName property: Name of the sender who created the sent share invitation. + * + * @return the senderName value. + */ + public String getSenderName() { + return this.senderName; + } + + /** + * Get the senderTenantName property: Tenant name of the sender who created the sent share invitation. + * + * @return the senderTenantName value. + */ + public String getSenderTenantName() { + return this.senderTenantName; + } + + /** + * Get the sentShareDescription property: Share description. + * + * @return the sentShareDescription value. + */ + public String getSentShareDescription() { + return this.sentShareDescription; + } + + /** + * Get the sharedAt property: Time at which the sent share was shared. + * + * @return the sharedAt value. + */ + public OffsetDateTime getSharedAt() { + return this.sharedAt; + } + + /** + * Get the shareStatus property: Share status. + * + * @return the shareStatus value. + */ + public ShareStatus getShareStatus() { + return this.shareStatus; + } + + /** + * Set the shareStatus property: Share status. + * + * @param shareStatus the shareStatus value to set. + * @return the InPlaceReceivedShare object itself. + */ + public InPlaceReceivedShare setShareStatus(ShareStatus shareStatus) { + this.shareStatus = shareStatus; + return this; + } + + /** + * Get the sink property: Received share sink. + * + * @return the sink value. + */ + public Sink getSink() { + return this.sink; + } + + /** + * Set the sink property: Received share sink. + * + * @param sink the sink value to set. + * @return the InPlaceReceivedShare object itself. + */ + public InPlaceReceivedShare setSink(Sink sink) { + this.sink = sink; + return this; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/InPlaceSentShare.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/InPlaceSentShare.java new file mode 100644 index 0000000000000..390770a4fc390 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/InPlaceSentShare.java @@ -0,0 +1,193 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.UUID; + +/** An InPlace share kind. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "shareKind") +@JsonTypeName("InPlace") +@JsonFlatten +@Fluent +public class InPlaceSentShare extends SentShare { + /* + * A class for sent share artifact. + */ + @JsonProperty(value = "properties.artifact", required = true) + private Artifact artifact; + + /* + * Time at which the sent share was created. + */ + @JsonProperty(value = "properties.createdAt", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdAt; + + /* + * List of shares on which the sent share depends. + */ + @JsonProperty(value = "properties.dependsOn", access = JsonProperty.Access.WRITE_ONLY) + private List dependsOn; + + /* + * Sent share description. + */ + @JsonProperty(value = "properties.description") + private String description; + + /* + * The name of the sent share + */ + @JsonProperty(value = "properties.displayName", required = true) + private String displayName; + + /* + * Provisioning status of the resource + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private ProvisioningState provisioningState; + + /* + * Email of the sender who created the sent share. + */ + @JsonProperty(value = "properties.senderEmail", access = JsonProperty.Access.WRITE_ONLY) + private String senderEmail; + + /* + * Name of the sender who created the sent share. + */ + @JsonProperty(value = "properties.senderName", access = JsonProperty.Access.WRITE_ONLY) + private String senderName; + + /* + * Tenant name of the sender who created the sent share. + */ + @JsonProperty(value = "properties.senderTenantName", access = JsonProperty.Access.WRITE_ONLY) + private String senderTenantName; + + /** Creates an instance of InPlaceSentShare class. */ + public InPlaceSentShare() {} + + /** + * Get the artifact property: A class for sent share artifact. + * + * @return the artifact value. + */ + public Artifact getArtifact() { + return this.artifact; + } + + /** + * Set the artifact property: A class for sent share artifact. + * + * @param artifact the artifact value to set. + * @return the InPlaceSentShare object itself. + */ + public InPlaceSentShare setArtifact(Artifact artifact) { + this.artifact = artifact; + return this; + } + + /** + * Get the createdAt property: Time at which the sent share was created. + * + * @return the createdAt value. + */ + public OffsetDateTime getCreatedAt() { + return this.createdAt; + } + + /** + * Get the dependsOn property: List of shares on which the sent share depends. + * + * @return the dependsOn value. + */ + public List getDependsOn() { + return this.dependsOn; + } + + /** + * Get the description property: Sent share description. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Sent share description. + * + * @param description the description value to set. + * @return the InPlaceSentShare object itself. + */ + public InPlaceSentShare setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the displayName property: The name of the sent share. + * + * @return the displayName value. + */ + public String getDisplayName() { + return this.displayName; + } + + /** + * Set the displayName property: The name of the sent share. + * + * @param displayName the displayName value to set. + * @return the InPlaceSentShare object itself. + */ + public InPlaceSentShare setDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get the provisioningState property: Provisioning status of the resource. + * + * @return the provisioningState value. + */ + public ProvisioningState getProvisioningState() { + return this.provisioningState; + } + + /** + * Get the senderEmail property: Email of the sender who created the sent share. + * + * @return the senderEmail value. + */ + public String getSenderEmail() { + return this.senderEmail; + } + + /** + * Get the senderName property: Name of the sender who created the sent share. + * + * @return the senderName value. + */ + public String getSenderName() { + return this.senderName; + } + + /** + * Get the senderTenantName property: Tenant name of the sender who created the sent share. + * + * @return the senderTenantName value. + */ + public String getSenderTenantName() { + return this.senderTenantName; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/InvitationKind.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/InvitationKind.java new file mode 100644 index 0000000000000..53c5a60a5ebd3 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/InvitationKind.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** The types of invitations. */ +public final class InvitationKind extends ExpandableStringEnum { + /** Static value User for InvitationKind. */ + public static final InvitationKind USER = fromString("User"); + + /** Static value Service for InvitationKind. */ + public static final InvitationKind SERVICE = fromString("Service"); + + /** + * Creates a new instance of InvitationKind value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public InvitationKind() {} + + /** + * Creates or finds a InvitationKind from its string representation. + * + * @param name a name to look for. + * @return the corresponding InvitationKind. + */ + @JsonCreator + public static InvitationKind fromString(String name) { + return fromString(name, InvitationKind.class); + } + + /** + * Gets known InvitationKind values. + * + * @return known InvitationKind values. + */ + public static Collection values() { + return values(InvitationKind.class); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ProvisioningState.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ProvisioningState.java new file mode 100644 index 0000000000000..8cd634925a790 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ProvisioningState.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Provisioning status of the resource. */ +public final class ProvisioningState extends ExpandableStringEnum { + /** Static value Unknown for ProvisioningState. */ + public static final ProvisioningState UNKNOWN = fromString("Unknown"); + + /** Static value Succeeded for ProvisioningState. */ + public static final ProvisioningState SUCCEEDED = fromString("Succeeded"); + + /** Static value Creating for ProvisioningState. */ + public static final ProvisioningState CREATING = fromString("Creating"); + + /** Static value Deleting for ProvisioningState. */ + public static final ProvisioningState DELETING = fromString("Deleting"); + + /** Static value Moving for ProvisioningState. */ + public static final ProvisioningState MOVING = fromString("Moving"); + + /** Static value Failed for ProvisioningState. */ + public static final ProvisioningState FAILED = fromString("Failed"); + + /** + * Creates a new instance of ProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ProvisioningState() {} + + /** + * Creates or finds a ProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ProvisioningState. + */ + @JsonCreator + public static ProvisioningState fromString(String name) { + return fromString(name, ProvisioningState.class); + } + + /** + * Gets known ProvisioningState values. + * + * @return known ProvisioningState values. + */ + public static Collection values() { + return values(ProvisioningState.class); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/PurviewShareError.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/PurviewShareError.java new file mode 100644 index 0000000000000..711fad242f45f --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/PurviewShareError.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The purview share error model. */ +@Fluent +public final class PurviewShareError { + /* + * The purview share error body model. + */ + @JsonProperty(value = "error", required = true) + private PurviewShareErrorInfo error; + + /** Creates an instance of PurviewShareError class. */ + public PurviewShareError() {} + + /** + * Get the error property: The purview share error body model. + * + * @return the error value. + */ + public PurviewShareErrorInfo getError() { + return this.error; + } + + /** + * Set the error property: The purview share error body model. + * + * @param error the error value to set. + * @return the PurviewShareError object itself. + */ + public PurviewShareError setError(PurviewShareErrorInfo error) { + this.error = error; + return this; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/PurviewShareErrorException.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/PurviewShareErrorException.java new file mode 100644 index 0000000000000..6f1aef2a28b6d --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/PurviewShareErrorException.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.exception.HttpResponseException; +import com.azure.core.http.HttpResponse; + +/** Exception thrown for an invalid response with PurviewShareError information. */ +public final class PurviewShareErrorException extends HttpResponseException { + /** + * Initializes a new instance of the PurviewShareErrorException class. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + */ + public PurviewShareErrorException(String message, HttpResponse response) { + super(message, response); + } + + /** + * Initializes a new instance of the PurviewShareErrorException class. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + * @param value the deserialized response value. + */ + public PurviewShareErrorException(String message, HttpResponse response, PurviewShareError value) { + super(message, response, value); + } + + /** {@inheritDoc} */ + @Override + public PurviewShareError getValue() { + return (PurviewShareError) super.getValue(); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/PurviewShareErrorInfo.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/PurviewShareErrorInfo.java new file mode 100644 index 0000000000000..0977d71f41238 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/PurviewShareErrorInfo.java @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The purview share error body model. */ +@Fluent +public final class PurviewShareErrorInfo { + /* + * Code of the error + */ + @JsonProperty(value = "code", required = true) + private String code; + + /* + * Nested details of the error model + */ + @JsonProperty(value = "details") + private List details; + + /* + * Message of the error + */ + @JsonProperty(value = "message", required = true) + private String message; + + /* + * Target of the error + */ + @JsonProperty(value = "target") + private String target; + + /** Creates an instance of PurviewShareErrorInfo class. */ + public PurviewShareErrorInfo() {} + + /** + * Get the code property: Code of the error. + * + * @return the code value. + */ + public String getCode() { + return this.code; + } + + /** + * Set the code property: Code of the error. + * + * @param code the code value to set. + * @return the PurviewShareErrorInfo object itself. + */ + public PurviewShareErrorInfo setCode(String code) { + this.code = code; + return this; + } + + /** + * Get the details property: Nested details of the error model. + * + * @return the details value. + */ + public List getDetails() { + return this.details; + } + + /** + * Set the details property: Nested details of the error model. + * + * @param details the details value to set. + * @return the PurviewShareErrorInfo object itself. + */ + public PurviewShareErrorInfo setDetails(List details) { + this.details = details; + return this; + } + + /** + * Get the message property: Message of the error. + * + * @return the message value. + */ + public String getMessage() { + return this.message; + } + + /** + * Set the message property: Message of the error. + * + * @param message the message value to set. + * @return the PurviewShareErrorInfo object itself. + */ + public PurviewShareErrorInfo setMessage(String message) { + this.message = message; + return this; + } + + /** + * Get the target property: Target of the error. + * + * @return the target value. + */ + public String getTarget() { + return this.target; + } + + /** + * Set the target property: Target of the error. + * + * @param target the target value to set. + * @return the PurviewShareErrorInfo object itself. + */ + public PurviewShareErrorInfo setTarget(String target) { + this.target = target; + return this; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ReceivedShare.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ReceivedShare.java new file mode 100644 index 0000000000000..2090f7686be0c --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ReceivedShare.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** A received share data transfer object. */ +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "shareKind", + defaultImpl = ReceivedShare.class) +@JsonTypeName("ReceivedShare") +@JsonSubTypes({@JsonSubTypes.Type(name = "InPlace", value = InPlaceReceivedShare.class)}) +@Immutable +public class ReceivedShare extends Resource { + /** Creates an instance of ReceivedShare class. */ + public ReceivedShare() {} +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ReceivedShareList.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ReceivedShareList.java new file mode 100644 index 0000000000000..e232fdb56fe75 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ReceivedShareList.java @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** List of received shares. */ +@Fluent +public final class ReceivedShareList { + /* + * The Url of next result page. + */ + @JsonProperty(value = "nextLink") + private String nextLink; + + /* + * Collection of items of type DataTransferObjects. + */ + @JsonProperty(value = "value", required = true) + private List value; + + /** Creates an instance of ReceivedShareList class. */ + public ReceivedShareList() {} + + /** + * Get the nextLink property: The Url of next result page. + * + * @return the nextLink value. + */ + public String getNextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The Url of next result page. + * + * @param nextLink the nextLink value to set. + * @return the ReceivedShareList object itself. + */ + public ReceivedShareList setNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Get the value property: Collection of items of type DataTransferObjects. + * + * @return the value value. + */ + public List getValue() { + return this.value; + } + + /** + * Set the value property: Collection of items of type DataTransferObjects. + * + * @param value the value value to set. + * @return the ReceivedShareList object itself. + */ + public ReceivedShareList setValue(List value) { + this.value = value; + return this; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ReferenceNameType.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ReferenceNameType.java new file mode 100644 index 0000000000000..d372a280c9e49 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ReferenceNameType.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines the type of resource being shared. */ +public final class ReferenceNameType extends ExpandableStringEnum { + /** Static value ArmResourceReference for ReferenceNameType. */ + public static final ReferenceNameType ARM_RESOURCE_REFERENCE = fromString("ArmResourceReference"); + + /** + * Creates a new instance of ReferenceNameType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ReferenceNameType() {} + + /** + * Creates or finds a ReferenceNameType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ReferenceNameType. + */ + @JsonCreator + public static ReferenceNameType fromString(String name) { + return fromString(name, ReferenceNameType.class); + } + + /** + * Gets known ReferenceNameType values. + * + * @return known ReferenceNameType values. + */ + public static Collection values() { + return values(ReferenceNameType.class); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/Resource.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/Resource.java new file mode 100644 index 0000000000000..f71c93713b582 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/Resource.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Base data transfer object implementation for proxy resources. */ +@Immutable +public class Resource { + /* + * The resource id of the resource. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private String id; + + /* + * Type of the resource. + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /** Creates an instance of Resource class. */ + public Resource() {} + + /** + * Get the id property: The resource id of the resource. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Get the type property: Type of the resource. + * + * @return the type value. + */ + public String getType() { + return this.type; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/SentShare.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/SentShare.java new file mode 100644 index 0000000000000..57cef4e2c4166 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/SentShare.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** A sent share data transfer object. */ +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "shareKind", + defaultImpl = SentShare.class) +@JsonTypeName("SentShare") +@JsonSubTypes({@JsonSubTypes.Type(name = "InPlace", value = InPlaceSentShare.class)}) +@Immutable +public class SentShare extends Resource { + /** Creates an instance of SentShare class. */ + public SentShare() {} +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/SentShareInvitation.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/SentShareInvitation.java new file mode 100644 index 0000000000000..14feaf09ff40f --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/SentShareInvitation.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** A sent share invitation data transfer object. */ +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "invitationKind", + defaultImpl = SentShareInvitation.class) +@JsonTypeName("SentShareInvitation") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "Service", value = ServiceInvitation.class), + @JsonSubTypes.Type(name = "User", value = UserInvitation.class) +}) +@Immutable +public class SentShareInvitation extends Resource { + /** Creates an instance of SentShareInvitation class. */ + public SentShareInvitation() {} +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/SentShareInvitationList.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/SentShareInvitationList.java new file mode 100644 index 0000000000000..3d2ddea49dbe0 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/SentShareInvitationList.java @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** List of the sent share invitations. */ +@Fluent +public final class SentShareInvitationList { + /* + * The Url of next result page. + */ + @JsonProperty(value = "nextLink") + private String nextLink; + + /* + * Collection of items of type DataTransferObjects. + */ + @JsonProperty(value = "value", required = true) + private List value; + + /** Creates an instance of SentShareInvitationList class. */ + public SentShareInvitationList() {} + + /** + * Get the nextLink property: The Url of next result page. + * + * @return the nextLink value. + */ + public String getNextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The Url of next result page. + * + * @param nextLink the nextLink value to set. + * @return the SentShareInvitationList object itself. + */ + public SentShareInvitationList setNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Get the value property: Collection of items of type DataTransferObjects. + * + * @return the value value. + */ + public List getValue() { + return this.value; + } + + /** + * Set the value property: Collection of items of type DataTransferObjects. + * + * @param value the value value to set. + * @return the SentShareInvitationList object itself. + */ + public SentShareInvitationList setValue(List value) { + this.value = value; + return this; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/SentShareList.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/SentShareList.java new file mode 100644 index 0000000000000..5c3580caea5bf --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/SentShareList.java @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** List of sent shares. */ +@Fluent +public final class SentShareList { + /* + * The Url of next result page. + */ + @JsonProperty(value = "nextLink") + private String nextLink; + + /* + * Collection of items of type DataTransferObjects. + */ + @JsonProperty(value = "value", required = true) + private List value; + + /** Creates an instance of SentShareList class. */ + public SentShareList() {} + + /** + * Get the nextLink property: The Url of next result page. + * + * @return the nextLink value. + */ + public String getNextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The Url of next result page. + * + * @param nextLink the nextLink value to set. + * @return the SentShareList object itself. + */ + public SentShareList setNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Get the value property: Collection of items of type DataTransferObjects. + * + * @return the value value. + */ + public List getValue() { + return this.value; + } + + /** + * Set the value property: Collection of items of type DataTransferObjects. + * + * @param value the value value to set. + * @return the SentShareList object itself. + */ + public SentShareList setValue(List value) { + this.value = value; + return this; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ServiceInvitation.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ServiceInvitation.java new file mode 100644 index 0000000000000..bd4fd48730ea7 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ServiceInvitation.java @@ -0,0 +1,202 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.time.OffsetDateTime; +import java.util.UUID; + +/** An service invitation kind. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "invitationKind") +@JsonTypeName("Service") +@JsonFlatten +@Fluent +public class ServiceInvitation extends SentShareInvitation { + /* + * The time at which the invitation will expire. + */ + @JsonProperty(value = "properties.expirationDate") + private OffsetDateTime expirationDate; + + /* + * Provisioning status of the resource + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private ProvisioningState provisioningState; + + /* + * Email address of the sender. + */ + @JsonProperty(value = "properties.senderEmail", access = JsonProperty.Access.WRITE_ONLY) + private String senderEmail; + + /* + * Name of the sender + */ + @JsonProperty(value = "properties.senderName", access = JsonProperty.Access.WRITE_ONLY) + private String senderName; + + /* + * Tenant name of the sender + */ + @JsonProperty(value = "properties.senderTenantName", access = JsonProperty.Access.WRITE_ONLY) + private String senderTenantName; + + /* + * Gets the time at which the invitation was sent. + */ + @JsonProperty(value = "properties.sentAt", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime sentAt; + + /* + * Share status. + */ + @JsonProperty(value = "properties.shareStatus", access = JsonProperty.Access.WRITE_ONLY) + private ShareStatus shareStatus; + + /* + * The target azure active directory id the invitation is sent to. + */ + @JsonProperty(value = "properties.targetActiveDirectoryId", required = true) + private UUID targetActiveDirectoryId; + + /* + * The target object id in the azure active directory the invitation is sent to. + */ + @JsonProperty(value = "properties.targetObjectId", required = true) + private UUID targetObjectId; + + /** Creates an instance of ServiceInvitation class. */ + public ServiceInvitation() {} + + /** + * Get the expirationDate property: The time at which the invitation will expire. + * + * @return the expirationDate value. + */ + public OffsetDateTime getExpirationDate() { + return this.expirationDate; + } + + /** + * Set the expirationDate property: The time at which the invitation will expire. + * + * @param expirationDate the expirationDate value to set. + * @return the ServiceInvitation object itself. + */ + public ServiceInvitation setExpirationDate(OffsetDateTime expirationDate) { + this.expirationDate = expirationDate; + return this; + } + + /** + * Get the provisioningState property: Provisioning status of the resource. + * + * @return the provisioningState value. + */ + public ProvisioningState getProvisioningState() { + return this.provisioningState; + } + + /** + * Get the senderEmail property: Email address of the sender. + * + * @return the senderEmail value. + */ + public String getSenderEmail() { + return this.senderEmail; + } + + /** + * Get the senderName property: Name of the sender. + * + * @return the senderName value. + */ + public String getSenderName() { + return this.senderName; + } + + /** + * Get the senderTenantName property: Tenant name of the sender. + * + * @return the senderTenantName value. + */ + public String getSenderTenantName() { + return this.senderTenantName; + } + + /** + * Get the sentAt property: Gets the time at which the invitation was sent. + * + * @return the sentAt value. + */ + public OffsetDateTime getSentAt() { + return this.sentAt; + } + + /** + * Get the shareStatus property: Share status. + * + * @return the shareStatus value. + */ + public ShareStatus getShareStatus() { + return this.shareStatus; + } + + /** + * Set the shareStatus property: Share status. + * + * @param shareStatus the shareStatus value to set. + * @return the ServiceInvitation object itself. + */ + public ServiceInvitation setShareStatus(ShareStatus shareStatus) { + this.shareStatus = shareStatus; + return this; + } + + /** + * Get the targetActiveDirectoryId property: The target azure active directory id the invitation is sent to. + * + * @return the targetActiveDirectoryId value. + */ + public UUID getTargetActiveDirectoryId() { + return this.targetActiveDirectoryId; + } + + /** + * Set the targetActiveDirectoryId property: The target azure active directory id the invitation is sent to. + * + * @param targetActiveDirectoryId the targetActiveDirectoryId value to set. + * @return the ServiceInvitation object itself. + */ + public ServiceInvitation setTargetActiveDirectoryId(UUID targetActiveDirectoryId) { + this.targetActiveDirectoryId = targetActiveDirectoryId; + return this; + } + + /** + * Get the targetObjectId property: The target object id in the azure active directory the invitation is sent to. + * + * @return the targetObjectId value. + */ + public UUID getTargetObjectId() { + return this.targetObjectId; + } + + /** + * Set the targetObjectId property: The target object id in the azure active directory the invitation is sent to. + * + * @param targetObjectId the targetObjectId value to set. + * @return the ServiceInvitation object itself. + */ + public ServiceInvitation setTargetObjectId(UUID targetObjectId) { + this.targetObjectId = targetObjectId; + return this; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ShareKind.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ShareKind.java new file mode 100644 index 0000000000000..b4cba510b9300 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ShareKind.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines the supported types for share. */ +public final class ShareKind extends ExpandableStringEnum { + /** Static value InPlace for ShareKind. */ + public static final ShareKind IN_PLACE = fromString("InPlace"); + + /** + * Creates a new instance of ShareKind value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ShareKind() {} + + /** + * Creates or finds a ShareKind from its string representation. + * + * @param name a name to look for. + * @return the corresponding ShareKind. + */ + @JsonCreator + public static ShareKind fromString(String name) { + return fromString(name, ShareKind.class); + } + + /** + * Gets known ShareKind values. + * + * @return known ShareKind values. + */ + public static Collection values() { + return values(ShareKind.class); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ShareStatus.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ShareStatus.java new file mode 100644 index 0000000000000..f5404a5f76fa5 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/ShareStatus.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Share status. */ +public final class ShareStatus extends ExpandableStringEnum { + /** Static value Detached for ShareStatus. */ + public static final ShareStatus DETACHED = fromString("Detached"); + + /** Static value Attached for ShareStatus. */ + public static final ShareStatus ATTACHED = fromString("Attached"); + + /** + * Creates a new instance of ShareStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ShareStatus() {} + + /** + * Creates or finds a ShareStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding ShareStatus. + */ + @JsonCreator + public static ShareStatus fromString(String name) { + return fromString(name, ShareStatus.class); + } + + /** + * Gets known ShareStatus values. + * + * @return known ShareStatus values. + */ + public static Collection values() { + return values(ShareStatus.class); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/Sink.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/Sink.java new file mode 100644 index 0000000000000..da4603726fda2 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/Sink.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** Received share sink. */ +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "storeKind", + defaultImpl = Sink.class) +@JsonTypeName("Sink") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "AdlsGen2Account", value = AdlsGen2AccountSink.class), + @JsonSubTypes.Type(name = "BlobAccount", value = BlobAccountSink.class) +}) +@Fluent +public class Sink { + /* + * A Store Reference for an artifact or sink. + */ + @JsonProperty(value = "storeReference", required = true) + private StoreReference storeReference; + + /** Creates an instance of Sink class. */ + public Sink() {} + + /** + * Get the storeReference property: A Store Reference for an artifact or sink. + * + * @return the storeReference value. + */ + public StoreReference getStoreReference() { + return this.storeReference; + } + + /** + * Set the storeReference property: A Store Reference for an artifact or sink. + * + * @param storeReference the storeReference value to set. + * @return the Sink object itself. + */ + public Sink setStoreReference(StoreReference storeReference) { + this.storeReference = storeReference; + return this; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/StorageAccountPath.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/StorageAccountPath.java new file mode 100644 index 0000000000000..adb04646fc663 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/StorageAccountPath.java @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Defines a single StorageAccountPath path. */ +@Fluent +public final class StorageAccountPath { + /* + * Gets or sets the container name + */ + @JsonProperty(value = "containerName", required = true) + private String containerName; + + /* + * Gets or sets the path on the receiver side where the artifact is to be mapped + */ + @JsonProperty(value = "receiverPath") + private String receiverPath; + + /* + * Gets or sets the path to file/folder within the container to be shared + */ + @JsonProperty(value = "senderPath") + private String senderPath; + + /** Creates an instance of StorageAccountPath class. */ + public StorageAccountPath() {} + + /** + * Get the containerName property: Gets or sets the container name. + * + * @return the containerName value. + */ + public String getContainerName() { + return this.containerName; + } + + /** + * Set the containerName property: Gets or sets the container name. + * + * @param containerName the containerName value to set. + * @return the StorageAccountPath object itself. + */ + public StorageAccountPath setContainerName(String containerName) { + this.containerName = containerName; + return this; + } + + /** + * Get the receiverPath property: Gets or sets the path on the receiver side where the artifact is to be mapped. + * + * @return the receiverPath value. + */ + public String getReceiverPath() { + return this.receiverPath; + } + + /** + * Set the receiverPath property: Gets or sets the path on the receiver side where the artifact is to be mapped. + * + * @param receiverPath the receiverPath value to set. + * @return the StorageAccountPath object itself. + */ + public StorageAccountPath setReceiverPath(String receiverPath) { + this.receiverPath = receiverPath; + return this; + } + + /** + * Get the senderPath property: Gets or sets the path to file/folder within the container to be shared. + * + * @return the senderPath value. + */ + public String getSenderPath() { + return this.senderPath; + } + + /** + * Set the senderPath property: Gets or sets the path to file/folder within the container to be shared. + * + * @param senderPath the senderPath value to set. + * @return the StorageAccountPath object itself. + */ + public StorageAccountPath setSenderPath(String senderPath) { + this.senderPath = senderPath; + return this; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/StoreKind.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/StoreKind.java new file mode 100644 index 0000000000000..823ccef17103a --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/StoreKind.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** The types of asset. */ +public final class StoreKind extends ExpandableStringEnum { + /** Static value AdlsGen2Account for StoreKind. */ + public static final StoreKind ADLS_GEN2ACCOUNT = fromString("AdlsGen2Account"); + + /** Static value BlobAccount for StoreKind. */ + public static final StoreKind BLOB_ACCOUNT = fromString("BlobAccount"); + + /** + * Creates a new instance of StoreKind value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public StoreKind() {} + + /** + * Creates or finds a StoreKind from its string representation. + * + * @param name a name to look for. + * @return the corresponding StoreKind. + */ + @JsonCreator + public static StoreKind fromString(String name) { + return fromString(name, StoreKind.class); + } + + /** + * Gets known StoreKind values. + * + * @return known StoreKind values. + */ + public static Collection values() { + return values(StoreKind.class); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/StoreReference.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/StoreReference.java new file mode 100644 index 0000000000000..38075881465b9 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/StoreReference.java @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** A Store Reference for an artifact or sink. */ +@Fluent +public final class StoreReference { + /* + * Reference name for resource associated with the sink or artifact. + */ + @JsonProperty(value = "referenceName") + private String referenceName; + + /* + * Defines the type of resource being shared + */ + @JsonProperty(value = "type") + private ReferenceNameType type; + + /** Creates an instance of StoreReference class. */ + public StoreReference() {} + + /** + * Get the referenceName property: Reference name for resource associated with the sink or artifact. + * + * @return the referenceName value. + */ + public String getReferenceName() { + return this.referenceName; + } + + /** + * Set the referenceName property: Reference name for resource associated with the sink or artifact. + * + * @param referenceName the referenceName value to set. + * @return the StoreReference object itself. + */ + public StoreReference setReferenceName(String referenceName) { + this.referenceName = referenceName; + return this; + } + + /** + * Get the type property: Defines the type of resource being shared. + * + * @return the type value. + */ + public ReferenceNameType getType() { + return this.type; + } + + /** + * Set the type property: Defines the type of resource being shared. + * + * @param type the type value to set. + * @return the StoreReference object itself. + */ + public StoreReference setType(ReferenceNameType type) { + this.type = type; + return this; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/TenantEmailRegistration.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/TenantEmailRegistration.java new file mode 100644 index 0000000000000..8bd7c88f9b662 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/TenantEmailRegistration.java @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** A tenant email registration data transfer object. */ +@JsonFlatten +@Fluent +public class TenantEmailRegistration extends Resource { + /* + * Activation code for the registration. + */ + @JsonProperty(value = "properties.activationCode") + private String activationCode; + + /* + * Date of the activation expiration. + */ + @JsonProperty(value = "properties.activationExpiration", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime activationExpiration; + + /* + * The email to register. + */ + @JsonProperty(value = "properties.email", access = JsonProperty.Access.WRITE_ONLY) + private String email; + + /* + * Provisioning status of the resource + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private ProvisioningState provisioningState; + + /* + * Defines the supported types for registration. + */ + @JsonProperty(value = "properties.registrationStatus", access = JsonProperty.Access.WRITE_ONLY) + private TenantEmailRegistrationStatus registrationStatus; + + /* + * The tenant id to register. + */ + @JsonProperty(value = "properties.tenantId", access = JsonProperty.Access.WRITE_ONLY) + private String tenantId; + + /** Creates an instance of TenantEmailRegistration class. */ + public TenantEmailRegistration() {} + + /** + * Get the activationCode property: Activation code for the registration. + * + * @return the activationCode value. + */ + public String getActivationCode() { + return this.activationCode; + } + + /** + * Set the activationCode property: Activation code for the registration. + * + * @param activationCode the activationCode value to set. + * @return the TenantEmailRegistration object itself. + */ + public TenantEmailRegistration setActivationCode(String activationCode) { + this.activationCode = activationCode; + return this; + } + + /** + * Get the activationExpiration property: Date of the activation expiration. + * + * @return the activationExpiration value. + */ + public OffsetDateTime getActivationExpiration() { + return this.activationExpiration; + } + + /** + * Get the email property: The email to register. + * + * @return the email value. + */ + public String getEmail() { + return this.email; + } + + /** + * Get the provisioningState property: Provisioning status of the resource. + * + * @return the provisioningState value. + */ + public ProvisioningState getProvisioningState() { + return this.provisioningState; + } + + /** + * Get the registrationStatus property: Defines the supported types for registration. + * + * @return the registrationStatus value. + */ + public TenantEmailRegistrationStatus getRegistrationStatus() { + return this.registrationStatus; + } + + /** + * Get the tenantId property: The tenant id to register. + * + * @return the tenantId value. + */ + public String getTenantId() { + return this.tenantId; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/TenantEmailRegistrationStatus.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/TenantEmailRegistrationStatus.java new file mode 100644 index 0000000000000..16a43bf2c8283 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/TenantEmailRegistrationStatus.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines the supported types for registration. */ +public final class TenantEmailRegistrationStatus extends ExpandableStringEnum { + /** Static value ActivationPending for TenantEmailRegistrationStatus. */ + public static final TenantEmailRegistrationStatus ACTIVATION_PENDING = fromString("ActivationPending"); + + /** Static value Activated for TenantEmailRegistrationStatus. */ + public static final TenantEmailRegistrationStatus ACTIVATED = fromString("Activated"); + + /** Static value ActivationAttemptsExhausted for TenantEmailRegistrationStatus. */ + public static final TenantEmailRegistrationStatus ACTIVATION_ATTEMPTS_EXHAUSTED = + fromString("ActivationAttemptsExhausted"); + + /** + * Creates a new instance of TenantEmailRegistrationStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public TenantEmailRegistrationStatus() {} + + /** + * Creates or finds a TenantEmailRegistrationStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding TenantEmailRegistrationStatus. + */ + @JsonCreator + public static TenantEmailRegistrationStatus fromString(String name) { + return fromString(name, TenantEmailRegistrationStatus.class); + } + + /** + * Gets known TenantEmailRegistrationStatus values. + * + * @return known TenantEmailRegistrationStatus values. + */ + public static Collection values() { + return values(TenantEmailRegistrationStatus.class); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/UserInvitation.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/UserInvitation.java new file mode 100644 index 0000000000000..2afecb369f760 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/UserInvitation.java @@ -0,0 +1,202 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +package com.azure.analytics.purview.sharing.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.time.OffsetDateTime; + +/** A user invitation kind. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "invitationKind") +@JsonTypeName("User") +@JsonFlatten +@Fluent +public class UserInvitation extends SentShareInvitation { + /* + * The time at which the invitation will expire. + */ + @JsonProperty(value = "properties.expirationDate") + private OffsetDateTime expirationDate; + + /* + * Whether or not the recipient was notified via email. + */ + @JsonProperty(value = "properties.notify") + private Boolean notify; + + /* + * Provisioning status of the resource + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private ProvisioningState provisioningState; + + /* + * Email address of the sender. + */ + @JsonProperty(value = "properties.senderEmail", access = JsonProperty.Access.WRITE_ONLY) + private String senderEmail; + + /* + * Name of the sender + */ + @JsonProperty(value = "properties.senderName", access = JsonProperty.Access.WRITE_ONLY) + private String senderName; + + /* + * Tenant name of the sender + */ + @JsonProperty(value = "properties.senderTenantName", access = JsonProperty.Access.WRITE_ONLY) + private String senderTenantName; + + /* + * Gets the time at which the invitation was sent. + */ + @JsonProperty(value = "properties.sentAt", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime sentAt; + + /* + * Share status. + */ + @JsonProperty(value = "properties.shareStatus") + private ShareStatus shareStatus; + + /* + * The receiver email for the invitation is being sent. + */ + @JsonProperty(value = "properties.targetEmail", required = true) + private String targetEmail; + + /** Creates an instance of UserInvitation class. */ + public UserInvitation() {} + + /** + * Get the expirationDate property: The time at which the invitation will expire. + * + * @return the expirationDate value. + */ + public OffsetDateTime getExpirationDate() { + return this.expirationDate; + } + + /** + * Set the expirationDate property: The time at which the invitation will expire. + * + * @param expirationDate the expirationDate value to set. + * @return the UserInvitation object itself. + */ + public UserInvitation setExpirationDate(OffsetDateTime expirationDate) { + this.expirationDate = expirationDate; + return this; + } + + /** + * Get the notify property: Whether or not the recipient was notified via email. + * + * @return the notify value. + */ + public Boolean isNotify() { + return this.notify; + } + + /** + * Set the notify property: Whether or not the recipient was notified via email. + * + * @param notify the notify value to set. + * @return the UserInvitation object itself. + */ + public UserInvitation setNotify(Boolean notify) { + this.notify = notify; + return this; + } + + /** + * Get the provisioningState property: Provisioning status of the resource. + * + * @return the provisioningState value. + */ + public ProvisioningState getProvisioningState() { + return this.provisioningState; + } + + /** + * Get the senderEmail property: Email address of the sender. + * + * @return the senderEmail value. + */ + public String getSenderEmail() { + return this.senderEmail; + } + + /** + * Get the senderName property: Name of the sender. + * + * @return the senderName value. + */ + public String getSenderName() { + return this.senderName; + } + + /** + * Get the senderTenantName property: Tenant name of the sender. + * + * @return the senderTenantName value. + */ + public String getSenderTenantName() { + return this.senderTenantName; + } + + /** + * Get the sentAt property: Gets the time at which the invitation was sent. + * + * @return the sentAt value. + */ + public OffsetDateTime getSentAt() { + return this.sentAt; + } + + /** + * Get the shareStatus property: Share status. + * + * @return the shareStatus value. + */ + public ShareStatus getShareStatus() { + return this.shareStatus; + } + + /** + * Set the shareStatus property: Share status. + * + * @param shareStatus the shareStatus value to set. + * @return the UserInvitation object itself. + */ + public UserInvitation setShareStatus(ShareStatus shareStatus) { + this.shareStatus = shareStatus; + return this; + } + + /** + * Get the targetEmail property: The receiver email for the invitation is being sent. + * + * @return the targetEmail value. + */ + public String getTargetEmail() { + return this.targetEmail; + } + + /** + * Set the targetEmail property: The receiver email for the invitation is being sent. + * + * @param targetEmail the targetEmail value to set. + * @return the UserInvitation object itself. + */ + public UserInvitation setTargetEmail(String targetEmail) { + this.targetEmail = targetEmail; + return this; + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/package-info.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/package-info.java new file mode 100644 index 0000000000000..b1064de9c6658 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/models/package-info.java @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + + +/** Package containing the data models for PurviewShareClient. Creates a data plane client for Purview Share. */ +package com.azure.analytics.purview.sharing.models; diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/package-info.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/package-info.java new file mode 100644 index 0000000000000..6059212b8f8cc --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/com/azure/analytics/purview/sharing/package-info.java @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +/** Package containing the classes for PurviewShareClient. Creates a data plane client for Purview Share. */ +package com.azure.analytics.purview.sharing; diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/java/module-info.java b/sdk/purview/azure-analytics-purview-sharing/src/main/java/module-info.java new file mode 100644 index 0000000000000..a64b5cc833ad1 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/java/module-info.java @@ -0,0 +1,12 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +module com.azure.analytics.purview.sharing { + requires transitive com.azure.core; + + exports com.azure.analytics.purview.sharing; + + exports com.azure.analytics.purview.sharing.models; + opens com.azure.analytics.purview.sharing.models to com.azure.core, com.fasterxml.jackson.databind; +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/main/resources/azure-analytics-purview-sharing.properties b/sdk/purview/azure-analytics-purview-sharing/src/main/resources/azure-analytics-purview-sharing.properties new file mode 100644 index 0000000000000..ca812989b4f27 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/main/resources/azure-analytics-purview-sharing.properties @@ -0,0 +1,2 @@ +name=${project.artifactId} +version=${project.version} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/README.md b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/README.md new file mode 100644 index 0000000000000..6d898e8b2d9bd --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/README.md @@ -0,0 +1,33 @@ +--- +page_type: sample +languages: + - java +products: + - azure +urlFragment: purview-sharing-java-samples +--- + +# Azure Purview Sharing client library for Java samples +This document explains samples and how to use them. + +## Key concepts +Key concepts are explained in detail [here][SDK_README_KEY_CONCEPTS]. + +## Getting started +Getting started explained in detail [here][SDK_README_GETTING_STARTED]. + +## Examples +End-to-end examples for the client library can be viewed [here][sample_readme]. + +## Next steps +Start using Azure Purview Sharing Java SDK in your solutions. Our SDK details could be found at [SDK README][SHARE_SDK_README]. + +## Contributing +This project welcomes contributions and suggestions. Find [more contributing][SDK_README_CONTRIBUTING] details here. + + +[SHARE_SDK_README]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/purview/azure-analytics-purview-sharing/README.md +[SDK_README_GETTING_STARTED]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/purview/azure-analytics-purview-sharing/README.md#getting-started +[SDK_README_KEY_CONCEPTS]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/purview/azure-analytics-purview-sharing/README.md#key-concepts +[SDK_README_CONTRIBUTING]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md +[sample_readme]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/ReadmeSamples.java \ No newline at end of file diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/ReadmeSamples.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/ReadmeSamples.java new file mode 100644 index 0000000000000..eeba3915e1f49 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/ReadmeSamples.java @@ -0,0 +1,327 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.analytics.purview.sharing; + +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Optional; +import java.util.UUID; +import java.util.stream.Collectors; + +import com.azure.analytics.purview.sharing.models.BlobAccountSink; +import com.azure.analytics.purview.sharing.models.BlobStorageArtifact; +import com.azure.analytics.purview.sharing.models.InPlaceReceivedShare; +import com.azure.analytics.purview.sharing.models.InPlaceSentShare; +import com.azure.analytics.purview.sharing.models.ReceivedShare; +import com.azure.analytics.purview.sharing.models.ReferenceNameType; +import com.azure.analytics.purview.sharing.models.SentShare; +import com.azure.analytics.purview.sharing.models.ServiceInvitation; +import com.azure.analytics.purview.sharing.models.StorageAccountPath; +import com.azure.analytics.purview.sharing.models.StoreReference; +import com.azure.analytics.purview.sharing.models.UserInvitation; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.SyncPoller; +import com.azure.identity.DefaultAzureCredentialBuilder; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.node.ObjectNode; + +@SuppressWarnings("unused") +public final class ReadmeSamples { + + public void createSentShareClientSample() { + // BEGIN: com.azure.analytics.purview.sharing.createSentShareClient + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + // END: com.azure.analytics.purview.sharing.createSentShareClient + } + + public void createSentShareSample() { + // BEGIN: com.azure.analytics.purview.sharing.createSentShare + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + + String sentShareId = UUID.randomUUID().toString(); + InPlaceSentShare sentShare = new InPlaceSentShare() + .setDisplayName("sample-share") + .setDescription("A sample share"); + + StoreReference storeReference = new StoreReference() + .setReferenceName("/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/provider-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage") + .setType(ReferenceNameType.ARM_RESOURCE_REFERENCE); + + StorageAccountPath storageAccountPath = new StorageAccountPath() + .setContainerName("container-name") + .setReceiverPath("shared-file-name.txt") + .setSenderPath("original/file-name.txt"); + + List paths = new ArrayList<>(); + paths.add(storageAccountPath); + + BlobStorageArtifact artifact = new BlobStorageArtifact() + .setStoreReference(storeReference) + .setPaths(paths); + + sentShare.setArtifact(artifact); + + SyncPoller response = + sentSharesClient.beginCreateOrReplaceSentShare( + sentShareId, + BinaryData.fromObject(sentShare), + new RequestOptions()); + // END: com.azure.analytics.purview.sharing.createSentShare + } + + public void getSentShareSample() { + // BEGIN: com.azure.analytics.purview.sharing.getSentShare + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + + SentShare retrievedSentShare = sentSharesClient + .getSentShareWithResponse("", new RequestOptions()) + .getValue() + .toObject(SentShare.class); + // END: com.azure.analytics.purview.sharing.getSentShare + } + + public void deleteSentShareSample() { + // BEGIN: com.azure.analytics.purview.sharing.deleteSentShare + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + + sentSharesClient.beginDeleteSentShare(".purview.azure.com/share") + .buildClient(); + + PagedIterable sentShareResults = sentSharesClient.getAllSentShares( + "/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/provider-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage", + new RequestOptions()); + + List sentShares = sentShareResults.stream() + .map(binaryData -> binaryData.toObject(SentShare.class)) + .collect(Collectors.toList()); + // END: com.azure.analytics.purview.sharing.getAllSentShares + } + + public void sendUserInvitationSample() { + // BEGIN: com.azure.analytics.purview.sharing.sendUserInvitation + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + + String sentShareId = ""; + String sentShareInvitationId = UUID.randomUUID().toString(); + + UserInvitation sentShareInvitation = new UserInvitation() + .setTargetEmail("receiver@microsoft.com") + .setNotify(true) + .setExpirationDate(OffsetDateTime.now().plusDays(60)); + + Response response = + sentSharesClient.createSentShareInvitationWithResponse( + sentShareId, + sentShareInvitationId, + BinaryData.fromObject(sentShareInvitation), + new RequestOptions()); + // END: com.azure.analytics.purview.sharing.sendUserInvitation + } + + public void sendServiceInvitationSample() { + // BEGIN: com.azure.analytics.purview.sharing.sendServiceInvitation + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + + String sentShareId = ""; + String sentShareInvitationId = UUID.randomUUID().toString(); + + ServiceInvitation sentShareInvitation = new ServiceInvitation() + .setTargetActiveDirectoryId(UUID.fromString("")) + .setTargetObjectId(UUID.fromString("")) + .setExpirationDate(OffsetDateTime.now().plusDays(60)); + + Response response = + sentSharesClient.createSentShareInvitationWithResponse( + sentShareId, + sentShareInvitationId, + BinaryData.fromObject(sentShareInvitation), + new RequestOptions()); + // END: com.azure.analytics.purview.sharing.sendServiceInvitation + } + + public void viewSentInvitationsSample() { + // BEGIN: com.azure.analytics.purview.sharing.getAllSentShareInvitations + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + + String sentShareId = ""; + + RequestOptions requestOptions = new RequestOptions().addQueryParam("$orderBy", "properties/sentAt desc"); + PagedIterable response = + sentSharesClient.getAllSentShareInvitations(sentShareId, requestOptions); + // END: com.azure.analytics.purview.sharing.getAllSentShareInvitations + } + + public void getSentInvitationSample() { + // BEGIN: com.azure.analytics.purview.sharing.getSentShareInvitation + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + + String sentShareId = ""; + String sentShareInvitationId = ""; + + Response sentShareInvitation = + sentSharesClient.getSentShareInvitationWithResponse(sentShareId, sentShareInvitationId, new RequestOptions()); + // END: com.azure.analytics.purview.sharing.getSentShareInvitation + } + + public void createReceivedShareClientSample() { + // BEGIN: com.azure.analytics.purview.sharing.createReceivedShareClient + ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + // END: com.azure.analytics.purview.sharing.createReceivedShareClient + } + + public void getAllDetachedReceivedSharesSample() { + // BEGIN: com.azure.analytics.purview.sharing.getAllDetachedReceivedShares + ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + + RequestOptions requestOptions = new RequestOptions().addQueryParam("$orderBy", "properties/createdAt desc"); + PagedIterable response = receivedSharesClient.getAllDetachedReceivedShares(requestOptions); + // END: com.azure.analytics.purview.sharing.getAllDetachedReceivedShares + } + + public void attachReceivedShareSample() throws JsonMappingException, JsonProcessingException { + // BEGIN: com.azure.analytics.purview.sharing.attachReceivedShare + ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + + RequestOptions listRequestOptions = new RequestOptions().addQueryParam("$orderBy", "properties/createdAt desc"); + PagedIterable listResponse = receivedSharesClient.getAllDetachedReceivedShares(listRequestOptions); + + Optional detachedReceivedShare = listResponse.stream().findFirst(); + + if (!detachedReceivedShare.isPresent()) { + return; + } + + String receivedShareId = new ObjectMapper() + .readValue(detachedReceivedShare.get().toString(), ObjectNode.class) + .get("id") + .textValue(); + + InPlaceReceivedShare receivedShare = new InPlaceReceivedShare() + .setDisplayName("my-received-share"); + + StoreReference storeReference = new StoreReference() + .setReferenceName("/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/consumer-storage-rg/providers/Microsoft.Storage/storageAccounts/consumerstorage") + .setType(ReferenceNameType.ARM_RESOURCE_REFERENCE); + + BlobAccountSink sink = new BlobAccountSink() + .setStoreReference(storeReference) + .setContainerName("container-name") + .setFolder("folderName") + .setMountPath("optionalMountPath"); + + receivedShare.setSink(sink); + + SyncPoller createResponse = + receivedSharesClient.beginCreateOrReplaceReceivedShare(receivedShareId, BinaryData.fromObject(receivedShare), new RequestOptions()); + // END: com.azure.analytics.purview.sharing.attachReceivedShare + } + + public void getReceivedShareSample() { + // BEGIN: com.azure.analytics.purview.sharing.getReceivedShare + ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + + Response receivedShare = + receivedSharesClient.getReceivedShareWithResponse("", new RequestOptions()); + // END: com.azure.analytics.purview.sharing.getReceivedShare + } + + public void listAttachedReceivedShareSample() { + // BEGIN: com.azure.analytics.purview.sharing.getAllAttachedReceivedShares + ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + + RequestOptions requestOptions = new RequestOptions().addQueryParam("$orderBy", "properties/createdAt desc"); + PagedIterable response = + receivedSharesClient.getAllAttachedReceivedShares( + "/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/consumer-storage-rg/providers/Microsoft.Storage/storageAccounts/consumerstorage", + requestOptions); + + Optional receivedShare = response.stream().findFirst(); + + if (!receivedShare.isPresent()) { + return; + } + + ReceivedShare receivedShareResponse = receivedShare.get().toObject(InPlaceReceivedShare.class); + // END: com.azure.analytics.purview.sharing.getAllAttachedReceivedShares + } + + public void deleteReceivedShareSample() { + // BEGIN: com.azure.analytics.purview.sharing.deleteReceivedShare + ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("https://.purview.azure.com/share") + .buildClient(); + + receivedSharesClient.beginDeleteReceivedShare("", new RequestOptions()); + // END: com.azure.analytics.purview.sharing.deleteReceivedShare + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesActivateTenantEmailRegistration.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesActivateTenantEmailRegistration.java new file mode 100644 index 0000000000000..b8c4efe860d94 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesActivateTenantEmailRegistration.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.ReceivedSharesClient; +import com.azure.analytics.purview.sharing.ReceivedSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class ReceivedSharesActivateTenantEmailRegistration { + public static void main(String[] args) { + ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.receivedsharesactivatetenantemailregistration.receivedsharesactivatetenantemailregistration + BinaryData tenantEmailRegistration = + BinaryData.fromString("{\"properties\":{\"activationCode\":\"15ee7153fe0df5a3a449a897d6cec836\"}}"); + RequestOptions requestOptions = new RequestOptions(); + Response response = + receivedSharesClient.activateTenantEmailRegistrationWithResponse( + tenantEmailRegistration, requestOptions); + // END:com.azure.analytics.purview.sharing.generated.receivedsharesactivatetenantemailregistration.receivedsharesactivatetenantemailregistration + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplace.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplace.java new file mode 100644 index 0000000000000..dbb73c0874744 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplace.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.ReceivedSharesClient; +import com.azure.analytics.purview.sharing.ReceivedSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.SyncPoller; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class ReceivedSharesCreateOrReplace { + public static void main(String[] args) { + ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.receivedsharescreateorreplacereceivedshare.receivedsharescreateorreplace + BinaryData receivedShare = + BinaryData.fromString( + "{\"properties\":{\"displayName\":\"updatedReceivedShareName\",\"sink\":{\"properties\":{\"containerName\":\"receivingContainer\",\"folder\":\"receivingFolder\",\"mountPath\":\"path\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/4D8FD81D-431D-4B1D-B46C-C770CFC034FC/resourceGroups/contoso-rg/providers/Microsoft.Storage/storageAccounts/blobAccount\"}}},\"shareKind\":\"InPlace\"}"); + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + receivedSharesClient.beginCreateOrReplaceReceivedShare( + "0D67B9C8-A6C6-4990-9EDE-12EA059D3002", receivedShare, requestOptions); + // END:com.azure.analytics.purview.sharing.generated.receivedsharescreateorreplacereceivedshare.receivedsharescreateorreplace + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplaceAdlsGen2Account.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplaceAdlsGen2Account.java new file mode 100644 index 0000000000000..5b08cf629b855 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplaceAdlsGen2Account.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.ReceivedSharesClient; +import com.azure.analytics.purview.sharing.ReceivedSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.SyncPoller; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class ReceivedSharesCreateOrReplaceAdlsGen2Account { + public static void main(String[] args) { + ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.receivedsharescreateorreplacereceivedshare.receivedsharescreateorreplaceadlsgen2account + BinaryData receivedShare = + BinaryData.fromString( + "{\"properties\":{\"displayName\":\"updatedReceivedShareNameAdls\",\"sink\":{\"properties\":{\"containerName\":\"receivingContainerAbc\",\"folder\":\"receivingFolderAbc\",\"mountPath\":\"pathAbc\"},\"storeKind\":\"AdlsGen2Account\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/4D8FD81D-431D-4B1D-B46C-C770CFC034FC/resourceGroups/contoso-rg/providers/Microsoft.Storage/storageAccounts/adlsAccount\"}}},\"shareKind\":\"InPlace\"}"); + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + receivedSharesClient.beginCreateOrReplaceReceivedShare( + "35E28F0E-DEA4-472F-84E4-5F1E45FB9937", receivedShare, requestOptions); + // END:com.azure.analytics.purview.sharing.generated.receivedsharescreateorreplacereceivedshare.receivedsharescreateorreplaceadlsgen2account + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplaceBlobAccount.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplaceBlobAccount.java new file mode 100644 index 0000000000000..dcee873efd481 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplaceBlobAccount.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.ReceivedSharesClient; +import com.azure.analytics.purview.sharing.ReceivedSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.SyncPoller; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class ReceivedSharesCreateOrReplaceBlobAccount { + public static void main(String[] args) { + ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.receivedsharescreateorreplacereceivedshare.receivedsharescreateorreplaceblobaccount + BinaryData receivedShare = + BinaryData.fromString( + "{\"properties\":{\"displayName\":\"updatedReceivedShareName\",\"sink\":{\"properties\":{\"containerName\":\"receivingContainer\",\"folder\":\"receivingFolder\",\"mountPath\":\"path\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/4D8FD81D-431D-4B1D-B46C-C770CFC034FC/resourceGroups/contoso-rg/providers/Microsoft.Storage/storageAccounts/blobAccount\"}}},\"shareKind\":\"InPlace\"}"); + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + receivedSharesClient.beginCreateOrReplaceReceivedShare( + "0D67B9C8-A6C6-4990-9EDE-12EA059D3002", receivedShare, requestOptions); + // END:com.azure.analytics.purview.sharing.generated.receivedsharescreateorreplacereceivedshare.receivedsharescreateorreplaceblobaccount + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesDelete.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesDelete.java new file mode 100644 index 0000000000000..08c413bd4122d --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesDelete.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.ReceivedSharesClient; +import com.azure.analytics.purview.sharing.ReceivedSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.SyncPoller; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class ReceivedSharesDelete { + public static void main(String[] args) { + ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.receivedsharesdeletereceivedshare.receivedsharesdelete + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + receivedSharesClient.beginDeleteReceivedShare("0D67B9C8-A6C6-4990-9EDE-12EA059D3002", requestOptions); + // END:com.azure.analytics.purview.sharing.generated.receivedsharesdeletereceivedshare.receivedsharesdelete + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGet.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGet.java new file mode 100644 index 0000000000000..d533b60d982cf --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGet.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.ReceivedSharesClient; +import com.azure.analytics.purview.sharing.ReceivedSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class ReceivedSharesGet { + public static void main(String[] args) { + ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.receivedsharesgetreceivedshare.receivedsharesget + RequestOptions requestOptions = new RequestOptions(); + Response response = + receivedSharesClient.getReceivedShareWithResponse( + "0D67B9C8-A6C6-4990-9EDE-12EA059D3002", requestOptions); + // END:com.azure.analytics.purview.sharing.generated.receivedsharesgetreceivedshare.receivedsharesget + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGetAdlsGen2Account.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGetAdlsGen2Account.java new file mode 100644 index 0000000000000..7bf063fedce9b --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGetAdlsGen2Account.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.ReceivedSharesClient; +import com.azure.analytics.purview.sharing.ReceivedSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class ReceivedSharesGetAdlsGen2Account { + public static void main(String[] args) { + ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.receivedsharesgetreceivedshare.receivedsharesgetadlsgen2account + RequestOptions requestOptions = new RequestOptions(); + Response response = + receivedSharesClient.getReceivedShareWithResponse( + "0D67B9C8-A6C6-4990-9EDE-12EA059D3002", requestOptions); + // END:com.azure.analytics.purview.sharing.generated.receivedsharesgetreceivedshare.receivedsharesgetadlsgen2account + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGetBlobAccount.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGetBlobAccount.java new file mode 100644 index 0000000000000..91e333fcd8c14 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGetBlobAccount.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.ReceivedSharesClient; +import com.azure.analytics.purview.sharing.ReceivedSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class ReceivedSharesGetBlobAccount { + public static void main(String[] args) { + ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.receivedsharesgetreceivedshare.receivedsharesgetblobaccount + RequestOptions requestOptions = new RequestOptions(); + Response response = + receivedSharesClient.getReceivedShareWithResponse( + "0D67B9C8-A6C6-4990-9EDE-12EA059D3002", requestOptions); + // END:com.azure.analytics.purview.sharing.generated.receivedsharesgetreceivedshare.receivedsharesgetblobaccount + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesListAttached.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesListAttached.java new file mode 100644 index 0000000000000..de8e805f28714 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesListAttached.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.ReceivedSharesClient; +import com.azure.analytics.purview.sharing.ReceivedSharesClientBuilder; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class ReceivedSharesListAttached { + public static void main(String[] args) { + ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.receivedsharesgetallattachedreceivedshares.receivedshareslistattached + RequestOptions requestOptions = new RequestOptions().addQueryParam("filter", "Name eq 'testName'"); + PagedIterable response = + receivedSharesClient.getAllAttachedReceivedShares( + "/subscriptions/4D8FD81D-431D-4B1D-B46C-C770CFC034FC/resourceGroups/contoso-rg/providers/Microsoft.Storage/storageAccounts/blobAccount", + requestOptions); + // END:com.azure.analytics.purview.sharing.generated.receivedsharesgetallattachedreceivedshares.receivedshareslistattached + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesListDetached.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesListDetached.java new file mode 100644 index 0000000000000..5aa37e6c544eb --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesListDetached.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.ReceivedSharesClient; +import com.azure.analytics.purview.sharing.ReceivedSharesClientBuilder; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class ReceivedSharesListDetached { + public static void main(String[] args) { + ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.receivedsharesgetalldetachedreceivedshares.receivedshareslistdetached + RequestOptions requestOptions = new RequestOptions().addQueryParam("filter", "Name eq 'testName'"); + PagedIterable response = receivedSharesClient.getAllDetachedReceivedShares(requestOptions); + // END:com.azure.analytics.purview.sharing.generated.receivedsharesgetalldetachedreceivedshares.receivedshareslistdetached + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesRegisterTenantEmailRegistration.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesRegisterTenantEmailRegistration.java new file mode 100644 index 0000000000000..f86e669cc632e --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesRegisterTenantEmailRegistration.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.ReceivedSharesClient; +import com.azure.analytics.purview.sharing.ReceivedSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class ReceivedSharesRegisterTenantEmailRegistration { + public static void main(String[] args) { + ReceivedSharesClient receivedSharesClient = + new ReceivedSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.receivedsharesregistertenantemailregistration.receivedsharesregistertenantemailregistration + RequestOptions requestOptions = new RequestOptions(); + Response response = + receivedSharesClient.registerTenantEmailRegistrationWithResponse(requestOptions); + // END:com.azure.analytics.purview.sharing.generated.receivedsharesregistertenantemailregistration.receivedsharesregistertenantemailregistration + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateInvitation.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateInvitation.java new file mode 100644 index 0000000000000..9ce3a8fe02a57 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateInvitation.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class SentSharesCreateInvitation { + public static void main(String[] args) { + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.sentsharescreatesentshareinvitation.sentsharescreateinvitation + BinaryData sentShareInvitation = + BinaryData.fromString( + "{\"invitationKind\":\"User\",\"properties\":{\"expirationDate\":null,\"notify\":true,\"targetEmail\":\"testReceiver@microsoft.com\"}}"); + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.createSentShareInvitationWithResponse( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", + "9F154FA4-93D1-426B-A908-A9CAC7192B21", + sentShareInvitation, + requestOptions); + // END:com.azure.analytics.purview.sharing.generated.sentsharescreatesentshareinvitation.sentsharescreateinvitation + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplace.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplace.java new file mode 100644 index 0000000000000..122285dd4bc87 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplace.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.SyncPoller; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class SentSharesCreateOrReplace { + public static void main(String[] args) { + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.sentsharescreateorreplacesentshare.sentsharescreateorreplace + BinaryData sentShare = + BinaryData.fromString( + "{\"properties\":{\"description\":\"description\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"container1\",\"receiverPath\":\"SharedFile.txt\",\"senderPath\":\"directory/file.txt\"}]},\"storeKind\":\"AdlsGen2Account\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage\"}},\"displayName\":\"sentShare1\"},\"shareKind\":\"InPlace\"}"); + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + sentSharesClient.beginCreateOrReplaceSentShare( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", sentShare, requestOptions); + // END:com.azure.analytics.purview.sharing.generated.sentsharescreateorreplacesentshare.sentsharescreateorreplace + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplaceAdlsGen2Account.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplaceAdlsGen2Account.java new file mode 100644 index 0000000000000..73a7ecad078dc --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplaceAdlsGen2Account.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.SyncPoller; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class SentSharesCreateOrReplaceAdlsGen2Account { + public static void main(String[] args) { + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.sentsharescreateorreplacesentshare.sentsharescreateorreplaceadlsgen2account + BinaryData sentShare = + BinaryData.fromString( + "{\"properties\":{\"description\":\"description\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"container1\",\"receiverPath\":\"SharedFile.txt\",\"senderPath\":\"directory/file.txt\"}]},\"storeKind\":\"AdlsGen2Account\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage\"}},\"displayName\":\"sentShare1\"},\"shareKind\":\"InPlace\"}"); + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + sentSharesClient.beginCreateOrReplaceSentShare( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", sentShare, requestOptions); + // END:com.azure.analytics.purview.sharing.generated.sentsharescreateorreplacesentshare.sentsharescreateorreplaceadlsgen2account + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplaceBlobAccount.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplaceBlobAccount.java new file mode 100644 index 0000000000000..bffd7b4b56221 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplaceBlobAccount.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.SyncPoller; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class SentSharesCreateOrReplaceBlobAccount { + public static void main(String[] args) { + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.sentsharescreateorreplacesentshare.sentsharescreateorreplaceblobaccount + BinaryData sentShare = + BinaryData.fromString( + "{\"properties\":{\"description\":\"description\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"container1\",\"receiverPath\":\"SharedFile.txt\",\"senderPath\":\"directory/file.txt\"}]},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage\"}},\"displayName\":\"sentShare1\"},\"shareKind\":\"InPlace\"}"); + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + sentSharesClient.beginCreateOrReplaceSentShare( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", sentShare, requestOptions); + // END:com.azure.analytics.purview.sharing.generated.sentsharescreateorreplacesentshare.sentsharescreateorreplaceblobaccount + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateServiceInvitation.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateServiceInvitation.java new file mode 100644 index 0000000000000..49be2f2cf4c74 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateServiceInvitation.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class SentSharesCreateServiceInvitation { + public static void main(String[] args) { + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.sentsharescreatesentshareinvitation.sentsharescreateserviceinvitation + BinaryData sentShareInvitation = + BinaryData.fromString( + "{\"invitationKind\":\"Service\",\"properties\":{\"expirationDate\":null,\"targetActiveDirectoryId\":\"5DAE1226-9FAA-4D71-B8D4-87B81DFF672E\",\"targetObjectId\":\"EFA02830-BB7A-4586-B615-A6DFF19FEBBF\"}}"); + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.createSentShareInvitationWithResponse( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", + "9F154FA4-93D1-426B-A908-A9CAC7192B21", + sentShareInvitation, + requestOptions); + // END:com.azure.analytics.purview.sharing.generated.sentsharescreatesentshareinvitation.sentsharescreateserviceinvitation + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateUserInvitation.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateUserInvitation.java new file mode 100644 index 0000000000000..cb774f540e244 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateUserInvitation.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class SentSharesCreateUserInvitation { + public static void main(String[] args) { + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.sentsharescreatesentshareinvitation.sentsharescreateuserinvitation + BinaryData sentShareInvitation = + BinaryData.fromString( + "{\"invitationKind\":\"User\",\"properties\":{\"expirationDate\":\"2025-07-21T23:52:00.7691109Z\",\"notify\":true,\"targetEmail\":\"testReceiver@microsoft.com\"}}"); + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.createSentShareInvitationWithResponse( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", + "9F154FA4-93D1-426B-A908-A9CAC7192B21", + sentShareInvitation, + requestOptions); + // END:com.azure.analytics.purview.sharing.generated.sentsharescreatesentshareinvitation.sentsharescreateuserinvitation + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesDelete.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesDelete.java new file mode 100644 index 0000000000000..6ee41dd3c6dca --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesDelete.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.SyncPoller; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class SentSharesDelete { + public static void main(String[] args) { + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.sentsharesdeletesentshare.sentsharesdelete + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + sentSharesClient.beginDeleteSentShare("FF4A2AAE-8755-47BB-9C00-A774B5A7006E", requestOptions); + // END:com.azure.analytics.purview.sharing.generated.sentsharesdeletesentshare.sentsharesdelete + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesDeleteInvitation.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesDeleteInvitation.java new file mode 100644 index 0000000000000..4717cefa83967 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesDeleteInvitation.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.SyncPoller; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class SentSharesDeleteInvitation { + public static void main(String[] args) { + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.sentsharesdeletesentshareinvitation.sentsharesdeleteinvitation + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + sentSharesClient.beginDeleteSentShareInvitation( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", "9F154FA4-93D1-426B-A908-A9CAC7192B21", requestOptions); + // END:com.azure.analytics.purview.sharing.generated.sentsharesdeletesentshareinvitation.sentsharesdeleteinvitation + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGet.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGet.java new file mode 100644 index 0000000000000..1995b86e331d3 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGet.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class SentSharesGet { + public static void main(String[] args) { + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.sentsharesgetsentshare.sentsharesget + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.getSentShareWithResponse("FF4A2AAE-8755-47BB-9C00-A774B5A7006E", requestOptions); + // END:com.azure.analytics.purview.sharing.generated.sentsharesgetsentshare.sentsharesget + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGetAdlsGen2Account.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGetAdlsGen2Account.java new file mode 100644 index 0000000000000..e65cc291dba07 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGetAdlsGen2Account.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class SentSharesGetAdlsGen2Account { + public static void main(String[] args) { + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.sentsharesgetsentshare.sentsharesgetadlsgen2account + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.getSentShareWithResponse("FF4A2AAE-8755-47BB-9C00-A774B5A7006E", requestOptions); + // END:com.azure.analytics.purview.sharing.generated.sentsharesgetsentshare.sentsharesgetadlsgen2account + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGetBlobAccount.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGetBlobAccount.java new file mode 100644 index 0000000000000..360f58e0ca987 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGetBlobAccount.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class SentSharesGetBlobAccount { + public static void main(String[] args) { + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.sentsharesgetsentshare.sentsharesgetblobaccount + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.getSentShareWithResponse("FF4A2AAE-8755-47BB-9C00-A774B5A7006E", requestOptions); + // END:com.azure.analytics.purview.sharing.generated.sentsharesgetsentshare.sentsharesgetblobaccount + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGetInvitation.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGetInvitation.java new file mode 100644 index 0000000000000..4025e374c8565 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGetInvitation.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class SentSharesGetInvitation { + public static void main(String[] args) { + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.sentsharesgetsentshareinvitation.sentsharesgetinvitation + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.getSentShareInvitationWithResponse( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", "9F154FA4-93D1-426B-A908-A9CAC7192B21", requestOptions); + // END:com.azure.analytics.purview.sharing.generated.sentsharesgetsentshareinvitation.sentsharesgetinvitation + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGetServiceInvitation.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGetServiceInvitation.java new file mode 100644 index 0000000000000..7c55f74342c98 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGetServiceInvitation.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class SentSharesGetServiceInvitation { + public static void main(String[] args) { + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.sentsharesgetsentshareinvitation.sentsharesgetserviceinvitation + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.getSentShareInvitationWithResponse( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", "9F154FA4-93D1-426B-A908-A9CAC7192B21", requestOptions); + // END:com.azure.analytics.purview.sharing.generated.sentsharesgetsentshareinvitation.sentsharesgetserviceinvitation + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGetUserInvitation.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGetUserInvitation.java new file mode 100644 index 0000000000000..67f350cbebce4 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesGetUserInvitation.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class SentSharesGetUserInvitation { + public static void main(String[] args) { + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.sentsharesgetsentshareinvitation.sentsharesgetuserinvitation + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.getSentShareInvitationWithResponse( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", "9F154FA4-93D1-426B-A908-A9CAC7192B21", requestOptions); + // END:com.azure.analytics.purview.sharing.generated.sentsharesgetsentshareinvitation.sentsharesgetuserinvitation + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesList.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesList.java new file mode 100644 index 0000000000000..5c03693621ce5 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesList.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class SentSharesList { + public static void main(String[] args) { + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.sentsharesgetallsentshares.sentshareslist + RequestOptions requestOptions = new RequestOptions().addQueryParam("filter", "Name eq 'testName'"); + PagedIterable response = + sentSharesClient.getAllSentShares( + "/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage", + requestOptions); + // END:com.azure.analytics.purview.sharing.generated.sentsharesgetallsentshares.sentshareslist + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesListInvitations.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesListInvitations.java new file mode 100644 index 0000000000000..a6539347b892f --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesListInvitations.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class SentSharesListInvitations { + public static void main(String[] args) { + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.sentsharesgetallsentshareinvitations.sentshareslistinvitations + RequestOptions requestOptions = new RequestOptions().addQueryParam("filter", "Name eq 'testName'"); + PagedIterable response = + sentSharesClient.getAllSentShareInvitations("FF4A2AAE-8755-47BB-9C00-A774B5A7006E", requestOptions); + // END:com.azure.analytics.purview.sharing.generated.sentsharesgetallsentshareinvitations.sentshareslistinvitations + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesNotifyUserInvitation.java b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesNotifyUserInvitation.java new file mode 100644 index 0000000000000..c747af206471d --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/samples/java/com/azure/analytics/purview/sharing/generated/SentSharesNotifyUserInvitation.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.identity.DefaultAzureCredentialBuilder; + +public class SentSharesNotifyUserInvitation { + public static void main(String[] args) { + SentSharesClient sentSharesClient = + new SentSharesClientBuilder() + .credential(new DefaultAzureCredentialBuilder().build()) + .endpoint("accountName.purview.azure.com/share") + .buildClient(); + // BEGIN:com.azure.analytics.purview.sharing.generated.sentsharesnotifyusersentshareinvitation.sentsharesnotifyuserinvitation + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.notifyUserSentShareInvitationWithResponse( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", "9F154FA4-93D1-426B-A908-A9CAC7192B21", requestOptions); + // END:com.azure.analytics.purview.sharing.generated.sentsharesnotifyusersentshareinvitation.sentsharesnotifyuserinvitation + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/PurviewShareTestBase.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/PurviewShareTestBase.java new file mode 100644 index 0000000000000..00d9ca35cb9a2 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/PurviewShareTestBase.java @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.analytics.purview.sharing; + +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + +import com.azure.analytics.purview.sharing.models.BlobStorageArtifact; +import com.azure.analytics.purview.sharing.models.InPlaceSentShare; +import com.azure.analytics.purview.sharing.models.ReferenceNameType; +import com.azure.analytics.purview.sharing.models.SentShare; +import com.azure.analytics.purview.sharing.models.ServiceInvitation; +import com.azure.analytics.purview.sharing.models.StorageAccountPath; +import com.azure.analytics.purview.sharing.models.StoreReference; +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.policy.HttpLogDetailLevel; +import com.azure.core.http.policy.HttpLogOptions; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.test.TestBase; +import com.azure.core.test.TestMode; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Configuration; +import com.azure.core.util.polling.SyncPoller; +import com.azure.identity.DefaultAzureCredentialBuilder; + +import reactor.core.publisher.Mono; + +class PurviewShareTestBase extends TestBase { + + protected ReceivedSharesClient receivedSharesClient; + + protected SentSharesClient sentSharesClient; + + protected String clientId; + + protected String targetActiveDirectoryId; + + protected String targetObjectId; + + protected String providerStorageAccountResourceId; + + protected String consumerStorageAccountResourceId; + + protected String consumerEmail; + + @Override + protected void beforeTest() { + + this.initializeSentShareClient(); + this.initializeReceivedShareClient(); + + clientId = Configuration.getGlobalConfiguration().get("AZURE_CLIENT_ID", "6a2919d0-880a-4ed8-B50d-7abe4d74291c"); + targetActiveDirectoryId = Configuration.getGlobalConfiguration().get("AZURE_TENANT_ID", "4653a7b2-02ff-4155-8e55-2d0c7f3178a1"); + targetObjectId = Configuration.getGlobalConfiguration().get("TARGET_OBJECT_ID", "68700464-b46c-4ec0-88ff-6061da36da69"); + providerStorageAccountResourceId = Configuration.getGlobalConfiguration().get("PROVIDER_STORAGE_RESOURCE_ID", "/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage"); + consumerStorageAccountResourceId = Configuration.getGlobalConfiguration().get("CONSUMER_STORAGE_RESOURCE_ID", "/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/consumerstorage"); + consumerEmail = Configuration.getGlobalConfiguration().get("CONSUMER_EMAIL", "consumer@contoso.com"); + } + + protected SentShare createSentShare(UUID uuid) { + + String sentShareId = uuid.toString(); + + InPlaceSentShare sentShare = new InPlaceSentShare() + .setDisplayName(testResourceNamer.randomName("sentshare", 26)).setDescription("A sample share"); + + StoreReference storeReference = new StoreReference().setReferenceName(this.providerStorageAccountResourceId) + .setType(ReferenceNameType.ARM_RESOURCE_REFERENCE); + + StorageAccountPath storageAccountPath = new StorageAccountPath().setContainerName("test-files") + .setReceiverPath("graph.png").setSenderPath("graph.png"); + + List paths = new ArrayList<>(); + paths.add(storageAccountPath); + + BlobStorageArtifact artifact = new BlobStorageArtifact().setStoreReference(storeReference).setPaths(paths); + + sentShare.setArtifact(artifact); + + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = sentSharesClient.beginCreateOrReplaceSentShare(sentShareId, + BinaryData.fromObject(sentShare), requestOptions); + + response.waitForCompletion(); + + return response.getFinalResult().toObject(SentShare.class); + } + + protected Response createSentShareAndServiceInvitation() { + return this.createSentShareAndServiceInvitation(UUID.randomUUID(), UUID.randomUUID()); + } + + protected Response createSentShareAndServiceInvitation(UUID sentShareId, UUID sentShareInvitationId) { + this.createSentShare(sentShareId); + + String invitationId = sentShareInvitationId.toString(); + + ServiceInvitation sentShareInvitation = new ServiceInvitation() + .setTargetActiveDirectoryId(UUID.fromString(this.targetActiveDirectoryId)) + .setTargetObjectId(UUID.fromString(this.targetObjectId)); + + return sentSharesClient.createSentShareInvitationWithResponse(sentShareId.toString(), invitationId, + BinaryData.fromObject(sentShareInvitation), new RequestOptions()); + } + + private void initializeReceivedShareClient() { + ReceivedSharesClientBuilder receivedSharesClientbuilder = new ReceivedSharesClientBuilder() + .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "https://account.purview.azure.com/share")) + .httpClient(HttpClient.createDefault()) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); + if (getTestMode() == TestMode.PLAYBACK) { + receivedSharesClientbuilder.httpClient(interceptorManager.getPlaybackClient()) + .credential(request -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX))); + } else if (getTestMode() == TestMode.RECORD) { + receivedSharesClientbuilder.addPolicy(interceptorManager.getRecordPolicy()) + .credential(new DefaultAzureCredentialBuilder().build()); + } else if (getTestMode() == TestMode.LIVE) { + receivedSharesClientbuilder.credential(new DefaultAzureCredentialBuilder().build()); + } + + receivedSharesClient = receivedSharesClientbuilder.buildClient(); + } + + private void initializeSentShareClient() { + SentSharesClientBuilder sentSharesClientbuilder = new SentSharesClientBuilder() + .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "https://account.purview.azure.com/share")) + .httpClient(HttpClient.createDefault()) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); + if (getTestMode() == TestMode.PLAYBACK) { + sentSharesClientbuilder.httpClient(interceptorManager.getPlaybackClient()) + .credential(request -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX))); + } else if (getTestMode() == TestMode.RECORD) { + sentSharesClientbuilder.addPolicy(interceptorManager.getRecordPolicy()) + .credential(new DefaultAzureCredentialBuilder().build()); + } else if (getTestMode() == TestMode.LIVE) { + sentSharesClientbuilder.credential(new DefaultAzureCredentialBuilder().build()); + } + + sentSharesClient = sentSharesClientbuilder.buildClient(); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/ReceivedShareClientTest.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/ReceivedShareClientTest.java new file mode 100644 index 0000000000000..0209a8cd27553 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/ReceivedShareClientTest.java @@ -0,0 +1,134 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.analytics.purview.sharing; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.fail; + +import java.util.Optional; +import java.util.UUID; + +import org.junit.jupiter.api.Test; + +import com.azure.analytics.purview.sharing.models.BlobAccountSink; +import com.azure.analytics.purview.sharing.models.InPlaceReceivedShare; +import com.azure.analytics.purview.sharing.models.ReferenceNameType; +import com.azure.analytics.purview.sharing.models.ShareStatus; +import com.azure.analytics.purview.sharing.models.Sink; +import com.azure.analytics.purview.sharing.models.StoreReference; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.LongRunningOperationStatus; +import com.azure.core.util.polling.PollResponse; +import com.azure.core.util.polling.SyncPoller; + +@SuppressWarnings("unused") +class ReceivedShareClientTest extends PurviewShareTestBase { + + @Override + protected void beforeTest() { + super.beforeTest(); + } + + @Test + void getAllDetachedShareTest() { + UUID sentShareId = UUID.fromString(testResourceNamer.randomUuid()); + UUID sentShareInvitationId = UUID.fromString(testResourceNamer.randomUuid()); + + super.createSentShareAndServiceInvitation(sentShareId, sentShareInvitationId); + + RequestOptions requestOptions = new RequestOptions().addQueryParam("$orderBy", "properties/createdAt desc"); + PagedIterable receivedShares = receivedSharesClient.getAllDetachedReceivedShares(requestOptions); + + assertTrue(receivedShares.stream().findAny().isPresent()); + assertTrue(receivedShares + .stream() + .map(binaryData -> binaryData.toObject(InPlaceReceivedShare.class)) + .allMatch(share -> share.getShareStatus().equals(ShareStatus.DETACHED))); + } + + @Test + void getReceivedShareTest() { + UUID sentShareId = UUID.fromString(testResourceNamer.randomUuid()); + UUID sentShareInvitationId = UUID.fromString(testResourceNamer.randomUuid()); + + super.createSentShareAndServiceInvitation(sentShareId, sentShareInvitationId); + + RequestOptions requestOptions = new RequestOptions().addQueryParam("$orderBy", "properties/createdAt desc"); + PagedIterable receivedShares = receivedSharesClient.getAllDetachedReceivedShares(requestOptions); + + InPlaceReceivedShare receivedShare = receivedShares.stream().findFirst().get().toObject(InPlaceReceivedShare.class); + + InPlaceReceivedShare retrievedShare = this.receivedSharesClient + .getReceivedShareWithResponse(receivedShare.getId(), new RequestOptions()) + .getValue() + .toObject(InPlaceReceivedShare.class); + + assertNotNull(retrievedShare); + assertEquals(receivedShare.getId(), retrievedShare.getId()); + assertEquals(receivedShare.getDisplayName(), retrievedShare.getDisplayName()); + } + + @Test + void deleteReceivedShareTest() { + UUID sentShareId = UUID.fromString(testResourceNamer.randomUuid()); + UUID sentShareInvitationId = UUID.fromString(testResourceNamer.randomUuid()); + + super.createSentShareAndServiceInvitation(sentShareId, sentShareInvitationId); + + RequestOptions requestOptions = new RequestOptions().addQueryParam("$orderBy", "properties/createdAt desc"); + PagedIterable receivedShares = receivedSharesClient.getAllDetachedReceivedShares(requestOptions); + + InPlaceReceivedShare receivedShare = receivedShares.stream().findFirst().get().toObject(InPlaceReceivedShare.class); + + SyncPoller syncPoller = + this.receivedSharesClient.beginDeleteReceivedShare(receivedShare.getId(), new RequestOptions()); + + PollResponse result = syncPoller.waitForCompletion(); + assertEquals(LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, result.getStatus()); + } + + @Test + void attachReceivedShareTest() { + + UUID sentShareId = UUID.fromString(testResourceNamer.randomUuid()); + UUID sentShareInvitationId = UUID.fromString(testResourceNamer.randomUuid()); + + super.createSentShareAndServiceInvitation(sentShareId, sentShareInvitationId); + + RequestOptions listRequestOptions = new RequestOptions().addQueryParam("$orderBy", "properties/createdAt desc"); + PagedIterable listResponse = receivedSharesClient.getAllDetachedReceivedShares(listRequestOptions); + + Optional detachedReceivedShare = listResponse.stream().findFirst(); + + if (!detachedReceivedShare.isPresent()) { + fail("ReceivedShare not found."); + } + + InPlaceReceivedShare receivedShare = detachedReceivedShare.get().toObject(InPlaceReceivedShare.class); + + StoreReference storeReference = new StoreReference() + .setReferenceName(this.consumerStorageAccountResourceId) + .setType(ReferenceNameType.ARM_RESOURCE_REFERENCE); + + Sink sink = new BlobAccountSink() + .setStoreReference(storeReference) + .setContainerName(testResourceNamer.randomName("container", 26)) + .setFolder(testResourceNamer.randomName("folder", 20)) + .setMountPath(testResourceNamer.randomName("mountpath", 20)); + + receivedShare.setSink(sink); + + SyncPoller createResponse = + receivedSharesClient.beginCreateOrReplaceReceivedShare( + receivedShare.getId(), + BinaryData.fromObject(receivedShare), + new RequestOptions()); + + assertEquals(LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, createResponse.waitForCompletion().getStatus()); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/SentShareClientTest.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/SentShareClientTest.java new file mode 100644 index 0000000000000..48814b1faaf16 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/SentShareClientTest.java @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.analytics.purview.sharing; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.time.OffsetDateTime; +import java.util.UUID; + +import org.junit.jupiter.api.Test; + +import com.azure.analytics.purview.sharing.models.SentShare; +import com.azure.analytics.purview.sharing.models.ServiceInvitation; +import com.azure.analytics.purview.sharing.models.UserInvitation; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.LongRunningOperationStatus; +import com.azure.core.util.polling.PollResponse; +import com.azure.core.util.polling.SyncPoller; + +@SuppressWarnings("unused") +class SentShareClientTest extends PurviewShareTestBase { + + @Override + protected void beforeTest() { + super.beforeTest(); + } + + @Test + void createSentShareTest() { + UUID sentShareId = UUID.fromString(testResourceNamer.randomUuid()); + SentShare sentShare = super.createSentShare(sentShareId); + + assertNotNull(sentShare); + assertEquals(sentShareId.toString(), sentShare.getId()); + } + + @Test + void createSentShareUserInvitation() { + + UUID sentShareId = UUID.fromString(testResourceNamer.randomUuid()); + String sentShareInvitationId = testResourceNamer.randomUuid(); + + this.createSentShare(sentShareId); + + UserInvitation sentShareInvitation = new UserInvitation() + .setTargetEmail(super.consumerEmail) + .setNotify(true) + .setExpirationDate(OffsetDateTime.now().plusDays(60)); + + Response invitationResponse = sentSharesClient.createSentShareInvitationWithResponse( + sentShareId.toString(), sentShareInvitationId, BinaryData.fromObject(sentShareInvitation), + new RequestOptions()); + + UserInvitation invitation = invitationResponse.getValue().toObject(UserInvitation.class); + + assertEquals(201, invitationResponse.getStatusCode()); + assertNotNull(invitation); + assertEquals(sentShareInvitationId.toString(), invitation.getId()); + assertEquals(this.consumerEmail, invitation.getTargetEmail()); + } + + @Test + void getSentShareTest() { + UUID sentShareId = UUID.fromString(testResourceNamer.randomUuid()); + SentShare sentShare = super.createSentShare(sentShareId); + + SentShare retrievedSentShare = super.sentSharesClient + .getSentShareWithResponse(sentShareId.toString(), new RequestOptions()).getValue() + .toObject(SentShare.class); + + assertNotNull(retrievedSentShare); + assertEquals(sentShareId.toString(), retrievedSentShare.getId()); + assertEquals(sentShare.getType(), retrievedSentShare.getType()); + } + + @Test + void getAllSentSharesTest() { + + UUID sentShareId = UUID.fromString(testResourceNamer.randomUuid()); + SentShare sentShare = super.createSentShare(sentShareId); + + PagedIterable sentShares = super.sentSharesClient + .getAllSentShares(super.providerStorageAccountResourceId, new RequestOptions()); + + assertTrue(sentShares.stream().findAny().isPresent()); + assertTrue(sentShares.stream().map(binaryData -> binaryData.toObject(SentShare.class)) + .anyMatch(share -> share.getId().equals(sentShare.getId()))); + } + + @Test + void deleteSentShareTest() { + UUID sentShareId = UUID.fromString(testResourceNamer.randomUuid()); + SentShare sentShare = super.createSentShare(sentShareId); + + SyncPoller syncPoller = super.sentSharesClient.beginDeleteSentShare(sentShareId.toString(), + new RequestOptions()); + + PollResponse result = syncPoller.waitForCompletion(); + assertEquals(LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, result.getStatus()); + } + + @Test + void createSentShareServiceInvitation() { + UUID sentShareId = UUID.fromString(testResourceNamer.randomUuid()); + UUID sentShareInvitationId = UUID.fromString(testResourceNamer.randomUuid()); + + Response invitationResponse = super.createSentShareAndServiceInvitation( + sentShareId, + sentShareInvitationId); + + ServiceInvitation invitation = invitationResponse.getValue().toObject(ServiceInvitation.class); + + assertEquals(201, invitationResponse.getStatusCode()); + assertEquals(sentShareInvitationId.toString(), invitation.getId()); + assertEquals(this.targetActiveDirectoryId, invitation.getTargetActiveDirectoryId().toString()); + assertEquals(this.targetObjectId, invitation.getTargetObjectId().toString()); + } + + @Test + void getSentShareServiceInvitation() { + UUID sentShareId = UUID.fromString(testResourceNamer.randomUuid()); + UUID sentShareInvitationId = UUID.fromString(testResourceNamer.randomUuid()); + super.createSentShareAndServiceInvitation(sentShareId, sentShareInvitationId); + + Response invitationResponse = super.sentSharesClient.getSentShareInvitationWithResponse( + sentShareId.toString(), sentShareInvitationId.toString(), new RequestOptions()); + + ServiceInvitation invitation = invitationResponse.getValue().toObject(ServiceInvitation.class); + + assertEquals(200, invitationResponse.getStatusCode()); + assertEquals(sentShareInvitationId.toString(), invitation.getId()); + assertEquals(this.targetActiveDirectoryId, invitation.getTargetActiveDirectoryId().toString()); + assertEquals(this.targetObjectId, invitation.getTargetObjectId().toString()); + } + + @Test + void getAllSentShareServiceInvitations() { + UUID sentShareId = UUID.fromString(testResourceNamer.randomUuid()); + UUID sentShareInvitationId = UUID.fromString(testResourceNamer.randomUuid()); + super.createSentShareAndServiceInvitation(sentShareId, sentShareInvitationId); + + PagedIterable invitations = super.sentSharesClient + .getAllSentShareInvitations(sentShareId.toString(), new RequestOptions()); + + assertTrue(invitations.stream().findAny().isPresent()); + assertTrue(invitations.stream().map(binaryData -> binaryData.toObject(ServiceInvitation.class)) + .anyMatch(invitation -> invitation.getId().equals(sentShareInvitationId.toString()))); + } + + @Test + void deleteSentShareServiceInvitation() { + UUID sentShareId = UUID.fromString(testResourceNamer.randomUuid()); + UUID sentShareInvitationId = UUID.fromString(testResourceNamer.randomUuid()); + + Response invitationResponse = super.createSentShareAndServiceInvitation(sentShareId, + sentShareInvitationId); + + ServiceInvitation invitation = invitationResponse.getValue().toObject(ServiceInvitation.class); + + SyncPoller syncPoller = super.sentSharesClient.beginDeleteSentShareInvitation( + sentShareId.toString(), sentShareInvitationId.toString(), new RequestOptions()); + + PollResponse result = syncPoller.waitForCompletion(); + assertEquals(LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, result.getStatus()); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/PurviewShareClientTestBase.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/PurviewShareClientTestBase.java new file mode 100644 index 0000000000000..e192357e96189 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/PurviewShareClientTestBase.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.analytics.purview.sharing.ReceivedSharesClient; +import com.azure.analytics.purview.sharing.ReceivedSharesClientBuilder; +import com.azure.analytics.purview.sharing.SentSharesClient; +import com.azure.analytics.purview.sharing.SentSharesClientBuilder; +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.policy.HttpLogDetailLevel; +import com.azure.core.http.policy.HttpLogOptions; +import com.azure.core.test.TestBase; +import com.azure.core.test.TestMode; +import com.azure.core.util.Configuration; +import com.azure.identity.DefaultAzureCredentialBuilder; +import java.time.OffsetDateTime; +import reactor.core.publisher.Mono; + +class PurviewShareClientTestBase extends TestBase { + protected ReceivedSharesClient receivedSharesClient; + + protected SentSharesClient sentSharesClient; + + @Override + protected void beforeTest() { + ReceivedSharesClientBuilder receivedSharesClientbuilder = + new ReceivedSharesClientBuilder() + .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) + .httpClient(HttpClient.createDefault()) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); + if (getTestMode() == TestMode.PLAYBACK) { + receivedSharesClientbuilder + .httpClient(interceptorManager.getPlaybackClient()) + .credential(request -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX))); + } else if (getTestMode() == TestMode.RECORD) { + receivedSharesClientbuilder + .addPolicy(interceptorManager.getRecordPolicy()) + .credential(new DefaultAzureCredentialBuilder().build()); + } else if (getTestMode() == TestMode.LIVE) { + receivedSharesClientbuilder.credential(new DefaultAzureCredentialBuilder().build()); + } + receivedSharesClient = receivedSharesClientbuilder.buildClient(); + + SentSharesClientBuilder sentSharesClientbuilder = + new SentSharesClientBuilder() + .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) + .httpClient(HttpClient.createDefault()) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); + if (getTestMode() == TestMode.PLAYBACK) { + sentSharesClientbuilder + .httpClient(interceptorManager.getPlaybackClient()) + .credential(request -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX))); + } else if (getTestMode() == TestMode.RECORD) { + sentSharesClientbuilder + .addPolicy(interceptorManager.getRecordPolicy()) + .credential(new DefaultAzureCredentialBuilder().build()); + } else if (getTestMode() == TestMode.LIVE) { + sentSharesClientbuilder.credential(new DefaultAzureCredentialBuilder().build()); + } + sentSharesClient = sentSharesClientbuilder.buildClient(); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesActivateTenantEmailRegistrationTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesActivateTenantEmailRegistrationTests.java new file mode 100644 index 0000000000000..8001dd12cfd9d --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesActivateTenantEmailRegistrationTests.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class ReceivedSharesActivateTenantEmailRegistrationTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testReceivedSharesActivateTenantEmailRegistrationTests() { + BinaryData tenantEmailRegistration = + BinaryData.fromString("{\"properties\":{\"activationCode\":\"15ee7153fe0df5a3a449a897d6cec836\"}}"); + RequestOptions requestOptions = new RequestOptions(); + Response response = + receivedSharesClient.activateTenantEmailRegistrationWithResponse( + tenantEmailRegistration, requestOptions); + Assertions.assertEquals(200, response.getStatusCode()); + Assertions.assertEquals("Wed, 13 Sep 2017 18:04:32 GMT", response.getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "b470712a-ffbc-4d9f-ab99-6640db8bbcb8", + response.getHeaders().get("repeatability-request-id").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"tenantEmailRegistration\",\"id\":\"cb817140-a0cf-464f-8a82-0a9627a026ab\",\"properties\":{\"activationCode\":\"15ee7153fe0df5a3a449a897d6cec836\",\"activationExpiration\":\"2022-08-16T22:35:17.2093506Z\",\"email\":\"john.smith@contoso.com\",\"registrationStatus\":\"Activated\",\"state\":\"Succeeded\",\"tenantId\":\"f686d426-8d16-42db-81b7-ab578e110ccd\"}}") + .toObject(Object.class), + response.getValue().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplaceAdlsGen2AccountTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplaceAdlsGen2AccountTests.java new file mode 100644 index 0000000000000..a12e803239cb5 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplaceAdlsGen2AccountTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.LongRunningOperationStatus; +import com.azure.core.util.polling.SyncPoller; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class ReceivedSharesCreateOrReplaceAdlsGen2AccountTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testReceivedSharesCreateOrReplaceAdlsGen2AccountTests() { + BinaryData receivedShare = + BinaryData.fromString( + "{\"properties\":{\"displayName\":\"updatedReceivedShareNameAdls\",\"sink\":{\"properties\":{\"containerName\":\"receivingContainerAbc\",\"folder\":\"receivingFolderAbc\",\"mountPath\":\"pathAbc\"},\"storeKind\":\"AdlsGen2Account\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/4D8FD81D-431D-4B1D-B46C-C770CFC034FC/resourceGroups/contoso-rg/providers/Microsoft.Storage/storageAccounts/adlsAccount\"}}},\"shareKind\":\"InPlace\"}"); + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + receivedSharesClient.beginCreateOrReplaceReceivedShare( + "35E28F0E-DEA4-472F-84E4-5F1E45FB9937", receivedShare, requestOptions); + Assertions.assertEquals( + LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, response.waitForCompletion().getStatus()); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplaceBlobAccountTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplaceBlobAccountTests.java new file mode 100644 index 0000000000000..cec12ab6bd742 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplaceBlobAccountTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.LongRunningOperationStatus; +import com.azure.core.util.polling.SyncPoller; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class ReceivedSharesCreateOrReplaceBlobAccountTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testReceivedSharesCreateOrReplaceBlobAccountTests() { + BinaryData receivedShare = + BinaryData.fromString( + "{\"properties\":{\"displayName\":\"updatedReceivedShareName\",\"sink\":{\"properties\":{\"containerName\":\"receivingContainer\",\"folder\":\"receivingFolder\",\"mountPath\":\"path\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/4D8FD81D-431D-4B1D-B46C-C770CFC034FC/resourceGroups/contoso-rg/providers/Microsoft.Storage/storageAccounts/blobAccount\"}}},\"shareKind\":\"InPlace\"}"); + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + receivedSharesClient.beginCreateOrReplaceReceivedShare( + "0D67B9C8-A6C6-4990-9EDE-12EA059D3002", receivedShare, requestOptions); + Assertions.assertEquals( + LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, response.waitForCompletion().getStatus()); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplaceTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplaceTests.java new file mode 100644 index 0000000000000..a4f3eade90898 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesCreateOrReplaceTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.LongRunningOperationStatus; +import com.azure.core.util.polling.SyncPoller; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class ReceivedSharesCreateOrReplaceTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testReceivedSharesCreateOrReplaceTests() { + BinaryData receivedShare = + BinaryData.fromString( + "{\"properties\":{\"displayName\":\"updatedReceivedShareName\",\"sink\":{\"properties\":{\"containerName\":\"receivingContainer\",\"folder\":\"receivingFolder\",\"mountPath\":\"path\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/4D8FD81D-431D-4B1D-B46C-C770CFC034FC/resourceGroups/contoso-rg/providers/Microsoft.Storage/storageAccounts/blobAccount\"}}},\"shareKind\":\"InPlace\"}"); + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + receivedSharesClient.beginCreateOrReplaceReceivedShare( + "0D67B9C8-A6C6-4990-9EDE-12EA059D3002", receivedShare, requestOptions); + Assertions.assertEquals( + LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, response.waitForCompletion().getStatus()); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesDeleteTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesDeleteTests.java new file mode 100644 index 0000000000000..f67d7349d6018 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesDeleteTests.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.LongRunningOperationStatus; +import com.azure.core.util.polling.SyncPoller; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class ReceivedSharesDeleteTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testReceivedSharesDeleteTests() { + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + receivedSharesClient.beginDeleteReceivedShare("0D67B9C8-A6C6-4990-9EDE-12EA059D3002", requestOptions); + Assertions.assertEquals( + LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, response.waitForCompletion().getStatus()); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGetAdlsGen2AccountTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGetAdlsGen2AccountTests.java new file mode 100644 index 0000000000000..762a97ba56a3a --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGetAdlsGen2AccountTests.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class ReceivedSharesGetAdlsGen2AccountTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testReceivedSharesGetAdlsGen2AccountTests() { + RequestOptions requestOptions = new RequestOptions(); + Response response = + receivedSharesClient.getReceivedShareWithResponse( + "0D67B9C8-A6C6-4990-9EDE-12EA059D3002", requestOptions); + Assertions.assertEquals(200, response.getStatusCode()); + Assertions.assertEquals("Wed, 12 July 2022 18:04:32 GMT", response.getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"receivedShares\",\"id\":\"0D67B9C8-A6C6-4990-9EDE-12EA059D3002\",\"properties\":{\"assetLocation\":\"eastus\",\"assetStoreKind\":\"AdlsGen2Account\",\"createdAt\":\"2022-07-19T18:18:50.7095202Z\",\"displayName\":\"receivedShareName1\",\"receiverEmail\":\"johndoe@fabrikam.com\",\"receiverName\":\"John Doe\",\"receiverTenantName\":\"Fabrikam\",\"senderEmail\":\"ali.smith@contoso.com\",\"senderName\":\"Ali Smith\",\"senderTenantName\":\"Contoso\",\"sentShareDescription\":\"description\",\"shareStatus\":\"Attached\",\"sharedAt\":\"2022-07-18T18:17:56.1065304Z\",\"sink\":{\"properties\":{\"containerName\":\"receivingContainerAbc\",\"folder\":\"receivingFolderAbc\",\"location\":\"eastus\",\"mountPath\":\"pathAbc\"},\"storeKind\":\"AdlsGen2Account\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/4D8FD81D-431D-4B1D-B46C-C770CFC034FC/resourceGroups/contoso-rg/providers/Microsoft.Storage/storageAccounts/adlsAccount\"}},\"state\":\"Succeeded\"},\"shareKind\":\"InPlace\"}") + .toObject(Object.class), + response.getValue().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGetBlobAccountTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGetBlobAccountTests.java new file mode 100644 index 0000000000000..e0a199f677b3c --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGetBlobAccountTests.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class ReceivedSharesGetBlobAccountTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testReceivedSharesGetBlobAccountTests() { + RequestOptions requestOptions = new RequestOptions(); + Response response = + receivedSharesClient.getReceivedShareWithResponse( + "0D67B9C8-A6C6-4990-9EDE-12EA059D3002", requestOptions); + Assertions.assertEquals(200, response.getStatusCode()); + Assertions.assertEquals("Wed, 12 July 2022 18:04:32 GMT", response.getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"receivedShares\",\"id\":\"0D67B9C8-A6C6-4990-9EDE-12EA059D3002\",\"properties\":{\"assetLocation\":\"eastus\",\"assetStoreKind\":\"BlobAccount\",\"createdAt\":\"2022-07-12T18:18:50.7095202Z\",\"displayName\":\"receivedShareName1\",\"receiverEmail\":\"janedoe@fabrikam.com\",\"receiverName\":\"Jane Doe\",\"receiverTenantName\":\"Fabrikam\",\"senderEmail\":\"ali.smith@contoso.com\",\"senderName\":\"Ali Smith\",\"senderTenantName\":\"Contoso\",\"sentShareDescription\":\"description\",\"shareStatus\":\"Attached\",\"sharedAt\":\"2022-07-12T18:17:56.1065304Z\",\"sink\":{\"properties\":{\"containerName\":\"receivingContainer\",\"folder\":\"receivingFolder\",\"location\":\"eastus\",\"mountPath\":\"path\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/4D8FD81D-431D-4B1D-B46C-C770CFC034FC/resourceGroups/contoso-rg/providers/Microsoft.Storage/storageAccounts/blobAccount\"}},\"state\":\"Succeeded\"},\"shareKind\":\"InPlace\"}") + .toObject(Object.class), + response.getValue().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGetTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGetTests.java new file mode 100644 index 0000000000000..9c6af1b3c1eb9 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesGetTests.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class ReceivedSharesGetTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testReceivedSharesGetTests() { + RequestOptions requestOptions = new RequestOptions(); + Response response = + receivedSharesClient.getReceivedShareWithResponse( + "0D67B9C8-A6C6-4990-9EDE-12EA059D3002", requestOptions); + Assertions.assertEquals(200, response.getStatusCode()); + Assertions.assertEquals("Wed, 12 July 2022 18:04:32 GMT", response.getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"receivedShares\",\"id\":\"0D67B9C8-A6C6-4990-9EDE-12EA059D3002\",\"properties\":{\"assetLocation\":\"eastus\",\"assetStoreKind\":\"AdlsGen2Account\",\"createdAt\":\"2022-07-19T18:18:50.7095202Z\",\"displayName\":\"receivedShareName1\",\"receiverEmail\":\"johndoe@fabrikam.com\",\"receiverName\":\"John Doe\",\"receiverTenantName\":\"Fabrikam\",\"senderEmail\":\"ali.smith@contoso.com\",\"senderName\":\"Ali Smith\",\"senderTenantName\":\"Contoso\",\"sentShareDescription\":\"description\",\"shareStatus\":\"Attached\",\"sharedAt\":\"2022-07-18T18:17:56.1065304Z\",\"sink\":{\"properties\":{\"containerName\":\"receivingContainerAbc\",\"folder\":\"receivingFolderAbc\",\"location\":\"eastus\",\"mountPath\":\"pathAbc\"},\"storeKind\":\"AdlsGen2Account\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/4D8FD81D-431D-4B1D-B46C-C770CFC034FC/resourceGroups/contoso-rg/providers/Microsoft.Storage/storageAccounts/adlsAccount\"}},\"state\":\"Succeeded\"},\"shareKind\":\"InPlace\"}") + .toObject(Object.class), + response.getValue().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesListAttachedTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesListAttachedTests.java new file mode 100644 index 0000000000000..a300de3f9a32b --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesListAttachedTests.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class ReceivedSharesListAttachedTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testReceivedSharesListAttachedTests() { + RequestOptions requestOptions = new RequestOptions().addQueryParam("filter", "Name eq 'testName'"); + PagedIterable response = + receivedSharesClient.getAllAttachedReceivedShares( + "/subscriptions/4D8FD81D-431D-4B1D-B46C-C770CFC034FC/resourceGroups/contoso-rg/providers/Microsoft.Storage/storageAccounts/blobAccount", + requestOptions); + Assertions.assertEquals(200, response.iterableByPage().iterator().next().getStatusCode()); + Assertions.assertEquals( + "Wed, 12 July 2022 18:04:32 GMT", + response.iterableByPage().iterator().next().getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.iterableByPage().iterator().next().getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"receivedShares\",\"id\":\"0D67B9C8-A6C6-4990-9EDE-12EA059D3002\",\"properties\":{\"assetLocation\":\"eastus\",\"assetStoreKind\":\"BlobAccount\",\"createdAt\":\"2022-07-12T18:18:50.7095202Z\",\"displayName\":\"receivedShareName1\",\"receiverEmail\":\"janedoe@fabrikam.com\",\"receiverName\":\"Jane Doe\",\"receiverTenantName\":\"Fabrikam\",\"senderEmail\":\"ali.smith@contoso.com\",\"senderName\":\"Ali Smith\",\"senderTenantName\":\"Contoso\",\"sentShareDescription\":\"description\",\"shareStatus\":\"Attached\",\"sharedAt\":\"2022-07-12T18:17:56.1065304Z\",\"sink\":{\"properties\":{\"containerName\":\"receivingContainer\",\"folder\":\"receivingFolder\",\"location\":\"eastus\",\"mountPath\":\"path\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/4D8FD81D-431D-4B1D-B46C-C770CFC034FC/resourceGroups/contoso-rg/providers/Microsoft.Storage/storageAccounts/blobAccount\"}},\"state\":\"Succeeded\"},\"shareKind\":\"InPlace\"}") + .toObject(Object.class), + response.iterator().next().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesListDetachedTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesListDetachedTests.java new file mode 100644 index 0000000000000..70d9ad3ec759c --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesListDetachedTests.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class ReceivedSharesListDetachedTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testReceivedSharesListDetachedTests() { + RequestOptions requestOptions = new RequestOptions().addQueryParam("filter", "Name eq 'testName'"); + PagedIterable response = receivedSharesClient.getAllDetachedReceivedShares(requestOptions); + Assertions.assertEquals(200, response.iterableByPage().iterator().next().getStatusCode()); + Assertions.assertEquals( + "Wed, 12 July 2022 18:04:32 GMT", + response.iterableByPage().iterator().next().getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.iterableByPage().iterator().next().getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"receivedShares\",\"id\":\"0D67B9C8-A6C6-4990-9EDE-12EA059D3002\",\"properties\":{\"assetLocation\":\"eastus\",\"assetStoreKind\":\"BlobAccount\",\"createdAt\":\"2022-07-12T18:18:50.7095202Z\",\"displayName\":\"receivedShareName1\",\"receiverEmail\":\"janedoe@fabrikam.com\",\"receiverName\":null,\"receiverTenantName\":null,\"senderEmail\":\"ali.smith@contoso.com\",\"senderName\":\"Ali Smith\",\"senderTenantName\":\"Contoso\",\"sentShareDescription\":\"description\",\"shareStatus\":\"Detached\",\"sharedAt\":\"2022-07-12T18:17:56.1065304Z\",\"state\":\"Succeeded\"},\"shareKind\":\"InPlace\"}") + .toObject(Object.class), + response.iterator().next().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesRegisterTenantEmailRegistrationTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesRegisterTenantEmailRegistrationTests.java new file mode 100644 index 0000000000000..cd51b169c2c1e --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/ReceivedSharesRegisterTenantEmailRegistrationTests.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class ReceivedSharesRegisterTenantEmailRegistrationTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testReceivedSharesRegisterTenantEmailRegistrationTests() { + RequestOptions requestOptions = new RequestOptions(); + Response response = + receivedSharesClient.registerTenantEmailRegistrationWithResponse(requestOptions); + Assertions.assertEquals(200, response.getStatusCode()); + Assertions.assertEquals("Wed, 13 Sep 2017 18:04:32 GMT", response.getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "b470712a-ffbc-4d9f-ab99-6640db8bbcb8", + response.getHeaders().get("repeatability-request-id").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"tenantEmailRegistration\",\"id\":\"cb817140-a0cf-464f-8a82-0a9627a026ab\",\"properties\":{\"activationCode\":\"15ee7153fe0df5a3a449a897d6cec836\",\"activationExpiration\":\"2022-08-16T22:35:17.2093506Z\",\"email\":\"john.smith@contoso.com\",\"registrationStatus\":\"ActivationPending\",\"state\":\"Succeeded\",\"tenantId\":\"f686d426-8d16-42db-81b7-ab578e110ccd\"}}") + .toObject(Object.class), + response.getValue().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateInvitationTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateInvitationTests.java new file mode 100644 index 0000000000000..5a0fe2c740c23 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateInvitationTests.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class SentSharesCreateInvitationTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testSentSharesCreateInvitationTests() { + BinaryData sentShareInvitation = + BinaryData.fromString( + "{\"invitationKind\":\"User\",\"properties\":{\"expirationDate\":null,\"notify\":true,\"targetEmail\":\"testReceiver@microsoft.com\"}}"); + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.createSentShareInvitationWithResponse( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", + "9F154FA4-93D1-426B-A908-A9CAC7192B21", + sentShareInvitation, + requestOptions); + Assertions.assertEquals(201, response.getStatusCode()); + Assertions.assertEquals("Thu, 4 Aug 2022 13:04:32 GMT", response.getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"sentShares/sentShareInvitations\",\"id\":\"9F154FA4-93D1-426B-A908-A9CAC7192B21\",\"invitationKind\":\"User\",\"properties\":{\"expirationDate\":null,\"notify\":true,\"senderEmail\":\"testSender@microsoft.com\",\"senderName\":\"Test Sender\",\"senderTenantName\":\"Test Tenant\",\"sentAt\":\"2022-08-04T13:04:32.8172128Z\",\"shareStatus\":\"Detached\",\"state\":\"Succeeded\",\"targetEmail\":\"testReceiver@microsoft.com\"}}") + .toObject(Object.class), + response.getValue().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplaceAdlsGen2AccountTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplaceAdlsGen2AccountTests.java new file mode 100644 index 0000000000000..0b9e419faab70 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplaceAdlsGen2AccountTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.LongRunningOperationStatus; +import com.azure.core.util.polling.SyncPoller; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class SentSharesCreateOrReplaceAdlsGen2AccountTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testSentSharesCreateOrReplaceAdlsGen2AccountTests() { + BinaryData sentShare = + BinaryData.fromString( + "{\"properties\":{\"description\":\"description\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"container1\",\"receiverPath\":\"SharedFile.txt\",\"senderPath\":\"directory/file.txt\"}]},\"storeKind\":\"AdlsGen2Account\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage\"}},\"displayName\":\"sentShare1\"},\"shareKind\":\"InPlace\"}"); + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + sentSharesClient.beginCreateOrReplaceSentShare( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", sentShare, requestOptions); + Assertions.assertEquals( + LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, response.waitForCompletion().getStatus()); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplaceBlobAccountTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplaceBlobAccountTests.java new file mode 100644 index 0000000000000..1403616bddf34 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplaceBlobAccountTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.LongRunningOperationStatus; +import com.azure.core.util.polling.SyncPoller; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class SentSharesCreateOrReplaceBlobAccountTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testSentSharesCreateOrReplaceBlobAccountTests() { + BinaryData sentShare = + BinaryData.fromString( + "{\"properties\":{\"description\":\"description\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"container1\",\"receiverPath\":\"SharedFile.txt\",\"senderPath\":\"directory/file.txt\"}]},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage\"}},\"displayName\":\"sentShare1\"},\"shareKind\":\"InPlace\"}"); + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + sentSharesClient.beginCreateOrReplaceSentShare( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", sentShare, requestOptions); + Assertions.assertEquals( + LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, response.waitForCompletion().getStatus()); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplaceTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplaceTests.java new file mode 100644 index 0000000000000..9fd2befe5bb31 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateOrReplaceTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.LongRunningOperationStatus; +import com.azure.core.util.polling.SyncPoller; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class SentSharesCreateOrReplaceTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testSentSharesCreateOrReplaceTests() { + BinaryData sentShare = + BinaryData.fromString( + "{\"properties\":{\"description\":\"description\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"container1\",\"receiverPath\":\"SharedFile.txt\",\"senderPath\":\"directory/file.txt\"}]},\"storeKind\":\"AdlsGen2Account\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage\"}},\"displayName\":\"sentShare1\"},\"shareKind\":\"InPlace\"}"); + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + sentSharesClient.beginCreateOrReplaceSentShare( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", sentShare, requestOptions); + Assertions.assertEquals( + LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, response.waitForCompletion().getStatus()); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateServiceInvitationTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateServiceInvitationTests.java new file mode 100644 index 0000000000000..2b9a6b5bd1f48 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateServiceInvitationTests.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class SentSharesCreateServiceInvitationTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testSentSharesCreateServiceInvitationTests() { + BinaryData sentShareInvitation = + BinaryData.fromString( + "{\"invitationKind\":\"Service\",\"properties\":{\"expirationDate\":null,\"targetActiveDirectoryId\":\"5DAE1226-9FAA-4D71-B8D4-87B81DFF672E\",\"targetObjectId\":\"EFA02830-BB7A-4586-B615-A6DFF19FEBBF\"}}"); + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.createSentShareInvitationWithResponse( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", + "9F154FA4-93D1-426B-A908-A9CAC7192B21", + sentShareInvitation, + requestOptions); + Assertions.assertEquals(201, response.getStatusCode()); + Assertions.assertEquals("Thu, 4 Aug 2022 13:04:32 GMT", response.getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"sentShares/sentShareInvitations\",\"id\":\"9F154FA4-93D1-426B-A908-A9CAC7192B21\",\"invitationKind\":\"Service\",\"properties\":{\"expirationDate\":null,\"senderEmail\":\"testSender@microsoft.com\",\"senderName\":\"Test Sender\",\"senderTenantName\":\"Test Tenant\",\"sentAt\":\"2022-08-04T13:04:32.8172128Z\",\"shareStatus\":\"Detached\",\"state\":\"Succeeded\",\"targetActiveDirectoryId\":\"5DAE1226-9FAA-4D71-B8D4-87B81DFF672E\",\"targetObjectId\":\"EFA02830-BB7A-4586-B615-A6DFF19FEBBF\"}}") + .toObject(Object.class), + response.getValue().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateUserInvitationTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateUserInvitationTests.java new file mode 100644 index 0000000000000..5376d62b8a26c --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesCreateUserInvitationTests.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class SentSharesCreateUserInvitationTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testSentSharesCreateUserInvitationTests() { + BinaryData sentShareInvitation = + BinaryData.fromString( + "{\"invitationKind\":\"User\",\"properties\":{\"expirationDate\":\"2025-07-21T23:52:00.7691109Z\",\"notify\":true,\"targetEmail\":\"testReceiver@microsoft.com\"}}"); + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.createSentShareInvitationWithResponse( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", + "9F154FA4-93D1-426B-A908-A9CAC7192B21", + sentShareInvitation, + requestOptions); + Assertions.assertEquals(201, response.getStatusCode()); + Assertions.assertEquals("Thu, 4 Aug 2022 13:04:32 GMT", response.getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"sentShares/sentShareInvitations\",\"id\":\"9F154FA4-93D1-426B-A908-A9CAC7192B21\",\"invitationKind\":\"User\",\"properties\":{\"expirationDate\":\"2025-07-21T23:52:00.7691109Z\",\"notify\":true,\"senderEmail\":\"testSender@microsoft.com\",\"senderName\":\"Test Sender\",\"senderTenantName\":\"Test Tenant\",\"sentAt\":\"2022-08-04T13:04:32.8172128Z\",\"shareStatus\":\"Detached\",\"state\":\"Succeeded\",\"targetEmail\":\"testReceiver@microsoft.com\"}}") + .toObject(Object.class), + response.getValue().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesDeleteInvitationTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesDeleteInvitationTests.java new file mode 100644 index 0000000000000..83eb3b5e6fd5b --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesDeleteInvitationTests.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.LongRunningOperationStatus; +import com.azure.core.util.polling.SyncPoller; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class SentSharesDeleteInvitationTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testSentSharesDeleteInvitationTests() { + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + sentSharesClient.beginDeleteSentShareInvitation( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", "9F154FA4-93D1-426B-A908-A9CAC7192B21", requestOptions); + Assertions.assertEquals( + LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, response.waitForCompletion().getStatus()); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesDeleteTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesDeleteTests.java new file mode 100644 index 0000000000000..5059c02dd6d00 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesDeleteTests.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import com.azure.core.util.polling.LongRunningOperationStatus; +import com.azure.core.util.polling.SyncPoller; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class SentSharesDeleteTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testSentSharesDeleteTests() { + RequestOptions requestOptions = new RequestOptions(); + SyncPoller response = + sentSharesClient.beginDeleteSentShare("FF4A2AAE-8755-47BB-9C00-A774B5A7006E", requestOptions); + Assertions.assertEquals( + LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, response.waitForCompletion().getStatus()); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetAdlsGen2AccountTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetAdlsGen2AccountTests.java new file mode 100644 index 0000000000000..1810ea9558c8a --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetAdlsGen2AccountTests.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class SentSharesGetAdlsGen2AccountTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testSentSharesGetAdlsGen2AccountTests() { + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.getSentShareWithResponse("FF4A2AAE-8755-47BB-9C00-A774B5A7006E", requestOptions); + Assertions.assertEquals(200, response.getStatusCode()); + Assertions.assertEquals("Wed, 13 Sep 2017 18:04:32 GMT", response.getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"SentShare\",\"id\":\"FF4A2AAE-8755-47BB-9C00-A774B5A7006E\",\"properties\":{\"description\":\"description\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"container1\",\"receiverPath\":\"ShareFile.txt\",\"senderPath\":\"directory/file.txt\"}]},\"storeKind\":\"AdlsGen2Account\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage\"}},\"createdAt\":\"2021-07-21T23:45:35.3708674Z\",\"dependsOn\":[],\"displayName\":\"sentShare1\",\"senderEmail\":\"johnsmith@contoso.com\",\"senderName\":\"John Smith\",\"senderTenantName\":\"Contoso\",\"state\":\"Succeeded\"},\"shareKind\":\"InPlace\"}") + .toObject(Object.class), + response.getValue().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetBlobAccountTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetBlobAccountTests.java new file mode 100644 index 0000000000000..e2cdf04e7f6da --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetBlobAccountTests.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class SentSharesGetBlobAccountTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testSentSharesGetBlobAccountTests() { + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.getSentShareWithResponse("FF4A2AAE-8755-47BB-9C00-A774B5A7006E", requestOptions); + Assertions.assertEquals(200, response.getStatusCode()); + Assertions.assertEquals("Wed, 13 Sep 2017 18:04:32 GMT", response.getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"SentShare\",\"id\":\"FF4A2AAE-8755-47BB-9C00-A774B5A7006E\",\"properties\":{\"description\":\"description\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"container1\",\"receiverPath\":\"ShareFile.txt\",\"senderPath\":\"directory/file.txt\"}]},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage\"}},\"createdAt\":\"2021-07-21T23:45:35.3708674Z\",\"dependsOn\":[],\"displayName\":\"sentShare1\",\"senderEmail\":\"johnsmith@contoso.com\",\"senderName\":\"John Smith\",\"senderTenantName\":\"Contoso\",\"state\":\"Succeeded\"},\"shareKind\":\"InPlace\"}") + .toObject(Object.class), + response.getValue().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetInvitationTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetInvitationTests.java new file mode 100644 index 0000000000000..41f7a7779114f --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetInvitationTests.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class SentSharesGetInvitationTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testSentSharesGetInvitationTests() { + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.getSentShareInvitationWithResponse( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", "9F154FA4-93D1-426B-A908-A9CAC7192B21", requestOptions); + Assertions.assertEquals(200, response.getStatusCode()); + Assertions.assertEquals("Fri, 12 Aug 2022 18:04:32 GMT", response.getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"sentShares/sentShareInvitations\",\"id\":\"9F154FA4-93D1-426B-A908-A9CAC7192B21\",\"invitationKind\":\"User\",\"properties\":{\"expirationDate\":null,\"notify\":true,\"senderEmail\":\"testSender@microsoft.com\",\"senderName\":\"Test Sender\",\"senderTenantName\":\"Test Tenant\",\"sentAt\":\"2022-08-04T13:04:32.8172128Z\",\"shareStatus\":\"Detached\",\"state\":\"Succeeded\",\"targetEmail\":\"testReceiver@microsoft.com\"}}") + .toObject(Object.class), + response.getValue().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetServiceInvitationTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetServiceInvitationTests.java new file mode 100644 index 0000000000000..89fd66573badb --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetServiceInvitationTests.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class SentSharesGetServiceInvitationTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testSentSharesGetServiceInvitationTests() { + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.getSentShareInvitationWithResponse( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", "9F154FA4-93D1-426B-A908-A9CAC7192B21", requestOptions); + Assertions.assertEquals(200, response.getStatusCode()); + Assertions.assertEquals("Fri, 12 Aug 2022 18:04:32 GMT", response.getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"sentShares/sentShareInvitations\",\"id\":\"9F154FA4-93D1-426B-A908-A9CAC7192B21\",\"invitationKind\":\"Service\",\"properties\":{\"expirationDate\":\"2022-08-11T13:04:32.8172128Z\",\"senderEmail\":\"testSender@microsoft.com\",\"senderName\":\"Test Sender\",\"senderTenantName\":\"Test Tenant\",\"sentAt\":\"2022-08-04T13:04:32.8172128Z\",\"shareStatus\":\"Detached\",\"state\":\"Succeeded\",\"targetActiveDirectoryId\":\"5DAE1226-9FAA-4D71-B8D4-87B81DFF672E\",\"targetObjectId\":\"EFA02830-BB7A-4586-B615-A6DFF19FEBBF\"}}") + .toObject(Object.class), + response.getValue().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetTests.java new file mode 100644 index 0000000000000..91e4521f7f9fa --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetTests.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class SentSharesGetTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testSentSharesGetTests() { + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.getSentShareWithResponse("FF4A2AAE-8755-47BB-9C00-A774B5A7006E", requestOptions); + Assertions.assertEquals(200, response.getStatusCode()); + Assertions.assertEquals("Wed, 13 Sep 2017 18:04:32 GMT", response.getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"SentShare\",\"id\":\"FF4A2AAE-8755-47BB-9C00-A774B5A7006E\",\"properties\":{\"description\":\"description\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"container1\",\"receiverPath\":\"ShareFile.txt\",\"senderPath\":\"directory/file.txt\"}]},\"storeKind\":\"AdlsGen2Account\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage\"}},\"createdAt\":\"2021-07-21T23:45:35.3708674Z\",\"dependsOn\":[],\"displayName\":\"sentShare1\",\"senderEmail\":\"johnsmith@contoso.com\",\"senderName\":\"John Smith\",\"senderTenantName\":\"Contoso\",\"state\":\"Succeeded\"},\"shareKind\":\"InPlace\"}") + .toObject(Object.class), + response.getValue().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetUserInvitationTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetUserInvitationTests.java new file mode 100644 index 0000000000000..864aa62c15277 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesGetUserInvitationTests.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class SentSharesGetUserInvitationTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testSentSharesGetUserInvitationTests() { + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.getSentShareInvitationWithResponse( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", "9F154FA4-93D1-426B-A908-A9CAC7192B21", requestOptions); + Assertions.assertEquals(200, response.getStatusCode()); + Assertions.assertEquals("Fri, 12 Aug 2022 18:04:32 GMT", response.getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"sentShares/sentShareInvitations\",\"id\":\"9F154FA4-93D1-426B-A908-A9CAC7192B21\",\"invitationKind\":\"User\",\"properties\":{\"expirationDate\":null,\"notify\":true,\"senderEmail\":\"testSender@microsoft.com\",\"senderName\":\"Test Sender\",\"senderTenantName\":\"Test Tenant\",\"sentAt\":\"2022-08-04T13:04:32.8172128Z\",\"shareStatus\":\"Detached\",\"state\":\"Succeeded\",\"targetEmail\":\"testReceiver@microsoft.com\"}}") + .toObject(Object.class), + response.getValue().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesListInvitationsTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesListInvitationsTests.java new file mode 100644 index 0000000000000..124b77da2438d --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesListInvitationsTests.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class SentSharesListInvitationsTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testSentSharesListInvitationsTests() { + RequestOptions requestOptions = new RequestOptions().addQueryParam("filter", "Name eq 'testName'"); + PagedIterable response = + sentSharesClient.getAllSentShareInvitations("FF4A2AAE-8755-47BB-9C00-A774B5A7006E", requestOptions); + Assertions.assertEquals(200, response.iterableByPage().iterator().next().getStatusCode()); + Assertions.assertEquals( + "Wed, 13 Sep 2017 17:33:55 GMT", + response.iterableByPage().iterator().next().getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "5d862c55-4de9-4a46-969d-cf1ed3e235ed", + response.iterableByPage().iterator().next().getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"sentShares/sentShareInvitations\",\"id\":\"9F154FA4-93D1-426B-A908-A9CAC7192B21\",\"invitationKind\":\"User\",\"properties\":{\"expirationDate\":null,\"notify\":true,\"senderEmail\":\"testSender@microsoft.com\",\"senderName\":\"Test Sender\",\"senderTenantName\":\"Test Tenant\",\"sentAt\":\"2022-08-04T13:04:32.8172128Z\",\"shareStatus\":\"Detached\",\"state\":\"Succeeded\",\"targetEmail\":\"testReceiver@microsoft.com\"}}") + .toObject(Object.class), + response.iterator().next().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesListTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesListTests.java new file mode 100644 index 0000000000000..aa4dfc32ed717 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesListTests.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class SentSharesListTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testSentSharesListTests() { + RequestOptions requestOptions = new RequestOptions().addQueryParam("filter", "Name eq 'testName'"); + PagedIterable response = + sentSharesClient.getAllSentShares( + "/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage", + requestOptions); + Assertions.assertEquals(200, response.iterableByPage().iterator().next().getStatusCode()); + Assertions.assertEquals( + "Wed, 13 Sep 2017 18:04:32 GMT", + response.iterableByPage().iterator().next().getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.iterableByPage().iterator().next().getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"SentShare\",\"id\":\"FF4A2AAE-8755-47BB-9C00-A774B5A7006E\",\"properties\":{\"description\":\"description\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"container1\",\"receiverPath\":\"ShareFile.txt\",\"senderPath\":\"directory/file.txt\"}]},\"storeKind\":\"AdlsGen2Account\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage\"}},\"createdAt\":\"2021-07-21T23:45:35.3708674Z\",\"dependsOn\":[],\"displayName\":\"sentShare1\",\"senderEmail\":\"johnsmith@contoso.com\",\"senderName\":\"John Smith\",\"senderTenantName\":\"Contoso\",\"state\":\"Succeeded\"},\"shareKind\":\"InPlace\"}") + .toObject(Object.class), + response.iterator().next().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesNotifyUserInvitationTests.java b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesNotifyUserInvitationTests.java new file mode 100644 index 0000000000000..b7a7ff8c1e172 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/java/com/azure/analytics/purview/sharing/generated/SentSharesNotifyUserInvitationTests.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.purview.sharing.generated; + +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +public final class SentSharesNotifyUserInvitationTests extends PurviewShareClientTestBase { + @Test + @Disabled + public void testSentSharesNotifyUserInvitationTests() { + RequestOptions requestOptions = new RequestOptions(); + Response response = + sentSharesClient.notifyUserSentShareInvitationWithResponse( + "FF4A2AAE-8755-47BB-9C00-A774B5A7006E", "9F154FA4-93D1-426B-A908-A9CAC7192B21", requestOptions); + Assertions.assertEquals(200, response.getStatusCode()); + Assertions.assertEquals("Fri, 12 Aug 2022 18:04:32 GMT", response.getHeaders().get("Date").getValue()); + Assertions.assertEquals( + "25c78f97-0b0a-4fe9-ad39-883a482265cd", + response.getHeaders().get("x-ms-correlation-request-id").getValue()); + Assertions.assertEquals( + BinaryData.fromString( + "{\"type\":\"sentShares/sentShareInvitations\",\"id\":\"9F154FA4-93D1-426B-A908-A9CAC7192B21\",\"invitationKind\":\"User\",\"properties\":{\"expirationDate\":null,\"notify\":true,\"senderEmail\":\"testSender@microsoft.com\",\"senderName\":\"Test Sender\",\"senderTenantName\":\"Test Tenant\",\"sentAt\":\"2022-08-04T13:04:32.8172128Z\",\"shareStatus\":\"Detached\",\"state\":\"Succeeded\",\"targetEmail\":\"testReceiver@microsoft.com\"}}") + .toObject(Object.class), + response.getValue().toObject(Object.class)); + } +} diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/ReceivedShareClientTest.attachReceivedShareTest.json b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/ReceivedShareClientTest.attachReceivedShareTest.json new file mode 100644 index 0000000000000..5ad08a92f9eb1 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/ReceivedShareClientTest.attachReceivedShareTest.json @@ -0,0 +1,261 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/4d665d00-82a2-4a65-98a0-675440149d12?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "6c02b694-92a0-42d1-a6c4-2c77db82b584", + "Content-Type" : "application/json" + }, + "Response" : { + "Operation-Id" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "201", + "Operation-Location" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Body" : "{\"properties\":{\"displayName\":\"sentshare379022a7cea\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:47.7451827Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"4d665d00-82a2-4a65-98a0-675440149d12\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:47 GMT", + "x-ms-correlation-request-id" : "32a8fdfd-9016-4c7a-a72f-c00506ce47b7", + "Location" : "/sentShares/4d665d00-82a2-4a65-98a0-675440149d12/4d665d00-82a2-4a65-98a0-675440149d12", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "3bc1f065-8d6e-4507-bc71-23760600b003" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "119", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:02:49.1767804Z\",\"endTime\":\"2023-02-23T22:02:49.1767804Z\",\"status\":\"Succeeded\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:02:48 GMT", + "x-ms-correlation-request-id" : "c5a8955f-433a-4c2b-9f42-e1faedd6d9c5", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares/4d665d00-82a2-4a65-98a0-675440149d12?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "d9b8bae5-2e64-4c5d-8d90-c1b5292e76e3" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "200", + "Body" : "{\"properties\":{\"displayName\":\"sentshare379022a7cea\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:47.7451827Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"4d665d00-82a2-4a65-98a0-675440149d12\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:48 GMT", + "x-ms-correlation-request-id" : "116d2fae-5b9e-46dd-9d88-b083f375874b", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/4d665d00-82a2-4a65-98a0-675440149d12/sentShareInvitations/d81c8398-b710-4818-879a-9620788ec7d5?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "1e6d01e5-945a-42a4-81ec-a2b7283bee11", + "Content-Type" : "application/json" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "403", + "StatusCode" : "201", + "Body" : "{\"properties\":{\"targetActiveDirectoryId\":\"4653a7b2-02ff-4155-8e55-2d0c7f3178a1\",\"targetObjectId\":\"68700464-B46c-4ec0-88ff-6061da36da69\",\"shareStatus\":\"Detached\",\"sentAt\":\"2023-02-23T22:02:49.7456528Z\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"state\":\"Succeeded\"},\"invitationKind\":\"Service\",\"id\":\"d81c8398-b710-4818-879a-9620788ec7d5\",\"type\":\"sentShares/sentShareInvitations\"}", + "Date" : "Thu, 23 Feb 2023 22:02:49 GMT", + "x-ms-correlation-request-id" : "c2deed4f-1079-4b5a-afb0-d81f48e9eaad", + "Location" : "/sentShares/4d665d00-82a2-4a65-98a0-675440149d12/sentShareInvitations/d81c8398-b710-4818-879a-9620788ec7d5/d81c8398-b710-4818-879a-9620788ec7d5", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/receivedShares/detached?api-version=2023-02-15-preview&%24orderBy=properties/createdAt%20desc", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "0e6dc670-a1b9-48d1-9bb4-ed2fa1721013" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "9207", + "StatusCode" : "200", + "Body" : "{\"value\":[{\"properties\":{\"createdAt\":\"2023-02-23T22:02:49.7456528Z\",\"sharedAt\":\"2023-02-23T22:02:49.7456528Z\",\"displayName\":\"sentshare379022a7cea\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"e14ba972-8767-4cbe-a75a-97c85474f8e2\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:40.5894477Z\",\"sharedAt\":\"2023-02-23T22:02:40.5894477Z\",\"displayName\":\"sentshare8517428f88f\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"4800fb6e-ceae-4524-8bfc-24b6c05b1980\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:37.1809543Z\",\"sharedAt\":\"2023-02-23T22:02:37.1809543Z\",\"displayName\":\"sentshare597919e056d\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"f409b269-cb44-42ef-8ab5-ba49a687d242\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:33.890921Z\",\"sharedAt\":\"2023-02-23T22:02:33.890921Z\",\"displayName\":\"sentshare97659933a7e\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"034f6930-8fd5-445b-b0d6-3c9c94d51d69\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:30.3006769Z\",\"sharedAt\":\"2023-02-23T22:02:30.3006769Z\",\"displayName\":\"sentshare83453a2708e\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"2a892988-dd34-49b4-a52f-b2e8ed4e4a56\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:54:06.8649425Z\",\"sharedAt\":\"2023-02-23T21:54:06.8649425Z\",\"displayName\":\"sentshare0630210ca71\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"0f802104-e0e4-49be-b7ad-3e516aacef13\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:52:10.5122039Z\",\"sharedAt\":\"2023-02-23T21:52:10.5122039Z\",\"displayName\":\"sentshare09748c52925\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"9c969177-5de6-4784-b375-e3319f7ca5c0\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:52:06.4618589Z\",\"sharedAt\":\"2023-02-23T21:52:06.4618589Z\",\"displayName\":\"sentshare23738c5ce9b\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"64806f18-cf24-423e-85f5-66cb0352a9a4\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:52:03.1722944Z\",\"sharedAt\":\"2023-02-23T21:52:03.1722944Z\",\"displayName\":\"sentshare1577327894f\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"3f003d9c-c0a3-4752-9f4f-ebfc509f6a6d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:51:59.6742859Z\",\"sharedAt\":\"2023-02-23T21:51:59.6742859Z\",\"displayName\":\"sentshare146011a3c0d\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"cb9cfc5b-8a57-476a-962e-2004ee9f98a2\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:46:45.5234076Z\",\"sharedAt\":\"2023-02-23T20:46:45.5234076Z\",\"displayName\":\"sentshare51599d3ef00\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"0aadc559-bfdc-4f27-b3dc-6ac1c3efc041\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:47.52211Z\",\"sharedAt\":\"2023-02-23T20:44:47.52211Z\",\"displayName\":\"sentshare64485f19d68\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"4d31e0a0-2a96-498e-b2d3-eab4f180281d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:43.847223Z\",\"sharedAt\":\"2023-02-23T20:44:43.847223Z\",\"displayName\":\"sentshare73659164553\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"2a8cb8c3-7bcc-4177-93aa-300dccac7381\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:40.2669919Z\",\"sharedAt\":\"2023-02-23T20:44:40.2669919Z\",\"displayName\":\"sentshare965610d3a1a\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"62352df9-4072-420b-934b-4e6fa5e82a5d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:36.7203133Z\",\"sharedAt\":\"2023-02-23T20:44:36.7203133Z\",\"displayName\":\"sentshare69495e5fa90\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"0e219651-a798-406c-8b86-ba3435029203\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:25:46.6834866Z\",\"sharedAt\":\"2023-02-23T18:25:46.6834866Z\",\"displayName\":\"sentshare63989f58566\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"a502614f-eff1-4940-abad-56462160d3a9\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:23:47.4522034Z\",\"sharedAt\":\"2023-02-23T18:23:47.4522034Z\",\"displayName\":\"sentshare432292adc31\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"a74b7563-c124-4507-a785-0ffcebcf397b\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:20:59.7222868Z\",\"sharedAt\":\"2023-02-23T18:20:59.7222868Z\",\"displayName\":\"sentshare157731779e2\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"998604ea-83a5-4d30-bf9e-b3be81abb18f\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:18:56.885621Z\",\"sharedAt\":\"2023-02-23T18:18:56.885621Z\",\"displayName\":\"sentshare95929ee40dc\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"b12225a1-690d-4a0c-aac2-2a8221840f9d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:18:14.7551063Z\",\"sharedAt\":\"2023-02-23T18:18:14.7551063Z\",\"displayName\":\"sentshare99810f4fe60\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"1cd74974-1f23-474e-aa50-016cfde21284\",\"type\":\"ReceivedShare\"}],\"nextLink\":\"https://account.purview.azure.com/share/receivedShares/detached?api-version=2023-02-15-preview&skipToken=%2BRID%3A~OCYSAKOW4tTa7B4AAAAAAA%3D%3D%23RT%3A1%23TRC%3A20%23RTD%3Ac6mZt4zCNqYKuvnA0y3GBTMxMzQuMTMuMzRVMjk7Mjk7MjUvODY2MjE3NFsA%23ISV%3A2%23IEO%3A65567%23QCF%3A8%23FPC%3AAgF7e3sYAHeqD4ARAUgABwEAqJp8ks8EAACePHkBAA%3D%3D&$orderBy=properties%2FcreatedAt%20desc\"}", + "Date" : "Thu, 23 Feb 2023 22:02:49 GMT", + "x-ms-correlation-request-id" : "6e480a88-eea4-4997-8bca-e5165ee891cc", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/receivedShares/e14ba972-8767-4cbe-a75a-97c85474f8e2?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "f58011f3-5069-44e8-9771-5ecf56fd3a01", + "Content-Type" : "application/json" + }, + "Response" : { + "Operation-Id" : "https://account.purview.azure.com/share/operationResults/3feff44b-2235-4e97-a141-e125c2027eb9?api-version=2023-02-15-preview", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "888", + "StatusCode" : "201", + "Operation-Location" : "https://account.purview.azure.com/share/operationResults/3feff44b-2235-4e97-a141-e125c2027eb9?api-version=2023-02-15-preview", + "Body" : "{\"properties\":{\"createdAt\":\"2023-02-23T22:02:49.7456528Z\",\"sharedAt\":\"2023-02-23T22:02:49.7456528Z\",\"displayName\":\"sentshare379022a7cea\",\"state\":\"Creating\",\"shareStatus\":\"Attached\",\"sentShareDescription\":\"A sample share\",\"receiverName\":\"my-share-app\",\"receiverTenantName\":\"Fabrikam\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\",\"sink\":{\"properties\":{\"containerName\":\"container302106f1e94\",\"folder\":\"folder48703908d\",\"mountPath\":\"mountpath57650c08\",\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/consumerstorage\",\"type\":\"ArmResourceReference\"}}},\"shareKind\":\"InPlace\",\"id\":\"e14ba972-8767-4cbe-a75a-97c85474f8e2\",\"type\":\"ReceivedShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:52 GMT", + "x-ms-correlation-request-id" : "16bd4a8e-b4b2-4e48-b4be-f4d3e3b13241", + "Location" : "/receivedShares/e14ba972-8767-4cbe-a75a-97c85474f8e2/e14ba972-8767-4cbe-a75a-97c85474f8e2", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/3feff44b-2235-4e97-a141-e125c2027eb9?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "681bdcb0-404b-45e0-9be5-9220f0d3abf1" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "91", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:02:53.3167432Z\",\"endTime\":null,\"status\":\"Running\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:04:31 GMT", + "x-ms-correlation-request-id" : "838dd448-0f2c-4268-9d92-e895d2070800", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/3feff44b-2235-4e97-a141-e125c2027eb9?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "abdfac1b-9594-423b-99e6-78b58cb2953f" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "91", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:02:53.3167432Z\",\"endTime\":null,\"status\":\"Running\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:04:32 GMT", + "x-ms-correlation-request-id" : "8cd3b556-8dc3-4d82-9457-85a8c030b656", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/3feff44b-2235-4e97-a141-e125c2027eb9?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "8e6d61ed-6b53-4698-8130-d6a2f0898e1c" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "91", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:02:53.3167432Z\",\"endTime\":null,\"status\":\"Running\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:04:33 GMT", + "x-ms-correlation-request-id" : "b94a18f6-ddc2-4ed3-8c88-c64634c40c3e", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/3feff44b-2235-4e97-a141-e125c2027eb9?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "bb2e194f-7b49-4fa4-90bc-5cd0ee0df111" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "91", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:02:53.3167432Z\",\"endTime\":null,\"status\":\"Running\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:04:35 GMT", + "x-ms-correlation-request-id" : "2630ff53-86a0-4bcb-b065-3d106a4220a0", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/3feff44b-2235-4e97-a141-e125c2027eb9?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "150f7536-1a4c-4b79-92b6-132d586a97e5" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "91", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:02:53.3167432Z\",\"endTime\":null,\"status\":\"Running\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:04:36 GMT", + "x-ms-correlation-request-id" : "6fe6c745-74e2-4a47-9522-8d531904ddc4", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/3feff44b-2235-4e97-a141-e125c2027eb9?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "f97b2ecb-4550-4349-bbb6-306c7bba62db" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "91", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:02:53.3167432Z\",\"endTime\":null,\"status\":\"Running\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:04:37 GMT", + "x-ms-correlation-request-id" : "db44843e-1366-4d86-aa0d-357dda647441", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/3feff44b-2235-4e97-a141-e125c2027eb9?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "78e0666c-096a-46cf-b4d6-4453a63b453a" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "93", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:02:53.3167432Z\",\"endTime\":null,\"status\":\"Succeeded\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:04:38 GMT", + "x-ms-correlation-request-id" : "f1ee73d6-76b5-41b8-8466-01f271563fc4", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "4d665d00-82a2-4a65-98a0-675440149d12", "d81c8398-b710-4818-879a-9620788ec7d5", "sentshare379022a7cea", "container302106f1e94", "folder48703908d", "mountpath57650c08" ] +} \ No newline at end of file diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/ReceivedShareClientTest.deleteReceivedShareTest.json b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/ReceivedShareClientTest.deleteReceivedShareTest.json new file mode 100644 index 0000000000000..36aa1705c2fa1 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/ReceivedShareClientTest.deleteReceivedShareTest.json @@ -0,0 +1,143 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/01a359cc-6a0c-4900-aee9-49550365f681?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "12999e86-a8a5-4b25-bc71-f7c1c937fb15", + "Content-Type" : "application/json" + }, + "Response" : { + "Operation-Id" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "201", + "Operation-Location" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Body" : "{\"properties\":{\"displayName\":\"sentshare82149eb4c6c\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:42.4676526Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"01a359cc-6a0c-4900-aee9-49550365f681\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:42 GMT", + "x-ms-correlation-request-id" : "04680ba9-fd06-4c89-9964-7c93c86b8e15", + "Location" : "/sentShares/01a359cc-6a0c-4900-aee9-49550365f681/01a359cc-6a0c-4900-aee9-49550365f681", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "e8fefe3d-1e30-4afd-8400-8f99e5c157cf" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "117", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:02:43.895248Z\",\"endTime\":\"2023-02-23T22:02:43.895248Z\",\"status\":\"Succeeded\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:02:43 GMT", + "x-ms-correlation-request-id" : "ea25a64d-7951-47f6-8e16-794fe07404b5", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares/01a359cc-6a0c-4900-aee9-49550365f681?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "c12c8c8a-2160-4769-bdc0-a4ca8381977b" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "200", + "Body" : "{\"properties\":{\"displayName\":\"sentshare82149eb4c6c\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:42.4676526Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"01a359cc-6a0c-4900-aee9-49550365f681\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:43 GMT", + "x-ms-correlation-request-id" : "ef3add64-94d9-464d-9a37-a5473d860961", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/01a359cc-6a0c-4900-aee9-49550365f681/sentShareInvitations/57cc8f41-1d06-467e-b199-20416ebb6ae4?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "afb452ec-4008-4452-a8f9-056cff74550d", + "Content-Type" : "application/json" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "403", + "StatusCode" : "201", + "Body" : "{\"properties\":{\"targetActiveDirectoryId\":\"4653a7b2-02ff-4155-8e55-2d0c7f3178a1\",\"targetObjectId\":\"68700464-B46c-4ec0-88ff-6061da36da69\",\"shareStatus\":\"Detached\",\"sentAt\":\"2023-02-23T22:02:44.3228481Z\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"state\":\"Succeeded\"},\"invitationKind\":\"Service\",\"id\":\"57cc8f41-1d06-467e-b199-20416ebb6ae4\",\"type\":\"sentShares/sentShareInvitations\"}", + "Date" : "Thu, 23 Feb 2023 22:02:44 GMT", + "x-ms-correlation-request-id" : "3d0c2f7c-ed49-477c-a92b-9df106baabe9", + "Location" : "/sentShares/01a359cc-6a0c-4900-aee9-49550365f681/sentShareInvitations/57cc8f41-1d06-467e-b199-20416ebb6ae4/57cc8f41-1d06-467e-b199-20416ebb6ae4", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/receivedShares/detached?api-version=2023-02-15-preview&%24orderBy=properties/createdAt%20desc", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "e4edc2d9-e317-4659-ab74-c0269b744eb7" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "9201", + "StatusCode" : "200", + "Body" : "{\"value\":[{\"properties\":{\"createdAt\":\"2023-02-23T22:02:44.3228481Z\",\"sharedAt\":\"2023-02-23T22:02:44.3228481Z\",\"displayName\":\"sentshare82149eb4c6c\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"a4917709-e340-4b8b-a541-32eecf5a866c\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:40.5894477Z\",\"sharedAt\":\"2023-02-23T22:02:40.5894477Z\",\"displayName\":\"sentshare8517428f88f\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"4800fb6e-ceae-4524-8bfc-24b6c05b1980\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:37.1809543Z\",\"sharedAt\":\"2023-02-23T22:02:37.1809543Z\",\"displayName\":\"sentshare597919e056d\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"f409b269-cb44-42ef-8ab5-ba49a687d242\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:33.890921Z\",\"sharedAt\":\"2023-02-23T22:02:33.890921Z\",\"displayName\":\"sentshare97659933a7e\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"034f6930-8fd5-445b-b0d6-3c9c94d51d69\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:30.3006769Z\",\"sharedAt\":\"2023-02-23T22:02:30.3006769Z\",\"displayName\":\"sentshare83453a2708e\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"2a892988-dd34-49b4-a52f-b2e8ed4e4a56\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:54:06.8649425Z\",\"sharedAt\":\"2023-02-23T21:54:06.8649425Z\",\"displayName\":\"sentshare0630210ca71\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"0f802104-e0e4-49be-b7ad-3e516aacef13\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:52:10.5122039Z\",\"sharedAt\":\"2023-02-23T21:52:10.5122039Z\",\"displayName\":\"sentshare09748c52925\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"9c969177-5de6-4784-b375-e3319f7ca5c0\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:52:06.4618589Z\",\"sharedAt\":\"2023-02-23T21:52:06.4618589Z\",\"displayName\":\"sentshare23738c5ce9b\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"64806f18-cf24-423e-85f5-66cb0352a9a4\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:52:03.1722944Z\",\"sharedAt\":\"2023-02-23T21:52:03.1722944Z\",\"displayName\":\"sentshare1577327894f\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"3f003d9c-c0a3-4752-9f4f-ebfc509f6a6d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:51:59.6742859Z\",\"sharedAt\":\"2023-02-23T21:51:59.6742859Z\",\"displayName\":\"sentshare146011a3c0d\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"cb9cfc5b-8a57-476a-962e-2004ee9f98a2\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:46:45.5234076Z\",\"sharedAt\":\"2023-02-23T20:46:45.5234076Z\",\"displayName\":\"sentshare51599d3ef00\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"0aadc559-bfdc-4f27-b3dc-6ac1c3efc041\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:47.52211Z\",\"sharedAt\":\"2023-02-23T20:44:47.52211Z\",\"displayName\":\"sentshare64485f19d68\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"4d31e0a0-2a96-498e-b2d3-eab4f180281d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:43.847223Z\",\"sharedAt\":\"2023-02-23T20:44:43.847223Z\",\"displayName\":\"sentshare73659164553\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"2a8cb8c3-7bcc-4177-93aa-300dccac7381\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:40.2669919Z\",\"sharedAt\":\"2023-02-23T20:44:40.2669919Z\",\"displayName\":\"sentshare965610d3a1a\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"62352df9-4072-420b-934b-4e6fa5e82a5d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:36.7203133Z\",\"sharedAt\":\"2023-02-23T20:44:36.7203133Z\",\"displayName\":\"sentshare69495e5fa90\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"0e219651-a798-406c-8b86-ba3435029203\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:25:46.6834866Z\",\"sharedAt\":\"2023-02-23T18:25:46.6834866Z\",\"displayName\":\"sentshare63989f58566\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"a502614f-eff1-4940-abad-56462160d3a9\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:23:47.4522034Z\",\"sharedAt\":\"2023-02-23T18:23:47.4522034Z\",\"displayName\":\"sentshare432292adc31\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"a74b7563-c124-4507-a785-0ffcebcf397b\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:20:59.7222868Z\",\"sharedAt\":\"2023-02-23T18:20:59.7222868Z\",\"displayName\":\"sentshare157731779e2\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"998604ea-83a5-4d30-bf9e-b3be81abb18f\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:18:56.885621Z\",\"sharedAt\":\"2023-02-23T18:18:56.885621Z\",\"displayName\":\"sentshare95929ee40dc\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"b12225a1-690d-4a0c-aac2-2a8221840f9d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:18:14.7551063Z\",\"sharedAt\":\"2023-02-23T18:18:14.7551063Z\",\"displayName\":\"sentshare99810f4fe60\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"1cd74974-1f23-474e-aa50-016cfde21284\",\"type\":\"ReceivedShare\"}],\"nextLink\":\"https://account.purview.azure.com/share/receivedShares/detached?api-version=2023-02-15-preview&skipToken=%2BRID%3A~OCYSAKOW4tTa7B4AAAAAAA%3D%3D%23RT%3A1%23TRC%3A20%23RTD%3Ac6mZt4zCNqYKuvnA0y3GBTMxMzQuMTMuMzRVMjk7Mjk7MjUvODY2MjE3NFsA%23ISV%3A2%23IEO%3A65567%23QCF%3A8%23FPC%3AAgF7e3sWAHeqD4ARAUgABgEAqJp8ks8EAACePPk%3D&$orderBy=properties%2FcreatedAt%20desc\"}", + "Date" : "Thu, 23 Feb 2023 22:02:44 GMT", + "x-ms-correlation-request-id" : "85c0eb2e-8332-4a2d-baf4-eb875ada4588", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://account.purview.azure.com/share/receivedShares/a4917709-e340-4b8b-a541-32eecf5a866c?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "085bf1a8-501c-4c89-a4c1-9f54d5bf0d40" + }, + "Response" : { + "Operation-Id" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "Operation-Location" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Date" : "Thu, 23 Feb 2023 22:02:45 GMT", + "x-ms-correlation-request-id" : "224367cf-ce38-4ca6-8387-cff28c6ac4aa" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "54e891dc-ce2b-458e-9b86-0e9adea0b987" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "119", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:02:46.9893375Z\",\"endTime\":\"2023-02-23T22:02:46.9893375Z\",\"status\":\"Succeeded\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:02:46 GMT", + "x-ms-correlation-request-id" : "9ef1b8be-2170-41ba-93ba-ff71f5e47a66", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "01a359cc-6a0c-4900-aee9-49550365f681", "57cc8f41-1d06-467e-b199-20416ebb6ae4", "sentshare82149eb4c6c" ] +} \ No newline at end of file diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/ReceivedShareClientTest.getAllDetachedShareTest.json b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/ReceivedShareClientTest.getAllDetachedShareTest.json new file mode 100644 index 0000000000000..3f50014679101 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/ReceivedShareClientTest.getAllDetachedShareTest.json @@ -0,0 +1,162 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/52fec738-28a8-4931-9d34-857513f04d15?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "e12bf852-c333-4cf9-8ebd-30fc097dbb8d", + "Content-Type" : "application/json" + }, + "Response" : { + "Operation-Id" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "201", + "Operation-Location" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Body" : "{\"properties\":{\"displayName\":\"sentshare316495bc858\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:04:40.5177203Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"52fec738-28a8-4931-9d34-857513f04d15\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:04:40 GMT", + "x-ms-correlation-request-id" : "23b38726-3d70-47e9-a803-102bad88e8f0", + "Location" : "/sentShares/52fec738-28a8-4931-9d34-857513f04d15/52fec738-28a8-4931-9d34-857513f04d15", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "b41a4fdb-94e7-4e4a-865e-94288b5b4449" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "119", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:04:42.3124388Z\",\"endTime\":\"2023-02-23T22:04:42.3124388Z\",\"status\":\"Succeeded\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:04:41 GMT", + "x-ms-correlation-request-id" : "df219fbf-4423-45d4-b2ea-9637189dbe3a", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares/52fec738-28a8-4931-9d34-857513f04d15?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "2593571d-a639-4e78-a070-ff4722b4ee04" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "200", + "Body" : "{\"properties\":{\"displayName\":\"sentshare316495bc858\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:04:40.5177203Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"52fec738-28a8-4931-9d34-857513f04d15\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:04:41 GMT", + "x-ms-correlation-request-id" : "b00ccee1-f20b-4bee-aa2a-7897d4a59a00", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/52fec738-28a8-4931-9d34-857513f04d15/sentShareInvitations/6e1b0f5f-0b1c-4ebc-b0b3-1334ebf48f54?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "63222b23-1915-420f-bdcb-1065208bdb1c", + "Content-Type" : "application/json" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "403", + "StatusCode" : "201", + "Body" : "{\"properties\":{\"targetActiveDirectoryId\":\"4653a7b2-02ff-4155-8e55-2d0c7f3178a1\",\"targetObjectId\":\"68700464-B46c-4ec0-88ff-6061da36da69\",\"shareStatus\":\"Detached\",\"sentAt\":\"2023-02-23T22:04:42.7567868Z\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"state\":\"Succeeded\"},\"invitationKind\":\"Service\",\"id\":\"6e1b0f5f-0b1c-4ebc-b0b3-1334ebf48f54\",\"type\":\"sentShares/sentShareInvitations\"}", + "Date" : "Thu, 23 Feb 2023 22:04:42 GMT", + "x-ms-correlation-request-id" : "2dfc7342-5c6f-4992-8e10-0b49cb706e64", + "Location" : "/sentShares/52fec738-28a8-4931-9d34-857513f04d15/sentShareInvitations/6e1b0f5f-0b1c-4ebc-b0b3-1334ebf48f54/6e1b0f5f-0b1c-4ebc-b0b3-1334ebf48f54", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/receivedShares/detached?api-version=2023-02-15-preview&%24orderBy=properties/createdAt%20desc", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "ffd03562-b6fc-482a-bc20-499ad0494cb9" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "9207", + "StatusCode" : "200", + "Body" : "{\"value\":[{\"properties\":{\"createdAt\":\"2023-02-23T22:04:42.7567868Z\",\"sharedAt\":\"2023-02-23T22:04:42.7567868Z\",\"displayName\":\"sentshare316495bc858\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"c1216c5f-c26b-418d-86bc-84215f3b3816\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:40.5894477Z\",\"sharedAt\":\"2023-02-23T22:02:40.5894477Z\",\"displayName\":\"sentshare8517428f88f\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"4800fb6e-ceae-4524-8bfc-24b6c05b1980\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:37.1809543Z\",\"sharedAt\":\"2023-02-23T22:02:37.1809543Z\",\"displayName\":\"sentshare597919e056d\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"f409b269-cb44-42ef-8ab5-ba49a687d242\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:33.890921Z\",\"sharedAt\":\"2023-02-23T22:02:33.890921Z\",\"displayName\":\"sentshare97659933a7e\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"034f6930-8fd5-445b-b0d6-3c9c94d51d69\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:30.3006769Z\",\"sharedAt\":\"2023-02-23T22:02:30.3006769Z\",\"displayName\":\"sentshare83453a2708e\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"2a892988-dd34-49b4-a52f-b2e8ed4e4a56\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:54:06.8649425Z\",\"sharedAt\":\"2023-02-23T21:54:06.8649425Z\",\"displayName\":\"sentshare0630210ca71\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"0f802104-e0e4-49be-b7ad-3e516aacef13\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:52:10.5122039Z\",\"sharedAt\":\"2023-02-23T21:52:10.5122039Z\",\"displayName\":\"sentshare09748c52925\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"9c969177-5de6-4784-b375-e3319f7ca5c0\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:52:06.4618589Z\",\"sharedAt\":\"2023-02-23T21:52:06.4618589Z\",\"displayName\":\"sentshare23738c5ce9b\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"64806f18-cf24-423e-85f5-66cb0352a9a4\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:52:03.1722944Z\",\"sharedAt\":\"2023-02-23T21:52:03.1722944Z\",\"displayName\":\"sentshare1577327894f\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"3f003d9c-c0a3-4752-9f4f-ebfc509f6a6d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:51:59.6742859Z\",\"sharedAt\":\"2023-02-23T21:51:59.6742859Z\",\"displayName\":\"sentshare146011a3c0d\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"cb9cfc5b-8a57-476a-962e-2004ee9f98a2\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:46:45.5234076Z\",\"sharedAt\":\"2023-02-23T20:46:45.5234076Z\",\"displayName\":\"sentshare51599d3ef00\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"0aadc559-bfdc-4f27-b3dc-6ac1c3efc041\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:47.52211Z\",\"sharedAt\":\"2023-02-23T20:44:47.52211Z\",\"displayName\":\"sentshare64485f19d68\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"4d31e0a0-2a96-498e-b2d3-eab4f180281d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:43.847223Z\",\"sharedAt\":\"2023-02-23T20:44:43.847223Z\",\"displayName\":\"sentshare73659164553\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"2a8cb8c3-7bcc-4177-93aa-300dccac7381\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:40.2669919Z\",\"sharedAt\":\"2023-02-23T20:44:40.2669919Z\",\"displayName\":\"sentshare965610d3a1a\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"62352df9-4072-420b-934b-4e6fa5e82a5d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:36.7203133Z\",\"sharedAt\":\"2023-02-23T20:44:36.7203133Z\",\"displayName\":\"sentshare69495e5fa90\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"0e219651-a798-406c-8b86-ba3435029203\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:25:46.6834866Z\",\"sharedAt\":\"2023-02-23T18:25:46.6834866Z\",\"displayName\":\"sentshare63989f58566\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"a502614f-eff1-4940-abad-56462160d3a9\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:23:47.4522034Z\",\"sharedAt\":\"2023-02-23T18:23:47.4522034Z\",\"displayName\":\"sentshare432292adc31\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"a74b7563-c124-4507-a785-0ffcebcf397b\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:20:59.7222868Z\",\"sharedAt\":\"2023-02-23T18:20:59.7222868Z\",\"displayName\":\"sentshare157731779e2\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"998604ea-83a5-4d30-bf9e-b3be81abb18f\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:18:56.885621Z\",\"sharedAt\":\"2023-02-23T18:18:56.885621Z\",\"displayName\":\"sentshare95929ee40dc\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"b12225a1-690d-4a0c-aac2-2a8221840f9d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:18:14.7551063Z\",\"sharedAt\":\"2023-02-23T18:18:14.7551063Z\",\"displayName\":\"sentshare99810f4fe60\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"1cd74974-1f23-474e-aa50-016cfde21284\",\"type\":\"ReceivedShare\"}],\"nextLink\":\"https://account.purview.azure.com/share/receivedShares/detached?api-version=2023-02-15-preview&skipToken=%2BRID%3A~OCYSAKOW4tTa7B4AAAAAAA%3D%3D%23RT%3A1%23TRC%3A20%23RTD%3Ac6mZt4zCNqYKuvnA0y3GBTMxMzQuMTMuMzRVMjk7Mjk7MjUvODY2MjE3NFsA%23ISV%3A2%23IEO%3A65567%23QCF%3A8%23FPC%3AAgF7e3sYAHeqD4ARAUgABwEAqJp8ks8EAACePHkCAA%3D%3D&$orderBy=properties%2FcreatedAt%20desc\"}", + "Date" : "Thu, 23 Feb 2023 22:04:42 GMT", + "x-ms-correlation-request-id" : "13a14056-4a24-4529-ad1d-bce794a47402", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/receivedShares/detached?api-version=2023-02-15-preview&%24orderBy=properties/createdAt%20desc", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "67cd342f-ba78-4bf8-bf36-708ef74eefbd" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "9207", + "StatusCode" : "200", + "Body" : "{\"value\":[{\"properties\":{\"createdAt\":\"2023-02-23T22:04:42.7567868Z\",\"sharedAt\":\"2023-02-23T22:04:42.7567868Z\",\"displayName\":\"sentshare316495bc858\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"c1216c5f-c26b-418d-86bc-84215f3b3816\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:40.5894477Z\",\"sharedAt\":\"2023-02-23T22:02:40.5894477Z\",\"displayName\":\"sentshare8517428f88f\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"4800fb6e-ceae-4524-8bfc-24b6c05b1980\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:37.1809543Z\",\"sharedAt\":\"2023-02-23T22:02:37.1809543Z\",\"displayName\":\"sentshare597919e056d\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"f409b269-cb44-42ef-8ab5-ba49a687d242\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:33.890921Z\",\"sharedAt\":\"2023-02-23T22:02:33.890921Z\",\"displayName\":\"sentshare97659933a7e\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"034f6930-8fd5-445b-b0d6-3c9c94d51d69\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:30.3006769Z\",\"sharedAt\":\"2023-02-23T22:02:30.3006769Z\",\"displayName\":\"sentshare83453a2708e\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"2a892988-dd34-49b4-a52f-b2e8ed4e4a56\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:54:06.8649425Z\",\"sharedAt\":\"2023-02-23T21:54:06.8649425Z\",\"displayName\":\"sentshare0630210ca71\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"0f802104-e0e4-49be-b7ad-3e516aacef13\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:52:10.5122039Z\",\"sharedAt\":\"2023-02-23T21:52:10.5122039Z\",\"displayName\":\"sentshare09748c52925\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"9c969177-5de6-4784-b375-e3319f7ca5c0\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:52:06.4618589Z\",\"sharedAt\":\"2023-02-23T21:52:06.4618589Z\",\"displayName\":\"sentshare23738c5ce9b\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"64806f18-cf24-423e-85f5-66cb0352a9a4\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:52:03.1722944Z\",\"sharedAt\":\"2023-02-23T21:52:03.1722944Z\",\"displayName\":\"sentshare1577327894f\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"3f003d9c-c0a3-4752-9f4f-ebfc509f6a6d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:51:59.6742859Z\",\"sharedAt\":\"2023-02-23T21:51:59.6742859Z\",\"displayName\":\"sentshare146011a3c0d\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"cb9cfc5b-8a57-476a-962e-2004ee9f98a2\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:46:45.5234076Z\",\"sharedAt\":\"2023-02-23T20:46:45.5234076Z\",\"displayName\":\"sentshare51599d3ef00\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"0aadc559-bfdc-4f27-b3dc-6ac1c3efc041\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:47.52211Z\",\"sharedAt\":\"2023-02-23T20:44:47.52211Z\",\"displayName\":\"sentshare64485f19d68\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"4d31e0a0-2a96-498e-b2d3-eab4f180281d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:43.847223Z\",\"sharedAt\":\"2023-02-23T20:44:43.847223Z\",\"displayName\":\"sentshare73659164553\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"2a8cb8c3-7bcc-4177-93aa-300dccac7381\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:40.2669919Z\",\"sharedAt\":\"2023-02-23T20:44:40.2669919Z\",\"displayName\":\"sentshare965610d3a1a\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"62352df9-4072-420b-934b-4e6fa5e82a5d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:36.7203133Z\",\"sharedAt\":\"2023-02-23T20:44:36.7203133Z\",\"displayName\":\"sentshare69495e5fa90\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"0e219651-a798-406c-8b86-ba3435029203\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:25:46.6834866Z\",\"sharedAt\":\"2023-02-23T18:25:46.6834866Z\",\"displayName\":\"sentshare63989f58566\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"a502614f-eff1-4940-abad-56462160d3a9\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:23:47.4522034Z\",\"sharedAt\":\"2023-02-23T18:23:47.4522034Z\",\"displayName\":\"sentshare432292adc31\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"a74b7563-c124-4507-a785-0ffcebcf397b\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:20:59.7222868Z\",\"sharedAt\":\"2023-02-23T18:20:59.7222868Z\",\"displayName\":\"sentshare157731779e2\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"998604ea-83a5-4d30-bf9e-b3be81abb18f\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:18:56.885621Z\",\"sharedAt\":\"2023-02-23T18:18:56.885621Z\",\"displayName\":\"sentshare95929ee40dc\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"b12225a1-690d-4a0c-aac2-2a8221840f9d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:18:14.7551063Z\",\"sharedAt\":\"2023-02-23T18:18:14.7551063Z\",\"displayName\":\"sentshare99810f4fe60\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"1cd74974-1f23-474e-aa50-016cfde21284\",\"type\":\"ReceivedShare\"}],\"nextLink\":\"https://account.purview.azure.com/share/receivedShares/detached?api-version=2023-02-15-preview&skipToken=%2BRID%3A~OCYSAKOW4tTa7B4AAAAAAA%3D%3D%23RT%3A1%23TRC%3A20%23RTD%3Ac6mZt4zCNqYKuvnA0y3GBTMxMzQuMTMuMzRVMjk7Mjk7MjUvODY2MjE3NFsA%23ISV%3A2%23IEO%3A65567%23QCF%3A8%23FPC%3AAgF7e3sYAHeqD4ARAUgABwEAqJp8ks8EAACePHkCAA%3D%3D&$orderBy=properties%2FcreatedAt%20desc\"}", + "Date" : "Thu, 23 Feb 2023 22:04:43 GMT", + "x-ms-correlation-request-id" : "0fb50266-6c7e-4531-8fd1-3b6286e1a186", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/receivedShares/detached?api-version=2023-02-15-preview&skipToken=%2BRID%3A~OCYSAKOW4tTa7B4AAAAAAA%3D%3D%23RT%3A1%23TRC%3A20%23RTD%3Ac6mZt4zCNqYKuvnA0y3GBTMxMzQuMTMuMzRVMjk7Mjk7MjUvODY2MjE3NFsA%23ISV%3A2%23IEO%3A65567%23QCF%3A8%23FPC%3AAgF7e3sYAHeqD4ARAUgABwEAqJp8ks8EAACePHkCAA%3D%3D&$orderBy=properties%2FcreatedAt%20desc", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "7c4965ed-553f-4650-ac4a-526318562a42" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "9153", + "StatusCode" : "200", + "Body" : "{\"value\":[{\"properties\":{\"createdAt\":\"2023-02-23T18:12:49.7159102Z\",\"sharedAt\":\"2023-02-23T18:12:49.7159102Z\",\"displayName\":\"sentshare004838add73\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"85d6c3c0-6c17-4d65-b394-4e62b9a727ac\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:12:08.8115125Z\",\"sharedAt\":\"2023-02-23T18:12:08.8115125Z\",\"displayName\":\"sentshare003416b780f\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"87ad697b-ca21-4ba1-94f4-5450824ce1a4\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:11:05.2127003Z\",\"sharedAt\":\"2023-02-23T18:11:05.2127003Z\",\"displayName\":\"sentshare45205a30927\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"9f2b04e3-4ab1-42e4-9b2c-a4c30c1216e7\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:09:06.5287112Z\",\"sharedAt\":\"2023-02-23T18:09:06.5287112Z\",\"displayName\":\"sentshare7710391b351\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"9e9fb6f3-ebef-4f2b-9d49-4693690db9fb\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:07:55.1600521Z\",\"sharedAt\":\"2023-02-23T18:07:55.1600521Z\",\"displayName\":\"sentshare1722007e4b5\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"694ac7d8-c7ca-407a-b411-82cc480f05b6\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:05:48.6067002Z\",\"sharedAt\":\"2023-02-23T18:05:48.6067002Z\",\"displayName\":\"sentshare96335c5e8ad\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"d8595f56-e042-4f77-bce4-b553dcafdc72\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T17:45:45.317269Z\",\"sharedAt\":\"2023-02-23T17:45:45.317269Z\",\"displayName\":\"sentshare23146a88ba2\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"3e418013-dd61-4e1b-aa09-e4845eefe6c0\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T17:45:17.8827172Z\",\"sharedAt\":\"2023-02-23T17:45:17.8827172Z\",\"displayName\":\"sentshare892497cbe97\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"fe25e0b3-eded-4e11-a346-c2655e610b6f\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T17:45:13.9083719Z\",\"sharedAt\":\"2023-02-23T17:45:13.9083719Z\",\"displayName\":\"sentshare07216075e49\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"974e506e-3151-459f-95e4-bb628bdc165b\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T17:45:10.1143802Z\",\"sharedAt\":\"2023-02-23T17:45:10.1143802Z\",\"displayName\":\"sentshare464705de1eb\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"08ba17e2-55cf-4f97-b5e2-f7b69fb740ff\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T17:35:38.281688Z\",\"sharedAt\":\"2023-02-23T17:35:38.281688Z\",\"displayName\":\"sentshare360852db4e4\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"53ee2a68-4740-41d6-ba6a-c4d4e54f7603\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T17:27:32.4790116Z\",\"sharedAt\":\"2023-02-23T17:27:32.4790116Z\",\"displayName\":\"sentshare15995ad6879\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"e43654cc-f07b-4b6a-9c86-36713a3390db\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T17:24:58.7611438Z\",\"sharedAt\":\"2023-02-23T17:24:58.7611438Z\",\"displayName\":\"sentshare38516c0acb9\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"02a60c54-fa26-42f4-91e7-63c6dfc384c8\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T17:16:41.5000823Z\",\"sharedAt\":\"2023-02-23T17:16:41.5000823Z\",\"displayName\":\"sentshare73181674da2\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"947eb264-4e5c-416a-af3b-1461fd4876de\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T16:35:47.9425609Z\",\"sharedAt\":\"2023-02-23T16:35:47.9425609Z\",\"displayName\":\"sentshare378643de831\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"f9a8ab4e-207b-4996-927b-c2531038ed57\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T16:22:34.0738588Z\",\"sharedAt\":\"2023-02-23T16:22:34.0738588Z\",\"displayName\":\"sentshare683830b6f93\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"a48a4a19-c6ca-47a5-afb7-616d1a44c3e3\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T16:11:32.7799373Z\",\"sharedAt\":\"2023-02-23T16:11:32.7799373Z\",\"displayName\":\"sentshare56827731dfe\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"48ef4a64-7774-4e2e-8edb-7e3d2238f9bc\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-17T23:54:29.5100222Z\",\"sharedAt\":\"2023-02-17T23:54:29.5100222Z\",\"displayName\":\"sentshare952831a55d3\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"1a7d9c1b-fc8a-4697-b41e-b8733f94684a\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-17T23:49:44.6905162Z\",\"sharedAt\":\"2023-02-17T23:49:44.6905162Z\",\"displayName\":\"sentshare87291a44a18\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"7ac358be-0f82-463c-97fb-4c3e663c3f80\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-15T21:43:28.1927836Z\",\"sharedAt\":\"2023-02-15T21:43:28.1927836Z\",\"displayName\":\"test\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"senderName\":\"Kevin Bowersox\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"australiaeast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"f155bd44-2cd3-480b-94f0-23cbc53077b4\",\"type\":\"ReceivedShare\"}],\"nextLink\":\"https://account.purview.azure.com/share/receivedShares/detached?api-version=2023-02-15-preview&skipToken=%2BRID%3A~OCYSAKOW4tSP6h4AAAAAAA%3D%3D%23RT%3A2%23TRC%3A40%23RTD%3Ac6mZt4zCNqYKuvnA0y3GBTMxMzQuMTMuMjZVMzI7NTQ7MzkvMjozODk0N1sA%23ISV%3A2%23IEO%3A65567%23QCF%3A8%23FPC%3AAgF7e3sYAHeqD4ARAUgABwEAqJp8ks8EAACePHkCAA%3D%3D&$orderBy=properties%2FcreatedAt%20desc\"}", + "Date" : "Thu, 23 Feb 2023 22:04:43 GMT", + "x-ms-correlation-request-id" : "9548d9a8-7baa-4958-b3cf-fa04399b44a0", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/receivedShares/detached?api-version=2023-02-15-preview&skipToken=%2BRID%3A~OCYSAKOW4tSP6h4AAAAAAA%3D%3D%23RT%3A2%23TRC%3A40%23RTD%3Ac6mZt4zCNqYKuvnA0y3GBTMxMzQuMTMuMjZVMzI7NTQ7MzkvMjozODk0N1sA%23ISV%3A2%23IEO%3A65567%23QCF%3A8%23FPC%3AAgF7e3sYAHeqD4ARAUgABwEAqJp8ks8EAACePHkCAA%3D%3D&$orderBy=properties%2FcreatedAt%20desc", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "fcc46a1d-75ce-455d-93af-0ff0d234a9cb" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "456", + "StatusCode" : "200", + "Body" : "{\"value\":[{\"properties\":{\"createdAt\":\"2023-02-15T20:41:52.808543Z\",\"sharedAt\":\"2023-02-15T20:41:52.808543Z\",\"displayName\":\"sentshare-disintermediate\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"description\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"australiaeast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"c0a619a2-e9a3-4b5f-a977-6710e54417e5\",\"type\":\"ReceivedShare\"}]}", + "Date" : "Thu, 23 Feb 2023 22:04:43 GMT", + "x-ms-correlation-request-id" : "0f277a2a-7d5a-4d1e-9c26-abde085494cf", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "52fec738-28a8-4931-9d34-857513f04d15", "6e1b0f5f-0b1c-4ebc-b0b3-1334ebf48f54", "sentshare316495bc858" ] +} \ No newline at end of file diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/ReceivedShareClientTest.getReceivedShareTest.json b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/ReceivedShareClientTest.getReceivedShareTest.json new file mode 100644 index 0000000000000..fbc0b3c33042a --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/ReceivedShareClientTest.getReceivedShareTest.json @@ -0,0 +1,124 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/1652d100-3cc2-4e69-a750-6d40e21f775b?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "7365560a-0be8-4407-8ab0-bfe9a8b7994a", + "Content-Type" : "application/json" + }, + "Response" : { + "Operation-Id" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "201", + "Operation-Location" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Body" : "{\"properties\":{\"displayName\":\"sentshare8517428f88f\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:38.6435469Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"1652d100-3cc2-4e69-a750-6d40e21f775b\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:38 GMT", + "x-ms-correlation-request-id" : "90c6fb33-90f7-48fd-b6cd-275b915b10c7", + "Location" : "/sentShares/1652d100-3cc2-4e69-a750-6d40e21f775b/1652d100-3cc2-4e69-a750-6d40e21f775b", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "56cbbfc8-a686-4455-8c28-aa9cc1913aba" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "119", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:02:40.1048868Z\",\"endTime\":\"2023-02-23T22:02:40.1048868Z\",\"status\":\"Succeeded\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:02:39 GMT", + "x-ms-correlation-request-id" : "8291b821-cdc4-45c4-a095-8f66892992dd", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares/1652d100-3cc2-4e69-a750-6d40e21f775b?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "ef927440-4f1b-4acc-8fd0-51312c3d7235" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "200", + "Body" : "{\"properties\":{\"displayName\":\"sentshare8517428f88f\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:38.6435469Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"1652d100-3cc2-4e69-a750-6d40e21f775b\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:39 GMT", + "x-ms-correlation-request-id" : "59fb7881-889d-4d53-93bf-1acf78f7faae", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/1652d100-3cc2-4e69-a750-6d40e21f775b/sentShareInvitations/87974969-9c8c-401e-9a93-04d43609d28b?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "61e909ba-ad10-4dd5-ae47-0ef9a1e580d4", + "Content-Type" : "application/json" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "403", + "StatusCode" : "201", + "Body" : "{\"properties\":{\"targetActiveDirectoryId\":\"4653a7b2-02ff-4155-8e55-2d0c7f3178a1\",\"targetObjectId\":\"68700464-B46c-4ec0-88ff-6061da36da69\",\"shareStatus\":\"Detached\",\"sentAt\":\"2023-02-23T22:02:40.5894477Z\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"state\":\"Succeeded\"},\"invitationKind\":\"Service\",\"id\":\"87974969-9c8c-401e-9a93-04d43609d28b\",\"type\":\"sentShares/sentShareInvitations\"}", + "Date" : "Thu, 23 Feb 2023 22:02:40 GMT", + "x-ms-correlation-request-id" : "4ce8bb83-ce34-4b65-a776-ffcb62ebbd37", + "Location" : "/sentShares/1652d100-3cc2-4e69-a750-6d40e21f775b/sentShareInvitations/87974969-9c8c-401e-9a93-04d43609d28b/87974969-9c8c-401e-9a93-04d43609d28b", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/receivedShares/detached?api-version=2023-02-15-preview&%24orderBy=properties/createdAt%20desc", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "3401aff3-d968-4ad1-a10c-6f60ebc33e42" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "9201", + "StatusCode" : "200", + "Body" : "{\"value\":[{\"properties\":{\"createdAt\":\"2023-02-23T22:02:40.5894477Z\",\"sharedAt\":\"2023-02-23T22:02:40.5894477Z\",\"displayName\":\"sentshare8517428f88f\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"4800fb6e-ceae-4524-8bfc-24b6c05b1980\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:37.1809543Z\",\"sharedAt\":\"2023-02-23T22:02:37.1809543Z\",\"displayName\":\"sentshare597919e056d\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"f409b269-cb44-42ef-8ab5-ba49a687d242\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:33.890921Z\",\"sharedAt\":\"2023-02-23T22:02:33.890921Z\",\"displayName\":\"sentshare97659933a7e\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"034f6930-8fd5-445b-b0d6-3c9c94d51d69\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T22:02:30.3006769Z\",\"sharedAt\":\"2023-02-23T22:02:30.3006769Z\",\"displayName\":\"sentshare83453a2708e\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"2a892988-dd34-49b4-a52f-b2e8ed4e4a56\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:54:06.8649425Z\",\"sharedAt\":\"2023-02-23T21:54:06.8649425Z\",\"displayName\":\"sentshare0630210ca71\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"0f802104-e0e4-49be-b7ad-3e516aacef13\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:52:10.5122039Z\",\"sharedAt\":\"2023-02-23T21:52:10.5122039Z\",\"displayName\":\"sentshare09748c52925\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"9c969177-5de6-4784-b375-e3319f7ca5c0\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:52:06.4618589Z\",\"sharedAt\":\"2023-02-23T21:52:06.4618589Z\",\"displayName\":\"sentshare23738c5ce9b\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"64806f18-cf24-423e-85f5-66cb0352a9a4\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:52:03.1722944Z\",\"sharedAt\":\"2023-02-23T21:52:03.1722944Z\",\"displayName\":\"sentshare1577327894f\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"3f003d9c-c0a3-4752-9f4f-ebfc509f6a6d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T21:51:59.6742859Z\",\"sharedAt\":\"2023-02-23T21:51:59.6742859Z\",\"displayName\":\"sentshare146011a3c0d\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"cb9cfc5b-8a57-476a-962e-2004ee9f98a2\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:46:45.5234076Z\",\"sharedAt\":\"2023-02-23T20:46:45.5234076Z\",\"displayName\":\"sentshare51599d3ef00\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"0aadc559-bfdc-4f27-b3dc-6ac1c3efc041\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:47.52211Z\",\"sharedAt\":\"2023-02-23T20:44:47.52211Z\",\"displayName\":\"sentshare64485f19d68\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"4d31e0a0-2a96-498e-b2d3-eab4f180281d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:43.847223Z\",\"sharedAt\":\"2023-02-23T20:44:43.847223Z\",\"displayName\":\"sentshare73659164553\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"2a8cb8c3-7bcc-4177-93aa-300dccac7381\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:40.2669919Z\",\"sharedAt\":\"2023-02-23T20:44:40.2669919Z\",\"displayName\":\"sentshare965610d3a1a\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"62352df9-4072-420b-934b-4e6fa5e82a5d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T20:44:36.7203133Z\",\"sharedAt\":\"2023-02-23T20:44:36.7203133Z\",\"displayName\":\"sentshare69495e5fa90\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"0e219651-a798-406c-8b86-ba3435029203\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:25:46.6834866Z\",\"sharedAt\":\"2023-02-23T18:25:46.6834866Z\",\"displayName\":\"sentshare63989f58566\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"a502614f-eff1-4940-abad-56462160d3a9\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:23:47.4522034Z\",\"sharedAt\":\"2023-02-23T18:23:47.4522034Z\",\"displayName\":\"sentshare432292adc31\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"a74b7563-c124-4507-a785-0ffcebcf397b\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:20:59.7222868Z\",\"sharedAt\":\"2023-02-23T18:20:59.7222868Z\",\"displayName\":\"sentshare157731779e2\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"998604ea-83a5-4d30-bf9e-b3be81abb18f\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:18:56.885621Z\",\"sharedAt\":\"2023-02-23T18:18:56.885621Z\",\"displayName\":\"sentshare95929ee40dc\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"b12225a1-690d-4a0c-aac2-2a8221840f9d\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:18:14.7551063Z\",\"sharedAt\":\"2023-02-23T18:18:14.7551063Z\",\"displayName\":\"sentshare99810f4fe60\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"1cd74974-1f23-474e-aa50-016cfde21284\",\"type\":\"ReceivedShare\"},{\"properties\":{\"createdAt\":\"2023-02-23T18:12:49.7159102Z\",\"sharedAt\":\"2023-02-23T18:12:49.7159102Z\",\"displayName\":\"sentshare004838add73\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"85d6c3c0-6c17-4d65-b394-4e62b9a727ac\",\"type\":\"ReceivedShare\"}],\"nextLink\":\"https://account.purview.azure.com/share/receivedShares/detached?api-version=2023-02-15-preview&skipToken=%2BRID%3A~OCYSAKOW4tTZ7B4AAAAAAA%3D%3D%23RT%3A1%23TRC%3A20%23RTD%3Ac6mZt4zCNqYKuvnA0y3GBTMxMzQuMTMuMzRVMjk7MjM7NTovODI2OjIxM1sA%23ISV%3A2%23IEO%3A65567%23QCF%3A8%23FPC%3AAgF7e3sWAHeqD4ARAUgABgEAqJp8ks8EAACePHk%3D&$orderBy=properties%2FcreatedAt%20desc\"}", + "Date" : "Thu, 23 Feb 2023 22:02:40 GMT", + "x-ms-correlation-request-id" : "bb27bb17-e46d-4eba-9d13-53263cce0241", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/receivedShares/4800fb6e-ceae-4524-8bfc-24b6c05b1980?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "641cdb1e-6e16-4d5a-8c2b-3c3a085ec57e" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "440", + "StatusCode" : "200", + "Body" : "{\"properties\":{\"createdAt\":\"2023-02-23T22:02:40.5894477Z\",\"sharedAt\":\"2023-02-23T22:02:40.5894477Z\",\"displayName\":\"sentshare8517428f88f\",\"state\":\"Succeeded\",\"shareStatus\":\"Detached\",\"sentShareDescription\":\"A sample share\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"assetLocation\":\"japaneast\",\"assetStoreKind\":\"BlobAccount\"},\"shareKind\":\"InPlace\",\"id\":\"4800fb6e-ceae-4524-8bfc-24b6c05b1980\",\"type\":\"ReceivedShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:41 GMT", + "x-ms-correlation-request-id" : "7aa7c3bb-dd3d-49fd-b7fc-8b73555e2acd", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "1652d100-3cc2-4e69-a750-6d40e21f775b", "87974969-9c8c-401e-9a93-04d43609d28b", "sentshare8517428f88f" ] +} \ No newline at end of file diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.createSentShareServiceInvitation.json b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.createSentShareServiceInvitation.json new file mode 100644 index 0000000000000..105748691bde0 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.createSentShareServiceInvitation.json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/ee99ed79-fff7-41e7-bb3c-f75c19555ddc?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "47f04b33-f65d-4a85-9797-52688f4f97f2", + "Content-Type" : "application/json" + }, + "Response" : { + "Operation-Id" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "201", + "Operation-Location" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Body" : "{\"properties\":{\"displayName\":\"sentshare597919e056d\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:35.2787225Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"ee99ed79-fff7-41e7-bb3c-f75c19555ddc\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:35 GMT", + "x-ms-correlation-request-id" : "8cd70463-8f1c-417e-a2a7-9c8c8965d863", + "Location" : "/sentShares/ee99ed79-fff7-41e7-bb3c-f75c19555ddc/ee99ed79-fff7-41e7-bb3c-f75c19555ddc", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "3ef58fb7-7476-4f16-a81c-450657a948c5" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "119", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:02:36.6984856Z\",\"endTime\":\"2023-02-23T22:02:36.6984856Z\",\"status\":\"Succeeded\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:02:36 GMT", + "x-ms-correlation-request-id" : "30717b7f-fbbb-43c6-8b7f-6ffdfc2b1db8", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares/ee99ed79-fff7-41e7-bb3c-f75c19555ddc?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "14f9ebe1-7f6e-47d2-baba-7e5c061f5904" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "200", + "Body" : "{\"properties\":{\"displayName\":\"sentshare597919e056d\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:35.2787225Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"ee99ed79-fff7-41e7-bb3c-f75c19555ddc\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:36 GMT", + "x-ms-correlation-request-id" : "7f096d3e-7aa9-40ed-83a9-cf95e76c0d0d", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/ee99ed79-fff7-41e7-bb3c-f75c19555ddc/sentShareInvitations/85cc59d3-340f-45b6-9848-ada27730eccc?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "b0a58913-74a4-4b9a-b4f9-8ea08ee880f1", + "Content-Type" : "application/json" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "403", + "StatusCode" : "201", + "Body" : "{\"properties\":{\"targetActiveDirectoryId\":\"4653a7b2-02ff-4155-8e55-2d0c7f3178a1\",\"targetObjectId\":\"68700464-B46c-4ec0-88ff-6061da36da69\",\"shareStatus\":\"Detached\",\"sentAt\":\"2023-02-23T22:02:37.1809543Z\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"state\":\"Succeeded\"},\"invitationKind\":\"Service\",\"id\":\"85cc59d3-340f-45b6-9848-ada27730eccc\",\"type\":\"sentShares/sentShareInvitations\"}", + "Date" : "Thu, 23 Feb 2023 22:02:37 GMT", + "x-ms-correlation-request-id" : "bab54920-0afc-402a-b924-8db6414f2bae", + "Location" : "/sentShares/ee99ed79-fff7-41e7-bb3c-f75c19555ddc/sentShareInvitations/85cc59d3-340f-45b6-9848-ada27730eccc/85cc59d3-340f-45b6-9848-ada27730eccc", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "ee99ed79-fff7-41e7-bb3c-f75c19555ddc", "85cc59d3-340f-45b6-9848-ada27730eccc", "sentshare597919e056d" ] +} \ No newline at end of file diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.createSentShareTest.json b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.createSentShareTest.json new file mode 100644 index 0000000000000..1e51af9b4b1b6 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.createSentShareTest.json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/7bf2c000-a49e-4fa3-b264-50f2e76c59bc?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "b6149f6c-60b3-487b-8f67-c019458cfa60", + "Content-Type" : "application/json" + }, + "Response" : { + "Operation-Id" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "201", + "Operation-Location" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Body" : "{\"properties\":{\"displayName\":\"sentshare12686266c36\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:25.8669652Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7bf2c000-a49e-4fa3-b264-50f2e76c59bc\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:25 GMT", + "x-ms-correlation-request-id" : "5252cda7-1410-48b7-afae-fc9e839f2784", + "Location" : "/sentShares/7bf2c000-a49e-4fa3-b264-50f2e76c59bc/7bf2c000-a49e-4fa3-b264-50f2e76c59bc", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "8952e5a6-73b3-484c-97b8-0ed9eeea29c3" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "117", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:02:27.398608Z\",\"endTime\":\"2023-02-23T22:02:27.398608Z\",\"status\":\"Succeeded\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:02:26 GMT", + "x-ms-correlation-request-id" : "5c9dc388-8f33-4ab0-b05a-7932922e16da", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares/7bf2c000-a49e-4fa3-b264-50f2e76c59bc?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "69505dab-2812-4f18-b564-e4ccf3b0cae7" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "200", + "Body" : "{\"properties\":{\"displayName\":\"sentshare12686266c36\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:25.8669652Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7bf2c000-a49e-4fa3-b264-50f2e76c59bc\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:27 GMT", + "x-ms-correlation-request-id" : "830956bd-8400-4509-92fb-e70b0569e30e", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "7bf2c000-a49e-4fa3-b264-50f2e76c59bc", "sentshare12686266c36" ] +} \ No newline at end of file diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.createSentShareUserInvitation.json b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.createSentShareUserInvitation.json new file mode 100644 index 0000000000000..9edc1cd3ab1fd --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.createSentShareUserInvitation.json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/7c0a7949-c787-4a62-8307-e0a7f6adfb5b?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "6ba506ab-fde3-4ae0-88e4-2de407185d06", + "Content-Type" : "application/json" + }, + "Response" : { + "Operation-Id" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "201", + "Operation-Location" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Body" : "{\"properties\":{\"displayName\":\"sentshare23795da99a3\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:00:49.7983168Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7c0a7949-c787-4a62-8307-e0a7f6adfb5b\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:00:49 GMT", + "x-ms-correlation-request-id" : "9a5574de-5875-49d4-bfdf-9c0c35efb999", + "Location" : "/sentShares/7c0a7949-c787-4a62-8307-e0a7f6adfb5b/7c0a7949-c787-4a62-8307-e0a7f6adfb5b", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "3ae2323a-3ff7-46b5-860c-8cef8ffc9227" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "119", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:00:51.5960104Z\",\"endTime\":\"2023-02-23T22:00:51.5960104Z\",\"status\":\"Succeeded\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:00:51 GMT", + "x-ms-correlation-request-id" : "97681765-5196-4433-865b-27bec325982b", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares/7c0a7949-c787-4a62-8307-e0a7f6adfb5b?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "2199c197-952d-4ed2-abbc-d6e40906b860" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "200", + "Body" : "{\"properties\":{\"displayName\":\"sentshare23795da99a3\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:00:49.7983168Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7c0a7949-c787-4a62-8307-e0a7f6adfb5b\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:00:51 GMT", + "x-ms-correlation-request-id" : "ff67e610-c4d3-4031-9afa-1a825fcc8e3f", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/7c0a7949-c787-4a62-8307-e0a7f6adfb5b/sentShareInvitations/9b016480-52db-4617-ae64-bd16fc36051a?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "8d2a588e-2c6b-461a-8bc9-ee071e52e618", + "Content-Type" : "application/json" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "381", + "StatusCode" : "201", + "Body" : "{\"properties\":{\"targetEmail\":\"consumer@contoso.com\",\"notify\":true,\"shareStatus\":\"Detached\",\"expirationDate\":\"2023-04-24T22:00:51.9554689Z\",\"sentAt\":\"2023-02-23T22:00:53.2247872Z\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"state\":\"Succeeded\"},\"invitationKind\":\"User\",\"id\":\"9b016480-52db-4617-ae64-bd16fc36051a\",\"type\":\"sentShares/sentShareInvitations\"}", + "Date" : "Thu, 23 Feb 2023 22:00:53 GMT", + "x-ms-correlation-request-id" : "5ad9d183-a693-43c2-b6cf-f8c1ca5fefab", + "Location" : "/sentShares/7c0a7949-c787-4a62-8307-e0a7f6adfb5b/sentShareInvitations/9b016480-52db-4617-ae64-bd16fc36051a/9b016480-52db-4617-ae64-bd16fc36051a", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "7c0a7949-c787-4a62-8307-e0a7f6adfb5b", "9b016480-52db-4617-ae64-bd16fc36051a", "sentshare23795da99a3" ] +} \ No newline at end of file diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.deleteSentShareServiceInvitation.json b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.deleteSentShareServiceInvitation.json new file mode 100644 index 0000000000000..cb432461e460a --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.deleteSentShareServiceInvitation.json @@ -0,0 +1,124 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/45b01fac-f557-477a-9711-ab344b726bdf?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "30ca7779-3d71-4b2f-b395-abfb7b627b99", + "Content-Type" : "application/json" + }, + "Response" : { + "Operation-Id" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "201", + "Operation-Location" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Body" : "{\"properties\":{\"displayName\":\"sentshare3717814b7b9\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:00:57.3184413Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"45b01fac-f557-477a-9711-ab344b726bdf\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:00:57 GMT", + "x-ms-correlation-request-id" : "7c912298-8ef5-4f23-a2f4-8337d67ed13e", + "Location" : "/sentShares/45b01fac-f557-477a-9711-ab344b726bdf/45b01fac-f557-477a-9711-ab344b726bdf", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "233128ed-e1f9-448f-b0d0-0e67b38219bf" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "119", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:00:58.7050341Z\",\"endTime\":\"2023-02-23T22:00:58.7050341Z\",\"status\":\"Succeeded\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:00:58 GMT", + "x-ms-correlation-request-id" : "618be330-b3e5-49f8-89e6-75fbe8e4be76", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares/45b01fac-f557-477a-9711-ab344b726bdf?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "d7b5a4a9-70f9-426a-a263-075301508706" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "200", + "Body" : "{\"properties\":{\"displayName\":\"sentshare3717814b7b9\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:00:57.3184413Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"45b01fac-f557-477a-9711-ab344b726bdf\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:00:58 GMT", + "x-ms-correlation-request-id" : "2e14e666-489e-48f5-a3e7-c0d9f4288a22", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/45b01fac-f557-477a-9711-ab344b726bdf/sentShareInvitations/b239b06c-9915-47e9-ba20-51452943bc6a?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "8f4fd484-1fe0-48fe-9010-9a825ec780ca", + "Content-Type" : "application/json" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "402", + "StatusCode" : "201", + "Body" : "{\"properties\":{\"targetActiveDirectoryId\":\"4653a7b2-02ff-4155-8e55-2d0c7f3178a1\",\"targetObjectId\":\"68700464-B46c-4ec0-88ff-6061da36da69\",\"shareStatus\":\"Detached\",\"sentAt\":\"2023-02-23T22:00:59.170801Z\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"state\":\"Succeeded\"},\"invitationKind\":\"Service\",\"id\":\"b239b06c-9915-47e9-ba20-51452943bc6a\",\"type\":\"sentShares/sentShareInvitations\"}", + "Date" : "Thu, 23 Feb 2023 22:00:59 GMT", + "x-ms-correlation-request-id" : "8ea8bbea-8655-4bc6-b2db-fb18bc786898", + "Location" : "/sentShares/45b01fac-f557-477a-9711-ab344b726bdf/sentShareInvitations/b239b06c-9915-47e9-ba20-51452943bc6a/b239b06c-9915-47e9-ba20-51452943bc6a", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://account.purview.azure.com/share/sentShares/45b01fac-f557-477a-9711-ab344b726bdf/sentShareInvitations/b239b06c-9915-47e9-ba20-51452943bc6a?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "57e4c280-6b2d-4f70-b091-338c03d36903" + }, + "Response" : { + "Operation-Id" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "Operation-Location" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Date" : "Thu, 23 Feb 2023 22:00:59 GMT", + "x-ms-correlation-request-id" : "a590d1fd-8593-420e-9092-21c0454c02e8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "6b3629d6-eb8a-44ac-a558-115df52c2240" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "119", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:01:01.2570786Z\",\"endTime\":\"2023-02-23T22:01:01.2570786Z\",\"status\":\"Succeeded\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:01:00 GMT", + "x-ms-correlation-request-id" : "2ac5892f-b4f7-410d-a083-559eaf28542c", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "45b01fac-f557-477a-9711-ab344b726bdf", "b239b06c-9915-47e9-ba20-51452943bc6a", "sentshare3717814b7b9" ] +} \ No newline at end of file diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.deleteSentShareTest.json b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.deleteSentShareTest.json new file mode 100644 index 0000000000000..66ce626957321 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.deleteSentShareTest.json @@ -0,0 +1,293 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/b4de3e25-3d46-4cb0-b1d2-2c45e4ae37b2?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "c4bb4f43-85f7-492d-ae89-5f410a082ba2", + "Content-Type" : "application/json" + }, + "Response" : { + "Operation-Id" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "201", + "Operation-Location" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Body" : "{\"properties\":{\"displayName\":\"sentshare97666583040\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:01:04.7118032Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b4de3e25-3d46-4cb0-b1d2-2c45e4ae37b2\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:01:04 GMT", + "x-ms-correlation-request-id" : "78a8a73b-4bd4-4385-9728-fcd10a1717ec", + "Location" : "/sentShares/b4de3e25-3d46-4cb0-b1d2-2c45e4ae37b2/b4de3e25-3d46-4cb0-b1d2-2c45e4ae37b2", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "e9397d99-8387-4bc2-8f8b-f9d1dce32d2a" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "119", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:01:06.2517529Z\",\"endTime\":\"2023-02-23T22:01:06.2517529Z\",\"status\":\"Succeeded\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:01:05 GMT", + "x-ms-correlation-request-id" : "820d72f4-bb72-439e-86d3-cdd5e80c2fca", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares/b4de3e25-3d46-4cb0-b1d2-2c45e4ae37b2?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "30923f3f-30c5-4d07-8812-09bec90e6a29" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "200", + "Body" : "{\"properties\":{\"displayName\":\"sentshare97666583040\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:01:04.7118032Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b4de3e25-3d46-4cb0-b1d2-2c45e4ae37b2\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:01:05 GMT", + "x-ms-correlation-request-id" : "70b84d89-bb66-4c7f-a83b-ffb630adc0c8", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://account.purview.azure.com/share/sentShares/b4de3e25-3d46-4cb0-b1d2-2c45e4ae37b2?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "d6b8423b-2c87-44e4-8e9e-be29cd3ce7ab" + }, + "Response" : { + "Operation-Id" : "https://account.purview.azure.com/share/operationResults/822f825f-d2f6-4ecb-9b51-0b0ef88336ad?api-version=2023-02-15-preview", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "Operation-Location" : "https://account.purview.azure.com/share/operationResults/822f825f-d2f6-4ecb-9b51-0b0ef88336ad?api-version=2023-02-15-preview", + "Date" : "Thu, 23 Feb 2023 22:01:06 GMT", + "x-ms-correlation-request-id" : "3a5069fc-8ff3-4a78-8a31-b548f1745406" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/822f825f-d2f6-4ecb-9b51-0b0ef88336ad?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "77f12523-2b5d-45f8-98ae-5f021d0c64b7" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "91", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:01:06.5830432Z\",\"endTime\":null,\"status\":\"Running\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:01:07 GMT", + "x-ms-correlation-request-id" : "2ad06eab-eff2-4c08-8488-dd325f7f533c", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/822f825f-d2f6-4ecb-9b51-0b0ef88336ad?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "44e1d9f4-8dbc-463a-a4a6-571b5826314f" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "91", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:01:06.5830432Z\",\"endTime\":null,\"status\":\"Running\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:01:29 GMT", + "x-ms-correlation-request-id" : "80645ba3-b60b-46aa-a82a-82a523e7601b", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/822f825f-d2f6-4ecb-9b51-0b0ef88336ad?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "8bd51dc2-faf1-4b9d-bb1b-ef40252353cc" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "91", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:01:06.5830432Z\",\"endTime\":null,\"status\":\"Running\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:01:57 GMT", + "x-ms-correlation-request-id" : "08faff59-05ae-45bf-a665-042302408354", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/822f825f-d2f6-4ecb-9b51-0b0ef88336ad?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "ef6bc038-c281-447c-b950-02e5ab5d6003" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "91", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:01:06.5830432Z\",\"endTime\":null,\"status\":\"Running\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:01:58 GMT", + "x-ms-correlation-request-id" : "079c3e45-237b-4577-9e2c-a77bdb34910e", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/822f825f-d2f6-4ecb-9b51-0b0ef88336ad?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "b3fdbb4c-8e15-4ac3-ac7b-17d413de8133" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "91", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:01:06.5830432Z\",\"endTime\":null,\"status\":\"Running\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:01:59 GMT", + "x-ms-correlation-request-id" : "3b2b5bcc-d537-4eca-9b89-f7ccc00a0ca5", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/822f825f-d2f6-4ecb-9b51-0b0ef88336ad?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "aa156c1a-0fb0-4d1c-be47-db32fc30d0ea" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "91", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:01:06.5830432Z\",\"endTime\":null,\"status\":\"Running\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:02:01 GMT", + "x-ms-correlation-request-id" : "43bf3655-76ca-43f1-b89f-d6ae23920929", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/822f825f-d2f6-4ecb-9b51-0b0ef88336ad?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "d64f4ede-4e87-4159-bde1-022604ea175c" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "91", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:01:06.5830432Z\",\"endTime\":null,\"status\":\"Running\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:02:10 GMT", + "x-ms-correlation-request-id" : "3ecb388c-33e6-416b-84d8-bc637b6c70f7", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/822f825f-d2f6-4ecb-9b51-0b0ef88336ad?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "fb674d58-2d7c-4c53-a58e-319ebca61f83" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "91", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:01:06.5830432Z\",\"endTime\":null,\"status\":\"Running\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:02:11 GMT", + "x-ms-correlation-request-id" : "b0d684d3-eccf-4cd7-91a7-a9cff4a723cb", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/822f825f-d2f6-4ecb-9b51-0b0ef88336ad?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "19dd7369-d755-4cb6-8ba8-4da16f530d7f" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "91", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:01:06.5830432Z\",\"endTime\":null,\"status\":\"Running\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:02:12 GMT", + "x-ms-correlation-request-id" : "6c9bf27f-1b3c-4cbf-af88-95cf09515853", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/822f825f-d2f6-4ecb-9b51-0b0ef88336ad?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "5ece9a77-a986-46f9-9ac7-d0c1448fbf0b" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "91", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:01:06.5830432Z\",\"endTime\":null,\"status\":\"Running\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:02:13 GMT", + "x-ms-correlation-request-id" : "d9d99817-8e75-49e8-a064-312a30cea611", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/822f825f-d2f6-4ecb-9b51-0b0ef88336ad?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "c78f8c4c-3991-49da-9a55-f7398825ef28" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "93", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:01:06.5830432Z\",\"endTime\":null,\"status\":\"Succeeded\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:02:14 GMT", + "x-ms-correlation-request-id" : "b6b0b917-c855-4719-965e-261df2f813e8", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "b4de3e25-3d46-4cb0-b1d2-2c45e4ae37b2", "sentshare97666583040" ] +} \ No newline at end of file diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.getAllSentShareServiceInvitations.json b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.getAllSentShareServiceInvitations.json new file mode 100644 index 0000000000000..2749e7e825e74 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.getAllSentShareServiceInvitations.json @@ -0,0 +1,124 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/837eb6df-aafc-42de-99a9-4ff22bb63714?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "86819eaf-636c-4166-80bc-e88d26ace3fd", + "Content-Type" : "application/json" + }, + "Response" : { + "Operation-Id" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "690", + "StatusCode" : "201", + "Operation-Location" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Body" : "{\"properties\":{\"displayName\":\"sentshare83453a2708e\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:28.412671Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"837eb6df-aafc-42de-99a9-4ff22bb63714\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:28 GMT", + "x-ms-correlation-request-id" : "a0504df5-cb14-4cd5-bbf1-2d641385b51d", + "Location" : "/sentShares/837eb6df-aafc-42de-99a9-4ff22bb63714/837eb6df-aafc-42de-99a9-4ff22bb63714", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "813901c9-cec0-4eaa-ad45-a6a967876f7d" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "119", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:02:29.8263309Z\",\"endTime\":\"2023-02-23T22:02:29.8263309Z\",\"status\":\"Succeeded\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:02:29 GMT", + "x-ms-correlation-request-id" : "92fdfbf1-a978-4075-a367-c93947fa33b0", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares/837eb6df-aafc-42de-99a9-4ff22bb63714?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "1a1c908a-0a41-477d-bd03-cfc449730123" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "690", + "StatusCode" : "200", + "Body" : "{\"properties\":{\"displayName\":\"sentshare83453a2708e\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:28.412671Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"837eb6df-aafc-42de-99a9-4ff22bb63714\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:29 GMT", + "x-ms-correlation-request-id" : "3ef0801e-edaa-443d-add2-9d6d9c6cfd32", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/837eb6df-aafc-42de-99a9-4ff22bb63714/sentShareInvitations/0934e602-d646-4f89-bbcf-2b05dd0035cb?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "d9061cbc-68c5-4eb1-b6ee-4f5e2ae77578", + "Content-Type" : "application/json" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "403", + "StatusCode" : "201", + "Body" : "{\"properties\":{\"targetActiveDirectoryId\":\"4653a7b2-02ff-4155-8e55-2d0c7f3178a1\",\"targetObjectId\":\"68700464-B46c-4ec0-88ff-6061da36da69\",\"shareStatus\":\"Detached\",\"sentAt\":\"2023-02-23T22:02:30.3006769Z\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"state\":\"Succeeded\"},\"invitationKind\":\"Service\",\"id\":\"0934e602-d646-4f89-bbcf-2b05dd0035cb\",\"type\":\"sentShares/sentShareInvitations\"}", + "Date" : "Thu, 23 Feb 2023 22:02:30 GMT", + "x-ms-correlation-request-id" : "b52b4285-2739-481c-9e13-e7484c376ac5", + "Location" : "/sentShares/837eb6df-aafc-42de-99a9-4ff22bb63714/sentShareInvitations/0934e602-d646-4f89-bbcf-2b05dd0035cb/0934e602-d646-4f89-bbcf-2b05dd0035cb", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares/837eb6df-aafc-42de-99a9-4ff22bb63714/sentShareInvitations?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "16f3369f-6e37-4025-a72d-d2cf0a70ea97" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "415", + "StatusCode" : "200", + "Body" : "{\"value\":[{\"properties\":{\"targetActiveDirectoryId\":\"4653a7b2-02ff-4155-8e55-2d0c7f3178a1\",\"targetObjectId\":\"68700464-B46c-4ec0-88ff-6061da36da69\",\"shareStatus\":\"Detached\",\"sentAt\":\"2023-02-23T22:02:30.3006769Z\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"state\":\"Succeeded\"},\"invitationKind\":\"Service\",\"id\":\"0934e602-d646-4f89-bbcf-2b05dd0035cb\",\"type\":\"sentShares/sentShareInvitations\"}]}", + "Date" : "Thu, 23 Feb 2023 22:02:30 GMT", + "x-ms-correlation-request-id" : "dcfa1731-6d5d-4cef-beaa-78a76eeecb20", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares/837eb6df-aafc-42de-99a9-4ff22bb63714/sentShareInvitations?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "4042f312-4317-4830-8ccb-77cf5d8740c3" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "415", + "StatusCode" : "200", + "Body" : "{\"value\":[{\"properties\":{\"targetActiveDirectoryId\":\"4653a7b2-02ff-4155-8e55-2d0c7f3178a1\",\"targetObjectId\":\"68700464-B46c-4ec0-88ff-6061da36da69\",\"shareStatus\":\"Detached\",\"sentAt\":\"2023-02-23T22:02:30.3006769Z\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"state\":\"Succeeded\"},\"invitationKind\":\"Service\",\"id\":\"0934e602-d646-4f89-bbcf-2b05dd0035cb\",\"type\":\"sentShares/sentShareInvitations\"}]}", + "Date" : "Thu, 23 Feb 2023 22:02:30 GMT", + "x-ms-correlation-request-id" : "75d3ba16-f9ea-420b-8be8-decff053db7a", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "837eb6df-aafc-42de-99a9-4ff22bb63714", "0934e602-d646-4f89-bbcf-2b05dd0035cb", "sentshare83453a2708e" ] +} \ No newline at end of file diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.getAllSentSharesTest.json b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.getAllSentSharesTest.json new file mode 100644 index 0000000000000..a1b7e3411b2bc --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.getAllSentSharesTest.json @@ -0,0 +1,103 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/7e0bd442-9447-4414-ad32-15a02a232914?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "788000dc-413f-4a85-9f15-7112b80610d7", + "Content-Type" : "application/json" + }, + "Response" : { + "Operation-Id" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "201", + "Operation-Location" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Body" : "{\"properties\":{\"displayName\":\"sentshare94079d14d80\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:16.5618333Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7e0bd442-9447-4414-ad32-15a02a232914\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:16 GMT", + "x-ms-correlation-request-id" : "d8d08dd3-16d6-4457-9ae6-dfd97adbaef5", + "Location" : "/sentShares/7e0bd442-9447-4414-ad32-15a02a232914/7e0bd442-9447-4414-ad32-15a02a232914", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "2798617b-8fcc-4c93-9739-b0594010d12d" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "117", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:02:18.154603Z\",\"endTime\":\"2023-02-23T22:02:18.154603Z\",\"status\":\"Succeeded\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:02:17 GMT", + "x-ms-correlation-request-id" : "9541dc48-2c43-4429-9051-b90548e1aaa3", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares/7e0bd442-9447-4414-ad32-15a02a232914?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "b4195558-1468-4f5f-b452-a24ed6e8f4fb" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "200", + "Body" : "{\"properties\":{\"displayName\":\"sentshare94079d14d80\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:16.5618333Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7e0bd442-9447-4414-ad32-15a02a232914\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:17 GMT", + "x-ms-correlation-request-id" : "cab4b832-ffac-45b1-a2a7-d07e628dd4fb", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares?referenceName=/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage&api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "7017d39e-e926-43b1-b1a0-d721dcc5e1e0" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "119229", + "StatusCode" : "200", + "Body" : "{\"value\":[{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-16T21:53:13.043479Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"c4896eff-91a1-498b-8a5c-80f767431a99\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-16T22:08:34.629631Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"e91b02d8-f288-4e0c-b613-0252b094ca18\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T00:52:31.3908649Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7b227eb4-7b08-4e10-b8eb-9f81b4f5cda5\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T00:52:32.6300787Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a0c80416-2ef3-44ae-8ccc-a453d37adcd3\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T00:52:51.1580922Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"ba3d71e5-bc8c-45a6-b711-61c01cbafd83\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T00:54:29.2960652Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a26f29a9-cd89-4b47-a9f1-232d9c1d42d4\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T00:54:32.3911962Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"0a8d468b-89de-4e85-881c-02fbe754727f\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T00:54:52.995116Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"1b3dbb2c-2531-4568-a6bd-fa578a34410d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T00:55:21.9799961Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"9615b197-2800-4c0f-90c0-50f71ffb0819\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T00:55:23.9068714Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"dd3c6ce3-06a0-4b09-a7f0-bd357890525d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:26:58.5671923Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a253f0fb-5941-4ecf-aacd-68352a188e82\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:27:02.819911Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"4a143daa-c839-4942-8404-0a306d3ffb4a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:27:05.2095701Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a9a6a23a-d7a0-4bfd-bd8d-f05c3e6efe34\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:27:19.0973316Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"2c056016-7e66-4376-a4b7-5789b66a6449\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:30:23.702324Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"852b36fc-c44d-4c0a-9651-42b678dac4bd\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:38:52.3623407Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"9874070c-abd8-47fa-a39c-811784f19308\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:38:56.2296937Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"2bf63a6f-6986-4bd8-a7e6-7a2e81b3adce\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:38:58.3847456Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"aa8ea91c-ab0e-4806-ad7c-7def5d03969b\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:39:34.2844496Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7edc67c9-affd-4615-8abb-1fa8e93e12ca\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:42:50.2446504Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"40d1f610-73a2-47b1-9459-37f37c26b208\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:25:52.111361Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"d531830d-3c25-423b-98bf-ab3bfcfa0c2d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:27:35.3147506Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7793f49f-f38c-43c3-a18d-589fe7cfe1d2\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:36:50.786201Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"6afda968-23b2-4d51-a390-f5c17d545cb7\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:39:28.3544395Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"5ac32c10-469f-4841-a8c7-1ac7ebe10602\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:42:27.314248Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"69fbae71-8160-478a-ba1c-e08c67ea5ba9\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:50:09.5463731Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"20bf9c00-fa94-4a56-b364-3a6ea6fc8619\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:58:47.3749253Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a4ef4261-469d-4b61-9f1b-482b674fbec8\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:59:18.5646055Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"3799ec56-22c7-4b65-9ca6-c1002f774860\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:59:57.4936601Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"e4e90dd0-c5a8-45dd-acbc-6cd3bb9258d8\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:00:41.5744011Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"94813e36-1e42-4e15-a3c7-c8b26a83b04d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:01:52.8624184Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"f6fc006f-4a80-4081-8f81-f47a227d1079\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:06:36.4610275Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"4d8d6f60-622b-4caa-b907-95e1d2e05c2c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:10:49.5085415Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"cfdcccc1-d8f7-4b98-abba-7c47269e9673\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:10:52.1786057Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b245fd10-2e0e-45bb-826b-b7a38d540e65\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:10:54.6522858Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"054e971d-b3b5-48b5-aad8-ec166864d66e\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:14:10.8492679Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"c3461633-66f0-4fd2-9499-5c175c1b1829\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:14:46.2973703Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"23319689-62b3-4e9d-9628-8db5111cf041\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:15:06.3681707Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"6c3aa5f4-9009-4495-8fbb-8ff71f18c048\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:15:18.080995Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"f9dd8e09-2a60-4265-9308-bc181ae87311\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:18:14.1299784Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"85233125-3639-4359-a1ba-f1c8d672b80c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:18:16.8007972Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"63184daf-5528-47d5-abb0-b3fdd18745b9\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:18:19.7433007Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"03e33498-b6a6-4861-af96-f27c7329f660\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:19:30.4617995Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"2e8d344b-bb34-442e-8675-428d10bfe01c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:20:34.5379242Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"41528440-2bdc-4183-a975-b4293e03bb86\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:20:38.0573043Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"5c082fe7-4e18-4632-ba3a-01230e41adf9\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:20:40.2812918Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"af8474aa-4a79-4108-aec2-22c68cfc70d2\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:36:18.8740143Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"4d67564c-ec87-46b4-bedd-a593339444db\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:38:01.6999592Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"bd4d3e47-34f6-4c42-a77a-09ab38f1c3b7\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:38:33.1695383Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"aeddac6e-a91c-4562-ac9c-0ca2fbd6bafd\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:38:36.3108981Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"f3e9b6c6-3d13-4b07-8bfa-09ea9e78fbeb\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:38:38.4132083Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"ec9690e9-959f-40e6-bc3f-8fa7b1cdb6a9\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:39:56.3090966Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"f77ccab7-69cc-43ff-bfad-26fce23a5cb9\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:39:59.7674282Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"418826bc-6183-4830-8447-15395444663d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:40:06.7846206Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"c8d95750-d697-4e2d-ac75-abbfdd4e4bb2\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:40:44.8225122Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"69405883-6e8d-4be6-a59f-37a155941ef1\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:42:05.9499404Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"0ef6eab9-2ce4-4cd6-8f3e-682905bf9d3d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:51:50.7698254Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"d93eed46-93fe-410b-9ef2-2b64eb057cd6\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:57:34.4056645Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"4f4aeea0-0f18-4bb2-9221-1fe7a6f21cc0\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:58:57.3890334Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"00f294b7-7943-4e6b-be56-fe07b906e7f2\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:08:09.4555802Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"5d734a87-4846-415a-89fe-7d7ca478767f\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare9055340bf04\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:21:15.9796009Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"9cc21b6c-8367-41f6-b7ca-2ed303857ee2\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare07594b5d90e\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:23:08.1008661Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"3e549c48-2e6e-4c96-95d8-1c9bc7cc7ebf\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare2818270f944\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:23:58.0670083Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"eb996b2b-f599-444f-84e7-4cceab1d4945\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare424255dd9a3\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:24:15.973568Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"46b86b41-76fa-4b25-8e35-16f615301e63\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare705516051af\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:49:36.5084777Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"8d776298-3cdd-4931-bb04-0acffa326a87\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare7776228b536\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:49:40.4842226Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"2336f834-adfa-423c-ba16-fadfdb75cae4\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare87291a44a18\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:49:42.8542104Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b49f30af-6804-4341-89cf-4c2212855a86\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare58024241247\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:49:46.0912076Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"fb20dfcf-8b81-44ce-95da-2f65a154d3d5\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare027824cc35a\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:54:21.0635935Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"fc439c2c-297e-4642-8371-912c18260b1e\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare86330bd144d\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:54:24.3827995Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"9fcabbce-bc3b-4d3f-ba9f-6073e7290861\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare952831a55d3\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:54:27.8201232Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"83caf0e0-dcff-4b9b-a08f-b69265c33436\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare054625377c8\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:54:30.7493323Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"3087d597-987c-4909-8336-ccd075021d40\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare771705a227e\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:10:06.2247571Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"bc060512-38e3-417b-aa8d-208b1866388d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare645770f26cd\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:11:22.0335859Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a02b58ae-4f19-4263-b43f-e703579bef10\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare66783cb738d\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:11:28.8163488Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"aded2171-2fef-4c00-b842-254a73fb29cf\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare56827731dfe\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:11:31.0642916Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"9c8f12f0-423b-4d73-a68c-877dbe118e4b\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare88382eb655e\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:13:47.4091498Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7bad4d9c-1f34-42aa-91ee-4314742144f6\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare046645de694\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:22:21.6335815Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"14d95064-0757-4c9e-8edc-db43e0335a9f\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare487062ae012\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:22:26.8536446Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"4363060f-220c-4c41-af35-4d57e2675b74\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare98158ca9fdb\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:22:29.6335657Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"717745d6-70b7-4045-b767-d396406928c6\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare683830b6f93\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:22:32.2209696Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"56939ec6-463e-4484-93f8-204b71b8aabd\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare650926de10d\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:23:20.5535391Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"65cbcd7a-582f-46fa-ab5c-d9345f0f720c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare151059e2a3b\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:35:30.8436211Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"6f372760-630d-4f1d-959f-1b11690edeba\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare655402c9f3c\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:35:37.1988854Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"498acd55-4c15-4121-99c7-7a4df395bc04\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare5124147fd90\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:35:39.7625982Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"9f9bb053-4eaa-48e6-ab7c-9ba94eef1044\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare41813aa62ca\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:35:43.5910098Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"ba529a4c-9139-4f04-882f-3bdf2a6360df\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare378643de831\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:35:46.0780246Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"14fd1c22-f52d-4a7a-acc9-a4cef736af35\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare72733ff2287\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:15:18.6814556Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7d93a1fe-11a1-4be6-a028-a03e9f5d9e59\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare76386bdeca1\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:15:23.1819777Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"6f40b449-e63c-4c44-8fec-4ad40b303212\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare89973c8e329\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:16:32.9921046Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a62e03ca-9518-4288-b6d8-8946cce5c762\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare24818767e3a\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:16:36.650327Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"4891a076-48a9-4693-aaca-c8a75f2cf451\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare73181674da2\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:16:39.4599186Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"2c674709-e3d5-4ba2-bf83-f776aa15dbf2\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare34666139390\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:23:31.9407894Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"00ec050b-bd5a-4b7e-b4d5-b610a123a801\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare46511b40248\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:23:36.9277394Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a1b4e9ef-72d9-4ec7-8fa0-9f3cf1759e8e\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare966093423ca\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:24:48.3103814Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"d61f6581-7ab7-484d-b8e9-60af4e5366a3\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare993543a8c54\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:24:54.2194006Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"ee43638b-b2a6-4d88-9bb7-4edeec3844ba\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare38516c0acb9\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:24:56.8962266Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"88c1749a-d34f-4c5b-a896-44c47551ba7a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare15995ad6879\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:27:30.3872396Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b1a462fc-e773-4a4e-bfbb-92ca3f7ec646\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare3743559cc20\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:34:04.9265302Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"146d0ead-5d61-4348-94be-2b89a1f676e3\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare64903c66b2d\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:34:09.5221212Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a24dc8a5-bfc8-45de-9bd4-7791af7e1f1d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare0377380fa61\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:34:14.2679863Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"86da9377-d495-4edc-aa4a-883acf75964a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare99473ef3dfe\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:35:28.979779Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7e9a1547-f2a9-4795-b574-1206df75a933\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare062377bb05f\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:35:34.0028224Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"09cc9434-6b47-4c6e-a89f-77dfb23144be\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare360852db4e4\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:35:36.4701427Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"88a20074-c0f8-47a4-b3cc-2c051efd091a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare5724562e0ab\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:43:37.5419397Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b0aa93f4-4518-4466-b956-a1b73b7fbd81\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare333044807fb\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:43:43.0856696Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"643d1f1c-3999-4d1d-9bc5-35c4acfcba24\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare39687f387b5\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:43:48.0904763Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"d02c183f-f930-4229-8dc0-1a661b7623d8\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare90479000e9a\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:45:00.2099067Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"0693c6ae-cf81-416a-8430-da9df422f97c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare58256b4b05b\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:45:05.338188Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"d190d246-acc9-4c94-9b81-6e7718a94c6c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare464705de1eb\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:45:07.9900559Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"232641ab-c625-44f0-b318-8a626ba51ea4\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare07216075e49\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:45:11.7806988Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"355d7792-95e1-4a38-bde6-f3e121b31ac1\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare892497cbe97\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:45:15.6346838Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"5dc589c0-fcad-4006-ba28-496c0afbd9c8\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare23146a88ba2\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:45:43.2046048Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"66e22b42-88ae-46e6-9358-e2d89b9dc991\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare96335c5e8ad\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:05:45.0471183Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"45854143-1cf4-4c15-8294-6fd6216b3af7\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare7221074b2bd\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:05:50.6810076Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"166a3f45-392c-4eab-8f2b-7f9f4dca5aa8\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare8222490e369\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:05:55.9470296Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"fb33139d-80b1-48a2-8329-256823531c77\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare1722007e4b5\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:07:53.148785Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"60831ac8-623b-4765-a29f-86fcaa9b4cee\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare09687265d61\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:08:19.40733Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"0e4560b6-3ca9-451b-ab50-8e2495c7e311\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare42466227415\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:08:23.4133669Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"163b3c64-2482-4fcd-8a07-c1aa08a2a4cd\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare11225a99a26\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:08:28.2015079Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"9d643c9f-ea0d-4330-afcb-e193874bc92a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare7819100ba52\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:08:31.0771626Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"68a551b2-9174-479c-acc9-a9fa665e254d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare7710391b351\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:09:04.6233411Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b56f2796-dbb9-4e21-8d25-2799df8e9daf\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare43821f2e2ec\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:09:08.4786099Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"c4231ad4-073e-4d13-b6c0-d31fbf54766d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare4894059d962\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:09:13.8741148Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7b684662-74f0-4798-9495-ae617335faae\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare45205a30927\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:11:02.0031039Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"ffc1da70-6e8e-4b5c-8b2d-7042e2f46ccb\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare003416b780f\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:12:06.6547004Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"d43c4208-5ace-475f-970e-999b8a2c3257\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare004838add73\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:12:47.6505509Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"15940bed-8dcf-418b-bc37-5f661c75471d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare99810f4fe60\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:18:11.9154847Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7e63896f-4758-412b-9698-b6b5368d7b5e\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare95929ee40dc\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:18:54.5685793Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"fca2a15e-5f51-4a3a-b0a5-83a66d954f1a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare10495b6e629\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:18:59.0320242Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"3382d6e3-ff20-4559-b57b-213d5e16783a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare37634a77e44\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:19:04.5414892Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b25b2335-8257-44e5-ad5d-89fd48652870\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare157731779e2\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:20:57.5172022Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"994a9fac-2352-4486-8c49-57dd897e60f1\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare432292adc31\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:23:44.6259062Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"fb28d25f-3350-4584-a18b-3bc208956d5c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare6942132abed\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:23:49.3650796Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"51697207-0098-4783-9947-a742b9cd738e\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare69498d8e6ec\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:23:54.7426471Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"2638ecda-39a4-441e-98eb-c07fb197317c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare63989f58566\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:25:44.7075262Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"9d996608-69e0-4162-be60-c62243098678\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare172886d41ee\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:37:09.8425811Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"d23aa0ef-b4db-46ca-a4af-72a5bdacdeaa\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare555889b8183\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:37:14.1440431Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"8867fa35-8f67-41db-8f17-093d8f835e1a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare0221444ae95\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:37:18.8709936Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"764af4f1-e5bd-4e23-9b80-1915c5c75a7f\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare913027ca3ea\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:39:08.0371766Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"523dfa68-dbe1-4a6d-9090-882057973ace\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare76496e3ff78\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:39:13.9578809Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"5eef9e55-452b-4a1a-b3da-baa05682b85f\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare88266de8609\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:39:18.7587595Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"097859a5-dc5d-4117-9497-a8c5ce062fcd\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare82131633bde\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:40:40.9178552Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"aaf81386-42b8-4a6e-ae4f-53275e9810df\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare37367574e9b\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:40:44.3429717Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"1d261474-54d3-4147-a969-dc7278b5c789\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare663665e3285\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:40:49.2162439Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"45e40204-9143-4bd3-9eaf-8755cf868933\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare413859aafab\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:43:04.8387479Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"24661d68-006b-4651-b9a0-903b1bad3c97\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare843495ebe04\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:43:09.4006454Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b1fc8db8-c801-4fd5-b160-549dbc8137a3\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare76401d3dcac\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:43:14.5685902Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"22894ab3-bcd3-4554-afe1-0607e2e28ee3\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare68215a41927\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:44:28.0250505Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"3c7ad343-5a5c-4f32-b84a-70db331fb8e0\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare31756bed250\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:44:32.3568069Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"4123fa45-97ea-4a0e-a7cb-911b127ae87e\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare69495e5fa90\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:44:34.6588077Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"14feac0e-708e-48be-921f-f2aabd3e4476\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare965610d3a1a\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:44:38.3203299Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"90f39f6e-6df5-4e89-a031-e0cf83eea0f9\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare73659164553\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:44:41.8360392Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"efb1bb25-b1a2-4fd6-803d-c5404cce4bd9\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare64485f19d68\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:44:45.4846808Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"1f325cf3-58b2-434f-b0c2-79309782529f\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare75703943d87\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:44:49.5542019Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"d069accd-1c93-4109-bdc7-72a89115fcfd\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare420311fb4d9\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:44:55.0574002Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"88130d4d-cc8e-42f1-90bd-c7967ed8347a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare51599d3ef00\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:46:43.5569733Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b02bdc50-a043-46ff-b412-e53e21489c18\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare05830963949\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:50:34.3384037Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"f2b158fc-0fea-4c0c-ab72-0087c3529409\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare97495429262\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:50:38.7384503Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7256befe-2823-48d0-b318-5761e5118182\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare311268d8937\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:50:43.3559692Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"134dc5d8-11e5-4491-9527-0009833df8a6\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare3769889c1c0\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:51:51.6782262Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"0d8a297a-1c4d-47d4-9dfa-95a652d20e48\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare895448d74fc\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:51:55.538919Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"ffb74bff-e089-40b4-997b-9ee477b86a82\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare146011a3c0d\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:51:57.8786246Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"98caa611-87bc-4e84-aedd-8801157e6e6c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare1577327894f\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:52:01.3939109Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"6a5c038e-c556-4d11-b805-b53437fcd300\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare23738c5ce9b\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:52:04.6528314Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"0276334e-94b8-49ad-8bac-34063c5901aa\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare09748c52925\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:52:08.712769Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"eaf11ff3-b718-437c-86b5-7fe7b1dacd51\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare99540d4a81d\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:52:12.5128325Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"f9ea5ddc-688a-4cc3-af1f-de5a03b0ae26\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare75436db0875\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:52:17.7518517Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a922adbe-ad00-47c6-a771-441cbd09ec8a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare0630210ca71\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:54:04.5124538Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7d167b7f-bc81-4530-9aff-28765993b25b\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare23795da99a3\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:00:49.7983168Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7c0a7949-c787-4a62-8307-e0a7f6adfb5b\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare3717814b7b9\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:00:57.3184413Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"45b01fac-f557-477a-9711-ab344b726bdf\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare1642110d156\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:01:02.0494174Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"299b6cd9-94a4-4e09-bcd7-b6327f4c04af\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare94079d14d80\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:16.5618333Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7e0bd442-9447-4414-ad32-15a02a232914\",\"type\":\"SentShare\"}]}", + "Date" : "Thu, 23 Feb 2023 22:02:18 GMT", + "x-ms-correlation-request-id" : "71bdcbdf-1d05-4974-8792-d8f7097e0677", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares?referenceName=/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage&api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "859b24cf-8843-4be5-9766-c3ab84f8d8db" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "119229", + "StatusCode" : "200", + "Body" : "{\"value\":[{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-16T21:53:13.043479Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"c4896eff-91a1-498b-8a5c-80f767431a99\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-16T22:08:34.629631Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"e91b02d8-f288-4e0c-b613-0252b094ca18\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T00:52:31.3908649Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7b227eb4-7b08-4e10-b8eb-9f81b4f5cda5\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T00:52:32.6300787Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a0c80416-2ef3-44ae-8ccc-a453d37adcd3\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T00:52:51.1580922Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"ba3d71e5-bc8c-45a6-b711-61c01cbafd83\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T00:54:29.2960652Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a26f29a9-cd89-4b47-a9f1-232d9c1d42d4\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T00:54:32.3911962Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"0a8d468b-89de-4e85-881c-02fbe754727f\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T00:54:52.995116Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"1b3dbb2c-2531-4568-a6bd-fa578a34410d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T00:55:21.9799961Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"9615b197-2800-4c0f-90c0-50f71ffb0819\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T00:55:23.9068714Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"dd3c6ce3-06a0-4b09-a7f0-bd357890525d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:26:58.5671923Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a253f0fb-5941-4ecf-aacd-68352a188e82\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:27:02.819911Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"4a143daa-c839-4942-8404-0a306d3ffb4a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:27:05.2095701Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a9a6a23a-d7a0-4bfd-bd8d-f05c3e6efe34\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:27:19.0973316Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"2c056016-7e66-4376-a4b7-5789b66a6449\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:30:23.702324Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"852b36fc-c44d-4c0a-9651-42b678dac4bd\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:38:52.3623407Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"9874070c-abd8-47fa-a39c-811784f19308\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:38:56.2296937Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"2bf63a6f-6986-4bd8-a7e6-7a2e81b3adce\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:38:58.3847456Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"aa8ea91c-ab0e-4806-ad7c-7def5d03969b\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:39:34.2844496Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7edc67c9-affd-4615-8abb-1fa8e93e12ca\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T01:42:50.2446504Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"40d1f610-73a2-47b1-9459-37f37c26b208\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:25:52.111361Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"d531830d-3c25-423b-98bf-ab3bfcfa0c2d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:27:35.3147506Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7793f49f-f38c-43c3-a18d-589fe7cfe1d2\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:36:50.786201Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"6afda968-23b2-4d51-a390-f5c17d545cb7\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:39:28.3544395Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"5ac32c10-469f-4841-a8c7-1ac7ebe10602\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:42:27.314248Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"69fbae71-8160-478a-ba1c-e08c67ea5ba9\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:50:09.5463731Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"20bf9c00-fa94-4a56-b364-3a6ea6fc8619\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:58:47.3749253Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a4ef4261-469d-4b61-9f1b-482b674fbec8\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:59:18.5646055Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"3799ec56-22c7-4b65-9ca6-c1002f774860\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T21:59:57.4936601Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"e4e90dd0-c5a8-45dd-acbc-6cd3bb9258d8\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:00:41.5744011Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"94813e36-1e42-4e15-a3c7-c8b26a83b04d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:01:52.8624184Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"f6fc006f-4a80-4081-8f81-f47a227d1079\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:06:36.4610275Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"4d8d6f60-622b-4caa-b907-95e1d2e05c2c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:10:49.5085415Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"cfdcccc1-d8f7-4b98-abba-7c47269e9673\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:10:52.1786057Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b245fd10-2e0e-45bb-826b-b7a38d540e65\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:10:54.6522858Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"054e971d-b3b5-48b5-aad8-ec166864d66e\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:14:10.8492679Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"c3461633-66f0-4fd2-9499-5c175c1b1829\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:14:46.2973703Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"23319689-62b3-4e9d-9628-8db5111cf041\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:15:06.3681707Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"6c3aa5f4-9009-4495-8fbb-8ff71f18c048\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:15:18.080995Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"f9dd8e09-2a60-4265-9308-bc181ae87311\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:18:14.1299784Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"85233125-3639-4359-a1ba-f1c8d672b80c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:18:16.8007972Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"63184daf-5528-47d5-abb0-b3fdd18745b9\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:18:19.7433007Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"03e33498-b6a6-4861-af96-f27c7329f660\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:19:30.4617995Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"2e8d344b-bb34-442e-8675-428d10bfe01c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:20:34.5379242Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"41528440-2bdc-4183-a975-b4293e03bb86\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:20:38.0573043Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"5c082fe7-4e18-4632-ba3a-01230e41adf9\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:20:40.2812918Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"af8474aa-4a79-4108-aec2-22c68cfc70d2\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:36:18.8740143Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"4d67564c-ec87-46b4-bedd-a593339444db\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:38:01.6999592Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"bd4d3e47-34f6-4c42-a77a-09ab38f1c3b7\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:38:33.1695383Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"aeddac6e-a91c-4562-ac9c-0ca2fbd6bafd\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:38:36.3108981Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"f3e9b6c6-3d13-4b07-8bfa-09ea9e78fbeb\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:38:38.4132083Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"ec9690e9-959f-40e6-bc3f-8fa7b1cdb6a9\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:39:56.3090966Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"f77ccab7-69cc-43ff-bfad-26fce23a5cb9\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:39:59.7674282Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"418826bc-6183-4830-8447-15395444663d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:40:06.7846206Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"c8d95750-d697-4e2d-ac75-abbfdd4e4bb2\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:40:44.8225122Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"69405883-6e8d-4be6-a59f-37a155941ef1\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:42:05.9499404Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"0ef6eab9-2ce4-4cd6-8f3e-682905bf9d3d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:51:50.7698254Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"d93eed46-93fe-410b-9ef2-2b64eb057cd6\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:57:34.4056645Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"4f4aeea0-0f18-4bb2-9221-1fe7a6f21cc0\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T22:58:57.3890334Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"00f294b7-7943-4e6b-be56-fe07b906e7f2\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sample-share\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:08:09.4555802Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"5d734a87-4846-415a-89fe-7d7ca478767f\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare9055340bf04\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:21:15.9796009Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"9cc21b6c-8367-41f6-b7ca-2ed303857ee2\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare07594b5d90e\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:23:08.1008661Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"3e549c48-2e6e-4c96-95d8-1c9bc7cc7ebf\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare2818270f944\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:23:58.0670083Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"eb996b2b-f599-444f-84e7-4cceab1d4945\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare424255dd9a3\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:24:15.973568Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"46b86b41-76fa-4b25-8e35-16f615301e63\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare705516051af\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:49:36.5084777Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"8d776298-3cdd-4931-bb04-0acffa326a87\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare7776228b536\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:49:40.4842226Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"2336f834-adfa-423c-ba16-fadfdb75cae4\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare87291a44a18\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:49:42.8542104Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b49f30af-6804-4341-89cf-4c2212855a86\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare58024241247\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:49:46.0912076Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"fb20dfcf-8b81-44ce-95da-2f65a154d3d5\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare027824cc35a\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:54:21.0635935Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"fc439c2c-297e-4642-8371-912c18260b1e\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare86330bd144d\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:54:24.3827995Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"9fcabbce-bc3b-4d3f-ba9f-6073e7290861\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare952831a55d3\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:54:27.8201232Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"83caf0e0-dcff-4b9b-a08f-b69265c33436\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare054625377c8\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-17T23:54:30.7493323Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"3087d597-987c-4909-8336-ccd075021d40\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare771705a227e\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:10:06.2247571Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"bc060512-38e3-417b-aa8d-208b1866388d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare645770f26cd\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:11:22.0335859Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a02b58ae-4f19-4263-b43f-e703579bef10\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare66783cb738d\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:11:28.8163488Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"aded2171-2fef-4c00-b842-254a73fb29cf\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare56827731dfe\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:11:31.0642916Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"9c8f12f0-423b-4d73-a68c-877dbe118e4b\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare88382eb655e\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:13:47.4091498Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7bad4d9c-1f34-42aa-91ee-4314742144f6\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare046645de694\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:22:21.6335815Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"14d95064-0757-4c9e-8edc-db43e0335a9f\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare487062ae012\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:22:26.8536446Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"4363060f-220c-4c41-af35-4d57e2675b74\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare98158ca9fdb\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:22:29.6335657Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"717745d6-70b7-4045-b767-d396406928c6\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare683830b6f93\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:22:32.2209696Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"56939ec6-463e-4484-93f8-204b71b8aabd\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare650926de10d\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:23:20.5535391Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"65cbcd7a-582f-46fa-ab5c-d9345f0f720c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare151059e2a3b\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:35:30.8436211Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"6f372760-630d-4f1d-959f-1b11690edeba\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare655402c9f3c\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:35:37.1988854Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"498acd55-4c15-4121-99c7-7a4df395bc04\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare5124147fd90\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:35:39.7625982Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"9f9bb053-4eaa-48e6-ab7c-9ba94eef1044\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare41813aa62ca\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:35:43.5910098Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"ba529a4c-9139-4f04-882f-3bdf2a6360df\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare378643de831\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T16:35:46.0780246Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"14fd1c22-f52d-4a7a-acc9-a4cef736af35\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare72733ff2287\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:15:18.6814556Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7d93a1fe-11a1-4be6-a028-a03e9f5d9e59\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare76386bdeca1\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:15:23.1819777Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"6f40b449-e63c-4c44-8fec-4ad40b303212\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare89973c8e329\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:16:32.9921046Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a62e03ca-9518-4288-b6d8-8946cce5c762\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare24818767e3a\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:16:36.650327Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"4891a076-48a9-4693-aaca-c8a75f2cf451\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare73181674da2\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:16:39.4599186Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"2c674709-e3d5-4ba2-bf83-f776aa15dbf2\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare34666139390\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:23:31.9407894Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"00ec050b-bd5a-4b7e-b4d5-b610a123a801\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare46511b40248\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:23:36.9277394Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a1b4e9ef-72d9-4ec7-8fa0-9f3cf1759e8e\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare966093423ca\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:24:48.3103814Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"d61f6581-7ab7-484d-b8e9-60af4e5366a3\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare993543a8c54\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:24:54.2194006Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"ee43638b-b2a6-4d88-9bb7-4edeec3844ba\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare38516c0acb9\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:24:56.8962266Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"88c1749a-d34f-4c5b-a896-44c47551ba7a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare15995ad6879\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:27:30.3872396Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b1a462fc-e773-4a4e-bfbb-92ca3f7ec646\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare3743559cc20\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:34:04.9265302Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"146d0ead-5d61-4348-94be-2b89a1f676e3\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare64903c66b2d\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:34:09.5221212Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a24dc8a5-bfc8-45de-9bd4-7791af7e1f1d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare0377380fa61\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:34:14.2679863Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"86da9377-d495-4edc-aa4a-883acf75964a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare99473ef3dfe\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:35:28.979779Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7e9a1547-f2a9-4795-b574-1206df75a933\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare062377bb05f\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:35:34.0028224Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"09cc9434-6b47-4c6e-a89f-77dfb23144be\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare360852db4e4\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:35:36.4701427Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"88a20074-c0f8-47a4-b3cc-2c051efd091a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare5724562e0ab\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:43:37.5419397Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b0aa93f4-4518-4466-b956-a1b73b7fbd81\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare333044807fb\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:43:43.0856696Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"643d1f1c-3999-4d1d-9bc5-35c4acfcba24\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare39687f387b5\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:43:48.0904763Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"d02c183f-f930-4229-8dc0-1a661b7623d8\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare90479000e9a\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:45:00.2099067Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"0693c6ae-cf81-416a-8430-da9df422f97c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare58256b4b05b\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:45:05.338188Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"d190d246-acc9-4c94-9b81-6e7718a94c6c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare464705de1eb\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:45:07.9900559Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"232641ab-c625-44f0-b318-8a626ba51ea4\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare07216075e49\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:45:11.7806988Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"355d7792-95e1-4a38-bde6-f3e121b31ac1\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare892497cbe97\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:45:15.6346838Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"5dc589c0-fcad-4006-ba28-496c0afbd9c8\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare23146a88ba2\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T17:45:43.2046048Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"66e22b42-88ae-46e6-9358-e2d89b9dc991\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare96335c5e8ad\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:05:45.0471183Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"45854143-1cf4-4c15-8294-6fd6216b3af7\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare7221074b2bd\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:05:50.6810076Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"166a3f45-392c-4eab-8f2b-7f9f4dca5aa8\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare8222490e369\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:05:55.9470296Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"fb33139d-80b1-48a2-8329-256823531c77\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare1722007e4b5\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:07:53.148785Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"60831ac8-623b-4765-a29f-86fcaa9b4cee\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare09687265d61\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:08:19.40733Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"0e4560b6-3ca9-451b-ab50-8e2495c7e311\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare42466227415\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:08:23.4133669Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"163b3c64-2482-4fcd-8a07-c1aa08a2a4cd\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare11225a99a26\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:08:28.2015079Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"9d643c9f-ea0d-4330-afcb-e193874bc92a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare7819100ba52\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:08:31.0771626Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"68a551b2-9174-479c-acc9-a9fa665e254d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare7710391b351\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:09:04.6233411Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b56f2796-dbb9-4e21-8d25-2799df8e9daf\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare43821f2e2ec\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:09:08.4786099Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"c4231ad4-073e-4d13-b6c0-d31fbf54766d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare4894059d962\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:09:13.8741148Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7b684662-74f0-4798-9495-ae617335faae\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare45205a30927\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:11:02.0031039Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"ffc1da70-6e8e-4b5c-8b2d-7042e2f46ccb\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare003416b780f\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:12:06.6547004Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"d43c4208-5ace-475f-970e-999b8a2c3257\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare004838add73\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:12:47.6505509Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"15940bed-8dcf-418b-bc37-5f661c75471d\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare99810f4fe60\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:18:11.9154847Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7e63896f-4758-412b-9698-b6b5368d7b5e\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare95929ee40dc\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:18:54.5685793Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"fca2a15e-5f51-4a3a-b0a5-83a66d954f1a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare10495b6e629\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:18:59.0320242Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"3382d6e3-ff20-4559-b57b-213d5e16783a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare37634a77e44\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:19:04.5414892Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b25b2335-8257-44e5-ad5d-89fd48652870\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare157731779e2\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:20:57.5172022Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"994a9fac-2352-4486-8c49-57dd897e60f1\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare432292adc31\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:23:44.6259062Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"fb28d25f-3350-4584-a18b-3bc208956d5c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare6942132abed\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:23:49.3650796Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"51697207-0098-4783-9947-a742b9cd738e\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare69498d8e6ec\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:23:54.7426471Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"2638ecda-39a4-441e-98eb-c07fb197317c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare63989f58566\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T18:25:44.7075262Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"9d996608-69e0-4162-be60-c62243098678\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare172886d41ee\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:37:09.8425811Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"d23aa0ef-b4db-46ca-a4af-72a5bdacdeaa\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare555889b8183\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:37:14.1440431Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"8867fa35-8f67-41db-8f17-093d8f835e1a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare0221444ae95\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:37:18.8709936Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"764af4f1-e5bd-4e23-9b80-1915c5c75a7f\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare913027ca3ea\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:39:08.0371766Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"523dfa68-dbe1-4a6d-9090-882057973ace\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare76496e3ff78\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:39:13.9578809Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"5eef9e55-452b-4a1a-b3da-baa05682b85f\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare88266de8609\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:39:18.7587595Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"097859a5-dc5d-4117-9497-a8c5ce062fcd\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare82131633bde\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:40:40.9178552Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"aaf81386-42b8-4a6e-ae4f-53275e9810df\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare37367574e9b\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:40:44.3429717Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"1d261474-54d3-4147-a969-dc7278b5c789\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare663665e3285\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:40:49.2162439Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"45e40204-9143-4bd3-9eaf-8755cf868933\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare413859aafab\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:43:04.8387479Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"24661d68-006b-4651-b9a0-903b1bad3c97\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare843495ebe04\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:43:09.4006454Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b1fc8db8-c801-4fd5-b160-549dbc8137a3\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare76401d3dcac\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:43:14.5685902Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"22894ab3-bcd3-4554-afe1-0607e2e28ee3\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare68215a41927\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:44:28.0250505Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"3c7ad343-5a5c-4f32-b84a-70db331fb8e0\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare31756bed250\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:44:32.3568069Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"4123fa45-97ea-4a0e-a7cb-911b127ae87e\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare69495e5fa90\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:44:34.6588077Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"14feac0e-708e-48be-921f-f2aabd3e4476\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare965610d3a1a\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:44:38.3203299Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"90f39f6e-6df5-4e89-a031-e0cf83eea0f9\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare73659164553\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:44:41.8360392Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"efb1bb25-b1a2-4fd6-803d-c5404cce4bd9\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare64485f19d68\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:44:45.4846808Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"1f325cf3-58b2-434f-b0c2-79309782529f\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare75703943d87\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:44:49.5542019Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"d069accd-1c93-4109-bdc7-72a89115fcfd\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare420311fb4d9\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:44:55.0574002Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"88130d4d-cc8e-42f1-90bd-c7967ed8347a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare51599d3ef00\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T20:46:43.5569733Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"b02bdc50-a043-46ff-b412-e53e21489c18\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare05830963949\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:50:34.3384037Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"f2b158fc-0fea-4c0c-ab72-0087c3529409\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare97495429262\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:50:38.7384503Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7256befe-2823-48d0-b318-5761e5118182\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare311268d8937\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:50:43.3559692Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"134dc5d8-11e5-4491-9527-0009833df8a6\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare3769889c1c0\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:51:51.6782262Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"0d8a297a-1c4d-47d4-9dfa-95a652d20e48\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare895448d74fc\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:51:55.538919Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"ffb74bff-e089-40b4-997b-9ee477b86a82\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare146011a3c0d\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:51:57.8786246Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"98caa611-87bc-4e84-aedd-8801157e6e6c\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare1577327894f\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:52:01.3939109Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"6a5c038e-c556-4d11-b805-b53437fcd300\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare23738c5ce9b\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:52:04.6528314Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"0276334e-94b8-49ad-8bac-34063c5901aa\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare09748c52925\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:52:08.712769Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"eaf11ff3-b718-437c-86b5-7fe7b1dacd51\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare99540d4a81d\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:52:12.5128325Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"f9ea5ddc-688a-4cc3-af1f-de5a03b0ae26\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare75436db0875\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:52:17.7518517Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"a922adbe-ad00-47c6-a771-441cbd09ec8a\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare0630210ca71\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T21:54:04.5124538Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7d167b7f-bc81-4530-9aff-28765993b25b\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare23795da99a3\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:00:49.7983168Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7c0a7949-c787-4a62-8307-e0a7f6adfb5b\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare3717814b7b9\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:00:57.3184413Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"45b01fac-f557-477a-9711-ab344b726bdf\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare1642110d156\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:01:02.0494174Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"299b6cd9-94a4-4e09-bcd7-b6327f4c04af\",\"type\":\"SentShare\"},{\"properties\":{\"displayName\":\"sentshare94079d14d80\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:16.5618333Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"7e0bd442-9447-4414-ad32-15a02a232914\",\"type\":\"SentShare\"}]}", + "Date" : "Thu, 23 Feb 2023 22:02:19 GMT", + "x-ms-correlation-request-id" : "b2017759-7c88-4834-9f8e-53b64a0a52bf", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "7e0bd442-9447-4414-ad32-15a02a232914", "sentshare94079d14d80" ] +} \ No newline at end of file diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.getSentShareServiceInvitation.json b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.getSentShareServiceInvitation.json new file mode 100644 index 0000000000000..bab865ce20dd9 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.getSentShareServiceInvitation.json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/226f2a35-21ee-4d20-9f07-d41016baa70a?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "b3ca6b39-aa7d-44a9-b0b3-b8d8fc3d8a2d", + "Content-Type" : "application/json" + }, + "Response" : { + "Operation-Id" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "201", + "Operation-Location" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Body" : "{\"properties\":{\"displayName\":\"sentshare97659933a7e\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:31.8810251Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"226f2a35-21ee-4d20-9f07-d41016baa70a\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:31 GMT", + "x-ms-correlation-request-id" : "2705e969-31c4-4766-a180-9aa3127110fe", + "Location" : "/sentShares/226f2a35-21ee-4d20-9f07-d41016baa70a/226f2a35-21ee-4d20-9f07-d41016baa70a", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "0e3070d1-d8d3-45d4-b27a-71743cf4c386" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "119", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:02:33.4262987Z\",\"endTime\":\"2023-02-23T22:02:33.4262987Z\",\"status\":\"Succeeded\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:02:32 GMT", + "x-ms-correlation-request-id" : "e822b804-56a8-4689-9d15-13677f5dd6bd", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares/226f2a35-21ee-4d20-9f07-d41016baa70a?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "892e0f64-10e8-4c68-b8ed-cec39ad5e957" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "200", + "Body" : "{\"properties\":{\"displayName\":\"sentshare97659933a7e\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:02:31.8810251Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"226f2a35-21ee-4d20-9f07-d41016baa70a\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:02:33 GMT", + "x-ms-correlation-request-id" : "b76aba8a-1333-4a06-8951-a4f95c832410", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/226f2a35-21ee-4d20-9f07-d41016baa70a/sentShareInvitations/a60d00c1-8962-4cfa-8687-80d554daab41?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "23d0b7a6-0237-40a2-af8e-e3095afb0ed1", + "Content-Type" : "application/json" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "402", + "StatusCode" : "201", + "Body" : "{\"properties\":{\"targetActiveDirectoryId\":\"4653a7b2-02ff-4155-8e55-2d0c7f3178a1\",\"targetObjectId\":\"68700464-B46c-4ec0-88ff-6061da36da69\",\"shareStatus\":\"Detached\",\"sentAt\":\"2023-02-23T22:02:33.890921Z\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"state\":\"Succeeded\"},\"invitationKind\":\"Service\",\"id\":\"a60d00c1-8962-4cfa-8687-80d554daab41\",\"type\":\"sentShares/sentShareInvitations\"}", + "Date" : "Thu, 23 Feb 2023 22:02:33 GMT", + "x-ms-correlation-request-id" : "c311a7d4-b366-4ad5-9f48-6d55f40ad188", + "Location" : "/sentShares/226f2a35-21ee-4d20-9f07-d41016baa70a/sentShareInvitations/a60d00c1-8962-4cfa-8687-80d554daab41/a60d00c1-8962-4cfa-8687-80d554daab41", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares/226f2a35-21ee-4d20-9f07-d41016baa70a/sentShareInvitations/a60d00c1-8962-4cfa-8687-80d554daab41?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "bec36630-cfcc-4aea-ad22-beb7d807f8d7" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "402", + "StatusCode" : "200", + "Body" : "{\"properties\":{\"targetActiveDirectoryId\":\"4653a7b2-02ff-4155-8e55-2d0c7f3178a1\",\"targetObjectId\":\"68700464-B46c-4ec0-88ff-6061da36da69\",\"shareStatus\":\"Detached\",\"sentAt\":\"2023-02-23T22:02:33.890921Z\",\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\",\"state\":\"Succeeded\"},\"invitationKind\":\"Service\",\"id\":\"a60d00c1-8962-4cfa-8687-80d554daab41\",\"type\":\"sentShares/sentShareInvitations\"}", + "Date" : "Thu, 23 Feb 2023 22:02:33 GMT", + "x-ms-correlation-request-id" : "382b747e-73b6-4f81-a33b-ccba7ec7d4f4", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "226f2a35-21ee-4d20-9f07-d41016baa70a", "a60d00c1-8962-4cfa-8687-80d554daab41", "sentshare97659933a7e" ] +} \ No newline at end of file diff --git a/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.getSentShareTest.json b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.getSentShareTest.json new file mode 100644 index 0000000000000..693debfd80f84 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/src/test/resources/session-records/SentShareClientTest.getSentShareTest.json @@ -0,0 +1,84 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://account.purview.azure.com/share/sentShares/299b6cd9-94a4-4e09-bcd7-b6327f4c04af?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "b8f23861-350e-4679-b00a-29c1eed85a26", + "Content-Type" : "application/json" + }, + "Response" : { + "Operation-Id" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "201", + "Operation-Location" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Body" : "{\"properties\":{\"displayName\":\"sentshare1642110d156\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:01:02.0494174Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"299b6cd9-94a4-4e09-bcd7-b6327f4c04af\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:01:01 GMT", + "x-ms-correlation-request-id" : "95a94768-1b61-4193-b048-19ae23d720f5", + "Location" : "/sentShares/299b6cd9-94a4-4e09-bcd7-b6327f4c04af/299b6cd9-94a4-4e09-bcd7-b6327f4c04af", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "6b8c8826-7262-4606-9b05-e66804cc9054" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "119", + "StatusCode" : "200", + "Body" : "{\"startTime\":\"2023-02-23T22:01:03.6039988Z\",\"endTime\":\"2023-02-23T22:01:03.6039988Z\",\"status\":\"Succeeded\",\"error\":null}", + "Date" : "Thu, 23 Feb 2023 22:01:03 GMT", + "x-ms-correlation-request-id" : "f7bb71c9-ea8f-4970-aa0d-af76286c8b57", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares/299b6cd9-94a4-4e09-bcd7-b6327f4c04af?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "cde087fe-4428-49fb-8a40-c93f6fbb265a" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "200", + "Body" : "{\"properties\":{\"displayName\":\"sentshare1642110d156\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:01:02.0494174Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"299b6cd9-94a4-4e09-bcd7-b6327f4c04af\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:01:03 GMT", + "x-ms-correlation-request-id" : "18741ee4-4e0f-4c76-a95e-08ff8935d1e4", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://account.purview.azure.com/share/sentShares/299b6cd9-94a4-4e09-bcd7-b6327f4c04af?api-version=2023-02-15-preview", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-purview-sharing/1.0.0-beta.1 (17.0.4.1; Windows 11; 10.0)", + "x-ms-client-request-id" : "d0d8dfc1-6508-45f4-8f64-96d7730cc77a" + }, + "Response" : { + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Server" : "Kestrel", + "retry-after" : "0", + "Content-Length" : "691", + "StatusCode" : "200", + "Body" : "{\"properties\":{\"displayName\":\"sentshare1642110d156\",\"description\":\"A sample share\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"test-files\",\"senderPath\":\"graph.png\",\"receiverPath\":\"graph.png\"}],\"location\":\"japaneast\"},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"referenceName\":\"/subscriptions/8af54e97-8629-48cd-A92e-24753982bf92/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/providerstorage\",\"type\":\"ArmResourceReference\"}},\"state\":\"Succeeded\",\"createdAt\":\"2023-02-23T22:01:02.0494174Z\",\"dependsOn\":[],\"senderName\":\"my-share-app\",\"senderTenantName\":\"Contoso\"},\"shareKind\":\"InPlace\",\"id\":\"299b6cd9-94a4-4e09-bcd7-b6327f4c04af\",\"type\":\"SentShare\"}", + "Date" : "Thu, 23 Feb 2023 22:01:03 GMT", + "x-ms-correlation-request-id" : "46e2ca89-f862-4828-9d8c-0c247cc93fe0", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ "299b6cd9-94a4-4e09-bcd7-b6327f4c04af", "sentshare1642110d156" ] +} \ No newline at end of file diff --git a/sdk/purview/azure-analytics-purview-sharing/swagger/README.md b/sdk/purview/azure-analytics-purview-sharing/swagger/README.md new file mode 100644 index 0000000000000..5ffbb37344770 --- /dev/null +++ b/sdk/purview/azure-analytics-purview-sharing/swagger/README.md @@ -0,0 +1,49 @@ +## Generate autorest code + +```yaml +input-file: +- https://github.com/Azure/azure-rest-api-specs/blob/12cbd66750c4dfe302e9eca42b1fc727f8c02700/specification/purview/data-plane/Azure.Analytics.Purview.Share/preview/2023-02-15-preview/share.json +output-folder: ../ +java: true +regenerate-pom: false +data-plane: true +generate-tests: true +artifact-id: azure-analytics-purview-sharing +generate-samples: true +namespace: com.azure.analytics.purview.sharing +service-versions: +- 2023-02-15-preview +directive: + rename-operation: + [ + from: "SentShares_Get", + to: "SentShares_GetSentShare", + from: "SentShares_CreateOrReplace", + to: "SentShares_CreateOrReplaceSentShare", + from: "SentShares_Delete", + to: "SentShares_DeleteSentShare", + from: "SentShares_List", + to: "SentShares_GetAllSentShares", + from: "SentShares_GetInvitation", + to: "SentShares_GetSentShareInvitation", + from: "SentShares_CreateInvitation", + to: "SentShares_CreateSentShareInvitation", + from: "SentShares_DeleteInvitation", + to: "SentShares_DeleteSentShareInvitation", + from: "SentShares_ListInvitations", + to: "SentShares_GetAllSentShareInvitations", + from: "SentShares_NotifyUserInvitation", + to: "SentShares_NotifyUserSentShareInvitation", + from: "ReceivedShares_Get", + to: "ReceivedShares_GetReceivedShare", + from: "ReceivedShares_CreateOrReplace", + to: "ReceivedShares_CreateOrReplaceReceivedShare", + from: "ReceivedShares_Delete", + to: "ReceivedShares_DeleteReceivedShare", + from: "ReceivedShares_ListAttached", + to: "ReceivedShares_GetAllAttachedReceivedShares", + from: "ReceivedShares_ListDetached", + to: "ReceivedShares_GetAllDetachedReceivedShares", + ] +``` +``` diff --git a/sdk/purview/ci.yml b/sdk/purview/ci.yml index b29de30e1143d..ca95d9b7e40e9 100644 --- a/sdk/purview/ci.yml +++ b/sdk/purview/ci.yml @@ -53,6 +53,10 @@ parameters: displayName: azure-resourcemanager-purview type: boolean default: false + - name: release_azureanalyticspurviewsharing + displayName: azure-analytics-purview-sharing + type: boolean + default: true - name: release_azureanalyticspurviewworkflow displayName: azure-analytics-purview-workflow type: boolean @@ -80,6 +84,10 @@ extends: groupId: com.azure.resourcemanager safeName: azureresourcemanagerpurview releaseInBatch: ${{ parameters.release_azureresourcemanagerpurview }} + - name: azure-analytics-purview-sharing + groupId: com.azure + safeName: azureanalyticspurviewsharing + releaseInBatch: ${{ parameters.release_azureanalyticspurviewsharing }} - name: azure-analytics-purview-workflow groupId: com.azure safeName: azureanalyticspurviewworkflow diff --git a/sdk/purview/pom.xml b/sdk/purview/pom.xml index ec1fd0169c07e..0a8435eb4a423 100644 --- a/sdk/purview/pom.xml +++ b/sdk/purview/pom.xml @@ -12,6 +12,7 @@ azure-analytics-purview-administration azure-analytics-purview-catalog azure-analytics-purview-scanning + azure-analytics-purview-sharing azure-analytics-purview-workflow azure-resourcemanager-purview