Skip to content

Commit 7727ca6

Browse files
authored
feat(release): Update SDK to use API released on 2023-11-07 (#59)
Signed-off-by: Deepak Selvakumar <[email protected]>
1 parent 881a378 commit 7727ca6

File tree

5 files changed

+132
-1323
lines changed

5 files changed

+132
-1323
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ notifications:
99

1010
matrix:
1111
include:
12-
- python: 3.7
1312
- python: 3.8
1413
- python: 3.9
14+
- python: 3.10
15+
- python: 3.11
1516

1617
before_install:
1718
- npm install -g npm@latest || npm install -g npm@9

ibm_vpc/common.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import uuid
2323
from ibm_vpc.version import __version__
2424

25-
HEADER_NAME_X_CORRELATION_ID = 'X-Correlation-Id'
2625
HEADER_NAME_X_REQUEST_ID = 'X-Request-Id'
2726
HEADER_NAME_USER_AGENT = 'User-Agent'
2827
SDK_NAME = 'vpc-python-sdk'
@@ -36,12 +35,6 @@ def get_system_info():
3635
platform.system(), # OS
3736
platform.python_version()) # Python version
3837

39-
def get_x_correlation_id():
40-
"""
41-
Get the value to be sent in the X-Correlation-Id header.
42-
"""
43-
return str(uuid.uuid4())
44-
4538
def get_x_request_id():
4639
"""
4740
Get the value to be sent in the X-Request-Id header.
@@ -65,7 +58,6 @@ def get_sdk_headers(service_name, service_version, operation_id):
6558
6659
"""
6760
headers = {}
68-
headers[HEADER_NAME_X_CORRELATION_ID] = get_x_correlation_id()
6961
headers[HEADER_NAME_X_REQUEST_ID] = get_x_request_id()
7062
headers[HEADER_NAME_USER_AGENT] = get_user_agent()
7163
return headers

0 commit comments

Comments
 (0)