Skip to content

Commit b084d59

Browse files
author
PureCloud Jenkins
committed
51.0.0
1 parent 8900553 commit b084d59

44 files changed

Lines changed: 527 additions & 1438 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,6 @@
559559
from .models.encryption_key import EncryptionKey
560560
from .models.encryption_key_entity_listing import EncryptionKeyEntityListing
561561
from .models.endpoint import Endpoint
562-
from .models.endpoint_entity_listing import EndpointEntityListing
563562
from .models.entity import Entity
564563
from .models.entry import Entry
565564
from .models.error_body import ErrorBody

build/PureCloudPlatformClientV2/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __call_api(self, resource_path, method,
116116
header_params['Cookie'] = self.cookie
117117
if header_params:
118118
header_params = self.sanitize_for_serialization(header_params)
119-
header_params['purecloud-sdk'] = '50.0.0'
119+
header_params['purecloud-sdk'] = '51.0.0'
120120

121121
# path parameters
122122
if path_params:

build/PureCloudPlatformClientV2/apis/architect_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3859,7 +3859,7 @@ def get_flow_versions(self, flow_id, **kwargs):
38593859
def get_flows(self, **kwargs):
38603860
"""
38613861
Get a pageable list of flows, filtered by query parameters
3862-
Multiple IDs can be specified, in which case all matching flows will be returned, and no other parameters will be evaluated.
3862+
If one or more IDs are specified, the search will fetch flows that match the given ID(s) and not use any additional supplied query parameters in the search.
38633863
38643864
This method makes a synchronous HTTP request by default. To make an
38653865
asynchronous HTTP request, please define a `callback` function
@@ -4327,7 +4327,7 @@ def get_flows_datatables(self, **kwargs):
43274327
def get_flows_divisionviews(self, **kwargs):
43284328
"""
43294329
Get a pageable list of basic flow information objects filterable by query parameters.
4330-
This returns a simplified version of /flow consisting of name and type.
4330+
This returns a simplified version of /flow consisting of name and type. If one or more IDs are specified, the search will fetch flows that match the given ID(s) and not use any additional supplied query parameters in the search.
43314331
43324332
This method makes a synchronous HTTP request by default. To make an
43334333
asynchronous HTTP request, please define a `callback` function

build/PureCloudPlatformClientV2/apis/groups_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,13 +631,14 @@ def get_groups(self, **kwargs):
631631
:param int page_size: Page size
632632
:param int page_number: Page number
633633
:param list[str] id: id
634+
:param list[str] jabber_id: A list of jabberIds to fetch by bulk (cannot be used with the \"id\" parameter)
634635
:param str sort_order: Ascending or descending sort order
635636
:return: GroupEntityListing
636637
If the method is called asynchronously,
637638
returns the request thread.
638639
"""
639640

640-
all_params = ['page_size', 'page_number', 'id', 'sort_order']
641+
all_params = ['page_size', 'page_number', 'id', 'jabber_id', 'sort_order']
641642
all_params.append('callback')
642643

643644
params = locals()
@@ -662,6 +663,8 @@ def get_groups(self, **kwargs):
662663
query_params['pageNumber'] = params['page_number']
663664
if 'id' in params:
664665
query_params['id'] = params['id']
666+
if 'jabber_id' in params:
667+
query_params['jabberId'] = params['jabber_id']
665668
if 'sort_order' in params:
666669
query_params['sortOrder'] = params['sort_order']
667670

build/PureCloudPlatformClientV2/apis/outbound_api.py

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2479,6 +2479,84 @@ def get_outbound_campaigns(self, **kwargs):
24792479
callback=params.get('callback'))
24802480
return response
24812481

2482+
def get_outbound_campaigns_divisionview(self, campaign_id, **kwargs):
2483+
"""
2484+
Get a basic Campaign information object
2485+
This returns a simplified version of a Campaign, consisting of name and division.
2486+
2487+
This method makes a synchronous HTTP request by default. To make an
2488+
asynchronous HTTP request, please define a `callback` function
2489+
to be invoked when receiving the response.
2490+
>>> def callback_function(response):
2491+
>>> pprint(response)
2492+
>>>
2493+
>>> thread = api.get_outbound_campaigns_divisionview(campaign_id, callback=callback_function)
2494+
2495+
:param callback function: The callback function
2496+
for asynchronous request. (optional)
2497+
:param str campaign_id: Campaign ID (required)
2498+
:return: CampaignDivisionView
2499+
If the method is called asynchronously,
2500+
returns the request thread.
2501+
"""
2502+
2503+
all_params = ['campaign_id']
2504+
all_params.append('callback')
2505+
2506+
params = locals()
2507+
for key, val in iteritems(params['kwargs']):
2508+
if key not in all_params:
2509+
raise TypeError(
2510+
"Got an unexpected keyword argument '%s'"
2511+
" to method get_outbound_campaigns_divisionview" % key
2512+
)
2513+
params[key] = val
2514+
del params['kwargs']
2515+
2516+
# verify the required parameter 'campaign_id' is set
2517+
if ('campaign_id' not in params) or (params['campaign_id'] is None):
2518+
raise ValueError("Missing the required parameter `campaign_id` when calling `get_outbound_campaigns_divisionview`")
2519+
2520+
2521+
resource_path = '/api/v2/outbound/campaigns/divisionviews/{campaignId}'.replace('{format}', 'json')
2522+
path_params = {}
2523+
if 'campaign_id' in params:
2524+
path_params['campaignId'] = params['campaign_id']
2525+
2526+
query_params = {}
2527+
2528+
header_params = {}
2529+
2530+
form_params = []
2531+
local_var_files = {}
2532+
2533+
body_params = None
2534+
2535+
# HTTP header `Accept`
2536+
header_params['Accept'] = self.api_client.\
2537+
select_header_accept(['application/json'])
2538+
if not header_params['Accept']:
2539+
del header_params['Accept']
2540+
2541+
# HTTP header `Content-Type`
2542+
header_params['Content-Type'] = self.api_client.\
2543+
select_header_content_type(['application/json'])
2544+
2545+
# Authentication setting
2546+
auth_settings = ['PureCloud OAuth']
2547+
2548+
response = self.api_client.call_api(resource_path, 'GET',
2549+
path_params,
2550+
query_params,
2551+
header_params,
2552+
body=body_params,
2553+
post_params=form_params,
2554+
files=local_var_files,
2555+
response_type='CampaignDivisionView',
2556+
auth_settings=auth_settings,
2557+
callback=params.get('callback'))
2558+
return response
2559+
24822560
def get_outbound_campaigns_divisionviews(self, **kwargs):
24832561
"""
24842562
Query a list of basic Campaign information objects

0 commit comments

Comments
 (0)