Skip to content

Commit 052369e

Browse files
author
InIn Devops
committed
5.1.0
1 parent d9ec93a commit 052369e

File tree

9 files changed

+174
-12
lines changed

9 files changed

+174
-12
lines changed

build/PureCloudPlatformClientV2/apis/outbound_api.py

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,90 @@ def delete_outbound_contactlist_contact(self, contact_list_id, contact_id, **kwa
676676
callback=params.get('callback'))
677677
return response
678678

679+
def delete_outbound_contactlist_contacts(self, contact_list_id, contact_ids, **kwargs):
680+
"""
681+
Delete contacts from a contact list.
682+
683+
684+
This method makes a synchronous HTTP request by default. To make an
685+
asynchronous HTTP request, please define a `callback` function
686+
to be invoked when receiving the response.
687+
>>> def callback_function(response):
688+
>>> pprint(response)
689+
>>>
690+
>>> thread = api.delete_outbound_contactlist_contacts(contact_list_id, contact_ids, callback=callback_function)
691+
692+
:param callback function: The callback function
693+
for asynchronous request. (optional)
694+
:param str contact_list_id: Contact List ID (required)
695+
:param list[str] contact_ids: ContactIds to delete. (required)
696+
:return: None
697+
If the method is called asynchronously,
698+
returns the request thread.
699+
"""
700+
701+
all_params = ['contact_list_id', 'contact_ids']
702+
all_params.append('callback')
703+
704+
params = locals()
705+
for key, val in iteritems(params['kwargs']):
706+
if key not in all_params:
707+
raise TypeError(
708+
"Got an unexpected keyword argument '%s'"
709+
" to method delete_outbound_contactlist_contacts" % key
710+
)
711+
params[key] = val
712+
del params['kwargs']
713+
714+
# verify the required parameter 'contact_list_id' is set
715+
if ('contact_list_id' not in params) or (params['contact_list_id'] is None):
716+
raise ValueError("Missing the required parameter `contact_list_id` when calling `delete_outbound_contactlist_contacts`")
717+
# verify the required parameter 'contact_ids' is set
718+
if ('contact_ids' not in params) or (params['contact_ids'] is None):
719+
raise ValueError("Missing the required parameter `contact_ids` when calling `delete_outbound_contactlist_contacts`")
720+
721+
722+
resource_path = '/api/v2/outbound/contactlists/{contactListId}/contacts'.replace('{format}', 'json')
723+
path_params = {}
724+
if 'contact_list_id' in params:
725+
path_params['contactListId'] = params['contact_list_id']
726+
727+
query_params = {}
728+
if 'contact_ids' in params:
729+
query_params['contactIds'] = params['contact_ids']
730+
731+
header_params = {}
732+
733+
form_params = []
734+
local_var_files = {}
735+
736+
body_params = None
737+
738+
# HTTP header `Accept`
739+
header_params['Accept'] = self.api_client.\
740+
select_header_accept(['application/json'])
741+
if not header_params['Accept']:
742+
del header_params['Accept']
743+
744+
# HTTP header `Content-Type`
745+
header_params['Content-Type'] = self.api_client.\
746+
select_header_content_type(['application/json'])
747+
748+
# Authentication setting
749+
auth_settings = ['PureCloud Auth']
750+
751+
response = self.api_client.call_api(resource_path, 'DELETE',
752+
path_params,
753+
query_params,
754+
header_params,
755+
body=body_params,
756+
post_params=form_params,
757+
files=local_var_files,
758+
response_type=None,
759+
auth_settings=auth_settings,
760+
callback=params.get('callback'))
761+
return response
762+
679763
def delete_outbound_dnclist(self, dnc_list_id, **kwargs):
680764
"""
681765
Delete dialer DNC list

build/PureCloudPlatformClientV2/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,5 +238,5 @@ def to_debug_report(self):
238238
"OS: {env}\n"\
239239
"Python Version: {pyversion}\n"\
240240
"Version of the API: v2\n"\
241-
"SDK Package Version: 5.0.2".\
241+
"SDK Package Version: 5.1.0".\
242242
format(env=sys.platform, pyversion=sys.version)

build/PureCloudPlatformClientV2/models/edge.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def __init__(self):
7575
'edge_deployment_type': 'str',
7676
'call_draining_state': 'str',
7777
'conversation_count': 'int',
78+
'proxy': 'str',
7879
'self_uri': 'str'
7980
}
8081

@@ -116,6 +117,7 @@ def __init__(self):
116117
'edge_deployment_type': 'edgeDeploymentType',
117118
'call_draining_state': 'callDrainingState',
118119
'conversation_count': 'conversationCount',
120+
'proxy': 'proxy',
119121
'self_uri': 'selfUri'
120122
}
121123

@@ -156,6 +158,7 @@ def __init__(self):
156158
self._edge_deployment_type = None
157159
self._call_draining_state = None
158160
self._conversation_count = None
161+
self._proxy = None
159162
self._self_uri = None
160163

161164
@property
@@ -1029,6 +1032,29 @@ def conversation_count(self, conversation_count):
10291032

10301033
self._conversation_count = conversation_count
10311034

1035+
@property
1036+
def proxy(self):
1037+
"""
1038+
Gets the proxy of this Edge.
1039+
Edge HTTP proxy configuration for the WAN port. The field can be a hostname, FQDN, IPv4 or IPv6 address. If port is not included, port 80 is assumed.
1040+
1041+
:return: The proxy of this Edge.
1042+
:rtype: str
1043+
"""
1044+
return self._proxy
1045+
1046+
@proxy.setter
1047+
def proxy(self, proxy):
1048+
"""
1049+
Sets the proxy of this Edge.
1050+
Edge HTTP proxy configuration for the WAN port. The field can be a hostname, FQDN, IPv4 or IPv6 address. If port is not included, port 80 is assumed.
1051+
1052+
:param proxy: The proxy of this Edge.
1053+
:type: str
1054+
"""
1055+
1056+
self._proxy = proxy
1057+
10321058
@property
10331059
def self_uri(self):
10341060
"""

