azure.purview.sharing.aio.operations package¶
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
PurviewSharingClient’sreceived_sharesattribute.-
async
activate_tenant_email_registration(tenant_email_registration: IO, *, repeatability_request_id: Optional[str] = 'None', content_type: str = "'application/json'", **kwargs: Any) → JSON Activates the tenant and email combination using the activation code received.
Activates the email registration for current tenant.
- Parameters
tenant_email_registration (JSON or IO) – The tenant email registration payload. Is either a JSON type or a IO type. Required.
- Keyword Arguments
repeatability_request_id (str) – If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same Repeatability-Request-Id and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-Id is an opaque string representing a client-generated, globally unique for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs. Default value is None.
content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.
- Returns
JSON object
- Return type
JSON
- Raises
Example
# JSON input template you can fill out and use as your body input. tenant_email_registration = { "id": "str", # Optional. The unique id of the resource. "properties": { "activationCode": "str", # Activation code for the registration. Required. "activationExpiration": "2020-02-20 00:00:00", # Optional. Date of the activation expiration. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "email": "str", # Optional. The email to register. "registrationStatus": "str", # Optional. Defines the supported types for registration. Known values are: "ActivationPending", "Activated", and "ActivationAttemptsExhausted". "state": "str", # Optional. State of the resource. Known values are: "Unknown", "Succeeded", "Creating", "Deleting", "Moving", and "Failed". "tenantId": "str" # Optional. The tenant id to register. }, "type": "str" # Optional. Type of the resource. } # response body for status code(s): 200 response == { "id": "str", # Optional. The unique id of the resource. "properties": { "activationCode": "str", # Activation code for the registration. Required. "activationExpiration": "2020-02-20 00:00:00", # Optional. Date of the activation expiration. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "email": "str", # Optional. The email to register. "registrationStatus": "str", # Optional. Defines the supported types for registration. Known values are: "ActivationPending", "Activated", and "ActivationAttemptsExhausted". "state": "str", # Optional. State of the resource. Known values are: "Unknown", "Succeeded", "Creating", "Deleting", "Moving", and "Failed". "tenantId": "str" # Optional. The tenant id to register. }, "type": "str" # Optional. Type of the resource. }
-
async
begin_create_or_replace(received_share_id: str, received_share: IO, *, content_type: str = "'application/json'", **kwargs: Any) → AsyncLROPoller[JSON] Create or replace a received share.
Update changes to a received share.
- Parameters
received_share_id (str) – Id of the received share. Required.
received_share (JSON or IO) – The received share to create or replace. Is either a JSON type or a IO type. Required.
- Keyword Arguments
content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.
continuation_token (str) – A continuation token to restart a poller from a saved state.
polling (bool or AsyncPollingMethod) – By default, your polling method will be AsyncLROBasePolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.
- Returns
An instance of AsyncLROPoller that returns JSON object
- Return type
AsyncLROPoller[JSON]
- Raises
Example
# The input is polymorphic. The following are possible polymorphic inputs based off discriminator "shareKind": # JSON input template for discriminator value "InPlace": received_share = { "properties": { "assetLocation": "str", # Optional. Location of the shared Asset. "assetStoreKind": "str", # Optional. The types of asset. Known values are: "AdlsGen2Account" and "BlobAccount". "createdAt": "2020-02-20 00:00:00", # Optional. Time at which the received share was created. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "displayName": "str", # Optional. Received Share Name. "expirationDate": "2020-02-20 00:00:00", # Optional. The expiration date of the received share. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "receiverEmail": "str", # Optional. Email of the user/receiver who received the sent share invitation. "receiverName": "str", # Optional. Name of the user/receiver who received the sent share invitation. "receiverTenantName": "str", # Optional. Tenant name of the user/receiver who received the sent share invitation. "senderEmail": "str", # Optional. Email of the sender who created the sent share invitation. "senderName": "str", # Optional. Name of the sender who created the sent share invitation. "senderTenantName": "str", # Optional. Tenant name of the sender who created the sent share invitation. "sentShareDescription": "str", # Optional. Share description. "shareStatus": "str", # Optional. Share status. Known values are: "Detached" and "Attached". "sharedAt": "2020-02-20 00:00:00", # Optional. Time at which the sent share was shared. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "sink": sink, "state": "str" # Optional. State of the resource. Known values are: "Unknown", "Succeeded", "Creating", "Deleting", "Moving", and "Failed". }, "shareKind": "InPlace", "id": "str", # Optional. The unique id of the resource. "type": "str" # Optional. Type of the resource. } # JSON input template for discriminator value "AdlsGen2Account": sink = { "properties": { "containerName": "str", # Adls Gen 2 Container Name. Required. "folder": "str", # Adls Gen 2 Folder. Required. "location": "str", # Optional. Adls Gen 2 Location. "mountPath": "str" # Optional. Adls Gen 2 Mount Path. }, "storeKind": "AdlsGen2Account", "storeReference": { "referenceName": "str", # Optional. Reference name for resource associated with the sink or artifact. "type": "str" # Optional. Defines the type of resource being shared. "ArmResourceReference" } } # JSON input template for discriminator value "BlobAccount": sink = { "properties": { "containerName": "str", # Blob Container Name. Required. "folder": "str", # Blob Folder. Required. "location": "str", # Optional. Blob Location. "mountPath": "str" # Optional. Blob Mount Path. }, "storeKind": "BlobAccount", "storeReference": { "referenceName": "str", # Optional. Reference name for resource associated with the sink or artifact. "type": "str" # Optional. Defines the type of resource being shared. "ArmResourceReference" } } # JSON input template you can fill out and use as your body input. received_share = received_share # The response is polymorphic. The following are possible polymorphic responses based off discriminator "shareKind": # JSON input template for discriminator value "InPlace": received_share = { "properties": { "assetLocation": "str", # Optional. Location of the shared Asset. "assetStoreKind": "str", # Optional. The types of asset. Known values are: "AdlsGen2Account" and "BlobAccount". "createdAt": "2020-02-20 00:00:00", # Optional. Time at which the received share was created. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "displayName": "str", # Optional. Received Share Name. "expirationDate": "2020-02-20 00:00:00", # Optional. The expiration date of the received share. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "receiverEmail": "str", # Optional. Email of the user/receiver who received the sent share invitation. "receiverName": "str", # Optional. Name of the user/receiver who received the sent share invitation. "receiverTenantName": "str", # Optional. Tenant name of the user/receiver who received the sent share invitation. "senderEmail": "str", # Optional. Email of the sender who created the sent share invitation. "senderName": "str", # Optional. Name of the sender who created the sent share invitation. "senderTenantName": "str", # Optional. Tenant name of the sender who created the sent share invitation. "sentShareDescription": "str", # Optional. Share description. "shareStatus": "str", # Optional. Share status. Known values are: "Detached" and "Attached". "sharedAt": "2020-02-20 00:00:00", # Optional. Time at which the sent share was shared. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "sink": sink, "state": "str" # Optional. State of the resource. Known values are: "Unknown", "Succeeded", "Creating", "Deleting", "Moving", and "Failed". }, "shareKind": "InPlace", "id": "str", # Optional. The unique id of the resource. "type": "str" # Optional. Type of the resource. } # JSON input template for discriminator value "AdlsGen2Account": sink = { "properties": { "containerName": "str", # Adls Gen 2 Container Name. Required. "folder": "str", # Adls Gen 2 Folder. Required. "location": "str", # Optional. Adls Gen 2 Location. "mountPath": "str" # Optional. Adls Gen 2 Mount Path. }, "storeKind": "AdlsGen2Account", "storeReference": { "referenceName": "str", # Optional. Reference name for resource associated with the sink or artifact. "type": "str" # Optional. Defines the type of resource being shared. "ArmResourceReference" } } # JSON input template for discriminator value "BlobAccount": sink = { "properties": { "containerName": "str", # Blob Container Name. Required. "folder": "str", # Blob Folder. Required. "location": "str", # Optional. Blob Location. "mountPath": "str" # Optional. Blob Mount Path. }, "storeKind": "BlobAccount", "storeReference": { "referenceName": "str", # Optional. Reference name for resource associated with the sink or artifact. "type": "str" # Optional. Defines the type of resource being shared. "ArmResourceReference" } } # The response is polymorphic. The following are possible polymorphic responses based off discriminator "shareKind": # JSON input template for discriminator value "InPlace": received_share = { "properties": { "assetLocation": "str", # Optional. Location of the shared Asset. "assetStoreKind": "str", # Optional. The types of asset. Known values are: "AdlsGen2Account" and "BlobAccount". "createdAt": "2020-02-20 00:00:00", # Optional. Time at which the received share was created. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "displayName": "str", # Optional. Received Share Name. "expirationDate": "2020-02-20 00:00:00", # Optional. The expiration date of the received share. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "receiverEmail": "str", # Optional. Email of the user/receiver who received the sent share invitation. "receiverName": "str", # Optional. Name of the user/receiver who received the sent share invitation. "receiverTenantName": "str", # Optional. Tenant name of the user/receiver who received the sent share invitation. "senderEmail": "str", # Optional. Email of the sender who created the sent share invitation. "senderName": "str", # Optional. Name of the sender who created the sent share invitation. "senderTenantName": "str", # Optional. Tenant name of the sender who created the sent share invitation. "sentShareDescription": "str", # Optional. Share description. "shareStatus": "str", # Optional. Share status. Known values are: "Detached" and "Attached". "sharedAt": "2020-02-20 00:00:00", # Optional. Time at which the sent share was shared. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "sink": sink, "state": "str" # Optional. State of the resource. Known values are: "Unknown", "Succeeded", "Creating", "Deleting", "Moving", and "Failed". }, "shareKind": "InPlace", "id": "str", # Optional. The unique id of the resource. "type": "str" # Optional. Type of the resource. } # JSON input template for discriminator value "AdlsGen2Account": sink = { "properties": { "containerName": "str", # Adls Gen 2 Container Name. Required. "folder": "str", # Adls Gen 2 Folder. Required. "location": "str", # Optional. Adls Gen 2 Location. "mountPath": "str" # Optional. Adls Gen 2 Mount Path. }, "storeKind": "AdlsGen2Account", "storeReference": { "referenceName": "str", # Optional. Reference name for resource associated with the sink or artifact. "type": "str" # Optional. Defines the type of resource being shared. "ArmResourceReference" } } # JSON input template for discriminator value "BlobAccount": sink = { "properties": { "containerName": "str", # Blob Container Name. Required. "folder": "str", # Blob Folder. Required. "location": "str", # Optional. Blob Location. "mountPath": "str" # Optional. Blob Mount Path. }, "storeKind": "BlobAccount", "storeReference": { "referenceName": "str", # Optional. Reference name for resource associated with the sink or artifact. "type": "str" # Optional. Defines the type of resource being shared. "ArmResourceReference" } } # response body for status code(s): 200, 201 response == received_share
Deletes a received share.
Delete a received share.
- Parameters
received_share_id (str) – Id of the received share. Required.
- Keyword Arguments
continuation_token (str) – A continuation token to restart a poller from a saved state.
polling (bool or AsyncPollingMethod) – By default, your polling method will be AsyncLROBasePolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.
- Returns
An instance of AsyncLROPoller that returns JSON object
- Return type
AsyncLROPoller[JSON]
- Raises
Example
# response body for status code(s): 202 response == { "status": "str", # States for long running operations. Required. Known values are: "Running", "TransientFailure", "Succeeded", "Failed", and "NotStarted". "endTime": "2020-02-20 00:00:00", # Optional. End time of the long running operation. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "error": { "code": "str", # Code of the error. Required. "message": "str", # Message of the error. Required. "details": [ ... ], "target": "str" # Optional. Target of the error. }, "id": "str", # Optional. Job id of the long running operation. "startTime": "2020-02-20 00:00:00" # Optional. Start time of the long running operation. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. }
Get a received share by unique id.
Get a received share.
- Parameters
received_share_id (str) – Id of the received share. Required.
- Returns
JSON object
- Return type
JSON
- Raises
Example
Get a list of attached received shares.
List attached received shares.
- Keyword Arguments
- Returns
An iterator like instance of JSON object
- Return type
AsyncItemPaged[JSON]
- Raises
Example
Get a list of detached received shares.
List detached received shares.
- Keyword Arguments
- Returns
An iterator like instance of JSON object
- Return type
AsyncItemPaged[JSON]
- Raises
Example
Registers the tenant and email combination for activation.
Register an email for the current tenant.
- Keyword Arguments
repeatability_request_id (str) – If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same Repeatability-Request-Id and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-Id is an opaque string representing a client-generated, globally unique for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs. Default value is None.
- Returns
JSON object
- Return type
JSON
- Raises
Example
# response body for status code(s): 200 response == { "id": "str", # Optional. The unique id of the resource. "properties": { "activationCode": "str", # Activation code for the registration. Required. "activationExpiration": "2020-02-20 00:00:00", # Optional. Date of the activation expiration. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "email": "str", # Optional. The email to register. "registrationStatus": "str", # Optional. Defines the supported types for registration. Known values are: "ActivationPending", "Activated", and "ActivationAttemptsExhausted". "state": "str", # Optional. State of the resource. Known values are: "Unknown", "Succeeded", "Creating", "Deleting", "Moving", and "Failed". "tenantId": "str" # Optional. The tenant id to register. }, "type": "str" # Optional. Type of the resource. }
-
async
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
PurviewSharingClient’ssent_sharesattribute.-
async
begin_create_or_replace(sent_share_id: str, sent_share: IO, *, content_type: str = "'application/json'", **kwargs: Any) → AsyncLROPoller[JSON] Create or replace a sent share.
Create or replace a sent share.
- Parameters
sent_share_id (str) – Id of the sent share. Required.
sent_share (JSON or IO) – The sent share to create or replace. Is either a JSON type or a IO type. Required.
- Keyword Arguments
content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.
continuation_token (str) – A continuation token to restart a poller from a saved state.
polling (bool or AsyncPollingMethod) – By default, your polling method will be AsyncLROBasePolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.
- Returns
An instance of AsyncLROPoller that returns JSON object
- Return type
AsyncLROPoller[JSON]
- Raises
Example
# The input is polymorphic. The following are possible polymorphic inputs based off discriminator "shareKind": # JSON input template for discriminator value "InPlace": sent_share = { "properties": { "artifact": artifact, "displayName": "str", # The name of the sent share. Required. "createdAt": "2020-02-20 00:00:00", # Optional. Time at which the sent share was created. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "dependsOn": [ "str" # Optional. List of shares on which the sent share depends. ], "description": "str", # Optional. Sent share description. "senderEmail": "str", # Optional. Email of the sender who created the sent share. "senderName": "str", # Optional. Name of the sender who created the sent share. "senderTenantName": "str", # Optional. Tenant name of the sender who created the sent share. "state": "str" # Optional. State of the resource. Known values are: "Unknown", "Succeeded", "Creating", "Deleting", "Moving", and "Failed". }, "shareKind": "InPlace", "id": "str", # Optional. The unique id of the resource. "type": "str" # Optional. Type of the resource. } # JSON input template for discriminator value "AdlsGen2Account": artifact = { "properties": { "paths": [ { "containerName": "str", # Gets or sets the container name. Required. "receiverPath": "str", # Optional. Gets or sets the path on the receiver side where the artifact is to be mapped. "senderPath": "str" # Optional. Gets or sets the path to file/folder within the container to be shared. } ], "location": "str" # Optional. Location of the storage account. }, "storeKind": "AdlsGen2Account", "storeReference": { "referenceName": "str", # Optional. Reference name for resource associated with the sink or artifact. "type": "str" # Optional. Defines the type of resource being shared. "ArmResourceReference" } } # JSON input template for discriminator value "BlobAccount": artifact = { "properties": { "paths": [ { "containerName": "str", # Gets or sets the container name. Required. "receiverPath": "str", # Optional. Gets or sets the path on the receiver side where the artifact is to be mapped. "senderPath": "str" # Optional. Gets or sets the path to file/folder within the container to be shared. } ], "location": "str" # Optional. Location of the storage account. }, "storeKind": "BlobAccount", "storeReference": { "referenceName": "str", # Optional. Reference name for resource associated with the sink or artifact. "type": "str" # Optional. Defines the type of resource being shared. "ArmResourceReference" } } # JSON input template you can fill out and use as your body input. sent_share = sent_share # The response is polymorphic. The following are possible polymorphic responses based off discriminator "shareKind": # JSON input template for discriminator value "InPlace": sent_share = { "properties": { "artifact": artifact, "displayName": "str", # The name of the sent share. Required. "createdAt": "2020-02-20 00:00:00", # Optional. Time at which the sent share was created. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "dependsOn": [ "str" # Optional. List of shares on which the sent share depends. ], "description": "str", # Optional. Sent share description. "senderEmail": "str", # Optional. Email of the sender who created the sent share. "senderName": "str", # Optional. Name of the sender who created the sent share. "senderTenantName": "str", # Optional. Tenant name of the sender who created the sent share. "state": "str" # Optional. State of the resource. Known values are: "Unknown", "Succeeded", "Creating", "Deleting", "Moving", and "Failed". }, "shareKind": "InPlace", "id": "str", # Optional. The unique id of the resource. "type": "str" # Optional. Type of the resource. } # JSON input template for discriminator value "AdlsGen2Account": artifact = { "properties": { "paths": [ { "containerName": "str", # Gets or sets the container name. Required. "receiverPath": "str", # Optional. Gets or sets the path on the receiver side where the artifact is to be mapped. "senderPath": "str" # Optional. Gets or sets the path to file/folder within the container to be shared. } ], "location": "str" # Optional. Location of the storage account. }, "storeKind": "AdlsGen2Account", "storeReference": { "referenceName": "str", # Optional. Reference name for resource associated with the sink or artifact. "type": "str" # Optional. Defines the type of resource being shared. "ArmResourceReference" } } # JSON input template for discriminator value "BlobAccount": artifact = { "properties": { "paths": [ { "containerName": "str", # Gets or sets the container name. Required. "receiverPath": "str", # Optional. Gets or sets the path on the receiver side where the artifact is to be mapped. "senderPath": "str" # Optional. Gets or sets the path to file/folder within the container to be shared. } ], "location": "str" # Optional. Location of the storage account. }, "storeKind": "BlobAccount", "storeReference": { "referenceName": "str", # Optional. Reference name for resource associated with the sink or artifact. "type": "str" # Optional. Defines the type of resource being shared. "ArmResourceReference" } } # The response is polymorphic. The following are possible polymorphic responses based off discriminator "shareKind": # JSON input template for discriminator value "InPlace": sent_share = { "properties": { "artifact": artifact, "displayName": "str", # The name of the sent share. Required. "createdAt": "2020-02-20 00:00:00", # Optional. Time at which the sent share was created. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "dependsOn": [ "str" # Optional. List of shares on which the sent share depends. ], "description": "str", # Optional. Sent share description. "senderEmail": "str", # Optional. Email of the sender who created the sent share. "senderName": "str", # Optional. Name of the sender who created the sent share. "senderTenantName": "str", # Optional. Tenant name of the sender who created the sent share. "state": "str" # Optional. State of the resource. Known values are: "Unknown", "Succeeded", "Creating", "Deleting", "Moving", and "Failed". }, "shareKind": "InPlace", "id": "str", # Optional. The unique id of the resource. "type": "str" # Optional. Type of the resource. } # JSON input template for discriminator value "AdlsGen2Account": artifact = { "properties": { "paths": [ { "containerName": "str", # Gets or sets the container name. Required. "receiverPath": "str", # Optional. Gets or sets the path on the receiver side where the artifact is to be mapped. "senderPath": "str" # Optional. Gets or sets the path to file/folder within the container to be shared. } ], "location": "str" # Optional. Location of the storage account. }, "storeKind": "AdlsGen2Account", "storeReference": { "referenceName": "str", # Optional. Reference name for resource associated with the sink or artifact. "type": "str" # Optional. Defines the type of resource being shared. "ArmResourceReference" } } # JSON input template for discriminator value "BlobAccount": artifact = { "properties": { "paths": [ { "containerName": "str", # Gets or sets the container name. Required. "receiverPath": "str", # Optional. Gets or sets the path on the receiver side where the artifact is to be mapped. "senderPath": "str" # Optional. Gets or sets the path to file/folder within the container to be shared. } ], "location": "str" # Optional. Location of the storage account. }, "storeKind": "BlobAccount", "storeReference": { "referenceName": "str", # Optional. Reference name for resource associated with the sink or artifact. "type": "str" # Optional. Defines the type of resource being shared. "ArmResourceReference" } } # response body for status code(s): 200, 201 response == sent_share
Deletes a sent share.
Delete a sent share.
- Parameters
sent_share_id (str) – Id of the sent share. Required.
- Keyword Arguments
continuation_token (str) – A continuation token to restart a poller from a saved state.
polling (bool or AsyncPollingMethod) – By default, your polling method will be AsyncLROBasePolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.
- Returns
An instance of AsyncLROPoller that returns JSON object
- Return type
AsyncLROPoller[JSON]
- Raises
Example
# response body for status code(s): 202 response == { "status": "str", # States for long running operations. Required. Known values are: "Running", "TransientFailure", "Succeeded", "Failed", and "NotStarted". "endTime": "2020-02-20 00:00:00", # Optional. End time of the long running operation. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "error": { "code": "str", # Code of the error. Required. "message": "str", # Message of the error. Required. "details": [ ... ], "target": "str" # Optional. Target of the error. }, "id": "str", # Optional. Job id of the long running operation. "startTime": "2020-02-20 00:00:00" # Optional. Start time of the long running operation. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. }
Delete Invitation in a share.
Delete a sent share invitation.
- Parameters
- Keyword Arguments
continuation_token (str) – A continuation token to restart a poller from a saved state.
polling (bool or AsyncPollingMethod) – By default, your polling method will be AsyncLROBasePolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.
- Returns
An instance of AsyncLROPoller that returns JSON object
- Return type
AsyncLROPoller[JSON]
- Raises
Example
# response body for status code(s): 202 response == { "status": "str", # States for long running operations. Required. Known values are: "Running", "TransientFailure", "Succeeded", "Failed", and "NotStarted". "endTime": "2020-02-20 00:00:00", # Optional. End time of the long running operation. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "error": { "code": "str", # Code of the error. Required. "message": "str", # Message of the error. Required. "details": [ ... ], "target": "str" # Optional. Target of the error. }, "id": "str", # Optional. Job id of the long running operation. "startTime": "2020-02-20 00:00:00" # Optional. Start time of the long running operation. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. }
-
async
create_invitation(sent_share_id: str, sent_share_invitation_id: str, sent_share_invitation: IO, *, content_type: str = "'application/json'", **kwargs: Any) → JSON Create a sent share invitation.
Create a recipient for a given sent share.
- Parameters
- Keyword Arguments
content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.
- Returns
JSON object
- Return type
JSON
- Raises
Example
# The input is polymorphic. The following are possible polymorphic inputs based off discriminator "invitationKind": # JSON input template for discriminator value "Service": sent_share_invitation = { "invitationKind": "Service", "properties": { "targetActiveDirectoryId": "str", # The target azure active directory id the invitation is sent to. Required. "targetObjectId": "str", # The target object id in the azure active directory the invitation is sent to. Required. "expirationDate": "2020-02-20 00:00:00", # Optional. The time at which the invitation will expire. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "senderEmail": "str", # Optional. Email address of the sender. "senderName": "str", # Optional. Name of the sender. "senderTenantName": "str", # Optional. Tenant name of the sender. "sentAt": "2020-02-20 00:00:00", # Optional. Gets the time at which the invitation was sent. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "shareStatus": "str", # Optional. Share status. Known values are: "Detached" and "Attached". "state": "str" # Optional. State of the resource. Known values are: "Unknown", "Succeeded", "Creating", "Deleting", "Moving", and "Failed". }, "id": "str", # Optional. The unique id of the resource. "type": "str" # Optional. Type of the resource. } # JSON input template for discriminator value "User": sent_share_invitation = { "invitationKind": "User", "properties": { "targetEmail": "str", # The receiver email for the invitation is being sent. Required. "expirationDate": "2020-02-20 00:00:00", # Optional. The time at which the invitation will expire. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "notify": bool, # Optional. Whether or not the recipient was notified via email. "senderEmail": "str", # Optional. Email address of the sender. "senderName": "str", # Optional. Name of the sender. "senderTenantName": "str", # Optional. Tenant name of the sender. "sentAt": "2020-02-20 00:00:00", # Optional. Gets the time at which the invitation was sent. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "shareStatus": "str", # Optional. Share status. Known values are: "Detached" and "Attached". "state": "str" # Optional. State of the resource. Known values are: "Unknown", "Succeeded", "Creating", "Deleting", "Moving", and "Failed". }, "id": "str", # Optional. The unique id of the resource. "type": "str" # Optional. Type of the resource. } # JSON input template you can fill out and use as your body input. sent_share_invitation = sent_share_invitation # The response is polymorphic. The following are possible polymorphic responses based off discriminator "invitationKind": # JSON input template for discriminator value "Service": sent_share_invitation = { "invitationKind": "Service", "properties": { "targetActiveDirectoryId": "str", # The target azure active directory id the invitation is sent to. Required. "targetObjectId": "str", # The target object id in the azure active directory the invitation is sent to. Required. "expirationDate": "2020-02-20 00:00:00", # Optional. The time at which the invitation will expire. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "senderEmail": "str", # Optional. Email address of the sender. "senderName": "str", # Optional. Name of the sender. "senderTenantName": "str", # Optional. Tenant name of the sender. "sentAt": "2020-02-20 00:00:00", # Optional. Gets the time at which the invitation was sent. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "shareStatus": "str", # Optional. Share status. Known values are: "Detached" and "Attached". "state": "str" # Optional. State of the resource. Known values are: "Unknown", "Succeeded", "Creating", "Deleting", "Moving", and "Failed". }, "id": "str", # Optional. The unique id of the resource. "type": "str" # Optional. Type of the resource. } # JSON input template for discriminator value "User": sent_share_invitation = { "invitationKind": "User", "properties": { "targetEmail": "str", # The receiver email for the invitation is being sent. Required. "expirationDate": "2020-02-20 00:00:00", # Optional. The time at which the invitation will expire. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "notify": bool, # Optional. Whether or not the recipient was notified via email. "senderEmail": "str", # Optional. Email address of the sender. "senderName": "str", # Optional. Name of the sender. "senderTenantName": "str", # Optional. Tenant name of the sender. "sentAt": "2020-02-20 00:00:00", # Optional. Gets the time at which the invitation was sent. Represented in the standard date-time format as defined by `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339>`_. "shareStatus": "str", # Optional. Share status. Known values are: "Detached" and "Attached". "state": "str" # Optional. State of the resource. Known values are: "Unknown", "Succeeded", "Creating", "Deleting", "Moving", and "Failed". }, "id": "str", # Optional. The unique id of the resource. "type": "str" # Optional. Type of the resource. } # response body for status code(s): 201 response == sent_share_invitation
Get a sent share by guid.
Get a sent share.
- Parameters
sent_share_id (str) – Id of the sent share. Required.
- Returns
JSON object
- Return type
JSON
- Raises
Example
Get sent share invitation for a given sent share.
Get recipient for a given sent share.
- Parameters
- Returns
JSON object
- Return type
JSON
- Raises
Example
Get a list of sent shares.
List sent shares.
- Keyword Arguments
- Returns
An iterator like instance of JSON object
- Return type
AsyncItemPaged[JSON]
- Raises
Example
List all sent share invitations in a sent share.
List sent share recipients.
- Parameters
sent_share_id (str) – Id of the sent share. Required.
- Keyword Arguments
- Returns
An iterator like instance of JSON object
- Return type
AsyncItemPaged[JSON]
- Raises
Example
Notifies the recipient of the sent share invitation.
Notifies the user recipient of the sent share invitation, does not apply to service invitations.
- Parameters
- Keyword Arguments
repeatability_request_id (str) – If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same Repeatability-Request-Id and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-Id is an opaque string representing a client-generated, globally unique for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs. Default value is None.
- Returns
JSON object
- Return type
JSON
- Raises
Example
-
async
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
PurviewSharingClient’sshare_resourcesattribute.API operation to list ShareResources.
List share resources.
- Keyword Arguments
- Returns
An iterator like instance of JSON object
- Return type
AsyncItemPaged[JSON]
- Raises
Example
# response body for status code(s): 200 response == { "id": "str", # Optional. The unique id of the resource. "receivedSharesCount": 0, # Optional. A count of Received Shares associated with the Microsoft.Azure.Purview.Share.ApiService.V3.DataTransferObjects.ShareResource. "sentSharesCount": 0, # Optional. A count of Sent Shares associated with the Microsoft.Azure.Purview.Share.ApiService.V3.DataTransferObjects.ShareResource. "storeKind": "str", # Optional. The types of asset. Known values are: "AdlsGen2Account" and "BlobAccount". "storeReference": { "referenceName": "str", # Optional. Reference name for resource associated with the sink or artifact. "type": "str" # Optional. Defines the type of resource being shared. "ArmResourceReference" }, "type": "str" # Optional. Type of the resource. }