radiomanager_client 1.1.2 → 1.1.6
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.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/docs/BlockApi.md +4 -4
- data/docs/InviteUserData.md +1 -1
- data/docs/ItemApi.md +2 -2
- data/docs/ItemDataInput.md +1 -0
- data/docs/ItemInputOnly.md +1 -0
- data/docs/ModelTypeOptions.md +1 -0
- data/docs/StationResultStation.md +0 -1
- data/docs/UserResult.md +1 -1
- data/docs/UserResultRoles.md +11 -0
- data/lib/radiomanager_client/api/block_api.rb +4 -4
- data/lib/radiomanager_client/api/item_api.rb +2 -2
- data/lib/radiomanager_client/models/invite_user_data.rb +12 -10
- data/lib/radiomanager_client/models/item_data_input.rb +10 -1
- data/lib/radiomanager_client/models/item_input_only.rb +10 -1
- data/lib/radiomanager_client/models/model_type_options.rb +13 -4
- data/lib/radiomanager_client/models/station_result_station.rb +4 -13
- data/lib/radiomanager_client/models/user_result.rb +9 -7
- data/lib/radiomanager_client/models/{broadcast_field_values.rb → user_result_roles.rb} +35 -8
- data/lib/radiomanager_client.rb +1 -0
- data/radiomanager_client.gemspec +1 -1
- data/spec/api/block_api_spec.rb +8 -5
- data/spec/api/broadcast_api_spec.rb +20 -12
- data/spec/api/campaign_api_spec.rb +4 -1
- data/spec/api/contact_api_spec.rb +5 -2
- data/spec/api/genre_api_spec.rb +3 -0
- data/spec/api/item_api_spec.rb +14 -13
- data/spec/api/model_type_api_spec.rb +4 -1
- data/spec/api/presenter_api_spec.rb +4 -1
- data/spec/api/program_api_spec.rb +8 -5
- data/spec/api/story_api_spec.rb +5 -2
- data/spec/api/tag_api_spec.rb +3 -0
- data/spec/api/user_api_spec.rb +3 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/invite_user_data_spec.rb +1 -1
- data/spec/models/item_data_input_spec.rb +7 -1
- data/spec/models/item_input_only_spec.rb +7 -1
- data/spec/models/model_type_options_spec.rb +6 -0
- data/spec/models/station_result_station_spec.rb +1 -1
- data/spec/models/{epg_broadcast_spec.rb → user_result_roles_spec.rb} +15 -9
- data/spec/models/user_result_spec.rb +1 -1
- metadata +7 -31
- data/docs/BroadcastFieldValues.md +0 -8
- data/docs/ContactFieldValues.md +0 -8
- data/docs/EPGBroadcast.md +0 -10
- data/docs/ExternalMessageApi.md +0 -63
- data/docs/ExternalMessageQueueData.md +0 -14
- data/docs/ImportItemFieldValues.md +0 -8
- data/docs/ProgramFieldValues.md +0 -8
- data/lib/radiomanager_client/api/external_message_api.rb +0 -78
- data/lib/radiomanager_client/models/contact_field_values.rb +0 -188
- data/lib/radiomanager_client/models/epg_broadcast.rb +0 -227
- data/lib/radiomanager_client/models/external_message_queue_data.rb +0 -333
- data/lib/radiomanager_client/models/import_item_field_values.rb +0 -188
- data/lib/radiomanager_client/models/program_field_values.rb +0 -188
- data/spec/api/external_message_api_spec.rb +0 -47
- data/spec/models/broadcast_field_values_spec.rb +0 -42
- data/spec/models/contact_field_values_spec.rb +0 -42
- data/spec/models/external_message_queue_data_spec.rb +0 -78
- data/spec/models/import_item_field_values_spec.rb +0 -42
- data/spec/models/program_field_values_spec.rb +0 -42
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiomanager_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pluxbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -216,7 +216,6 @@ files:
|
|
216
216
|
- docs/BroadcastEPGDay.md
|
217
217
|
- docs/BroadcastEPGRelations.md
|
218
218
|
- docs/BroadcastEPGResult.md
|
219
|
-
- docs/BroadcastFieldValues.md
|
220
219
|
- docs/BroadcastInputOnly.md
|
221
220
|
- docs/BroadcastOutputOnly.md
|
222
221
|
- docs/BroadcastRelations.md
|
@@ -240,7 +239,6 @@ files:
|
|
240
239
|
- docs/Contact.md
|
241
240
|
- docs/ContactApi.md
|
242
241
|
- docs/ContactDataInput.md
|
243
|
-
- docs/ContactFieldValues.md
|
244
242
|
- docs/ContactOutputOnly.md
|
245
243
|
- docs/ContactRelations.md
|
246
244
|
- docs/ContactRelationsItems.md
|
@@ -250,10 +248,7 @@ files:
|
|
250
248
|
- docs/ContactResults.md
|
251
249
|
- docs/Data.md
|
252
250
|
- docs/Data1.md
|
253
|
-
- docs/EPGBroadcast.md
|
254
251
|
- docs/EPGResults.md
|
255
|
-
- docs/ExternalMessageApi.md
|
256
|
-
- docs/ExternalMessageQueueData.md
|
257
252
|
- docs/Forbidden.md
|
258
253
|
- docs/Genre.md
|
259
254
|
- docs/GenreApi.md
|
@@ -265,7 +260,6 @@ files:
|
|
265
260
|
- docs/GenreResult.md
|
266
261
|
- docs/GenreResults.md
|
267
262
|
- docs/ImportItem.md
|
268
|
-
- docs/ImportItemFieldValues.md
|
269
263
|
- docs/InlineResponse202.md
|
270
264
|
- docs/InternalServerError.md
|
271
265
|
- docs/InviteUserData.md
|
@@ -314,7 +308,6 @@ files:
|
|
314
308
|
- docs/Program.md
|
315
309
|
- docs/ProgramApi.md
|
316
310
|
- docs/ProgramDataInput.md
|
317
|
-
- docs/ProgramFieldValues.md
|
318
311
|
- docs/ProgramInputOnly.md
|
319
312
|
- docs/ProgramOutputOnly.md
|
320
313
|
- docs/ProgramRelations.md
|
@@ -361,6 +354,7 @@ files:
|
|
361
354
|
- docs/UnprocessableEntity.md
|
362
355
|
- docs/UserApi.md
|
363
356
|
- docs/UserResult.md
|
357
|
+
- docs/UserResultRoles.md
|
364
358
|
- docs/UserResultSettings.md
|
365
359
|
- docs/UserResults.md
|
366
360
|
- docs/VisualResult.md
|
@@ -371,7 +365,6 @@ files:
|
|
371
365
|
- lib/radiomanager_client/api/broadcast_api.rb
|
372
366
|
- lib/radiomanager_client/api/campaign_api.rb
|
373
367
|
- lib/radiomanager_client/api/contact_api.rb
|
374
|
-
- lib/radiomanager_client/api/external_message_api.rb
|
375
368
|
- lib/radiomanager_client/api/genre_api.rb
|
376
369
|
- lib/radiomanager_client/api/item_api.rb
|
377
370
|
- lib/radiomanager_client/api/model_type_api.rb
|
@@ -400,7 +393,6 @@ files:
|
|
400
393
|
- lib/radiomanager_client/models/broadcast_epg_day.rb
|
401
394
|
- lib/radiomanager_client/models/broadcast_epg_relations.rb
|
402
395
|
- lib/radiomanager_client/models/broadcast_epg_result.rb
|
403
|
-
- lib/radiomanager_client/models/broadcast_field_values.rb
|
404
396
|
- lib/radiomanager_client/models/broadcast_input_only.rb
|
405
397
|
- lib/radiomanager_client/models/broadcast_output_only.rb
|
406
398
|
- lib/radiomanager_client/models/broadcast_relations.rb
|
@@ -422,7 +414,6 @@ files:
|
|
422
414
|
- lib/radiomanager_client/models/campaign_results.rb
|
423
415
|
- lib/radiomanager_client/models/contact.rb
|
424
416
|
- lib/radiomanager_client/models/contact_data_input.rb
|
425
|
-
- lib/radiomanager_client/models/contact_field_values.rb
|
426
417
|
- lib/radiomanager_client/models/contact_output_only.rb
|
427
418
|
- lib/radiomanager_client/models/contact_relations.rb
|
428
419
|
- lib/radiomanager_client/models/contact_relations_items.rb
|
@@ -432,9 +423,7 @@ files:
|
|
432
423
|
- lib/radiomanager_client/models/contact_results.rb
|
433
424
|
- lib/radiomanager_client/models/data.rb
|
434
425
|
- lib/radiomanager_client/models/data_1.rb
|
435
|
-
- lib/radiomanager_client/models/epg_broadcast.rb
|
436
426
|
- lib/radiomanager_client/models/epg_results.rb
|
437
|
-
- lib/radiomanager_client/models/external_message_queue_data.rb
|
438
427
|
- lib/radiomanager_client/models/forbidden.rb
|
439
428
|
- lib/radiomanager_client/models/genre.rb
|
440
429
|
- lib/radiomanager_client/models/genre_output_only.rb
|
@@ -445,7 +434,6 @@ files:
|
|
445
434
|
- lib/radiomanager_client/models/genre_result.rb
|
446
435
|
- lib/radiomanager_client/models/genre_results.rb
|
447
436
|
- lib/radiomanager_client/models/import_item.rb
|
448
|
-
- lib/radiomanager_client/models/import_item_field_values.rb
|
449
437
|
- lib/radiomanager_client/models/inline_response_202.rb
|
450
438
|
- lib/radiomanager_client/models/internal_server_error.rb
|
451
439
|
- lib/radiomanager_client/models/invite_user_data.rb
|
@@ -490,7 +478,6 @@ files:
|
|
490
478
|
- lib/radiomanager_client/models/presenter_results.rb
|
491
479
|
- lib/radiomanager_client/models/program.rb
|
492
480
|
- lib/radiomanager_client/models/program_data_input.rb
|
493
|
-
- lib/radiomanager_client/models/program_field_values.rb
|
494
481
|
- lib/radiomanager_client/models/program_input_only.rb
|
495
482
|
- lib/radiomanager_client/models/program_output_only.rb
|
496
483
|
- lib/radiomanager_client/models/program_relations.rb
|
@@ -532,6 +519,7 @@ files:
|
|
532
519
|
- lib/radiomanager_client/models/too_many_requests.rb
|
533
520
|
- lib/radiomanager_client/models/unprocessable_entity.rb
|
534
521
|
- lib/radiomanager_client/models/user_result.rb
|
522
|
+
- lib/radiomanager_client/models/user_result_roles.rb
|
535
523
|
- lib/radiomanager_client/models/user_result_settings.rb
|
536
524
|
- lib/radiomanager_client/models/user_results.rb
|
537
525
|
- lib/radiomanager_client/models/visual_result.rb
|
@@ -541,7 +529,6 @@ files:
|
|
541
529
|
- spec/api/broadcast_api_spec.rb
|
542
530
|
- spec/api/campaign_api_spec.rb
|
543
531
|
- spec/api/contact_api_spec.rb
|
544
|
-
- spec/api/external_message_api_spec.rb
|
545
532
|
- spec/api/genre_api_spec.rb
|
546
533
|
- spec/api/item_api_spec.rb
|
547
534
|
- spec/api/model_type_api_spec.rb
|
@@ -568,7 +555,6 @@ files:
|
|
568
555
|
- spec/models/broadcast_epg_day_spec.rb
|
569
556
|
- spec/models/broadcast_epg_relations_spec.rb
|
570
557
|
- spec/models/broadcast_epg_result_spec.rb
|
571
|
-
- spec/models/broadcast_field_values_spec.rb
|
572
558
|
- spec/models/broadcast_input_only_spec.rb
|
573
559
|
- spec/models/broadcast_output_only_spec.rb
|
574
560
|
- spec/models/broadcast_relations_blocks_spec.rb
|
@@ -590,7 +576,6 @@ files:
|
|
590
576
|
- spec/models/campaign_results_spec.rb
|
591
577
|
- spec/models/campaign_spec.rb
|
592
578
|
- spec/models/contact_data_input_spec.rb
|
593
|
-
- spec/models/contact_field_values_spec.rb
|
594
579
|
- spec/models/contact_output_only_spec.rb
|
595
580
|
- spec/models/contact_relations_items_spec.rb
|
596
581
|
- spec/models/contact_relations_spec.rb
|
@@ -601,9 +586,7 @@ files:
|
|
601
586
|
- spec/models/contact_spec.rb
|
602
587
|
- spec/models/data_1_spec.rb
|
603
588
|
- spec/models/data_spec.rb
|
604
|
-
- spec/models/epg_broadcast_spec.rb
|
605
589
|
- spec/models/epg_results_spec.rb
|
606
|
-
- spec/models/external_message_queue_data_spec.rb
|
607
590
|
- spec/models/forbidden_spec.rb
|
608
591
|
- spec/models/genre_output_only_spec.rb
|
609
592
|
- spec/models/genre_relations_broadcasts_params_spec.rb
|
@@ -613,7 +596,6 @@ files:
|
|
613
596
|
- spec/models/genre_result_spec.rb
|
614
597
|
- spec/models/genre_results_spec.rb
|
615
598
|
- spec/models/genre_spec.rb
|
616
|
-
- spec/models/import_item_field_values_spec.rb
|
617
599
|
- spec/models/import_item_spec.rb
|
618
600
|
- spec/models/inline_response_202_spec.rb
|
619
601
|
- spec/models/internal_server_error_spec.rb
|
@@ -658,7 +640,6 @@ files:
|
|
658
640
|
- spec/models/presenter_results_spec.rb
|
659
641
|
- spec/models/presenter_spec.rb
|
660
642
|
- spec/models/program_data_input_spec.rb
|
661
|
-
- spec/models/program_field_values_spec.rb
|
662
643
|
- spec/models/program_input_only_spec.rb
|
663
644
|
- spec/models/program_output_only_spec.rb
|
664
645
|
- spec/models/program_relations_blocks_spec.rb
|
@@ -700,6 +681,7 @@ files:
|
|
700
681
|
- spec/models/text_string_spec.rb
|
701
682
|
- spec/models/too_many_requests_spec.rb
|
702
683
|
- spec/models/unprocessable_entity_spec.rb
|
684
|
+
- spec/models/user_result_roles_spec.rb
|
703
685
|
- spec/models/user_result_settings_spec.rb
|
704
686
|
- spec/models/user_result_spec.rb
|
705
687
|
- spec/models/user_results_spec.rb
|
@@ -725,13 +707,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
725
707
|
version: '0'
|
726
708
|
requirements: []
|
727
709
|
rubyforge_project:
|
728
|
-
rubygems_version: 2.5.1
|
710
|
+
rubygems_version: 2.5.2.1
|
729
711
|
signing_key:
|
730
712
|
specification_version: 4
|
731
713
|
summary: RadioManager Client
|
732
714
|
test_files:
|
733
715
|
- spec/api/story_api_spec.rb
|
734
|
-
- spec/api/external_message_api_spec.rb
|
735
716
|
- spec/api/presenter_api_spec.rb
|
736
717
|
- spec/api/model_type_api_spec.rb
|
737
718
|
- spec/api/program_api_spec.rb
|
@@ -784,13 +765,10 @@ test_files:
|
|
784
765
|
- spec/models/campaign_output_only_spec.rb
|
785
766
|
- spec/models/relations_placeholder_spec.rb
|
786
767
|
- spec/models/program_result_spec.rb
|
787
|
-
- spec/models/program_field_values_spec.rb
|
788
768
|
- spec/models/model_type_spec.rb
|
789
769
|
- spec/models/broadcast_relations_presenters_spec.rb
|
790
|
-
- spec/models/import_item_field_values_spec.rb
|
791
770
|
- spec/models/campaign_relations_items_spec.rb
|
792
771
|
- spec/models/broadcast_epg_result_spec.rb
|
793
|
-
- spec/models/contact_field_values_spec.rb
|
794
772
|
- spec/models/broadcast_data_input_spec.rb
|
795
773
|
- spec/models/campaign_data_input_spec.rb
|
796
774
|
- spec/models/genre_output_only_spec.rb
|
@@ -811,6 +789,7 @@ test_files:
|
|
811
789
|
- spec/models/broadcast_relations_items_spec.rb
|
812
790
|
- spec/models/item_relations_block_spec.rb
|
813
791
|
- spec/models/broadcast_relations_spec.rb
|
792
|
+
- spec/models/user_result_roles_spec.rb
|
814
793
|
- spec/models/contact_relations_spec.rb
|
815
794
|
- spec/models/item_relations_campaign_spec.rb
|
816
795
|
- spec/models/broadcast_relations_tags_spec.rb
|
@@ -857,7 +836,6 @@ test_files:
|
|
857
836
|
- spec/models/story_spec.rb
|
858
837
|
- spec/models/presenter_relations_programs_params_spec.rb
|
859
838
|
- spec/models/visual_result_spec.rb
|
860
|
-
- spec/models/external_message_queue_data_spec.rb
|
861
839
|
- spec/models/broadcast_epg_relations_spec.rb
|
862
840
|
- spec/models/contact_data_input_spec.rb
|
863
841
|
- spec/models/tag_output_only_spec.rb
|
@@ -876,7 +854,6 @@ test_files:
|
|
876
854
|
- spec/models/story_data_input_spec.rb
|
877
855
|
- spec/models/presenter_output_only_spec.rb
|
878
856
|
- spec/models/program_relations_items_spec.rb
|
879
|
-
- spec/models/epg_broadcast_spec.rb
|
880
857
|
- spec/models/broadcast_output_only_spec.rb
|
881
858
|
- spec/models/program_relations_blocks_spec.rb
|
882
859
|
- spec/models/genre_relations_spec.rb
|
@@ -889,7 +866,6 @@ test_files:
|
|
889
866
|
- spec/models/user_result_settings_spec.rb
|
890
867
|
- spec/models/model_type_relations_spec.rb
|
891
868
|
- spec/models/item_relations_contacts_params_spec.rb
|
892
|
-
- spec/models/broadcast_field_values_spec.rb
|
893
869
|
- spec/models/contact_result_spec.rb
|
894
870
|
- spec/models/contact_relations_items_spec.rb
|
895
871
|
- spec/models/genre_relations_broadcasts_params_spec.rb
|
data/docs/ContactFieldValues.md
DELETED
data/docs/EPGBroadcast.md
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
# RadioManagerClient::EPGBroadcast
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**_2016_01_11** | [**Array<BroadcastResult>**](BroadcastResult.md) | |
|
7
|
-
**next_page_url** | **String** | | [default to "https://raidiomanager.pluxbox.com/api/v1/broadcasts/epg/{identifier}/2016-01-12"]
|
8
|
-
**prev_page_url** | **String** | | [default to "https://raidiomanager.pluxbox.com/pb/api/v1/broadcasts/epg/{identifier}/2016-01-10"]
|
9
|
-
|
10
|
-
|
data/docs/ExternalMessageApi.md
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
# RadioManagerClient::ExternalMessageApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://staging.pluxbox.com/api/v2*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**queue_external_message**](ExternalMessageApi.md#queue_external_message) | **POST** /externalmessagequeue | Queue External Message.
|
8
|
-
|
9
|
-
|
10
|
-
# **queue_external_message**
|
11
|
-
> Object queue_external_message(message)
|
12
|
-
|
13
|
-
Queue External Message.
|
14
|
-
|
15
|
-
Queue External Message.
|
16
|
-
|
17
|
-
### Example
|
18
|
-
```ruby
|
19
|
-
# load the gem
|
20
|
-
require 'radiomanager_client'
|
21
|
-
# setup authorization
|
22
|
-
RadioManagerClient.configure do |config|
|
23
|
-
# Configure API key authorization: API Key
|
24
|
-
config.api_key['api-key'] = 'YOUR API KEY'
|
25
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
26
|
-
#config.api_key_prefix['api-key'] = 'Bearer'
|
27
|
-
end
|
28
|
-
|
29
|
-
api_instance = RadioManagerClient::ExternalMessageApi.new
|
30
|
-
|
31
|
-
message = RadioManagerClient::ExternalMessageQueueData.new # ExternalMessageQueueData | Data **(Required)**
|
32
|
-
|
33
|
-
|
34
|
-
begin
|
35
|
-
#Queue External Message.
|
36
|
-
result = api_instance.queue_external_message(message)
|
37
|
-
p result
|
38
|
-
rescue RadioManagerClient::ApiError => e
|
39
|
-
puts "Exception when calling ExternalMessageApi->queue_external_message: #{e}"
|
40
|
-
end
|
41
|
-
```
|
42
|
-
|
43
|
-
### Parameters
|
44
|
-
|
45
|
-
Name | Type | Description | Notes
|
46
|
-
------------- | ------------- | ------------- | -------------
|
47
|
-
**message** | [**ExternalMessageQueueData**](ExternalMessageQueueData.md)| Data **(Required)** |
|
48
|
-
|
49
|
-
### Return type
|
50
|
-
|
51
|
-
**Object**
|
52
|
-
|
53
|
-
### Authorization
|
54
|
-
|
55
|
-
[API Key](../README.md#API Key)
|
56
|
-
|
57
|
-
### HTTP request headers
|
58
|
-
|
59
|
-
- **Content-Type**: application/json
|
60
|
-
- **Accept**: application/json
|
61
|
-
|
62
|
-
|
63
|
-
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# RadioManagerClient::ExternalMessageQueueData
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**message** | **String** | Message **(Required)** | [optional] [default to ""]
|
7
|
-
**message_id** | **Integer** | ID of Message **(Required)** | [optional]
|
8
|
-
**message_date** | **DateTime** | Message Date *(Optional)* | [optional]
|
9
|
-
**sender_name** | **String** | Sender **(Required)** | [optional] [default to ""]
|
10
|
-
**sender_id** | **Integer** | ID of Sender *(Optional)* | [optional]
|
11
|
-
**avatar_url** | **String** | URL of Avatar *(Optional)* | [optional]
|
12
|
-
**model_type_id** | **Integer** | Assigned Model Type ID **(Required)** | [optional]
|
13
|
-
|
14
|
-
|
data/docs/ProgramFieldValues.md
DELETED
@@ -1,78 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#RadioManager
|
3
|
-
|
4
|
-
#RadioManager
|
5
|
-
|
6
|
-
OpenAPI spec version: 2.0
|
7
|
-
Contact: support@pluxbox.com
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.2.3
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require "uri"
|
14
|
-
|
15
|
-
module RadioManagerClient
|
16
|
-
class ExternalMessageApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
|
23
|
-
# Queue External Message.
|
24
|
-
# Queue External Message.
|
25
|
-
# @param message Data **(Required)**
|
26
|
-
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [Object]
|
28
|
-
def queue_external_message(message, opts = {})
|
29
|
-
data, _status_code, _headers = queue_external_message_with_http_info(message, opts)
|
30
|
-
return data
|
31
|
-
end
|
32
|
-
|
33
|
-
# Queue External Message.
|
34
|
-
# Queue External Message.
|
35
|
-
# @param message Data **(Required)**
|
36
|
-
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
38
|
-
def queue_external_message_with_http_info(message, opts = {})
|
39
|
-
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug "Calling API: ExternalMessageApi.queue_external_message ..."
|
41
|
-
end
|
42
|
-
# verify the required parameter 'message' is set
|
43
|
-
if @api_client.config.client_side_validation && message.nil?
|
44
|
-
fail ArgumentError, "Missing the required parameter 'message' when calling ExternalMessageApi.queue_external_message"
|
45
|
-
end
|
46
|
-
# resource path
|
47
|
-
local_var_path = "/externalmessagequeue"
|
48
|
-
|
49
|
-
# query parameters
|
50
|
-
query_params = {}
|
51
|
-
|
52
|
-
# header parameters
|
53
|
-
header_params = {}
|
54
|
-
# HTTP header 'Accept' (if needed)
|
55
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
56
|
-
# HTTP header 'Content-Type'
|
57
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
58
|
-
|
59
|
-
# form parameters
|
60
|
-
form_params = {}
|
61
|
-
|
62
|
-
# http body (model)
|
63
|
-
post_body = @api_client.object_to_http_body(message)
|
64
|
-
auth_names = ['API Key']
|
65
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
66
|
-
:header_params => header_params,
|
67
|
-
:query_params => query_params,
|
68
|
-
:form_params => form_params,
|
69
|
-
:body => post_body,
|
70
|
-
:auth_names => auth_names,
|
71
|
-
:return_type => 'Object')
|
72
|
-
if @api_client.config.debugging
|
73
|
-
@api_client.config.logger.debug "API called: ExternalMessageApi#queue_external_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
74
|
-
end
|
75
|
-
return data, status_code, headers
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
@@ -1,188 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#RadioManager
|
3
|
-
|
4
|
-
#RadioManager
|
5
|
-
|
6
|
-
OpenAPI spec version: 2.0
|
7
|
-
Contact: support@pluxbox.com
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.2.3
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module RadioManagerClient
|
16
|
-
|
17
|
-
class ContactFieldValues
|
18
|
-
attr_accessor :description
|
19
|
-
|
20
|
-
|
21
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
-
def self.attribute_map
|
23
|
-
{
|
24
|
-
:'description' => :'description'
|
25
|
-
}
|
26
|
-
end
|
27
|
-
|
28
|
-
# Attribute type mapping.
|
29
|
-
def self.swagger_types
|
30
|
-
{
|
31
|
-
:'description' => :'String'
|
32
|
-
}
|
33
|
-
end
|
34
|
-
|
35
|
-
# Initializes the object
|
36
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
37
|
-
def initialize(attributes = {})
|
38
|
-
return unless attributes.is_a?(Hash)
|
39
|
-
|
40
|
-
# convert string to symbol for hash key
|
41
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
42
|
-
|
43
|
-
if attributes.has_key?(:'description')
|
44
|
-
self.description = attributes[:'description']
|
45
|
-
end
|
46
|
-
|
47
|
-
end
|
48
|
-
|
49
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
50
|
-
# @return Array for valid properies with the reasons
|
51
|
-
def list_invalid_properties
|
52
|
-
invalid_properties = Array.new
|
53
|
-
return invalid_properties
|
54
|
-
end
|
55
|
-
|
56
|
-
# Check to see if the all the properties in the model are valid
|
57
|
-
# @return true if the model is valid
|
58
|
-
def valid?
|
59
|
-
return true
|
60
|
-
end
|
61
|
-
|
62
|
-
# Checks equality by comparing each attribute.
|
63
|
-
# @param [Object] Object to be compared
|
64
|
-
def ==(o)
|
65
|
-
return true if self.equal?(o)
|
66
|
-
self.class == o.class &&
|
67
|
-
description == o.description
|
68
|
-
end
|
69
|
-
|
70
|
-
# @see the `==` method
|
71
|
-
# @param [Object] Object to be compared
|
72
|
-
def eql?(o)
|
73
|
-
self == o
|
74
|
-
end
|
75
|
-
|
76
|
-
# Calculates hash code according to all attributes.
|
77
|
-
# @return [Fixnum] Hash code
|
78
|
-
def hash
|
79
|
-
[description].hash
|
80
|
-
end
|
81
|
-
|
82
|
-
# Builds the object from hash
|
83
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
84
|
-
# @return [Object] Returns the model itself
|
85
|
-
def build_from_hash(attributes)
|
86
|
-
return nil unless attributes.is_a?(Hash)
|
87
|
-
self.class.swagger_types.each_pair do |key, type|
|
88
|
-
if type =~ /\AArray<(.*)>/i
|
89
|
-
# check to ensure the input is an array given that the the attribute
|
90
|
-
# is documented as an array but the input is not
|
91
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
92
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
93
|
-
end
|
94
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
95
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
96
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
97
|
-
end
|
98
|
-
|
99
|
-
self
|
100
|
-
end
|
101
|
-
|
102
|
-
# Deserializes the data based on type
|
103
|
-
# @param string type Data type
|
104
|
-
# @param string value Value to be deserialized
|
105
|
-
# @return [Object] Deserialized data
|
106
|
-
def _deserialize(type, value)
|
107
|
-
case type.to_sym
|
108
|
-
when :DateTime
|
109
|
-
DateTime.parse(value)
|
110
|
-
when :Date
|
111
|
-
Date.parse(value)
|
112
|
-
when :String
|
113
|
-
value.to_s
|
114
|
-
when :Integer
|
115
|
-
value.to_i
|
116
|
-
when :Float
|
117
|
-
value.to_f
|
118
|
-
when :BOOLEAN
|
119
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
120
|
-
true
|
121
|
-
else
|
122
|
-
false
|
123
|
-
end
|
124
|
-
when :Object
|
125
|
-
# generic object (usually a Hash), return directly
|
126
|
-
value
|
127
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
128
|
-
inner_type = Regexp.last_match[:inner_type]
|
129
|
-
value.map { |v| _deserialize(inner_type, v) }
|
130
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
131
|
-
k_type = Regexp.last_match[:k_type]
|
132
|
-
v_type = Regexp.last_match[:v_type]
|
133
|
-
{}.tap do |hash|
|
134
|
-
value.each do |k, v|
|
135
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
136
|
-
end
|
137
|
-
end
|
138
|
-
else # model
|
139
|
-
temp_model = RadioManagerClient.const_get(type).new
|
140
|
-
temp_model.build_from_hash(value)
|
141
|
-
end
|
142
|
-
end
|
143
|
-
|
144
|
-
# Returns the string representation of the object
|
145
|
-
# @return [String] String presentation of the object
|
146
|
-
def to_s
|
147
|
-
to_hash.to_s
|
148
|
-
end
|
149
|
-
|
150
|
-
# to_body is an alias to to_hash (backward compatibility)
|
151
|
-
# @return [Hash] Returns the object in the form of hash
|
152
|
-
def to_body
|
153
|
-
to_hash
|
154
|
-
end
|
155
|
-
|
156
|
-
# Returns the object in the form of hash
|
157
|
-
# @return [Hash] Returns the object in the form of hash
|
158
|
-
def to_hash
|
159
|
-
hash = {}
|
160
|
-
self.class.attribute_map.each_pair do |attr, param|
|
161
|
-
value = self.send(attr)
|
162
|
-
next if value.nil?
|
163
|
-
hash[param] = _to_hash(value)
|
164
|
-
end
|
165
|
-
hash
|
166
|
-
end
|
167
|
-
|
168
|
-
# Outputs non-array value in the form of hash
|
169
|
-
# For object, use to_hash. Otherwise, just return the value
|
170
|
-
# @param [Object] value Any valid value
|
171
|
-
# @return [Hash] Returns the value in the form of hash
|
172
|
-
def _to_hash(value)
|
173
|
-
if value.is_a?(Array)
|
174
|
-
value.compact.map{ |v| _to_hash(v) }
|
175
|
-
elsif value.is_a?(Hash)
|
176
|
-
{}.tap do |hash|
|
177
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
178
|
-
end
|
179
|
-
elsif value.respond_to? :to_hash
|
180
|
-
value.to_hash
|
181
|
-
else
|
182
|
-
value
|
183
|
-
end
|
184
|
-
end
|
185
|
-
|
186
|
-
end
|
187
|
-
|
188
|
-
end
|