ProviderShareSubscriptionsOperations Class
ProviderShareSubscriptionsOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectProviderShareSubscriptionsOperations
Constructor
ProviderShareSubscriptionsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| adjust |
Adjust the expiration date of a share subscription in a provider share. Adjust a share subscription's expiration date in a provider share. |
| begin_revoke |
Revoke share subscription in a provider share. Revoke share subscription in a provider share. |
| get_by_share |
Get share subscription in a provider share. Get share subscription in a provider share. |
| list_by_share |
List of available share subscriptions to a provider share. List share subscriptions in a provider share. |
| reinstate |
Reinstate share subscription in a provider share. Reinstate share subscription in a provider share. |
adjust
Adjust the expiration date of a share subscription in a provider share.
Adjust a share subscription's expiration date in a provider share.
async adjust(resource_group_name: str, account_name: str, share_name: str, provider_share_subscription_id: str, provider_share_subscription: azure.mgmt.datashare.models._models_py3.ProviderShareSubscription, **kwargs) -> azure.mgmt.datashare.models._models_py3.ProviderShareSubscription
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ProviderShareSubscription, or the result of cls(response)
Return type
Exceptions
begin_revoke
Revoke share subscription in a provider share.
Revoke share subscription in a provider share.
async begin_revoke(resource_group_name: str, account_name: str, share_name: str, provider_share_subscription_id: str, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.datashare.models._models_py3.ProviderShareSubscription]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or AsyncPollingMethod
Pass in True if you'd like the AsyncARMPolling polling method, False for no polling, or 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 either ProviderShareSubscription or the result of cls(response)
Return type
Exceptions
get_by_share
Get share subscription in a provider share.
Get share subscription in a provider share.
async get_by_share(resource_group_name: str, account_name: str, share_name: str, provider_share_subscription_id: str, **kwargs) -> azure.mgmt.datashare.models._models_py3.ProviderShareSubscription
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ProviderShareSubscription, or the result of cls(response)
Return type
Exceptions
list_by_share
List of available share subscriptions to a provider share.
List share subscriptions in a provider share.
list_by_share(resource_group_name: str, account_name: str, share_name: str, skip_token: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.datashare.models._models_py3.ProviderShareSubscriptionList]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ProviderShareSubscriptionList or the result of cls(response)
Return type
Exceptions
reinstate
Reinstate share subscription in a provider share.
Reinstate share subscription in a provider share.
async reinstate(resource_group_name: str, account_name: str, share_name: str, provider_share_subscription_id: str, provider_share_subscription: azure.mgmt.datashare.models._models_py3.ProviderShareSubscription, **kwargs) -> azure.mgmt.datashare.models._models_py3.ProviderShareSubscription
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ProviderShareSubscription, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.datashare.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\datashare\\models\\__init__.py'>
Feedback
Submit and view feedback for