ultracart-rest-sdk 4.1.39__py3-none-any.whl → 4.1.41__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,6 +52,9 @@ from ultracart.model.conversation_mcp_server_tools_response import ConversationM
52
52
  from ultracart.model.conversation_mcp_servers_response import ConversationMcpServersResponse
53
53
  from ultracart.model.conversation_messages_response import ConversationMessagesResponse
54
54
  from ultracart.model.conversation_multimedia_upload_url_response import ConversationMultimediaUploadUrlResponse
55
+ from ultracart.model.conversation_pbx_address import ConversationPbxAddress
56
+ from ultracart.model.conversation_pbx_address_response import ConversationPbxAddressResponse
57
+ from ultracart.model.conversation_pbx_addresses_response import ConversationPbxAddressesResponse
55
58
  from ultracart.model.conversation_pbx_agent import ConversationPbxAgent
56
59
  from ultracart.model.conversation_pbx_agent_response import ConversationPbxAgentResponse
57
60
  from ultracart.model.conversation_pbx_agents_response import ConversationPbxAgentsResponse
@@ -60,12 +63,14 @@ from ultracart.model.conversation_pbx_audio_response import ConversationPbxAudio
60
63
  from ultracart.model.conversation_pbx_audio_upload_url_response import ConversationPbxAudioUploadUrlResponse
61
64
  from ultracart.model.conversation_pbx_audio_usage_response import ConversationPbxAudioUsageResponse
62
65
  from ultracart.model.conversation_pbx_audios_response import ConversationPbxAudiosResponse
66
+ from ultracart.model.conversation_pbx_available_phone_numbers_response import ConversationPbxAvailablePhoneNumbersResponse
63
67
  from ultracart.model.conversation_pbx_customer_snapshot_request import ConversationPbxCustomerSnapshotRequest
64
68
  from ultracart.model.conversation_pbx_customer_snapshot_response import ConversationPbxCustomerSnapshotResponse
65
69
  from ultracart.model.conversation_pbx_menu import ConversationPbxMenu
66
70
  from ultracart.model.conversation_pbx_menu_response import ConversationPbxMenuResponse
67
71
  from ultracart.model.conversation_pbx_menus_response import ConversationPbxMenusResponse
68
72
  from ultracart.model.conversation_pbx_phone_number import ConversationPbxPhoneNumber
73
+ from ultracart.model.conversation_pbx_phone_number_purchase_request import ConversationPbxPhoneNumberPurchaseRequest
69
74
  from ultracart.model.conversation_pbx_phone_number_response import ConversationPbxPhoneNumberResponse
70
75
  from ultracart.model.conversation_pbx_phone_numbers_response import ConversationPbxPhoneNumbersResponse
71
76
  from ultracart.model.conversation_pbx_queue import ConversationPbxQueue
@@ -393,6 +398,58 @@ class ConversationApi(object):
393
398
  },
394
399
  api_client=api_client
395
400
  )
401
+ self.delete_pbx_address_endpoint = _Endpoint(
402
+ settings={
403
+ 'response_type': (ConversationPbxAddressResponse,),
404
+ 'auth': [
405
+ 'ultraCartOauth',
406
+ 'ultraCartSimpleApiKey'
407
+ ],
408
+ 'endpoint_path': '/conversation/pbx/address/{conversationPbxAddressUuid}',
409
+ 'operation_id': 'delete_pbx_address',
410
+ 'http_method': 'DELETE',
411
+ 'servers': None,
412
+ },
413
+ params_map={
414
+ 'all': [
415
+ 'conversation_pbx_address_uuid',
416
+ ],
417
+ 'required': [
418
+ 'conversation_pbx_address_uuid',
419
+ ],
420
+ 'nullable': [
421
+ ],
422
+ 'enum': [
423
+ ],
424
+ 'validation': [
425
+ ]
426
+ },
427
+ root_map={
428
+ 'validations': {
429
+ },
430
+ 'allowed_values': {
431
+ },
432
+ 'openapi_types': {
433
+ 'conversation_pbx_address_uuid':
434
+ (str,),
435
+ },
436
+ 'attribute_map': {
437
+ 'conversation_pbx_address_uuid': 'conversationPbxAddressUuid',
438
+ },
439
+ 'location_map': {
440
+ 'conversation_pbx_address_uuid': 'path',
441
+ },
442
+ 'collection_format_map': {
443
+ }
444
+ },
445
+ headers_map={
446
+ 'accept': [
447
+ 'application/json'
448
+ ],
449
+ 'content_type': [],
450
+ },
451
+ api_client=api_client
452
+ )
396
453
  self.delete_pbx_agent_voicemail_endpoint = _Endpoint(
397
454
  settings={
398
455
  'response_type': None,
@@ -549,6 +606,58 @@ class ConversationApi(object):
549
606
  },
550
607
  api_client=api_client
551
608
  )
609
+ self.delete_pbx_phone_number_endpoint = _Endpoint(
610
+ settings={
611
+ 'response_type': None,
612
+ 'auth': [
613
+ 'ultraCartOauth',
614
+ 'ultraCartSimpleApiKey'
615
+ ],
616
+ 'endpoint_path': '/conversation/pbx/phone_number/{conversationPbxPhoneNumberUuid}',
617
+ 'operation_id': 'delete_pbx_phone_number',
618
+ 'http_method': 'DELETE',
619
+ 'servers': None,
620
+ },
621
+ params_map={
622
+ 'all': [
623
+ 'conversation_pbx_phone_number_uuid',
624
+ ],
625
+ 'required': [
626
+ 'conversation_pbx_phone_number_uuid',
627
+ ],
628
+ 'nullable': [
629
+ ],
630
+ 'enum': [
631
+ ],
632
+ 'validation': [
633
+ ]
634
+ },
635
+ root_map={
636
+ 'validations': {
637
+ },
638
+ 'allowed_values': {
639
+ },
640
+ 'openapi_types': {
641
+ 'conversation_pbx_phone_number_uuid':
642
+ (str,),
643
+ },
644
+ 'attribute_map': {
645
+ 'conversation_pbx_phone_number_uuid': 'conversationPbxPhoneNumberUuid',
646
+ },
647
+ 'location_map': {
648
+ 'conversation_pbx_phone_number_uuid': 'path',
649
+ },
650
+ 'collection_format_map': {
651
+ }
652
+ },
653
+ headers_map={
654
+ 'accept': [
655
+ 'application/json'
656
+ ],
657
+ 'content_type': [],
658
+ },
659
+ api_client=api_client
660
+ )
552
661
  self.delete_pbx_queue_endpoint = _Endpoint(
553
662
  settings={
554
663
  'response_type': (ConversationPbxQueueResponse,),
@@ -2140,6 +2249,103 @@ class ConversationApi(object):
2140
2249
  },
2141
2250
  api_client=api_client
2142
2251
  )
2252
+ self.get_pbx_address_endpoint = _Endpoint(
2253
+ settings={
2254
+ 'response_type': (ConversationPbxAddressResponse,),
2255
+ 'auth': [
2256
+ 'ultraCartOauth',
2257
+ 'ultraCartSimpleApiKey'
2258
+ ],
2259
+ 'endpoint_path': '/conversation/pbx/address/{conversationPbxAddressUuid}',
2260
+ 'operation_id': 'get_pbx_address',
2261
+ 'http_method': 'GET',
2262
+ 'servers': None,
2263
+ },
2264
+ params_map={
2265
+ 'all': [
2266
+ 'conversation_pbx_address_uuid',
2267
+ ],
2268
+ 'required': [
2269
+ 'conversation_pbx_address_uuid',
2270
+ ],
2271
+ 'nullable': [
2272
+ ],
2273
+ 'enum': [
2274
+ ],
2275
+ 'validation': [
2276
+ ]
2277
+ },
2278
+ root_map={
2279
+ 'validations': {
2280
+ },
2281
+ 'allowed_values': {
2282
+ },
2283
+ 'openapi_types': {
2284
+ 'conversation_pbx_address_uuid':
2285
+ (str,),
2286
+ },
2287
+ 'attribute_map': {
2288
+ 'conversation_pbx_address_uuid': 'conversationPbxAddressUuid',
2289
+ },
2290
+ 'location_map': {
2291
+ 'conversation_pbx_address_uuid': 'path',
2292
+ },
2293
+ 'collection_format_map': {
2294
+ }
2295
+ },
2296
+ headers_map={
2297
+ 'accept': [
2298
+ 'application/json'
2299
+ ],
2300
+ 'content_type': [],
2301
+ },
2302
+ api_client=api_client
2303
+ )
2304
+ self.get_pbx_addresses_endpoint = _Endpoint(
2305
+ settings={
2306
+ 'response_type': (ConversationPbxAddressesResponse,),
2307
+ 'auth': [
2308
+ 'ultraCartOauth',
2309
+ 'ultraCartSimpleApiKey'
2310
+ ],
2311
+ 'endpoint_path': '/conversation/pbx/address',
2312
+ 'operation_id': 'get_pbx_addresses',
2313
+ 'http_method': 'GET',
2314
+ 'servers': None,
2315
+ },
2316
+ params_map={
2317
+ 'all': [
2318
+ ],
2319
+ 'required': [],
2320
+ 'nullable': [
2321
+ ],
2322
+ 'enum': [
2323
+ ],
2324
+ 'validation': [
2325
+ ]
2326
+ },
2327
+ root_map={
2328
+ 'validations': {
2329
+ },
2330
+ 'allowed_values': {
2331
+ },
2332
+ 'openapi_types': {
2333
+ },
2334
+ 'attribute_map': {
2335
+ },
2336
+ 'location_map': {
2337
+ },
2338
+ 'collection_format_map': {
2339
+ }
2340
+ },
2341
+ headers_map={
2342
+ 'accept': [
2343
+ 'application/json'
2344
+ ],
2345
+ 'content_type': [],
2346
+ },
2347
+ api_client=api_client
2348
+ )
2143
2349
  self.get_pbx_agent_endpoint = _Endpoint(
2144
2350
  settings={
2145
2351
  'response_type': (ConversationPbxAgentResponse,),
@@ -3542,6 +3748,59 @@ class ConversationApi(object):
3542
3748
  },
3543
3749
  api_client=api_client
3544
3750
  )
