Package: azure-mgmt-storagecache
Microsoft Azure SDK for PythonThis is the Microsoft Azure Storage Cache Management Client Library.
This package has been tested with Python 3.7+.
For a more complete view of Azure libraries, see theazure sdk python release.DisclaimerAzure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer tohttps://github.com/Azure/azure-sdk-for-python/issues/20691Getting startedPrerequisitesPython 3.7+ is required to use this package.Azure subscriptionInstall the packagepipinstallazure-mgmt-storagecache
pipinstallazure-identityAuthenticationBy default,Azure Active Directorytoken authentication depends on correct configure of following environment variables.AZURE_CLIENT_IDfor Azure client ID.AZURE_TENANT_IDfor Azure tenant ID.AZURE_CLIENT_SECRETfor Azure client secret.In addition, Azure subscription ID can be configured via environment variableAZURE_SUBSCRIPTION_ID.With above configuration, client can be authenticated by following code:fromazure.identityimportDefaultAzureCredentialfromazure.mgmt.storagecacheimportStorageCacheManagementClientimportossub_id=os.getenv("AZURE_SUBSCRIPTION_ID")client=StorageCacheManagementClient(credential=DefaultAzureCredential(),subscription_id=sub_id)ExamplesCode samples for this package can be found at:Search Storage Cache Managementon docs.microsoft.comAzure Python Mgmt SDK Samples RepoTroubleshootingNext stepsProvide FeedbackIf you encounter any bugs or have suggestions, please file an issue in theIssuessection of the project.Release History1.5.0 (2023-06-16)Features AddedAdded operation group AmlFilesystemsOperationsAdded operation group StorageCacheManagementClientOperationsMixin1.4.0 (2023-02-15)Features AddedAdded operation StorageTargetsOperations.begin_restore_defaultsModel BlobNfsTarget has a new parameter verification_timerModel BlobNfsTarget has a new parameter write_back_timerModel Nfs3Target has a new parameter verification_timerModel Nfs3Target has a new parameter write_back_timerBreaking ChangesRenamed operation CachesOperations.update to CachesOperations.begin_update1.4.0b1 (2022-12-12)Other ChangesAdded generated samples in github repoDrop support for python<3.7.01.3.0 (2022-07-07)FeaturesAdded operation CachesOperations.begin_pause_priming_jobAdded operation CachesOperations.begin_resume_priming_jobAdded operation CachesOperations.begin_space_allocationAdded operation CachesOperations.begin_start_priming_jobAdded operation CachesOperations.begin_stop_priming_jobModel ApiOperationPropertiesServiceSpecification has a new parameter log_specificationsModel Cache has a new parameter priming_jobsModel Cache has a new parameter space_allocationModel Cache has a new parameter upgrade_settingsModel StorageTarget has a new parameter allocation_percentage1.2.0 (2022-03-22)FeaturesAdded operation StorageTargetOperations.begin_invalidateAdded operation group AscUsagesOperationsModel Cache has a new parameter zones1.1.0 (2021-09-30)FeaturesModel StorageTarget has a new parameter state1.0.0 (2021-07-29)FeaturesModel CacheEncryptionSettings has a new parameter rotation_to_latest_key_version_enabledModel CacheIdentity has a new parameter user_assigned_identitiesAdded operation group StorageTargetOperationsBreaking changesOperation StorageTargetsOperations.begin_delete has a new signature1.0.0b1 (2021-05-13)This is beta preview version.This version uses a next-generation code generator that introduces important breaking changes, but also important new features (like unified authentication and async programming).General breaking changesCredential system has been completly revamped:azure.common.credentialsormsrestazure.azure_active_directoryinstances are no longer supported, use theazure-identityclasses instead:https://pypi.org/project/azure-identity/credentialsparameter has been renamedcredentialTheconfigattribute no longer exists on a client, configuration should be passed as kwarg. Example:MyClient(credential, subscription_id, enable_logging=True). For a complete set of
supported options, see theparameters accept in init documentation of azure-coreYou can't import aversionmodule anymore, use__version__insteadOperations that used to return amsrest.polling.LROPollernow returns aazure.core.polling.LROPollerand are prefixed withbegin_.Exceptions tree have been simplified and most exceptions are nowazure.core.exceptions.HttpResponseError(CloudErrorhas been removed).Most of the operation kwarg have changed. Some of the most noticeable:rawhas been removed. Equivalent feature can be found usingcls, a callback that will give access to internal HTTP response for advanced userFor a complete set of
supported options, see theparameters accept in Request documentation of azure-coreGeneral new featuresType annotations support usingtyping. SDKs are mypy ready.This client has now stable and official support for async. Check theaionamespace of your package to find the async client.This client now support natively tracing library like OpenCensus or OpenTelemetry. See thistracing quickstartfor an overview.0.3.0 (2020-03-01)FeaturesModel Cache has a new parameter security_settingsModel Cache has a new parameter network_settingsModel Cache has a new parameter identityModel Cache has a new parameter encryption_settings0.2.0 (2019-11-12)FeaturesAdded operation CachesOperations.create_or_updateAdded operation StorageTargetsOperations.create_or_updateBreaking changesRemoved operation CachesOperations.createRemoved operation StorageTargetsOperations.createRemoved operation StorageTargetsOperations.update0.1.0rc1 (2019-09-03)Initial Release