Skip to content

Commit cec782f

Browse files
author
PureCloud Jenkins
committed
245.0.0
1 parent eca8d30 commit cec782f

6,120 files changed

Lines changed: 20401 additions & 19917 deletions

File tree

Some content is hidden

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Documentation can be found at https://mypurecloud.github.io/platform-client-sdk-python/
77

8-
Documentation version PureCloudPlatformClientV2 244.0.0
8+
Documentation version PureCloudPlatformClientV2 245.0.0
99

1010
## Preview APIs
1111

build/.openapi-generator/FILES

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4201,6 +4201,7 @@ PureCloudPlatformClientV2/models/recipient_listing.py
42014201
PureCloudPlatformClientV2/models/recipient_request.py
42024202
PureCloudPlatformClientV2/models/recognition.py
42034203
PureCloudPlatformClientV2/models/recognition_base.py
4204+
PureCloudPlatformClientV2/models/recognitions.py
42044205
PureCloudPlatformClientV2/models/record.py
42054206
PureCloudPlatformClientV2/models/recorders_state.py
42064207
PureCloudPlatformClientV2/models/recording.py
@@ -4229,6 +4230,8 @@ PureCloudPlatformClientV2/models/recording_job_entity_listing.py
42294230
PureCloudPlatformClientV2/models/recording_job_failed_recording.py
42304231
PureCloudPlatformClientV2/models/recording_jobs_query.py
42314232
PureCloudPlatformClientV2/models/recording_location.py
4233+
PureCloudPlatformClientV2/models/recording_message_receipt.py
4234+
PureCloudPlatformClientV2/models/recording_message_receipt_reason.py
42324235
PureCloudPlatformClientV2/models/recording_messaging_message.py
42334236
PureCloudPlatformClientV2/models/recording_metadata.py
42344237
PureCloudPlatformClientV2/models/recording_notification_template.py
@@ -10060,6 +10063,7 @@ docs/RecipientListing.md
1006010063
docs/RecipientRequest.md
1006110064
docs/Recognition.md
1006210065
docs/RecognitionBase.md
10066+
docs/Recognitions.md
1006310067
docs/Record.md
1006410068
docs/RecordersState.md
1006510069
docs/Recording.md
@@ -10090,6 +10094,8 @@ docs/RecordingJobEntityListing.md
1009010094
docs/RecordingJobFailedRecording.md
1009110095
docs/RecordingJobsQuery.md
1009210096
docs/RecordingLocation.md
10097+
docs/RecordingMessageReceipt.md
10098+
docs/RecordingMessageReceiptReason.md
1009310099
docs/RecordingMessagingMessage.md
1009410100
docs/RecordingMetadata.md
1009510101
docs/RecordingNotificationTemplate.md
@@ -12441,6 +12447,7 @@ docs/get_emails_settings_threading-example.txt
1244112447
docs/get_emails_settings_threading-example.txt
1244212448
docs/get_employeeengagement_celebrations-example.txt
1244312449
docs/get_employeeengagement_recognition-example.txt
12450+
docs/get_employeeengagement_recognitions-example.txt
1244412451
docs/get_employeeperformance_externalmetrics_definition-example.txt
1244512452
docs/get_employeeperformance_externalmetrics_definitions-example.txt
1244612453
docs/get_externalcontacts_contact-example.txt

