From 3ed0337f8874f1f1d4295b3a13228a3a7d3e27f9 Mon Sep 17 00:00:00 2001 From: Rakshith Bhyravabhotla Date: Tue, 1 Oct 2019 15:11:25 -0700 Subject: [PATCH] Use generated version as constant API version --- .../azure/storage/blob/_shared/constants.py | 3 ++- .../azure/storage/file/_shared/constants.py | 4 ++-- .../azure/storage/queue/_shared/constants.py | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/constants.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/constants.py index 62f0f163bca1..ff5732ef6f65 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/constants.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/constants.py @@ -5,9 +5,10 @@ # -------------------------------------------------------------------------- import sys +from .._generated.version import VERSION -X_MS_VERSION = '2019-02-02' +X_MS_VERSION = VERSION # Socket timeout in seconds DEFAULT_SOCKET_TIMEOUT = 20 diff --git a/sdk/storage/azure-storage-file/azure/storage/file/_shared/constants.py b/sdk/storage/azure-storage-file/azure/storage/file/_shared/constants.py index 62f0f163bca1..247eef42c89e 100644 --- a/sdk/storage/azure-storage-file/azure/storage/file/_shared/constants.py +++ b/sdk/storage/azure-storage-file/azure/storage/file/_shared/constants.py @@ -5,9 +5,9 @@ # -------------------------------------------------------------------------- import sys +from .._generated.version import VERSION - -X_MS_VERSION = '2019-02-02' +X_MS_VERSION = VERSION # Socket timeout in seconds DEFAULT_SOCKET_TIMEOUT = 20 diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/constants.py b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/constants.py index 62886ccd7a7d..247eef42c89e 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/constants.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/constants.py @@ -5,9 +5,9 @@ # -------------------------------------------------------------------------- import sys +from .._generated.version import VERSION - -X_MS_VERSION = '2018-03-28' +X_MS_VERSION = VERSION # Socket timeout in seconds DEFAULT_SOCKET_TIMEOUT = 20