3751
+ self.insert_pbx_address_endpoint = _Endpoint(
3752
+ settings={
3753
+ 'response_type': (ConversationPbxAddressResponse,),
3754
+ 'auth': [
3755
+ 'ultraCartOauth',
3756
+ 'ultraCartSimpleApiKey'
3757
+ ],
3758
+ 'endpoint_path': '/conversation/pbx/address',
3759
+ 'operation_id': 'insert_pbx_address',
3760
+ 'http_method': 'POST',
3761
+ 'servers': None,
3762
+ },
3763
+ params_map={
3764
+ 'all': [
3765
+ 'pbx_address',
3766
+ ],
3767
+ 'required': [
3768
+ 'pbx_address',
3769
+ ],
3770
+ 'nullable': [
3771
+ ],
3772
+ 'enum': [
3773
+ ],
3774
+ 'validation': [
3775
+ ]
3776
+ },
3777
+ root_map={
3778
+ 'validations': {
3779
+ },
3780
+ 'allowed_values': {
3781
+ },
3782
+ 'openapi_types': {
3783
+ 'pbx_address':
3784
+ (ConversationPbxAddress,),
3785
+ },
3786
+ 'attribute_map': {
3787
+ },
3788
+ 'location_map': {
3789
+ 'pbx_address': 'body',
3790
+ },
3791
+ 'collection_format_map': {
3792
+ }
3793
+ },
3794
+ headers_map={
3795
+ 'accept': [
3796
+ 'application/json'
3797
+ ],
3798
+ 'content_type': [
3799
+ 'application/json'
3800
+ ]
3801
+ },
3802
+ api_client=api_client
3803
+ )
3545
3804
  self.insert_pbx_audio_endpoint = _Endpoint(
3546
3805
  settings={
3547
3806
  'response_type': (ConversationPbxAudioResponse,),
@@ -4132,24 +4391,24 @@ class ConversationApi(object):
4132
4391
  },
4133
4392
  api_client=api_client
4134
4393
  )