build/APIData.json

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16139,6 +16139,45 @@
1613916139
"return": "Recognition",
1614016140
"example": "import PureCloudPlatformClientV2\nfrom PureCloudPlatformClientV2.rest import ApiException\nfrom pprint import pprint\n\n# Configure OAuth2 access token for authorization: PureCloud OAuth\nPureCloudPlatformClientV2.configuration.access_token = 'your_access_token'\n# or use get_client_credentials_token(...), get_saml2bearer_token(...), get_code_authorization_token(...) or get_pkce_token(...)\n\n# create an instance of the API class\napi_instance = PureCloudPlatformClientV2.EmployeeEngagementApi();\nrecognition_id = 'recognition_id_example' # str | The Recognition ID\n\ntry:\n # Gets a single recognition\n api_response = api_instance.get_employeeengagement_recognition(recognition_id)\n pprint(api_response)\nexcept ApiException as e:\n print(\"Exception when calling EmployeeEngagementApi->get_employeeengagement_recognition: %s\\n\" % e)"
1614116141
},
16142+
"get_employeeengagement_recognitions": {
16143+
"operationId": "get_employeeengagement_recognitions",
16144+
"functionName": "get_employeeengagement_recognitions",
16145+
"signature": "get_employeeengagement_recognitions(direction, recipient, date_start, date_end, page_size, page_number)",
16146+
"parameters": [
16147+
{
16148+
"name": "direction",
16149+
"type": "str",
16150+
"required": "false"
16151+
},
16152+
{
16153+
"name": "recipient",
16154+
"type": "str",
16155+
"required": "false"
16156+
},
16157+
{
16158+
"name": "date_start",
16159+
"type": "datetime",
16160+
"required": "false"
16161+
},
16162+
{
16163+
"name": "date_end",
16164+
"type": "datetime",
16165+
"required": "false"
16166+
},
16167+
{
16168+
"name": "page_size",
16169+
"type": "int",
16170+
"required": "false"
16171+
},
16172+
{
16173+
"name": "page_number",
16174+
"type": "int",
16175+
"required": "false"
16176+
}
16177+
],
16178+
"return": "Recognitions",
16179+
"example": "import PureCloudPlatformClientV2\nfrom PureCloudPlatformClientV2.rest import ApiException\nfrom pprint import pprint\n\n# Configure OAuth2 access token for authorization: PureCloud OAuth\nPureCloudPlatformClientV2.configuration.access_token = 'your_access_token'\n# or use get_client_credentials_token(...), get_saml2bearer_token(...), get_code_authorization_token(...) or get_pkce_token(...)\n\n# create an instance of the API class\napi_instance = PureCloudPlatformClientV2.EmployeeEngagementApi();\ndirection = ''received'' # str | The direction of the recognitions. (optional) (default to 'received')\nrecipient = 'recipient_example' # str | The ID of the recipient (when direction is sent). (optional)\ndate_start = '2013-10-20T19:20:30+01:00' # datetime | The start date of the search range. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z (optional)\ndate_end = '2013-10-20T19:20:30+01:00' # datetime | The end date of the search range. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z (optional)\npage_size = 100 # int | Page size (optional) (default to 100)\npage_number = 1 # int | Page number (optional) (default to 1)\n\ntry:\n # Gets sent recognitions\n api_response = api_instance.get_employeeengagement_recognitions(direction=direction, recipient=recipient, date_start=date_start, date_end=date_end, page_size=page_size, page_number=page_number)\n pprint(api_response)\nexcept ApiException as e:\n print(\"Exception when calling EmployeeEngagementApi->get_employeeengagement_recognitions: %s\\n\" % e)"
16180+
},
1614216181
"patch_employeeengagement_celebration": {
1614316182
"operationId": "patch_employeeengagement_celebration",
1614416183
"functionName": "patch_employeeengagement_celebration",
@@ -33355,7 +33394,7 @@
3335533394
"get_outbound_messagingcampaigns": {
3335633395
"operationId": "get_outbound_messagingcampaigns",
3335733396
"functionName": "get_outbound_messagingcampaigns",
33358-
"signature": "get_outbound_messagingcampaigns(page_size, page_number, sort_by, sort_order, name, contact_list_id, division_id, type, sender_sms_phone_number, id, content_template_id, campaign_status)",
33397+
"signature": "get_outbound_messagingcampaigns(page_size, page_number, sort_by, sort_order, name, contact_list_id, division_id, type, sender_sms_phone_number, id, content_template_id, campaign_status, rule_set_ids)",
3335933398
"parameters": [
3336033399
{
3336133400
"name": "page_size",
@@ -33416,10 +33455,15 @@
3341633455
"name": "campaign_status",
3341733456
"type": "str",
3341833457
"required": "false"
33458+
},
33459+
{
33460+
"name": "rule_set_ids",
33461+
"type": "list[str]",
33462+
"required": "false"
3341933463
}
3342033464
],
3342133465
"return": "MessagingCampaignEntityListing",
33422-
"example": "import PureCloudPlatformClientV2\nfrom PureCloudPlatformClientV2.rest import ApiException\nfrom pprint import pprint\n\n# Configure OAuth2 access token for authorization: PureCloud OAuth\nPureCloudPlatformClientV2.configuration.access_token = 'your_access_token'\n# or use get_client_credentials_token(...), get_saml2bearer_token(...), get_code_authorization_token(...) or get_pkce_token(...)\n\n# create an instance of the API class\napi_instance = PureCloudPlatformClientV2.OutboundApi();\npage_size = 25 # int | Page size. The max that will be returned is 100. (optional) (default to 25)\npage_number = 1 # int | Page number (optional) (default to 1)\nsort_by = ''name'' # str | The field to sort by (optional) (default to 'name')\nsort_order = ''ascending'' # str | The direction to sort (optional) (default to 'ascending')\nname = 'name_example' # str | Name (optional)\ncontact_list_id = 'contact_list_id_example' # str | Contact List ID (optional)\ndivision_id = ['division_id_example'] # list[str] | Division ID(s) (optional)\ntype = 'type_example' # str | Campaign Type (optional)\nsender_sms_phone_number = 'sender_sms_phone_number_example' # str | Sender SMS Phone Number (optional)\nid = ['id_example'] # list[str] | A list of messaging campaign ids to bulk fetch (optional)\ncontent_template_id = 'content_template_id_example' # str | Content template ID (optional)\ncampaign_status = 'campaign_status_example' # str | Campaign Status (optional)\n\ntry:\n # Query a list of Messaging Campaigns\n api_response = api_instance.get_outbound_messagingcampaigns(page_size=page_size, page_number=page_number, sort_by=sort_by, sort_order=sort_order, name=name, contact_list_id=contact_list_id, division_id=division_id, type=type, sender_sms_phone_number=sender_sms_phone_number, id=id, content_template_id=content_template_id, campaign_status=campaign_status)\n pprint(api_response)\nexcept ApiException as e:\n print(\"Exception when calling OutboundApi->get_outbound_messagingcampaigns: %s\\n\" % e)"
33466+
"example": "import PureCloudPlatformClientV2\nfrom PureCloudPlatformClientV2.rest import ApiException\nfrom pprint import pprint\n\n# Configure OAuth2 access token for authorization: PureCloud OAuth\nPureCloudPlatformClientV2.configuration.access_token = 'your_access_token'\n# or use get_client_credentials_token(...), get_saml2bearer_token(...), get_code_authorization_token(...) or get_pkce_token(...)\n\n# create an instance of the API class\napi_instance = PureCloudPlatformClientV2.OutboundApi();\npage_size = 25 # int | Page size. The max that will be returned is 100. (optional) (default to 25)\npage_number = 1 # int | Page number (optional) (default to 1)\nsort_by = ''name'' # str | The field to sort by (optional) (default to 'name')\nsort_order = ''ascending'' # str | The direction to sort (optional) (default to 'ascending')\nname = 'name_example' # str | Name (optional)\ncontact_list_id = 'contact_list_id_example' # str | Contact List ID (optional)\ndivision_id = ['division_id_example'] # list[str] | Division ID(s) (optional)\ntype = 'type_example' # str | Campaign Type (optional)\nsender_sms_phone_number = 'sender_sms_phone_number_example' # str | Sender SMS Phone Number (optional)\nid = ['id_example'] # list[str] | A list of messaging campaign ids to bulk fetch (optional)\ncontent_template_id = 'content_template_id_example' # str | Content template ID (optional)\ncampaign_status = 'campaign_status_example' # str | Campaign Status (optional)\nrule_set_ids = ['rule_set_ids_example'] # list[str] | Ruleset ID(s) (optional)\n\ntry:\n # Query a list of Messaging Campaigns\n api_response = api_instance.get_outbound_messagingcampaigns(page_size=page_size, page_number=page_number, sort_by=sort_by, sort_order=sort_order, name=name, contact_list_id=contact_list_id, division_id=division_id, type=type, sender_sms_phone_number=sender_sms_phone_number, id=id, content_template_id=content_template_id, campaign_status=campaign_status, rule_set_ids=rule_set_ids)\n pprint(api_response)\nexcept ApiException as e:\n print(\"Exception when calling OutboundApi->get_outbound_messagingcampaigns: %s\\n\" % e)"
3342333467
},
3342433468
"get_outbound_messagingcampaigns_divisionview": {
3342533469
"operationId": "get_outbound_messagingcampaigns_divisionview",

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4113,6 +4113,7 @@
41134113
from .models.recipient_request import RecipientRequest
41144114
from .models.recognition import Recognition
41154115
from .models.recognition_base import RecognitionBase
4116+
from .models.recognitions import Recognitions
41164117
from .models.record import Record
41174118
from .models.recorders_state import RecordersState
41184119
from .models.recording import Recording
@@ -4141,6 +4142,8 @@
41414142
from .models.recording_job_failed_recording import RecordingJobFailedRecording
41424143
from .models.recording_jobs_query import RecordingJobsQuery
41434144
from .models.recording_location import RecordingLocation
4145+
from .models.recording_message_receipt import RecordingMessageReceipt
4146+
from .models.recording_message_receipt_reason import RecordingMessageReceiptReason
41444147
from .models.recording_messaging_message import RecordingMessagingMessage
41454148
from .models.recording_metadata import RecordingMetadata
41464149
from .models.recording_notification_template import RecordingNotificationTemplate

build/PureCloudPlatformClientV2/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def __call_api(self, resource_path, method,
419419
header_params['Cookie'] = self.cookie
420420
if header_params:
421421
header_params = self.sanitize_for_serialization(header_params)
422-
header_params['purecloud-sdk'] = '244.0.0'
422+
header_params['purecloud-sdk'] = '245.0.0'
423423

424424
# path parameters
425425
if path_params:

build/PureCloudPlatformClientV2/apis/employee_engagement_api.py

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
from ..models import GetCelebrationListing
4242
from ..models import Recognition
4343
from ..models import RecognitionBase
44+
from ..models import Recognitions
4445

4546
class EmployeeEngagementApi(object):
4647
"""
@@ -292,6 +293,96 @@ def get_employeeengagement_recognition(self, recognition_id: str, **kwargs) -> '
292293
callback=params.get('callback'))
293294
return response
294295

296+
def get_employeeengagement_recognitions(self, **kwargs) -> 'Recognitions':
297+
"""
298+
Gets sent recognitions
299+
300+
301+
This method makes a synchronous HTTP request by default. To make an
302+
asynchronous HTTP request, please define a `callback` function
303+
to be invoked when receiving the response.
304+
>>> def callback_function(response):
305+
>>> pprint(response)
306+
>>>
307+
>>> thread = api.get_employeeengagement_recognitions(callback=callback_function)
308+
309+
:param callback function: The callback function
310+
for asynchronous request. (optional)
311+
:param str direction: The direction of the recognitions.
312+
:param str recipient: The ID of the recipient (when direction is sent).
313+
:param datetime date_start: The start date of the search range. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
314+
:param datetime date_end: The end date of the search range. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
315+
:param int page_size: Page size
316+
:param int page_number: Page number
317+
:return: Recognitions
318+
If the method is called asynchronously,
319+
returns the request thread.
320+
"""
321+
322+
all_params = ['direction', 'recipient', 'date_start', 'date_end', 'page_size', 'page_number']
323+
all_params.append('callback')
324+
325+
params = locals()
326+
for key, val in params['kwargs'].items():
327+
if key not in all_params:
328+
raise TypeError(
329+
"Got an unexpected keyword argument '%s'"
330+
" to method get_employeeengagement_recognitions" % key
331+
)
332+
params[key] = val
333+
del params['kwargs']
334+
335+
336+
337+
resource_path = '/api/v2/employeeengagement/recognitions'.replace('{format}', 'json')
338+
path_params = {}
339+
340+
query_params = {}
341+
if 'direction' in params:
342+
query_params['direction'] = params['direction']
343+
if 'recipient' in params:
344+
query_params['recipient'] = params['recipient']
345+
if 'date_start' in params:
346+
query_params['dateStart'] = params['date_start']
347+
if 'date_end' in params:
348+
query_params['dateEnd'] = params['date_end']
349+
if 'page_size' in params:
350+
query_params['pageSize'] = params['page_size']
351+
if 'page_number' in params:
352+
query_params['pageNumber'] = params['page_number']
353+
354+
header_params = {}
355+
356+
form_params = []
357+
local_var_files = {}
358+
359+
body_params = None
360+
361+
# HTTP header `Accept`
362+
header_params['Accept'] = self.api_client.\
363+
select_header_accept(['application/json'])
364+
if not header_params['Accept']:
365+
del header_params['Accept']
366+
367+
# HTTP header `Content-Type`
368+
header_params['Content-Type'] = self.api_client.\
369+
select_header_content_type(['application/json'])
370+
371+
# Authentication setting
372+
auth_settings = ['PureCloud OAuth']
373+
374+
response = self.api_client.call_api(resource_path, 'GET',
375+
path_params,
376+
query_params,
377+
header_params,
378+
body=body_params,
379+
post_params=form_params,
380+
files=local_var_files,
381+
response_type='Recognitions',
382+
auth_settings=auth_settings,
383+
callback=params.get('callback'))
384+
return response
385+
295386
def patch_employeeengagement_celebration(self, celebration_id: str, body: 'CelebrationStateParam', **kwargs) -> None:
296387
"""
297388
Set a state for a celebration

build/PureCloudPlatformClientV2/apis/outbound_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7224,12 +7224,13 @@ def get_outbound_messagingcampaigns(self, **kwargs) -> 'MessagingCampaignEntityL
72247224
:param list[str] id: A list of messaging campaign ids to bulk fetch
72257225
:param str content_template_id: Content template ID
72267226
:param str campaign_status: Campaign Status
7227+
:param list[str] rule_set_ids: Ruleset ID(s)
72277228
:return: MessagingCampaignEntityListing
72287229
If the method is called asynchronously,
72297230
returns the request thread.
72307231
"""
72317232

7232-
all_params = ['page_size', 'page_number', 'sort_by', 'sort_order', 'name', 'contact_list_id', 'division_id', 'type', 'sender_sms_phone_number', 'id', 'content_template_id', 'campaign_status']
7233+
all_params = ['page_size', 'page_number', 'sort_by', 'sort_order', 'name', 'contact_list_id', 'division_id', 'type', 'sender_sms_phone_number', 'id', 'content_template_id', 'campaign_status', 'rule_set_ids']
72337234
all_params.append('callback')
72347235

72357236
params = locals()
@@ -7272,6 +7273,8 @@ def get_outbound_messagingcampaigns(self, **kwargs) -> 'MessagingCampaignEntityL
72727273
query_params['contentTemplateId'] = params['content_template_id']
72737274
if 'campaign_status' in params:
72747275
query_params['campaignStatus'] = params['campaign_status']
7276+
if 'rule_set_ids' in params:
7277+
query_params['ruleSetIds'] = params['rule_set_ids']
72757278

72767279
header_params = {}
72777280

build/PureCloudPlatformClientV2/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def to_debug_report(self):
256256
"OS: {env}\n"\
257257
"Python Version: {pyversion}\n"\
258258
"Version of the API: v2\n"\
259-
"SDK Package Version: 244.0.0".\
259+
"SDK Package Version: 245.0.0".\
260260
format(env=sys.platform, pyversion=sys.version)
261261

262262
def _update_config_from_file(self):

build/PureCloudPlatformClientV2/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4113,6 +4113,7 @@
41134113
from .recipient_request import RecipientRequest
41144114
from .recognition import Recognition
41154115
from .recognition_base import RecognitionBase
4116+
from .recognitions import Recognitions
41164117
from .record import Record
41174118
from .recorders_state import RecordersState
41184119
from .recording import Recording
@@ -4141,6 +4142,8 @@
41414142
from .recording_job_failed_recording import RecordingJobFailedRecording
41424143
from .recording_jobs_query import RecordingJobsQuery
41434144
from .recording_location import RecordingLocation
4145+
from .recording_message_receipt import RecordingMessageReceipt
4146+
from .recording_message_receipt_reason import RecordingMessageReceiptReason
41444147
from .recording_messaging_message import RecordingMessagingMessage
41454148
from .recording_metadata import RecordingMetadata
41464149
from .recording_notification_template import RecordingNotificationTemplate

0 commit comments

Comments
 (0)