build/docs/Edge.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ title: Edge
4444
| **edge_deployment_type** | **str** | | [optional] |
4545
| **call_draining_state** | **str** | | [optional] |
4646
| **conversation_count** | **int** | | [optional] |
47+
| **proxy** | **str** | Edge HTTP proxy configuration for the WAN port. The field can be a hostname, FQDN, IPv4 or IPv6 address. If port is not included, port 80 is assumed. | [optional] |
4748
| **self_uri** | **str** | The URI for this object | [optional] |
4849
{: class="table table-striped"}
4950

build/docs/OutboundApi.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ All URIs are relative to *https://api.mypurecloud.com*
1616
|[**delete_outbound_campaignrule**](OutboundApi.html#delete_outbound_campaignrule) | Delete Campaign Rule|
1717
|[**delete_outbound_contactlist**](OutboundApi.html#delete_outbound_contactlist) | Delete a contact list.|
1818
|[**delete_outbound_contactlist_contact**](OutboundApi.html#delete_outbound_contactlist_contact) | Delete a contact.|
19+
|[**delete_outbound_contactlist_contacts**](OutboundApi.html#delete_outbound_contactlist_contacts) | Delete contacts from a contact list.|
1920
|[**delete_outbound_dnclist**](OutboundApi.html#delete_outbound_dnclist) | Delete dialer DNC list|
2021
|[**delete_outbound_ruleset**](OutboundApi.html#delete_outbound_ruleset) | Delete a Rule set.|
2122
|[**delete_outbound_schedules_campaign**](OutboundApi.html#delete_outbound_schedules_campaign) | Delete a dialer campaign schedule.|
@@ -443,6 +444,52 @@ except ApiException as e:
443444

444445
void (empty response body)
445446

447+
<a name="delete_outbound_contactlist_contacts"></a>
448+
449+
## delete_outbound_contactlist_contacts(contact_list_id, contact_ids)
450+
451+
Delete contacts from a contact list.
452+
453+
454+
455+
Wraps DELETE /api/v2/outbound/contactlists/{contactListId}/contacts
456+
457+
### Example
458+
459+
~~~python
460+
import time
461+
import PureCloudPlatformClientV2
462+
from PureCloudPlatformClientV2.rest import ApiException
463+
from pprint import pprint
464+
465+
# Configure OAuth2 access token for authorization: PureCloud Auth
466+
PureCloudPlatformClientV2.configuration.access_token = 'YOUR_ACCESS_TOKEN'
467+
468+
# create an instance of the API class
469+
api_instance = PureCloudPlatformClientV2.OutboundApi()
470+
contact_list_id = 'contact_list_id_example' # str | Contact List ID
471+
contact_ids = ['contact_ids_example'] # list[str] | ContactIds to delete.
472+
473+
try:
474+
# Delete contacts from a contact list.
475+
api_instance.delete_outbound_contactlist_contacts(contact_list_id, contact_ids)
476+
except ApiException as e:
477+
print "Exception when calling OutboundApi->delete_outbound_contactlist_contacts: %s\n" % e
478+
~~~
479+
480+
### Parameters
481+
482+
483+
|Name | Type | Description | Notes|
484+
|------------- | ------------- | ------------- | -------------|
485+
| **contact_list_id** | **str**| Contact List ID | |
486+
| **contact_ids** | [**list[str]**](str.html)| ContactIds to delete. | |
487+
{: class="table table-striped"}
488+
489+
### Return type
490+
491+
void (empty response body)
492+
446493
<a name="delete_outbound_dnclist"></a>
447494

448495
## delete_outbound_dnclist(dnc_list_id)

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 = "5.0.2"
7+
VERSION = "5.1.0"
88

99

1010

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

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

releaseNotes.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11

2-
#SDK Changes
2+
# Major Changes (0 changes)
33

4-
* Fixing pypi publish
54

6-
# Major Changes (0 changes)
5+
# Minor Changes (2 changes)
6+
7+
**/api/v2/outbound/contactlists/{contactListId}/contacts** (1 change)
8+
9+
* Operation delete was added. Summary: Delete contacts from a contact list.
710

11+
**Edge** (1 change)
812

9-
# Minor Changes (0 changes)
13+
* Optional property proxy was added
1014

1115

1216
# Point Changes (0 changes)

swagger.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

version.json

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

0 commit comments

Comments
 (0)