4135
- self.reset_conversation_pbx_queue_statistics_endpoint = _Endpoint(
4394
+ self.protect_pbx_phone_number_endpoint = _Endpoint(
4136
4395
  settings={
4137
- 'response_type': None,
4396
+ 'response_type': (ConversationPbxPhoneNumberResponse,),
4138
4397
  'auth': [
4139
4398
  'ultraCartOauth',
4140
4399
  'ultraCartSimpleApiKey'
4141
4400
  ],
4142
- 'endpoint_path': '/conversation/pbx/queues/{queue_uuid}/reset_statistics',
4143
- 'operation_id': 'reset_conversation_pbx_queue_statistics',
4144
- 'http_method': 'POST',
4401
+ 'endpoint_path': '/conversation/pbx/phone_number/{conversationPbxPhoneNumberUuid}/protect',
4402
+ 'operation_id': 'protect_pbx_phone_number',
4403
+ 'http_method': 'PUT',
4145
4404
  'servers': None,
4146
4405
  },
4147
4406
  params_map={
4148
4407
  'all': [
4149
- 'queue_uuid',
4408
+ 'conversation_pbx_phone_number_uuid',
4150
4409
  ],
4151
4410
  'required': [
4152
- 'queue_uuid',
4411
+ 'conversation_pbx_phone_number_uuid',
4153
4412
  ],
4154
4413
  'nullable': [
4155
4414
  ],
@@ -4164,14 +4423,14 @@ class ConversationApi(object):
4164
4423
  'allowed_values': {
4165
4424
  },
4166
4425
  'openapi_types': {
4167
- 'queue_uuid':
4426
+ 'conversation_pbx_phone_number_uuid':
4168
4427
  (str,),
4169
4428
  },
4170
4429
  'attribute_map': {
4171
- 'queue_uuid': 'queue_uuid',
4430
+ 'conversation_pbx_phone_number_uuid': 'conversationPbxPhoneNumberUuid',
4172
4431
  },
4173
4432
  'location_map': {
4174
- 'queue_uuid': 'path',
4433
+ 'conversation_pbx_phone_number_uuid': 'path',
4175
4434
  },
4176
4435
  'collection_format_map': {
4177
4436
  }
@@ -4184,24 +4443,24 @@ class ConversationApi(object):
4184
4443
  },
4185
4444
  api_client=api_client
4186
4445
  )
4187
- self.search_conversation_canned_messages_endpoint = _Endpoint(
4446
+ self.purchase_pbx_phone_number_endpoint = _Endpoint(
4188
4447
  settings={
4189
- 'response_type': (ConversationCannedMessagesResponse,),
4448
+ 'response_type': (ConversationPbxPhoneNumberResponse,),
4190
4449
  'auth': [
4191
4450
  'ultraCartOauth',
4192
4451
  'ultraCartSimpleApiKey'
4193
4452
  ],
4194
- 'endpoint_path': '/conversation/canned_messages/search',
4195
- 'operation_id': 'search_conversation_canned_messages',
4453
+ 'endpoint_path': '/conversation/pbx/phone_number',
4454
+ 'operation_id': 'purchase_pbx_phone_number',
4196
4455
  'http_method': 'POST',
4197
4456
  'servers': None,
4198
4457
  },
4199
4458
  params_map={
4200
4459
  'all': [
4201
- 'search_request',
4460
+ 'phone_number_purchase_request',
4202
4461
  ],
4203
4462
  'required': [
4204
- 'search_request',
4463
+ 'phone_number_purchase_request',
4205
4464
  ],
4206
4465
  'nullable': [
4207
4466
  ],
@@ -4216,13 +4475,13 @@ class ConversationApi(object):
4216
4475
  'allowed_values': {
4217
4476
  },
4218
4477
  'openapi_types': {
4219
- 'search_request':
4220
- (ConversationCannedMessagesSearch,),
4478
+ 'phone_number_purchase_request':
4479
+ (ConversationPbxPhoneNumberPurchaseRequest,),
4221
4480
  },
4222
4481
  'attribute_map': {
4223
4482
  },
4224
4483
  'location_map': {
4225
- 'search_request': 'body',
4484
+ 'phone_number_purchase_request': 'body',
4226
4485
  },
4227
4486
  'collection_format_map': {
4228
4487
  }
@@ -4237,18 +4496,205 @@ class ConversationApi(object):
4237
4496
  },
4238
4497
  api_client=api_client
4239
4498
  )
4240
- self.sms_unsubscribe_conversation_endpoint = _Endpoint(
4499
+ self.reset_conversation_pbx_queue_statistics_endpoint = _Endpoint(
4241
4500
  settings={
4242
4501
  'response_type': None,
4243
4502
  'auth': [
4244
4503
  'ultraCartOauth',
4245
4504
  'ultraCartSimpleApiKey'
4246
4505
  ],
4247
- 'endpoint_path': '/conversation/conversations/{conversation_uuid}/sms_unsubscribe',
4248
- 'operation_id': 'sms_unsubscribe_conversation',
4249
- 'http_method': 'PUT',
4250
- 'servers': None,
4251
- },
4506
+ 'endpoint_path': '/conversation/pbx/queues/{queue_uuid}/reset_statistics',
4507
+ 'operation_id': 'reset_conversation_pbx_queue_statistics',
4508
+ 'http_method': 'POST',
4509
+ 'servers': None,
4510
+ },
4511
+ params_map={
4512
+ 'all': [
4513
+ 'queue_uuid',
4514
+ ],
4515
+ 'required': [
4516
+ 'queue_uuid',
4517
+ ],
4518
+ 'nullable': [
4519
+ ],
4520
+ 'enum': [
4521
+ ],
4522
+ 'validation': [
4523
+ ]
4524
+ },
4525
+ root_map={
4526
+ 'validations': {
4527
+ },
4528
+ 'allowed_values': {
4529
+ },
4530
+ 'openapi_types': {
4531
+ 'queue_uuid':
4532
+ (str,),
4533
+ },
4534
+ 'attribute_map': {
4535
+ 'queue_uuid': 'queue_uuid',
4536
+ },
4537
+ 'location_map': {
4538
+ 'queue_uuid': 'path',
4539
+ },
4540
+ 'collection_format_map': {
4541
+ }
4542
+ },
4543
+ headers_map={
4544
+ 'accept': [
4545
+ 'application/json'
4546
+ ],
4547
+ 'content_type': [],
4548
+ },
4549
+ api_client=api_client
4550
+ )
4551
+ self.search_conversation_canned_messages_endpoint = _Endpoint(
4552
+ settings={
4553
+ 'response_type': (ConversationCannedMessagesResponse,),
4554
+ 'auth': [
4555
+ 'ultraCartOauth',
4556
+ 'ultraCartSimpleApiKey'
4557
+ ],
4558
+ 'endpoint_path': '/conversation/canned_messages/search',
4559
+ 'operation_id': 'search_conversation_canned_messages',
4560
+ 'http_method': 'POST',
4561
+ 'servers': None,
4562
+ },
4563
+ params_map={
4564
+ 'all': [
4565
+ 'search_request',
4566
+ ],
4567
+ 'required': [
4568
+ 'search_request',
4569
+ ],
4570
+ 'nullable': [
4571
+ ],
4572
+ 'enum': [
4573
+ ],
4574
+ 'validation': [
4575
+ ]
4576
+ },
4577
+ root_map={
4578
+ 'validations': {
4579
+ },
4580
+ 'allowed_values': {
4581
+ },
4582
+ 'openapi_types': {
4583
+ 'search_request':
4584
+ (ConversationCannedMessagesSearch,),
4585
+ },
4586
+ 'attribute_map': {
4587
+ },
4588
+ 'location_map': {
4589
+ 'search_request': 'body',
4590
+ },
4591
+ 'collection_format_map': {
4592
+ }
4593
+ },
4594
+ headers_map={
4595
+ 'accept': [
4596
+ 'application/json'
4597
+ ],
4598
+ 'content_type': [
4599
+ 'application/json'
4600
+ ]
4601
+ },
4602
+ api_client=api_client
4603
+ )
4604
+ self.search_pbx_available_phone_numbers_endpoint = _Endpoint(
4605
+ settings={
4606
+ 'response_type': (ConversationPbxAvailablePhoneNumbersResponse,),
4607
+ 'auth': [
4608
+ 'ultraCartOauth',
4609
+ 'ultraCartSimpleApiKey'
4610
+ ],
4611
+ 'endpoint_path': '/conversation/pbx/phone_number/search',
4612
+ 'operation_id': 'search_pbx_available_phone_numbers',
4613
+ 'http_method': 'GET',
4614
+ 'servers': None,
4615
+ },
4616
+ params_map={
4617
+ 'all': [
4618
+ 'country',
4619
+ 'area_code',
4620
+ 'contains',
4621
+ 'sms_enabled',
4622
+ 'voice_enabled',
4623
+ 'type',
4624
+ 'limit',
4625
+ ],
4626
+ 'required': [
4627
+ 'country',
4628
+ ],
4629
+ 'nullable': [
4630
+ ],
4631
+ 'enum': [
4632
+ ],
4633
+ 'validation': [
4634
+ ]
4635
+ },
4636
+ root_map={
4637
+ 'validations': {
4638
+ },
4639
+ 'allowed_values': {
4640
+ },
4641
+ 'openapi_types': {
4642
+ 'country':
4643
+ (str,),
4644
+ 'area_code':
4645
+ (str,),
4646
+ 'contains':
4647
+ (str,),
4648
+ 'sms_enabled':
4649
+ (bool,),
4650
+ 'voice_enabled':
4651
+ (bool,),
4652
+ 'type':
4653
+ (str,),
4654
+ 'limit':
4655
+ (int,),
4656
+ },
4657
+ 'attribute_map': {
4658
+ 'country': 'country',
4659
+ 'area_code': 'area_code',
4660
+ 'contains': 'contains',
4661
+ 'sms_enabled': 'sms_enabled',
4662
+ 'voice_enabled': 'voice_enabled',
4663
+ 'type': 'type',
4664
+ 'limit': 'limit',
4665
+ },
4666
+ 'location_map': {
4667
+ 'country': 'query',
4668
+ 'area_code': 'query',
4669
+ 'contains': 'query',
4670
+ 'sms_enabled': 'query',
4671
+ 'voice_enabled': 'query',
4672
+ 'type': 'query',
4673
+ 'limit': 'query',
4674
+ },
4675
+ 'collection_format_map': {
4676
+ }
4677
+ },
4678
+ headers_map={
4679
+ 'accept': [
4680
+ 'application/json'
4681
+ ],
4682
+ 'content_type': [],
4683
+ },
4684
+ api_client=api_client
4685
+ )
4686
+ self.sms_unsubscribe_conversation_endpoint = _Endpoint(
4687
+ settings={
4688
+ 'response_type': None,
4689
+ 'auth': [
4690
+ 'ultraCartOauth',
4691
+ 'ultraCartSimpleApiKey'
4692
+ ],
4693
+ 'endpoint_path': '/conversation/conversations/{conversation_uuid}/sms_unsubscribe',
4694
+ 'operation_id': 'sms_unsubscribe_conversation',
4695
+ 'http_method': 'PUT',
4696
+ 'servers': None,
4697
+ },
4252
4698
  params_map={
4253
4699
  'all': [
4254
4700
  'conversation_uuid',
@@ -4696,6 +5142,65 @@ class ConversationApi(object):
4696
5142
  },
4697
5143
  api_client=api_client
4698
5144
  )
5145
+ self.update_pbx_address_endpoint = _Endpoint(
5146
+ settings={
5147
+ 'response_type': (ConversationPbxAddressResponse,),
5148
+ 'auth': [
5149
+ 'ultraCartOauth',
5150
+ 'ultraCartSimpleApiKey'
5151
+ ],
5152
+ 'endpoint_path': '/conversation/pbx/address/{conversationPbxAddressUuid}',
5153
+ 'operation_id': 'update_pbx_address',
5154
+ 'http_method': 'PUT',
5155
+ 'servers': None,
5156
+ },
5157
+ params_map={
5158
+ 'all': [
5159
+ 'conversation_pbx_address_uuid',
5160
+ 'pbx_address',
5161
+ ],
5162
+ 'required': [
5163
+ 'conversation_pbx_address_uuid',
5164
+ 'pbx_address',
5165
+ ],
5166
+ 'nullable': [
5167
+ ],
5168
+ 'enum': [
5169
+ ],
5170
+ 'validation': [
5171
+ ]
5172
+ },
5173
+ root_map={
5174
+ 'validations': {
5175
+ },
5176
+ 'allowed_values': {
5177
+ },
5178
+ 'openapi_types': {
5179
+ 'conversation_pbx_address_uuid':
5180
+ (str,),
5181
+ 'pbx_address':
5182
+ (ConversationPbxAddress,),
5183
+ },
5184
+ 'attribute_map': {
5185
+ 'conversation_pbx_address_uuid': 'conversationPbxAddressUuid',
5186
+ },
5187
+ 'location_map': {
5188
+ 'conversation_pbx_address_uuid': 'path',
5189
+ 'pbx_address': 'body',
5190
+ },
5191
+ 'collection_format_map': {
5192
+ }
5193
+ },
5194
+ headers_map={
5195
+ 'accept': [
5196
+ 'application/json'
5197
+ ],
5198
+ 'content_type': [
5199
+ 'application/json'
5200
+ ]
5201
+ },
5202
+ api_client=api_client
5203
+ )
4699
5204
  self.update_pbx_agent_endpoint = _Endpoint(
4700
5205
  settings={
4701
5206
  'response_type': (ConversationPbxAgentResponse,),
@@ -5698,22 +6203,22 @@ class ConversationApi(object):
5698
6203
  conversation_engagement_oid
5699
6204
  return self.delete_engagement_endpoint.call_with_http_info(**kwargs)
5700
6205
 
5701
- def delete_pbx_agent_voicemail(
6206
+ def delete_pbx_address(
5702
6207
  self,
5703
- recording_sid,
6208
+ conversation_pbx_address_uuid,
5704
6209
  **kwargs
5705
6210
  ):
5706
- """Delete Agent Voicemail # noqa: E501
6211
+ """Delete pbx address # noqa: E501
5707
6212
 
5708
- Delete pbx agent Voicemail # noqa: E501
6213
+ Delete a pbx address # noqa: E501
5709
6214
  This method makes a synchronous HTTP request by default. To make an
5710
6215
  asynchronous HTTP request, please pass async_req=True
5711
6216
 
5712
- >>> thread = api.delete_pbx_agent_voicemail(recording_sid, async_req=True)
6217
+ >>> thread = api.delete_pbx_address(conversation_pbx_address_uuid, async_req=True)
5713
6218
  >>> result = thread.get()
5714
6219
 
5715
6220
  Args:
5716
- recording_sid (str):
6221
+ conversation_pbx_address_uuid (str):
5717
6222
 
5718
6223
  Keyword Args:
5719
6224
  _return_http_data_only (bool): response data without head status
@@ -5748,7 +6253,7 @@ class ConversationApi(object):
5748
6253
  async_req (bool): execute request asynchronously
5749
6254
 
5750
6255
  Returns:
5751
- None
6256
+ ConversationPbxAddressResponse
5752
6257
  If the method is called asynchronously, returns the request
5753
6258
  thread.
5754
6259
  """
@@ -5777,26 +6282,26 @@ class ConversationApi(object):
5777
6282
  '_content_type')
5778
6283
  kwargs['_host_index'] = kwargs.get('_host_index')
5779
6284
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
5780
- kwargs['recording_sid'] = \
5781
- recording_sid
5782
- return self.delete_pbx_agent_voicemail_endpoint.call_with_http_info(**kwargs)
6285
+ kwargs['conversation_pbx_address_uuid'] = \
6286
+ conversation_pbx_address_uuid
6287
+ return self.delete_pbx_address_endpoint.call_with_http_info(**kwargs)
5783
6288
 
5784
- def delete_pbx_audio(
6289
+ def delete_pbx_agent_voicemail(
5785
6290
  self,
5786
- conversation_pbx_audio_uuid,
6291
+ recording_sid,
5787
6292
  **kwargs
5788
6293
  ):
5789
- """Delete pbx audio # noqa: E501
6294
+ """Delete Agent Voicemail # noqa: E501
5790
6295
 
5791
- Delete a pbx audio # noqa: E501
6296
+ Delete pbx agent Voicemail # noqa: E501
5792
6297
  This method makes a synchronous HTTP request by default. To make an
5793
6298
  asynchronous HTTP request, please pass async_req=True
5794
6299
 
5795
- >>> thread = api.delete_pbx_audio(conversation_pbx_audio_uuid, async_req=True)
6300
+ >>> thread = api.delete_pbx_agent_voicemail(recording_sid, async_req=True)
5796
6301
  >>> result = thread.get()
5797
6302
 
5798
6303
  Args:
5799
- conversation_pbx_audio_uuid (str):
6304
+ recording_sid (str):
5800
6305
 
5801
6306
  Keyword Args:
5802
6307
  _return_http_data_only (bool): response data without head status
@@ -5831,7 +6336,7 @@ class ConversationApi(object):
5831
6336
  async_req (bool): execute request asynchronously
5832
6337
 
5833
6338
  Returns:
5834
- ConversationPbxAudioResponse
6339
+ None
5835
6340
  If the method is called asynchronously, returns the request
5836
6341
  thread.
5837
6342
  """
@@ -5860,26 +6365,26 @@ class ConversationApi(object):
5860
6365
  '_content_type')
5861
6366
  kwargs['_host_index'] = kwargs.get('_host_index')
5862
6367
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
5863
- kwargs['conversation_pbx_audio_uuid'] = \
5864
- conversation_pbx_audio_uuid
5865
- return self.delete_pbx_audio_endpoint.call_with_http_info(**kwargs)
6368
+ kwargs['recording_sid'] = \
6369
+ recording_sid
6370
+ return self.delete_pbx_agent_voicemail_endpoint.call_with_http_info(**kwargs)
5866
6371
 
5867
- def delete_pbx_menu(
6372
+ def delete_pbx_audio(
5868
6373
  self,
5869
- conversation_pbx_menu_uuid,
6374
+ conversation_pbx_audio_uuid,
5870
6375
  **kwargs
5871
6376
  ):
5872
- """Delete pbx menu # noqa: E501
6377
+ """Delete pbx audio # noqa: E501
5873
6378
 
5874
- Delete a pbx menu # noqa: E501
6379
+ Delete a pbx audio # noqa: E501
5875
6380
  This method makes a synchronous HTTP request by default. To make an
5876
6381
  asynchronous HTTP request, please pass async_req=True
5877
6382
 
5878
- >>> thread = api.delete_pbx_menu(conversation_pbx_menu_uuid, async_req=True)
6383
+ >>> thread = api.delete_pbx_audio(conversation_pbx_audio_uuid, async_req=True)
5879
6384
  >>> result = thread.get()
5880
6385
 
5881
6386
  Args:
5882
- conversation_pbx_menu_uuid (str):
6387
+ conversation_pbx_audio_uuid (str):
5883
6388
 
5884
6389
  Keyword Args:
5885
6390
  _return_http_data_only (bool): response data without head status
@@ -5914,7 +6419,7 @@ class ConversationApi(object):
5914
6419
  async_req (bool): execute request asynchronously
5915
6420
 
5916
6421
  Returns:
5917
- ConversationPbxMenuResponse
6422
+ ConversationPbxAudioResponse
5918
6423
  If the method is called asynchronously, returns the request
5919
6424
  thread.
5920
6425
  """
@@ -5943,9 +6448,175 @@ class ConversationApi(object):
5943
6448
  '_content_type')
5944
6449
  kwargs['_host_index'] = kwargs.get('_host_index')
5945
6450
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
5946
- kwargs['conversation_pbx_menu_uuid'] = \
5947
- conversation_pbx_menu_uuid
5948
- return self.delete_pbx_menu_endpoint.call_with_http_info(**kwargs)
6451
+ kwargs['conversation_pbx_audio_uuid'] = \
6452
+ conversation_pbx_audio_uuid
6453
+ return self.delete_pbx_audio_endpoint.call_with_http_info(**kwargs)
6454
+
6455
+ def delete_pbx_menu(
6456
+ self,
6457
+ conversation_pbx_menu_uuid,
6458
+ **kwargs
6459
+ ):
6460
+ """Delete pbx menu # noqa: E501
6461
+
6462
+ Delete a pbx menu # noqa: E501
6463
+ This method makes a synchronous HTTP request by default. To make an
6464
+ asynchronous HTTP request, please pass async_req=True
6465
+
6466
+ >>> thread = api.delete_pbx_menu(conversation_pbx_menu_uuid, async_req=True)
6467
+ >>> result = thread.get()
6468
+
6469
+ Args:
6470
+ conversation_pbx_menu_uuid (str):
6471
+
6472
+ Keyword Args:
6473
+ _return_http_data_only (bool): response data without head status
6474
+ code and headers. Default is True.
6475
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
6476
+ will be returned without reading/decoding response data.
6477
+ Default is True.
6478
+ _request_timeout (int/float/tuple): timeout setting for this request. If
6479
+ one number provided, it will be total request timeout. It can also
6480
+ be a pair (tuple) of (connection, read) timeouts.
6481
+ Default is None.
6482
+ _check_input_type (bool): specifies if type checking
6483
+ should be done one the data sent to the server.
6484
+ Default is True.
6485
+ _check_return_type (bool): specifies if type checking
6486
+ should be done one the data received from the server.
6487
+ Default is True.
6488
+ _spec_property_naming (bool): True if the variable names in the input data
6489
+ are serialized names, as specified in the OpenAPI document.
6490
+ False if the variable names in the input data
6491
+ are pythonic names, e.g. snake case (default)
6492
+ _content_type (str/None): force body content-type.
6493
+ Default is None and content-type will be predicted by allowed
6494
+ content-types and body.
6495
+ _host_index (int/None): specifies the index of the server
6496
+ that we want to use.
6497
+ Default is read from the configuration.
6498
+ _request_auths (list): set to override the auth_settings for an a single
6499
+ request; this effectively ignores the authentication
6500
+ in the spec for a single request.
6501
+ Default is None
6502
+ async_req (bool): execute request asynchronously
6503
+
6504
+ Returns:
6505
+ ConversationPbxMenuResponse
6506
+ If the method is called asynchronously, returns the request
6507
+ thread.
6508
+ """
6509
+ kwargs['async_req'] = kwargs.get(
6510
+ 'async_req', False
6511
+ )
6512
+ kwargs['_return_http_data_only'] = kwargs.get(
6513
+ '_return_http_data_only', True
6514
+ )
6515
+ kwargs['_preload_content'] = kwargs.get(
6516
+ '_preload_content', True
6517
+ )
6518
+ kwargs['_request_timeout'] = kwargs.get(
6519
+ '_request_timeout', None
6520
+ )
6521
+ kwargs['_check_input_type'] = kwargs.get(
6522
+ '_check_input_type', True
6523
+ )
6524
+ kwargs['_check_return_type'] = kwargs.get(
6525
+ '_check_return_type', True
6526
+ )
6527
+ kwargs['_spec_property_naming'] = kwargs.get(
6528
+ '_spec_property_naming', False
6529
+ )
6530
+ kwargs['_content_type'] = kwargs.get(
6531
+ '_content_type')
6532
+ kwargs['_host_index'] = kwargs.get('_host_index')
6533
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
6534
+ kwargs['conversation_pbx_menu_uuid'] = \
6535
+ conversation_pbx_menu_uuid
6536
+ return self.delete_pbx_menu_endpoint.call_with_http_info(**kwargs)
6537
+
6538
+ def delete_pbx_phone_number(
6539
+ self,
6540
+ conversation_pbx_phone_number_uuid,
6541
+ **kwargs
6542
+ ):
6543
+ """Delete pbx phoneNumber # noqa: E501
6544
+
6545
+ Delete a pbx phoneNumber. Only works if deletion_protected is false. # noqa: E501
6546
+ This method makes a synchronous HTTP request by default. To make an
6547
+ asynchronous HTTP request, please pass async_req=True
6548
+
6549
+ >>> thread = api.delete_pbx_phone_number(conversation_pbx_phone_number_uuid, async_req=True)
6550
+ >>> result = thread.get()
6551
+
6552
+ Args:
6553
+ conversation_pbx_phone_number_uuid (str):
6554
+
6555
+ Keyword Args:
6556
+ _return_http_data_only (bool): response data without head status
6557
+ code and headers. Default is True.
6558
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
6559
+ will be returned without reading/decoding response data.
6560
+ Default is True.
6561
+ _request_timeout (int/float/tuple): timeout setting for this request. If
6562
+ one number provided, it will be total request timeout. It can also
6563
+ be a pair (tuple) of (connection, read) timeouts.
6564
+ Default is None.
6565
+ _check_input_type (bool): specifies if type checking
6566
+ should be done one the data sent to the server.
6567
+ Default is True.
6568
+ _check_return_type (bool): specifies if type checking
6569
+ should be done one the data received from the server.
6570
+ Default is True.
6571
+ _spec_property_naming (bool): True if the variable names in the input data
6572
+ are serialized names, as specified in the OpenAPI document.
6573
+ False if the variable names in the input data
6574
+ are pythonic names, e.g. snake case (default)
6575
+ _content_type (str/None): force body content-type.
6576
+ Default is None and content-type will be predicted by allowed
6577
+ content-types and body.
6578
+ _host_index (int/None): specifies the index of the server
6579
+ that we want to use.
6580
+ Default is read from the configuration.
6581
+ _request_auths (list): set to override the auth_settings for an a single
6582
+ request; this effectively ignores the authentication
6583
+ in the spec for a single request.
6584
+ Default is None
6585
+ async_req (bool): execute request asynchronously
6586
+
6587
+ Returns:
6588
+ None
6589
+ If the method is called asynchronously, returns the request
6590
+ thread.
6591
+ """
6592
+ kwargs['async_req'] = kwargs.get(
6593
+ 'async_req', False
6594
+ )
6595
+ kwargs['_return_http_data_only'] = kwargs.get(
6596
+ '_return_http_data_only', True
6597
+ )
6598
+ kwargs['_preload_content'] = kwargs.get(
6599
+ '_preload_content', True
6600
+ )
6601
+ kwargs['_request_timeout'] = kwargs.get(
6602
+ '_request_timeout', None
6603
+ )
6604
+ kwargs['_check_input_type'] = kwargs.get(
6605
+ '_check_input_type', True
6606
+ )
6607
+ kwargs['_check_return_type'] = kwargs.get(
6608
+ '_check_return_type', True
6609
+ )
6610
+ kwargs['_spec_property_naming'] = kwargs.get(
6611
+ '_spec_property_naming', False
6612
+ )
6613
+ kwargs['_content_type'] = kwargs.get(
6614
+ '_content_type')
6615
+ kwargs['_host_index'] = kwargs.get('_host_index')
6616
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
6617
+ kwargs['conversation_pbx_phone_number_uuid'] = \
6618
+ conversation_pbx_phone_number_uuid
6619
+ return self.delete_pbx_phone_number_endpoint.call_with_http_info(**kwargs)
5949
6620
 
5950
6621
  def delete_pbx_queue(
5951
6622
  self,
@@ -8486,22 +9157,22 @@ class ConversationApi(object):
8486
9157
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
8487
9158
  return self.get_locations_for_engagement_endpoint.call_with_http_info(**kwargs)
8488
9159
 
8489
- def get_pbx_agent(
9160
+ def get_pbx_address(
8490
9161
  self,
8491
- conversation_pbx_agent_uuid,
9162
+ conversation_pbx_address_uuid,
8492
9163
  **kwargs
8493
9164
  ):
8494
- """Get pbx agent # noqa: E501
9165
+ """Get pbx address # noqa: E501
8495
9166
 
8496
- Retrieve a pbx agent # noqa: E501
9167
+ Retrieve a pbx address # noqa: E501
8497
9168
  This method makes a synchronous HTTP request by default. To make an
8498
9169
  asynchronous HTTP request, please pass async_req=True
8499
9170
 
8500
- >>> thread = api.get_pbx_agent(conversation_pbx_agent_uuid, async_req=True)
9171
+ >>> thread = api.get_pbx_address(conversation_pbx_address_uuid, async_req=True)
8501
9172
  >>> result = thread.get()
8502
9173
 
8503
9174
  Args:
8504
- conversation_pbx_agent_uuid (str):
9175
+ conversation_pbx_address_uuid (str):
8505
9176
 
8506
9177
  Keyword Args:
8507
9178
  _return_http_data_only (bool): response data without head status
@@ -8536,7 +9207,7 @@ class ConversationApi(object):
8536
9207
  async_req (bool): execute request asynchronously
8537
9208
 
8538
9209
  Returns:
8539
- ConversationPbxAgentResponse
9210
+ ConversationPbxAddressResponse
8540
9211
  If the method is called asynchronously, returns the request
8541
9212
  thread.
8542
9213
  """
@@ -8565,26 +9236,23 @@ class ConversationApi(object):
8565
9236
  '_content_type')
8566
9237
  kwargs['_host_index'] = kwargs.get('_host_index')
8567
9238
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
8568
- kwargs['conversation_pbx_agent_uuid'] = \
8569
- conversation_pbx_agent_uuid
8570
- return self.get_pbx_agent_endpoint.call_with_http_info(**kwargs)
9239
+ kwargs['conversation_pbx_address_uuid'] = \
9240
+ conversation_pbx_address_uuid
9241
+ return self.get_pbx_address_endpoint.call_with_http_info(**kwargs)
8571
9242
 
8572
- def get_pbx_agent_voicemail(
9243
+ def get_pbx_addresses(
8573
9244
  self,
8574
- recording_sid,
8575
9245
  **kwargs
8576
9246
  ):
8577
- """Get Agent Voicemail # noqa: E501
9247
+ """Get pbx addresses # noqa: E501
8578
9248
 
8579
- Retrieve pbx agent Voicemail # noqa: E501
9249
+ Retrieve pbx addresses # noqa: E501
8580
9250
  This method makes a synchronous HTTP request by default. To make an
8581
9251
  asynchronous HTTP request, please pass async_req=True
8582
9252
 
8583
- >>> thread = api.get_pbx_agent_voicemail(recording_sid, async_req=True)
9253
+ >>> thread = api.get_pbx_addresses(async_req=True)
8584
9254
  >>> result = thread.get()
8585
9255
 
8586
- Args:
8587
- recording_sid (str):
8588
9256
 
8589
9257
  Keyword Args:
8590
9258
  _return_http_data_only (bool): response data without head status
@@ -8619,7 +9287,7 @@ class ConversationApi(object):
8619
9287
  async_req (bool): execute request asynchronously
8620
9288
 
8621
9289
  Returns:
8622
- ConversationPbxVoicemailMessageResponse
9290
+ ConversationPbxAddressesResponse
8623
9291
  If the method is called asynchronously, returns the request
8624
9292
  thread.
8625
9293
  """
@@ -8648,23 +9316,24 @@ class ConversationApi(object):
8648
9316
  '_content_type')
8649
9317
  kwargs['_host_index'] = kwargs.get('_host_index')
8650
9318
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
8651
- kwargs['recording_sid'] = \
8652
- recording_sid
8653
- return self.get_pbx_agent_voicemail_endpoint.call_with_http_info(**kwargs)
9319
+ return self.get_pbx_addresses_endpoint.call_with_http_info(**kwargs)
8654
9320
 
8655
- def get_pbx_agent_voicemails(
9321
+ def get_pbx_agent(
8656
9322
  self,
9323
+ conversation_pbx_agent_uuid,
8657
9324
  **kwargs
8658
9325
  ):
8659
- """Get Agent Voicemails # noqa: E501
9326
+ """Get pbx agent # noqa: E501
8660
9327
 
8661
- Retrieve pbx agent Voicemails # noqa: E501
9328
+ Retrieve a pbx agent # noqa: E501
8662
9329
  This method makes a synchronous HTTP request by default. To make an
8663
9330
  asynchronous HTTP request, please pass async_req=True
8664
9331
 
8665
- >>> thread = api.get_pbx_agent_voicemails(async_req=True)
9332
+ >>> thread = api.get_pbx_agent(conversation_pbx_agent_uuid, async_req=True)
8666
9333
  >>> result = thread.get()
8667
9334
 
9335
+ Args:
9336
+ conversation_pbx_agent_uuid (str):
8668
9337
 
8669
9338
  Keyword Args:
8670
9339
  _return_http_data_only (bool): response data without head status
@@ -8699,7 +9368,7 @@ class ConversationApi(object):
8699
9368
  async_req (bool): execute request asynchronously
8700
9369
 
8701
9370
  Returns:
8702
- ConversationPbxVoicemailMessageSummariesResponse
9371
+ ConversationPbxAgentResponse
8703
9372
  If the method is called asynchronously, returns the request
8704
9373
  thread.
8705
9374
  """
@@ -8728,21 +9397,26 @@ class ConversationApi(object):
8728
9397
  '_content_type')
8729
9398
  kwargs['_host_index'] = kwargs.get('_host_index')
8730
9399
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
8731
- return self.get_pbx_agent_voicemails_endpoint.call_with_http_info(**kwargs)
9400
+ kwargs['conversation_pbx_agent_uuid'] = \
9401
+ conversation_pbx_agent_uuid
9402
+ return self.get_pbx_agent_endpoint.call_with_http_info(**kwargs)
8732
9403
 
8733
- def get_pbx_agents(
9404
+ def get_pbx_agent_voicemail(
8734
9405
  self,
9406
+ recording_sid,
8735
9407
  **kwargs
8736
9408
  ):
8737
- """Get pbx agents # noqa: E501
9409
+ """Get Agent Voicemail # noqa: E501
8738
9410
 
8739
- Retrieve pbx agents # noqa: E501
9411
+ Retrieve pbx agent Voicemail # noqa: E501
8740
9412
  This method makes a synchronous HTTP request by default. To make an
8741
9413
  asynchronous HTTP request, please pass async_req=True
8742
9414
 
8743
- >>> thread = api.get_pbx_agents(async_req=True)
9415
+ >>> thread = api.get_pbx_agent_voicemail(recording_sid, async_req=True)
8744
9416
  >>> result = thread.get()
8745
9417
 
9418
+ Args:
9419
+ recording_sid (str):
8746
9420
 
8747
9421
  Keyword Args:
8748
9422
  _return_http_data_only (bool): response data without head status
@@ -8777,7 +9451,7 @@ class ConversationApi(object):
8777
9451
  async_req (bool): execute request asynchronously
8778
9452
 
8779
9453
  Returns:
8780
- ConversationPbxAgentsResponse
9454
+ ConversationPbxVoicemailMessageResponse
8781
9455
  If the method is called asynchronously, returns the request
8782
9456
  thread.
8783
9457
  """
@@ -8806,24 +9480,23 @@ class ConversationApi(object):
8806
9480
  '_content_type')
8807
9481
  kwargs['_host_index'] = kwargs.get('_host_index')
8808
9482
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
8809
- return self.get_pbx_agents_endpoint.call_with_http_info(**kwargs)
9483
+ kwargs['recording_sid'] = \
9484
+ recording_sid
9485
+ return self.get_pbx_agent_voicemail_endpoint.call_with_http_info(**kwargs)
8810
9486
 
8811
- def get_pbx_audio(
9487
+ def get_pbx_agent_voicemails(
8812
9488
  self,
8813
- conversation_pbx_audio_uuid,
8814
9489
  **kwargs
8815
9490
  ):
8816
- """Get pbx audio # noqa: E501
9491
+ """Get Agent Voicemails # noqa: E501
8817
9492
 
8818
- Retrieve a pbx audio # noqa: E501
9493
+ Retrieve pbx agent Voicemails # noqa: E501
8819
9494
  This method makes a synchronous HTTP request by default. To make an
8820
9495
  asynchronous HTTP request, please pass async_req=True
8821
9496
 
8822
- >>> thread = api.get_pbx_audio(conversation_pbx_audio_uuid, async_req=True)
9497
+ >>> thread = api.get_pbx_agent_voicemails(async_req=True)
8823
9498
  >>> result = thread.get()
8824
9499
 
8825
- Args:
8826
- conversation_pbx_audio_uuid (str):
8827
9500
 
8828
9501
  Keyword Args:
8829
9502
  _return_http_data_only (bool): response data without head status
@@ -8858,7 +9531,7 @@ class ConversationApi(object):
8858
9531
  async_req (bool): execute request asynchronously
8859
9532
 
8860
9533
  Returns:
8861
- ConversationPbxAudioResponse
9534
+ ConversationPbxVoicemailMessageSummariesResponse
8862
9535
  If the method is called asynchronously, returns the request
8863
9536
  thread.
8864
9537
  """
@@ -8887,26 +9560,21 @@ class ConversationApi(object):
8887
9560
  '_content_type')
8888
9561
  kwargs['_host_index'] = kwargs.get('_host_index')
8889
9562
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
8890
- kwargs['conversation_pbx_audio_uuid'] = \
8891
- conversation_pbx_audio_uuid
8892
- return self.get_pbx_audio_endpoint.call_with_http_info(**kwargs)
9563
+ return self.get_pbx_agent_voicemails_endpoint.call_with_http_info(**kwargs)
8893
9564
 
8894
- def get_pbx_audio_usage(
9565
+ def get_pbx_agents(
8895
9566
  self,
8896
- conversation_pbx_audio_uuid,
8897
9567
  **kwargs
8898
9568
  ):
8899
- """Get pbx audio usage # noqa: E501
9569
+ """Get pbx agents # noqa: E501
8900
9570
 
8901
- Retrieve a pbx audio usage # noqa: E501
9571
+ Retrieve pbx agents # noqa: E501
8902
9572
  This method makes a synchronous HTTP request by default. To make an
8903
9573
  asynchronous HTTP request, please pass async_req=True
8904
9574
 
8905
- >>> thread = api.get_pbx_audio_usage(conversation_pbx_audio_uuid, async_req=True)
9575
+ >>> thread = api.get_pbx_agents(async_req=True)
8906
9576
  >>> result = thread.get()
8907
9577
 
8908
- Args:
8909
- conversation_pbx_audio_uuid (str):
8910
9578
 
8911
9579
  Keyword Args:
8912
9580
  _return_http_data_only (bool): response data without head status
@@ -8941,7 +9609,7 @@ class ConversationApi(object):
8941
9609
  async_req (bool): execute request asynchronously
8942
9610
 
8943
9611
  Returns:
8944
- ConversationPbxAudioUsageResponse
9612
+ ConversationPbxAgentsResponse
8945
9613
  If the method is called asynchronously, returns the request
8946
9614
  thread.
8947
9615
  """
@@ -8970,17 +9638,181 @@ class ConversationApi(object):
8970
9638
  '_content_type')
8971
9639
  kwargs['_host_index'] = kwargs.get('_host_index')
8972
9640
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
8973
- kwargs['conversation_pbx_audio_uuid'] = \
8974
- conversation_pbx_audio_uuid
8975
- return self.get_pbx_audio_usage_endpoint.call_with_http_info(**kwargs)
9641
+ return self.get_pbx_agents_endpoint.call_with_http_info(**kwargs)
8976
9642
 
8977
- def get_pbx_audios(
9643
+ def get_pbx_audio(
8978
9644
  self,
9645
+ conversation_pbx_audio_uuid,
8979
9646
  **kwargs
8980
9647
  ):
8981
- """Get pbx audios # noqa: E501
9648
+ """Get pbx audio # noqa: E501
8982
9649
 
8983
- Retrieve pbx audios # noqa: E501
9650
+ Retrieve a pbx audio # noqa: E501
9651
+ This method makes a synchronous HTTP request by default. To make an
9652
+ asynchronous HTTP request, please pass async_req=True
9653
+
9654
+ >>> thread = api.get_pbx_audio(conversation_pbx_audio_uuid, async_req=True)
9655
+ >>> result = thread.get()
9656
+
9657
+ Args:
9658
+ conversation_pbx_audio_uuid (str):
9659
+
9660
+ Keyword Args:
9661
+ _return_http_data_only (bool): response data without head status
9662
+ code and headers. Default is True.
9663
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
9664
+ will be returned without reading/decoding response data.
9665
+ Default is True.
9666
+ _request_timeout (int/float/tuple): timeout setting for this request. If
9667
+ one number provided, it will be total request timeout. It can also
9668
+ be a pair (tuple) of (connection, read) timeouts.
9669
+ Default is None.
9670
+ _check_input_type (bool): specifies if type checking
9671
+ should be done one the data sent to the server.
9672
+ Default is True.
9673
+ _check_return_type (bool): specifies if type checking
9674
+ should be done one the data received from the server.
9675
+ Default is True.
9676
+ _spec_property_naming (bool): True if the variable names in the input data
9677
+ are serialized names, as specified in the OpenAPI document.
9678
+ False if the variable names in the input data
9679
+ are pythonic names, e.g. snake case (default)
9680
+ _content_type (str/None): force body content-type.
9681
+ Default is None and content-type will be predicted by allowed
9682
+ content-types and body.
9683
+ _host_index (int/None): specifies the index of the server
9684
+ that we want to use.
9685
+ Default is read from the configuration.
9686
+ _request_auths (list): set to override the auth_settings for an a single
9687
+ request; this effectively ignores the authentication
9688
+ in the spec for a single request.
9689
+ Default is None
9690
+ async_req (bool): execute request asynchronously
9691
+
9692
+ Returns:
9693
+ ConversationPbxAudioResponse
9694
+ If the method is called asynchronously, returns the request
9695
+ thread.
9696
+ """
9697
+ kwargs['async_req'] = kwargs.get(
9698
+ 'async_req', False
9699
+ )
9700
+ kwargs['_return_http_data_only'] = kwargs.get(
9701
+ '_return_http_data_only', True
9702
+ )
9703
+ kwargs['_preload_content'] = kwargs.get(
9704
+ '_preload_content', True
9705
+ )
9706
+ kwargs['_request_timeout'] = kwargs.get(
9707
+ '_request_timeout', None
9708
+ )
9709
+ kwargs['_check_input_type'] = kwargs.get(
9710
+ '_check_input_type', True
9711
+ )
9712
+ kwargs['_check_return_type'] = kwargs.get(
9713
+ '_check_return_type', True
9714
+ )
9715
+ kwargs['_spec_property_naming'] = kwargs.get(
9716
+ '_spec_property_naming', False
9717
+ )
9718
+ kwargs['_content_type'] = kwargs.get(
9719
+ '_content_type')
9720
+ kwargs['_host_index'] = kwargs.get('_host_index')
9721
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
9722
+ kwargs['conversation_pbx_audio_uuid'] = \
9723
+ conversation_pbx_audio_uuid
9724
+ return self.get_pbx_audio_endpoint.call_with_http_info(**kwargs)
9725
+
9726
+ def get_pbx_audio_usage(
9727
+ self,
9728
+ conversation_pbx_audio_uuid,
9729
+ **kwargs
9730
+ ):
9731
+ """Get pbx audio usage # noqa: E501
9732
+
9733
+ Retrieve a pbx audio usage # noqa: E501
9734
+ This method makes a synchronous HTTP request by default. To make an
9735
+ asynchronous HTTP request, please pass async_req=True
9736
+
9737
+ >>> thread = api.get_pbx_audio_usage(conversation_pbx_audio_uuid, async_req=True)
9738
+ >>> result = thread.get()
9739
+
9740
+ Args:
9741
+ conversation_pbx_audio_uuid (str):
9742
+
9743
+ Keyword Args:
9744
+ _return_http_data_only (bool): response data without head status
9745
+ code and headers. Default is True.
9746
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
9747
+ will be returned without reading/decoding response data.
9748
+ Default is True.
9749
+ _request_timeout (int/float/tuple): timeout setting for this request. If
9750
+ one number provided, it will be total request timeout. It can also
9751
+ be a pair (tuple) of (connection, read) timeouts.
9752
+ Default is None.
9753
+ _check_input_type (bool): specifies if type checking
9754
+ should be done one the data sent to the server.
9755
+ Default is True.
9756
+ _check_return_type (bool): specifies if type checking
9757
+ should be done one the data received from the server.
9758
+ Default is True.
9759
+ _spec_property_naming (bool): True if the variable names in the input data
9760
+ are serialized names, as specified in the OpenAPI document.
9761
+ False if the variable names in the input data
9762
+ are pythonic names, e.g. snake case (default)
9763
+ _content_type (str/None): force body content-type.
9764
+ Default is None and content-type will be predicted by allowed
9765
+ content-types and body.
9766
+ _host_index (int/None): specifies the index of the server
9767
+ that we want to use.
9768
+ Default is read from the configuration.
9769
+ _request_auths (list): set to override the auth_settings for an a single
9770
+ request; this effectively ignores the authentication
9771
+ in the spec for a single request.
9772
+ Default is None
9773
+ async_req (bool): execute request asynchronously
9774
+
9775
+ Returns:
9776
+ ConversationPbxAudioUsageResponse
9777
+ If the method is called asynchronously, returns the request
9778
+ thread.
9779
+ """
9780
+ kwargs['async_req'] = kwargs.get(
9781
+ 'async_req', False
9782
+ )
9783
+ kwargs['_return_http_data_only'] = kwargs.get(
9784
+ '_return_http_data_only', True
9785
+ )
9786
+ kwargs['_preload_content'] = kwargs.get(
9787
+ '_preload_content', True
9788
+ )
9789
+ kwargs['_request_timeout'] = kwargs.get(
9790
+ '_request_timeout', None
9791
+ )
9792
+ kwargs['_check_input_type'] = kwargs.get(
9793
+ '_check_input_type', True
9794
+ )
9795
+ kwargs['_check_return_type'] = kwargs.get(
9796
+ '_check_return_type', True
9797
+ )
9798
+ kwargs['_spec_property_naming'] = kwargs.get(
9799
+ '_spec_property_naming', False
9800
+ )
9801
+ kwargs['_content_type'] = kwargs.get(
9802
+ '_content_type')
9803
+ kwargs['_host_index'] = kwargs.get('_host_index')
9804
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
9805
+ kwargs['conversation_pbx_audio_uuid'] = \
9806
+ conversation_pbx_audio_uuid
9807
+ return self.get_pbx_audio_usage_endpoint.call_with_http_info(**kwargs)
9808
+
9809
+ def get_pbx_audios(
9810
+ self,
9811
+ **kwargs
9812
+ ):
9813
+ """Get pbx audios # noqa: E501
9814
+
9815
+ Retrieve pbx audios # noqa: E501
8984
9816
  This method makes a synchronous HTTP request by default. To make an
8985
9817
  asynchronous HTTP request, please pass async_req=True
8986
9818
 
@@ -10767,6 +11599,89 @@ class ConversationApi(object):
10767
11599
  engagement
10768
11600
  return self.insert_conversation_engagement_endpoint.call_with_http_info(**kwargs)
10769
11601
 
11602
+ def insert_pbx_address(
11603
+ self,
11604
+ pbx_address,
11605
+ **kwargs
11606
+ ):
11607
+ """Insert pbx address # noqa: E501
11608
+
11609
+ Insert a pbx address # noqa: E501
11610
+ This method makes a synchronous HTTP request by default. To make an
11611
+ asynchronous HTTP request, please pass async_req=True
11612
+
11613
+ >>> thread = api.insert_pbx_address(pbx_address, async_req=True)
11614
+ >>> result = thread.get()
11615
+
11616
+ Args:
11617
+ pbx_address (ConversationPbxAddress): Pbx Address
11618
+
11619
+ Keyword Args:
11620
+ _return_http_data_only (bool): response data without head status
11621
+ code and headers. Default is True.
11622
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
11623
+ will be returned without reading/decoding response data.
11624
+ Default is True.
11625
+ _request_timeout (int/float/tuple): timeout setting for this request. If
11626
+ one number provided, it will be total request timeout. It can also
11627
+ be a pair (tuple) of (connection, read) timeouts.
11628
+ Default is None.
11629
+ _check_input_type (bool): specifies if type checking
11630
+ should be done one the data sent to the server.
11631
+ Default is True.
11632
+ _check_return_type (bool): specifies if type checking
11633
+ should be done one the data received from the server.
11634
+ Default is True.
11635
+ _spec_property_naming (bool): True if the variable names in the input data
11636
+ are serialized names, as specified in the OpenAPI document.
11637
+ False if the variable names in the input data
11638
+ are pythonic names, e.g. snake case (default)
11639
+ _content_type (str/None): force body content-type.
11640
+ Default is None and content-type will be predicted by allowed
11641
+ content-types and body.
11642
+ _host_index (int/None): specifies the index of the server
11643
+ that we want to use.
11644
+ Default is read from the configuration.
11645
+ _request_auths (list): set to override the auth_settings for an a single
11646
+ request; this effectively ignores the authentication
11647
+ in the spec for a single request.
11648
+ Default is None
11649
+ async_req (bool): execute request asynchronously
11650
+
11651
+ Returns:
11652
+ ConversationPbxAddressResponse
11653
+ If the method is called asynchronously, returns the request
11654
+ thread.
11655
+ """
11656
+ kwargs['async_req'] = kwargs.get(
11657
+ 'async_req', False
11658
+ )
11659
+ kwargs['_return_http_data_only'] = kwargs.get(
11660
+ '_return_http_data_only', True
11661
+ )
11662
+ kwargs['_preload_content'] = kwargs.get(
11663
+ '_preload_content', True
11664
+ )
11665
+ kwargs['_request_timeout'] = kwargs.get(
11666
+ '_request_timeout', None
11667
+ )
11668
+ kwargs['_check_input_type'] = kwargs.get(
11669
+ '_check_input_type', True
11670
+ )
11671
+ kwargs['_check_return_type'] = kwargs.get(
11672
+ '_check_return_type', True
11673
+ )
11674
+ kwargs['_spec_property_naming'] = kwargs.get(
11675
+ '_spec_property_naming', False
11676
+ )
11677
+ kwargs['_content_type'] = kwargs.get(
11678
+ '_content_type')
11679
+ kwargs['_host_index'] = kwargs.get('_host_index')
11680
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
11681
+ kwargs['pbx_address'] = \
11682
+ pbx_address
11683
+ return self.insert_pbx_address_endpoint.call_with_http_info(**kwargs)
11684
+
10770
11685
  def insert_pbx_audio(
10771
11686
  self,
10772
11687
  pbx_audio,
@@ -11685,22 +12600,22 @@ class ConversationApi(object):
11685
12600
  conversation_uuid
11686
12601
  return self.mark_read_conversation_endpoint.call_with_http_info(**kwargs)
11687
12602
 
11688
- def reset_conversation_pbx_queue_statistics(
12603
+ def protect_pbx_phone_number(
11689
12604
  self,
11690
- queue_uuid,
12605
+ conversation_pbx_phone_number_uuid,
11691
12606
  **kwargs
11692
12607
  ):
11693
- """reset statistics within the queue # noqa: E501
12608
+ """Protect pbx phoneNumber from deletion # noqa: E501
11694
12609
 
11695
- reset statistics within the queue # noqa: E501
12610
+ Protect a pbx phoneNumber from deletion. This is a one-way operation and cannot be undone through the API. # noqa: E501
11696
12611
  This method makes a synchronous HTTP request by default. To make an
11697
12612
  asynchronous HTTP request, please pass async_req=True
11698
12613
 
11699
- >>> thread = api.reset_conversation_pbx_queue_statistics(queue_uuid, async_req=True)
12614
+ >>> thread = api.protect_pbx_phone_number(conversation_pbx_phone_number_uuid, async_req=True)
11700
12615
  >>> result = thread.get()
11701
12616
 
11702
12617
  Args:
11703
- queue_uuid (str):
12618
+ conversation_pbx_phone_number_uuid (str):
11704
12619
 
11705
12620
  Keyword Args:
11706
12621
  _return_http_data_only (bool): response data without head status
@@ -11735,7 +12650,7 @@ class ConversationApi(object):
11735
12650
  async_req (bool): execute request asynchronously
11736
12651
 
11737
12652
  Returns:
11738
- None
12653
+ ConversationPbxPhoneNumberResponse
11739
12654
  If the method is called asynchronously, returns the request
11740
12655
  thread.
11741
12656
  """
@@ -11764,13 +12679,179 @@ class ConversationApi(object):
11764
12679
  '_content_type')
11765
12680
  kwargs['_host_index'] = kwargs.get('_host_index')
11766
12681
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
11767
- kwargs['queue_uuid'] = \
11768
- queue_uuid
11769
- return self.reset_conversation_pbx_queue_statistics_endpoint.call_with_http_info(**kwargs)
12682
+ kwargs['conversation_pbx_phone_number_uuid'] = \
12683
+ conversation_pbx_phone_number_uuid
12684
+ return self.protect_pbx_phone_number_endpoint.call_with_http_info(**kwargs)
11770
12685
 
11771
- def search_conversation_canned_messages(
12686
+ def purchase_pbx_phone_number(
11772
12687
  self,
11773
- search_request,
12688
+ phone_number_purchase_request,
12689
+ **kwargs
12690
+ ):
12691
+ """Purchase pbx phone number # noqa: E501
12692
+
12693
+ Purchase a phone number from Twilio. The phone_number must be from the available phone number search results. # noqa: E501
12694
+ This method makes a synchronous HTTP request by default. To make an
12695
+ asynchronous HTTP request, please pass async_req=True
12696
+
12697
+ >>> thread = api.purchase_pbx_phone_number(phone_number_purchase_request, async_req=True)
12698
+ >>> result = thread.get()
12699
+
12700
+ Args:
12701
+ phone_number_purchase_request (ConversationPbxPhoneNumberPurchaseRequest): Phone number purchase request
12702
+
12703
+ Keyword Args:
12704
+ _return_http_data_only (bool): response data without head status
12705
+ code and headers. Default is True.
12706
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
12707
+ will be returned without reading/decoding response data.
12708
+ Default is True.
12709
+ _request_timeout (int/float/tuple): timeout setting for this request. If
12710
+ one number provided, it will be total request timeout. It can also
12711
+ be a pair (tuple) of (connection, read) timeouts.
12712
+ Default is None.
12713
+ _check_input_type (bool): specifies if type checking
12714
+ should be done one the data sent to the server.
12715
+ Default is True.
12716
+ _check_return_type (bool): specifies if type checking
12717
+ should be done one the data received from the server.
12718
+ Default is True.
12719
+ _spec_property_naming (bool): True if the variable names in the input data
12720
+ are serialized names, as specified in the OpenAPI document.
12721
+ False if the variable names in the input data
12722
+ are pythonic names, e.g. snake case (default)
12723
+ _content_type (str/None): force body content-type.
12724
+ Default is None and content-type will be predicted by allowed
12725
+ content-types and body.
12726
+ _host_index (int/None): specifies the index of the server
12727
+ that we want to use.
12728
+ Default is read from the configuration.
12729
+ _request_auths (list): set to override the auth_settings for an a single
12730
+ request; this effectively ignores the authentication
12731
+ in the spec for a single request.
12732
+ Default is None
12733
+ async_req (bool): execute request asynchronously
12734
+
12735
+ Returns:
12736
+ ConversationPbxPhoneNumberResponse
12737
+ If the method is called asynchronously, returns the request
12738
+ thread.
12739
+ """
12740
+ kwargs['async_req'] = kwargs.get(
12741
+ 'async_req', False
12742
+ )
12743
+ kwargs['_return_http_data_only'] = kwargs.get(
12744
+ '_return_http_data_only', True
12745
+ )
12746
+ kwargs['_preload_content'] = kwargs.get(
12747
+ '_preload_content', True
12748
+ )
12749
+ kwargs['_request_timeout'] = kwargs.get(
12750
+ '_request_timeout', None
12751
+ )
12752
+ kwargs['_check_input_type'] = kwargs.get(
12753
+ '_check_input_type', True
12754
+ )
12755
+ kwargs['_check_return_type'] = kwargs.get(
12756
+ '_check_return_type', True
12757
+ )
12758
+ kwargs['_spec_property_naming'] = kwargs.get(
12759
+ '_spec_property_naming', False
12760
+ )
12761
+ kwargs['_content_type'] = kwargs.get(
12762
+ '_content_type')
12763
+ kwargs['_host_index'] = kwargs.get('_host_index')
12764
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
12765
+ kwargs['phone_number_purchase_request'] = \
12766
+ phone_number_purchase_request
12767
+ return self.purchase_pbx_phone_number_endpoint.call_with_http_info(**kwargs)
12768
+
12769
+ def reset_conversation_pbx_queue_statistics(
12770
+ self,
12771
+ queue_uuid,
12772
+ **kwargs
12773
+ ):
12774
+ """reset statistics within the queue # noqa: E501
12775
+
12776
+ reset statistics within the queue # noqa: E501
12777
+ This method makes a synchronous HTTP request by default. To make an
12778
+ asynchronous HTTP request, please pass async_req=True
12779
+
12780
+ >>> thread = api.reset_conversation_pbx_queue_statistics(queue_uuid, async_req=True)
12781
+ >>> result = thread.get()
12782
+
12783
+ Args:
12784
+ queue_uuid (str):
12785
+
12786
+ Keyword Args:
12787
+ _return_http_data_only (bool): response data without head status
12788
+ code and headers. Default is True.
12789
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
12790
+ will be returned without reading/decoding response data.
12791
+ Default is True.
12792
+ _request_timeout (int/float/tuple): timeout setting for this request. If
12793
+ one number provided, it will be total request timeout. It can also
12794
+ be a pair (tuple) of (connection, read) timeouts.
12795
+ Default is None.
12796
+ _check_input_type (bool): specifies if type checking
12797
+ should be done one the data sent to the server.
12798
+ Default is True.
12799
+ _check_return_type (bool): specifies if type checking
12800
+ should be done one the data received from the server.
12801
+ Default is True.
12802
+ _spec_property_naming (bool): True if the variable names in the input data
12803
+ are serialized names, as specified in the OpenAPI document.
12804
+ False if the variable names in the input data
12805
+ are pythonic names, e.g. snake case (default)
12806
+ _content_type (str/None): force body content-type.
12807
+ Default is None and content-type will be predicted by allowed
12808
+ content-types and body.
12809
+ _host_index (int/None): specifies the index of the server
12810
+ that we want to use.
12811
+ Default is read from the configuration.
12812
+ _request_auths (list): set to override the auth_settings for an a single
12813
+ request; this effectively ignores the authentication
12814
+ in the spec for a single request.
12815
+ Default is None
12816
+ async_req (bool): execute request asynchronously
12817
+
12818
+ Returns:
12819
+ None
12820
+ If the method is called asynchronously, returns the request
12821
+ thread.
12822
+ """
12823
+ kwargs['async_req'] = kwargs.get(
12824
+ 'async_req', False
12825
+ )
12826
+ kwargs['_return_http_data_only'] = kwargs.get(
12827
+ '_return_http_data_only', True
12828
+ )
12829
+ kwargs['_preload_content'] = kwargs.get(
12830
+ '_preload_content', True
12831
+ )
12832
+ kwargs['_request_timeout'] = kwargs.get(
12833
+ '_request_timeout', None
12834
+ )
12835
+ kwargs['_check_input_type'] = kwargs.get(
12836
+ '_check_input_type', True
12837
+ )
12838
+ kwargs['_check_return_type'] = kwargs.get(
12839
+ '_check_return_type', True
12840
+ )
12841
+ kwargs['_spec_property_naming'] = kwargs.get(
12842
+ '_spec_property_naming', False
12843
+ )
12844
+ kwargs['_content_type'] = kwargs.get(
12845
+ '_content_type')
12846
+ kwargs['_host_index'] = kwargs.get('_host_index')
12847
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
12848
+ kwargs['queue_uuid'] = \
12849
+ queue_uuid
12850
+ return self.reset_conversation_pbx_queue_statistics_endpoint.call_with_http_info(**kwargs)
12851
+
12852
+ def search_conversation_canned_messages(
12853
+ self,
12854
+ search_request,
11774
12855
  **kwargs
11775
12856
  ):
11776
12857
  """Search for canned messages by short_code # noqa: E501
@@ -11851,6 +12932,95 @@ class ConversationApi(object):
11851
12932
  search_request
11852
12933
  return self.search_conversation_canned_messages_endpoint.call_with_http_info(**kwargs)
11853
12934
 
12935
+ def search_pbx_available_phone_numbers(
12936
+ self,
12937
+ country,
12938
+ **kwargs
12939
+ ):
12940
+ """Search for available phone numbers # noqa: E501
12941
+
12942
+ Search for available phone numbers from Twilio that can be purchased # noqa: E501
12943
+ This method makes a synchronous HTTP request by default. To make an
12944
+ asynchronous HTTP request, please pass async_req=True
12945
+
12946
+ >>> thread = api.search_pbx_available_phone_numbers(country, async_req=True)
12947
+ >>> result = thread.get()
12948
+
12949
+ Args:
12950
+ country (str): ISO country code (e.g., US, CA, GB)
12951
+
12952
+ Keyword Args:
12953
+ area_code (str): Area code filter (e.g., 614). [optional]
12954
+ contains (str): Pattern to match (e.g., 555, *PIZZA). [optional]
12955
+ sms_enabled (bool): Filter for SMS capability. [optional]
12956
+ voice_enabled (bool): Filter for voice capability. [optional]
12957
+ type (str): Phone number type. [optional]
12958
+ limit (int): Max results (default 20, max 100). [optional]
12959
+ _return_http_data_only (bool): response data without head status
12960
+ code and headers. Default is True.
12961
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
12962
+ will be returned without reading/decoding response data.
12963
+ Default is True.
12964
+ _request_timeout (int/float/tuple): timeout setting for this request. If
12965
+ one number provided, it will be total request timeout. It can also
12966
+ be a pair (tuple) of (connection, read) timeouts.
12967
+ Default is None.
12968
+ _check_input_type (bool): specifies if type checking
12969
+ should be done one the data sent to the server.
12970
+ Default is True.
12971
+ _check_return_type (bool): specifies if type checking
12972
+ should be done one the data received from the server.
12973
+ Default is True.
12974
+ _spec_property_naming (bool): True if the variable names in the input data
12975
+ are serialized names, as specified in the OpenAPI document.
12976
+ False if the variable names in the input data
12977
+ are pythonic names, e.g. snake case (default)
12978
+ _content_type (str/None): force body content-type.
12979
+ Default is None and content-type will be predicted by allowed
12980
+ content-types and body.
12981
+ _host_index (int/None): specifies the index of the server
12982
+ that we want to use.
12983
+ Default is read from the configuration.
12984
+ _request_auths (list): set to override the auth_settings for an a single
12985
+ request; this effectively ignores the authentication
12986
+ in the spec for a single request.
12987
+ Default is None
12988
+ async_req (bool): execute request asynchronously
12989
+
12990
+ Returns:
12991
+ ConversationPbxAvailablePhoneNumbersResponse
12992
+ If the method is called asynchronously, returns the request
12993
+ thread.
12994
+ """
12995
+ kwargs['async_req'] = kwargs.get(
12996
+ 'async_req', False
12997
+ )
12998
+ kwargs['_return_http_data_only'] = kwargs.get(
12999
+ '_return_http_data_only', True
13000
+ )
13001
+ kwargs['_preload_content'] = kwargs.get(
13002
+ '_preload_content', True
13003
+ )
13004
+ kwargs['_request_timeout'] = kwargs.get(
13005
+ '_request_timeout', None
13006
+ )
13007
+ kwargs['_check_input_type'] = kwargs.get(
13008
+ '_check_input_type', True
13009
+ )
13010
+ kwargs['_check_return_type'] = kwargs.get(
13011
+ '_check_return_type', True
13012
+ )
13013
+ kwargs['_spec_property_naming'] = kwargs.get(
13014
+ '_spec_property_naming', False
13015
+ )
13016
+ kwargs['_content_type'] = kwargs.get(
13017
+ '_content_type')
13018
+ kwargs['_host_index'] = kwargs.get('_host_index')
13019
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
13020
+ kwargs['country'] = \
13021
+ country
13022
+ return self.search_pbx_available_phone_numbers_endpoint.call_with_http_info(**kwargs)
13023
+
11854
13024
  def sms_unsubscribe_conversation(
11855
13025
  self,
11856
13026
  conversation_uuid,
@@ -12539,6 +13709,93 @@ class ConversationApi(object):
12539
13709
  status_request
12540
13710
  return self.update_conversation_webchat_queue_status_endpoint.call_with_http_info(**kwargs)
12541
13711
 
13712
+ def update_pbx_address(
13713
+ self,
13714
+ conversation_pbx_address_uuid,
13715
+ pbx_address,
13716
+ **kwargs
13717
+ ):
13718
+ """Update pbx address # noqa: E501
13719
+
13720
+ Update a pbx address # noqa: E501
13721
+ This method makes a synchronous HTTP request by default. To make an
13722
+ asynchronous HTTP request, please pass async_req=True
13723
+
13724
+ >>> thread = api.update_pbx_address(conversation_pbx_address_uuid, pbx_address, async_req=True)
13725
+ >>> result = thread.get()
13726
+
13727
+ Args:
13728
+ conversation_pbx_address_uuid (str):
13729
+ pbx_address (ConversationPbxAddress): Pbx Address
13730
+
13731
+ Keyword Args:
13732
+ _return_http_data_only (bool): response data without head status
13733
+ code and headers. Default is True.
13734
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
13735
+ will be returned without reading/decoding response data.
13736
+ Default is True.
13737
+ _request_timeout (int/float/tuple): timeout setting for this request. If
13738
+ one number provided, it will be total request timeout. It can also
13739
+ be a pair (tuple) of (connection, read) timeouts.
13740
+ Default is None.
13741
+ _check_input_type (bool): specifies if type checking
13742
+ should be done one the data sent to the server.
13743
+ Default is True.
13744
+ _check_return_type (bool): specifies if type checking
13745
+ should be done one the data received from the server.
13746
+ Default is True.
13747
+ _spec_property_naming (bool): True if the variable names in the input data
13748
+ are serialized names, as specified in the OpenAPI document.
13749
+ False if the variable names in the input data
13750
+ are pythonic names, e.g. snake case (default)
13751
+ _content_type (str/None): force body content-type.
13752
+ Default is None and content-type will be predicted by allowed
13753
+ content-types and body.
13754
+ _host_index (int/None): specifies the index of the server
13755
+ that we want to use.
13756
+ Default is read from the configuration.
13757
+ _request_auths (list): set to override the auth_settings for an a single
13758
+ request; this effectively ignores the authentication
13759
+ in the spec for a single request.
13760
+ Default is None
13761
+ async_req (bool): execute request asynchronously
13762
+
13763
+ Returns:
13764
+ ConversationPbxAddressResponse
13765
+ If the method is called asynchronously, returns the request
13766
+ thread.
13767
+ """
13768
+ kwargs['async_req'] = kwargs.get(
13769
+ 'async_req', False
13770
+ )
13771
+ kwargs['_return_http_data_only'] = kwargs.get(
13772
+ '_return_http_data_only', True
13773
+ )
13774
+ kwargs['_preload_content'] = kwargs.get(
13775
+ '_preload_content', True
13776
+ )
13777
+ kwargs['_request_timeout'] = kwargs.get(
13778
+ '_request_timeout', None
13779
+ )
13780
+ kwargs['_check_input_type'] = kwargs.get(
13781
+ '_check_input_type', True
13782
+ )
13783
+ kwargs['_check_return_type'] = kwargs.get(
13784
+ '_check_return_type', True
13785
+ )
13786
+ kwargs['_spec_property_naming'] = kwargs.get(
13787
+ '_spec_property_naming', False
13788
+ )
13789
+ kwargs['_content_type'] = kwargs.get(
13790
+ '_content_type')
13791
+ kwargs['_host_index'] = kwargs.get('_host_index')
13792
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
13793
+ kwargs['conversation_pbx_address_uuid'] = \
13794
+ conversation_pbx_address_uuid
13795
+ kwargs['pbx_address'] = \
13796
+ pbx_address
13797
+ return self.update_pbx_address_endpoint.call_with_http_info(**kwargs)
13798
+
12542
13799
  def update_pbx_agent(
12543
13800
  self,
12544
13801
  conversation_pbx_agent_uuid,