Skip to content

Commit fd45e42

Browse files
author
PureCloud Jenkins
committed
131.1.1
1 parent 354e986 commit fd45e42

7 files changed

Lines changed: 29 additions & 29 deletions

File tree

build/PureCloudPlatformClientV2/api_client.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def __call_api(self, resource_path, method,
295295
header_params['Cookie'] = self.cookie
296296
if header_params:
297297
header_params = self.sanitize_for_serialization(header_params)
298-
header_params['purecloud-sdk'] = '131.1.0'
298+
header_params['purecloud-sdk'] = '131.1.1'
299299

300300
# path parameters
301301
if path_params:
@@ -328,20 +328,30 @@ def __call_api(self, resource_path, method,
328328

329329
response_data = None
330330

331+
log_url = url
332+
if query_params:
333+
log_url += '?'
334+
i = 0
335+
for k, v in query_params.items():
336+
if i > 0:
337+
log_url += '&'
338+
log_url += '{}={}'.format(k, v)
339+
i += 1
340+
331341
try:
332342
# perform request and return response
333343
response_data = self.request(method, url, query_params=query_params,
334344
headers=header_params, post_params=post_params, body=body)
335-
Configuration().logger.trace(method, url, body, response_data.status, header_params, response_data.getheaders())
336-
Configuration().logger.debug(method, url, body, response_data.status, header_params)
345+
Configuration().logger.trace(method, log_url, body, response_data.status, header_params, response_data.getheaders())
346+
Configuration().logger.debug(method, log_url, body, response_data.status, header_params)
337347
except ApiException as e:
338348
if Configuration().should_refresh_access_token and e.status == 401 and self.refresh_token != "":
339349
self.handle_expired_access_token()
340350
return self.__call_api(resource_path, method, path_params,
341351
query_params, header_params, body, post_params,
342352
files, response_type, auth_settings, callback)
343353
else:
344-
Configuration().logger.error(method, url, body, e.status, header_params, e.body, e.headers)
354+
Configuration().logger.error(method, log_url, body, e.status, header_params, e.body, e.headers)
345355
raise
346356

347357
self.last_response = response_data
@@ -368,6 +378,8 @@ def to_path_value(self, obj):
368378
"""
369379
if type(obj) == list:
370380
return ','.join(obj)
381+
elif type(obj) == bool:
382+
return str(obj).lower()
371383
else:
372384
return str(obj)
373385

build/PureCloudPlatformClientV2/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def to_debug_report(self):
202202
"OS: {env}\n"\
203203
"Python Version: {pyversion}\n"\
204204
"Version of the API: v2\n"\
205-
"SDK Package Version: 131.1.0".\
205+
"SDK Package Version: 131.1.1".\
206206
format(env=sys.platform, pyversion=sys.version)
207207

208208
def _update_config_from_file(self):

build/PureCloudPlatformClientV2/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def __init__(self, pools_size=4, max_size=4):
9999
proxy_password = Configuration().proxy_password
100100

101101
retries = urllib3.util.Retry()
102-
retries.method_whitelist = {'DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'TRACE'}
102+
retries.allowed_methods = {'DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'TRACE'}
103103
# https pool manager
104104
if proxy:
105105
headers = None

build/docs/releaseNotes.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
Platform API version: 5216
22

33

4-
# Major Changes (0 changes)
5-
6-
7-
# Minor Changes (2 changes)
4+
Fixing a bug where boolean query params had a capitalized first letter.
85

9-
**JourneyAggregationQuery** (1 change)
10-
11-
* Enum value oJourneyOutcomeValue was added to property metrics
6+
# Major Changes (0 changes)
127

13-
**JourneyAggregationView** (1 change)
148

15-
* Enum value oJourneyOutcomeValue was added to property target
9+
# Minor Changes (0 changes)
1610

1711

1812
# Point Changes (0 changes)

build/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from setuptools import setup, find_packages
55

66
NAME = "PureCloudPlatformClientV2"
7-
VERSION = "131.1.0"
7+
VERSION = "131.1.1"
88

99

1010

@@ -19,7 +19,7 @@
1919

2020
setup(
2121
name="PureCloudPlatformClientV2",
22-
version="131.1.0",
22+
version="131.1.1",
2323
description="PureCloud Platform API SDK",
2424
author="Genesys Developer Evangelists",
2525
author_email="DeveloperEvangelists@Genesys.com",

releaseNotes.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
Platform API version: 5216
22

33

4-
# Major Changes (0 changes)
5-
6-
7-
# Minor Changes (2 changes)
4+
Fixing a bug where boolean query params had a capitalized first letter.
85

9-
**JourneyAggregationQuery** (1 change)
10-
11-
* Enum value oJourneyOutcomeValue was added to property metrics
6+
# Major Changes (0 changes)
127

13-
**JourneyAggregationView** (1 change)
148

15-
* Enum value oJourneyOutcomeValue was added to property target
9+
# Minor Changes (0 changes)
1610

1711

1812
# Point Changes (0 changes)

version.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"major": 131,
33
"minor": 1,
4-
"point": 0,
4+
"point": 1,
55
"prerelease": "",
66
"apiVersion": 0,
7-
"display": "131.1.0",
8-
"displayFull": "131.1.0"
7+
"display": "131.1.1",
8+
"displayFull": "131.1.1"
99
}

0 commit comments

Comments
 (0)