phraseapp-ruby 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/phraseapp-ruby.rb +290 -26
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dfa1f550de287309ddd921b363913e49275ce78
|
4
|
+
data.tar.gz: 18af36c3f0a9fec2c9bb1c2c50d14cc499c23711
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e51d64d87a3472282cbbf9912383f90f4f836a15e99090b8e90e2d664a204d87652e6f1ab4b263ad23f2b4f051304aa4e8a05be766bc07ec574f7d2113a86a6
|
7
|
+
data.tar.gz: 806a524411734994f6ec27bea6220bac845b665f7d82b5fc965cf2129a8920354504fb227afa64d7d65e7e9b8d70c46f22ab7070d41fafa741207d8ae903ed8f
|
data/lib/phraseapp-ruby.rb
CHANGED
@@ -293,8 +293,15 @@ module ResponseObjects
|
|
293
293
|
end
|
294
294
|
|
295
295
|
module RequestParams
|
296
|
+
# AuthorizationParams
|
297
|
+
# == Parameters:
|
298
|
+
# expires_at::
|
299
|
+
# expires_at
|
300
|
+
# note::
|
301
|
+
# note
|
302
|
+
# scopes::
|
303
|
+
# scopes
|
296
304
|
class AuthorizationParams < ::OpenStruct
|
297
|
-
# :expires_at, :note, :scopes,
|
298
305
|
def expires_at=(val)
|
299
306
|
self.expires_at = Time.parse(val)
|
300
307
|
end
|
@@ -317,8 +324,11 @@ end
|
|
317
324
|
|
318
325
|
|
319
326
|
module RequestParams
|
327
|
+
# CommentParams
|
328
|
+
# == Parameters:
|
329
|
+
# message::
|
330
|
+
# message
|
320
331
|
class CommentParams < ::OpenStruct
|
321
|
-
# :message,
|
322
332
|
def message=(val)
|
323
333
|
self.message = val
|
324
334
|
end
|
@@ -333,8 +343,11 @@ end
|
|
333
343
|
|
334
344
|
|
335
345
|
module RequestParams
|
346
|
+
# ExcludeRuleParams
|
347
|
+
# == Parameters:
|
348
|
+
# name::
|
349
|
+
# name
|
336
350
|
class ExcludeRuleParams < ::OpenStruct
|
337
|
-
# :name,
|
338
351
|
def name=(val)
|
339
352
|
self.name = val
|
340
353
|
end
|
@@ -349,8 +362,37 @@ end
|
|
349
362
|
|
350
363
|
|
351
364
|
module RequestParams
|
365
|
+
# TranslationKeyParams
|
366
|
+
# == Parameters:
|
367
|
+
# data_type::
|
368
|
+
# data_type
|
369
|
+
# description::
|
370
|
+
# description
|
371
|
+
# localized_format_key::
|
372
|
+
# localized_format_key
|
373
|
+
# localized_format_string::
|
374
|
+
# localized_format_string
|
375
|
+
# max_characters_allowed::
|
376
|
+
# max_characters_allowed
|
377
|
+
# name::
|
378
|
+
# name
|
379
|
+
# name_plural::
|
380
|
+
# name_plural
|
381
|
+
# original_file::
|
382
|
+
# original_file
|
383
|
+
# plural::
|
384
|
+
# plural
|
385
|
+
# remove_screenshot::
|
386
|
+
# remove_screenshot
|
387
|
+
# screenshot::
|
388
|
+
# screenshot
|
389
|
+
# tags::
|
390
|
+
# tags
|
391
|
+
# unformatted::
|
392
|
+
# unformatted
|
393
|
+
# xml_space_preserve::
|
394
|
+
# xml_space_preserve
|
352
395
|
class TranslationKeyParams < ::OpenStruct
|
353
|
-
# :data_type, :description, :localized_format_key, :localized_format_string, :max_characters_allowed, :name, :name_plural, :original_file, :plural, :remove_screenshot, :screenshot, :tags, :unformatted, :xml_space_preserve,
|
354
396
|
def data_type=(val)
|
355
397
|
self.data_type = val
|
356
398
|
end
|
@@ -441,8 +483,21 @@ end
|
|
441
483
|
|
442
484
|
|
443
485
|
module RequestParams
|
486
|
+
# LocaleParams
|
487
|
+
# == Parameters:
|
488
|
+
# code::
|
489
|
+
# code
|
490
|
+
# default::
|
491
|
+
# default
|
492
|
+
# main::
|
493
|
+
# main
|
494
|
+
# name::
|
495
|
+
# name
|
496
|
+
# rtl::
|
497
|
+
# rtl
|
498
|
+
# source_locale_id::
|
499
|
+
# source_locale_id
|
444
500
|
class LocaleParams < ::OpenStruct
|
445
|
-
# :code, :default, :main, :name, :rtl, :source_locale_id,
|
446
501
|
def code=(val)
|
447
502
|
self.code = val
|
448
503
|
end
|
@@ -497,8 +552,35 @@ end
|
|
497
552
|
|
498
553
|
|
499
554
|
module RequestParams
|
555
|
+
# TranslationOrderParams
|
556
|
+
# == Parameters:
|
557
|
+
# category::
|
558
|
+
# category
|
559
|
+
# include_untranslated_keys::
|
560
|
+
# include_untranslated_keys
|
561
|
+
# include_unverified_translations::
|
562
|
+
# include_unverified_translations
|
563
|
+
# lsp::
|
564
|
+
# lsp
|
565
|
+
# message::
|
566
|
+
# message
|
567
|
+
# priority::
|
568
|
+
# priority
|
569
|
+
# quality::
|
570
|
+
# quality
|
571
|
+
# source_locale_id::
|
572
|
+
# source_locale_id
|
573
|
+
# styleguide_id::
|
574
|
+
# styleguide_id
|
575
|
+
# tag::
|
576
|
+
# tag
|
577
|
+
# target_locale_ids::
|
578
|
+
# target_locale_ids
|
579
|
+
# translation_type::
|
580
|
+
# translation_type
|
581
|
+
# unverify_translations_upon_delivery::
|
582
|
+
# unverify_translations_upon_delivery
|
500
583
|
class TranslationOrderParams < ::OpenStruct
|
501
|
-
# :category, :include_untranslated_keys, :include_unverified_translations, :lsp, :message, :priority, :quality, :source_locale_id, :styleguide_id, :tag, :target_locale_ids, :translation_type, :unverify_translations_upon_delivery,
|
502
584
|
def category=(val)
|
503
585
|
self.category = val
|
504
586
|
end
|
@@ -599,8 +681,13 @@ end
|
|
599
681
|
|
600
682
|
|
601
683
|
module RequestParams
|
684
|
+
# ProjectParams
|
685
|
+
# == Parameters:
|
686
|
+
# name::
|
687
|
+
# name
|
688
|
+
# shares_translation_memory::
|
689
|
+
# shares_translation_memory
|
602
690
|
class ProjectParams < ::OpenStruct
|
603
|
-
# :name, :shares_translation_memory,
|
604
691
|
def name=(val)
|
605
692
|
self.name = val
|
606
693
|
end
|
@@ -625,8 +712,35 @@ end
|
|
625
712
|
|
626
713
|
|
627
714
|
module RequestParams
|
715
|
+
# StyleguideParams
|
716
|
+
# == Parameters:
|
717
|
+
# audience::
|
718
|
+
# audience
|
719
|
+
# business::
|
720
|
+
# business
|
721
|
+
# company_branding::
|
722
|
+
# company_branding
|
723
|
+
# formatting::
|
724
|
+
# formatting
|
725
|
+
# glossary_terms::
|
726
|
+
# glossary_terms
|
727
|
+
# grammar_consistency::
|
728
|
+
# grammar_consistency
|
729
|
+
# grammatical_person::
|
730
|
+
# grammatical_person
|
731
|
+
# literal_translation::
|
732
|
+
# literal_translation
|
733
|
+
# overall_tone::
|
734
|
+
# overall_tone
|
735
|
+
# samples::
|
736
|
+
# samples
|
737
|
+
# target_audience::
|
738
|
+
# target_audience
|
739
|
+
# title::
|
740
|
+
# title
|
741
|
+
# vocabulary_type::
|
742
|
+
# vocabulary_type
|
628
743
|
class StyleguideParams < ::OpenStruct
|
629
|
-
# :audience, :business, :company_branding, :formatting, :glossary_terms, :grammar_consistency, :grammatical_person, :literal_translation, :overall_tone, :samples, :target_audience, :title, :vocabulary_type,
|
630
744
|
def audience=(val)
|
631
745
|
self.audience = val
|
632
746
|
end
|
@@ -689,8 +803,11 @@ end
|
|
689
803
|
|
690
804
|
|
691
805
|
module RequestParams
|
806
|
+
# TagParams
|
807
|
+
# == Parameters:
|
808
|
+
# name::
|
809
|
+
# name
|
692
810
|
class TagParams < ::OpenStruct
|
693
|
-
# :name,
|
694
811
|
def name=(val)
|
695
812
|
self.name = val
|
696
813
|
end
|
@@ -705,8 +822,21 @@ end
|
|
705
822
|
|
706
823
|
|
707
824
|
module RequestParams
|
825
|
+
# TranslationParams
|
826
|
+
# == Parameters:
|
827
|
+
# content::
|
828
|
+
# content
|
829
|
+
# excluded::
|
830
|
+
# excluded
|
831
|
+
# key_id::
|
832
|
+
# key_id
|
833
|
+
# locale_id::
|
834
|
+
# locale_id
|
835
|
+
# plural_suffix::
|
836
|
+
# plural_suffix
|
837
|
+
# unverified::
|
838
|
+
# unverified
|
708
839
|
class TranslationParams < ::OpenStruct
|
709
|
-
# :content, :excluded, :key_id, :locale_id, :plural_suffix, :unverified,
|
710
840
|
def content=(val)
|
711
841
|
self.content = val
|
712
842
|
end
|
@@ -757,8 +887,27 @@ end
|
|
757
887
|
|
758
888
|
|
759
889
|
module RequestParams
|
890
|
+
# LocaleFileImportParams
|
891
|
+
# == Parameters:
|
892
|
+
# convert_emoji::
|
893
|
+
# convert_emoji
|
894
|
+
# file::
|
895
|
+
# file
|
896
|
+
# file_format::
|
897
|
+
# file_format
|
898
|
+
# format_options::
|
899
|
+
# format_options
|
900
|
+
# locale_id::
|
901
|
+
# locale_id
|
902
|
+
# skip_unverification::
|
903
|
+
# skip_unverification
|
904
|
+
# skip_upload_tags::
|
905
|
+
# skip_upload_tags
|
906
|
+
# tags::
|
907
|
+
# tags
|
908
|
+
# update_translations::
|
909
|
+
# update_translations
|
760
910
|
class LocaleFileImportParams < ::OpenStruct
|
761
|
-
# :convert_emoji, :file, :file_format, :format_options, :locale_id, :skip_unverification, :skip_upload_tags, :tags, :update_translations,
|
762
911
|
def convert_emoji=(val)
|
763
912
|
if val == "true"
|
764
913
|
self.convert_emoji = true
|
@@ -873,8 +1022,13 @@ module PhraseApp
|
|
873
1022
|
|
874
1023
|
|
875
1024
|
module RequestParams
|
1025
|
+
# KeysDeleteParams
|
1026
|
+
# == Parameters:
|
1027
|
+
# locale_id::
|
1028
|
+
# locale_id
|
1029
|
+
# q::
|
1030
|
+
# q
|
876
1031
|
class KeysDeleteParams < ::OpenStruct
|
877
|
-
# :locale_id, :q,
|
878
1032
|
def locale_id=(val)
|
879
1033
|
self.locale_id = val
|
880
1034
|
end
|
@@ -891,8 +1045,17 @@ end
|
|
891
1045
|
|
892
1046
|
|
893
1047
|
module RequestParams
|
1048
|
+
# KeysListParams
|
1049
|
+
# == Parameters:
|
1050
|
+
# locale_id::
|
1051
|
+
# locale_id
|
1052
|
+
# order::
|
1053
|
+
# order
|
1054
|
+
# q::
|
1055
|
+
# q
|
1056
|
+
# sort::
|
1057
|
+
# sort
|
894
1058
|
class KeysListParams < ::OpenStruct
|
895
|
-
# :locale_id, :order, :q, :sort,
|
896
1059
|
def locale_id=(val)
|
897
1060
|
self.locale_id = val
|
898
1061
|
end
|
@@ -917,8 +1080,17 @@ end
|
|
917
1080
|
|
918
1081
|
|
919
1082
|
module RequestParams
|
1083
|
+
# KeysSearchParams
|
1084
|
+
# == Parameters:
|
1085
|
+
# locale_id::
|
1086
|
+
# locale_id
|
1087
|
+
# order::
|
1088
|
+
# order
|
1089
|
+
# q::
|
1090
|
+
# q
|
1091
|
+
# sort::
|
1092
|
+
# sort
|
920
1093
|
class KeysSearchParams < ::OpenStruct
|
921
|
-
# :locale_id, :order, :q, :sort,
|
922
1094
|
def locale_id=(val)
|
923
1095
|
self.locale_id = val
|
924
1096
|
end
|
@@ -943,8 +1115,15 @@ end
|
|
943
1115
|
|
944
1116
|
|
945
1117
|
module RequestParams
|
1118
|
+
# KeysTagParams
|
1119
|
+
# == Parameters:
|
1120
|
+
# locale_id::
|
1121
|
+
# locale_id
|
1122
|
+
# q::
|
1123
|
+
# q
|
1124
|
+
# tags::
|
1125
|
+
# tags
|
946
1126
|
class KeysTagParams < ::OpenStruct
|
947
|
-
# :locale_id, :q, :tags,
|
948
1127
|
def locale_id=(val)
|
949
1128
|
self.locale_id = val
|
950
1129
|
end
|
@@ -967,8 +1146,15 @@ end
|
|
967
1146
|
|
968
1147
|
|
969
1148
|
module RequestParams
|
1149
|
+
# KeysUntagParams
|
1150
|
+
# == Parameters:
|
1151
|
+
# locale_id::
|
1152
|
+
# locale_id
|
1153
|
+
# q::
|
1154
|
+
# q
|
1155
|
+
# tags::
|
1156
|
+
# tags
|
970
1157
|
class KeysUntagParams < ::OpenStruct
|
971
|
-
# :locale_id, :q, :tags,
|
972
1158
|
def locale_id=(val)
|
973
1159
|
self.locale_id = val
|
974
1160
|
end
|
@@ -991,8 +1177,21 @@ end
|
|
991
1177
|
|
992
1178
|
|
993
1179
|
module RequestParams
|
1180
|
+
# LocaleDownloadParams
|
1181
|
+
# == Parameters:
|
1182
|
+
# convert_emoji::
|
1183
|
+
# convert_emoji
|
1184
|
+
# file_format::
|
1185
|
+
# file_format
|
1186
|
+
# format_options::
|
1187
|
+
# format_options
|
1188
|
+
# include_empty_translations::
|
1189
|
+
# include_empty_translations
|
1190
|
+
# keep_notranslate_tags::
|
1191
|
+
# keep_notranslate_tags
|
1192
|
+
# tag_id::
|
1193
|
+
# tag_id
|
994
1194
|
class LocaleDownloadParams < ::OpenStruct
|
995
|
-
# :convert_emoji, :file_format, :format_options, :include_empty_translations, :keep_notranslate_tags, :tag_id,
|
996
1195
|
def convert_emoji=(val)
|
997
1196
|
if val == "true"
|
998
1197
|
self.convert_emoji = true
|
@@ -1045,8 +1244,17 @@ end
|
|
1045
1244
|
|
1046
1245
|
|
1047
1246
|
module RequestParams
|
1247
|
+
# TranslationUpdateParams
|
1248
|
+
# == Parameters:
|
1249
|
+
# content::
|
1250
|
+
# content
|
1251
|
+
# excluded::
|
1252
|
+
# excluded
|
1253
|
+
# plural_suffix::
|
1254
|
+
# plural_suffix
|
1255
|
+
# unverified::
|
1256
|
+
# unverified
|
1048
1257
|
class TranslationUpdateParams < ::OpenStruct
|
1049
|
-
# :content, :excluded, :plural_suffix, :unverified,
|
1050
1258
|
def content=(val)
|
1051
1259
|
self.content = val
|
1052
1260
|
end
|
@@ -1085,8 +1293,15 @@ end
|
|
1085
1293
|
|
1086
1294
|
|
1087
1295
|
module RequestParams
|
1296
|
+
# TranslationsByKeyParams
|
1297
|
+
# == Parameters:
|
1298
|
+
# order::
|
1299
|
+
# order
|
1300
|
+
# q::
|
1301
|
+
# q
|
1302
|
+
# sort::
|
1303
|
+
# sort
|
1088
1304
|
class TranslationsByKeyParams < ::OpenStruct
|
1089
|
-
# :order, :q, :sort,
|
1090
1305
|
def order=(val)
|
1091
1306
|
self.order = val
|
1092
1307
|
end
|
@@ -1107,8 +1322,15 @@ end
|
|
1107
1322
|
|
1108
1323
|
|
1109
1324
|
module RequestParams
|
1325
|
+
# TranslationsByLocaleParams
|
1326
|
+
# == Parameters:
|
1327
|
+
# order::
|
1328
|
+
# order
|
1329
|
+
# q::
|
1330
|
+
# q
|
1331
|
+
# sort::
|
1332
|
+
# sort
|
1110
1333
|
class TranslationsByLocaleParams < ::OpenStruct
|
1111
|
-
# :order, :q, :sort,
|
1112
1334
|
def order=(val)
|
1113
1335
|
self.order = val
|
1114
1336
|
end
|
@@ -1129,8 +1351,15 @@ end
|
|
1129
1351
|
|
1130
1352
|
|
1131
1353
|
module RequestParams
|
1354
|
+
# TranslationsExcludeParams
|
1355
|
+
# == Parameters:
|
1356
|
+
# order::
|
1357
|
+
# order
|
1358
|
+
# q::
|
1359
|
+
# q
|
1360
|
+
# sort::
|
1361
|
+
# sort
|
1132
1362
|
class TranslationsExcludeParams < ::OpenStruct
|
1133
|
-
# :order, :q, :sort,
|
1134
1363
|
def order=(val)
|
1135
1364
|
self.order = val
|
1136
1365
|
end
|
@@ -1151,8 +1380,15 @@ end
|
|
1151
1380
|
|
1152
1381
|
|
1153
1382
|
module RequestParams
|
1383
|
+
# TranslationsIncludeParams
|
1384
|
+
# == Parameters:
|
1385
|
+
# order::
|
1386
|
+
# order
|
1387
|
+
# q::
|
1388
|
+
# q
|
1389
|
+
# sort::
|
1390
|
+
# sort
|
1154
1391
|
class TranslationsIncludeParams < ::OpenStruct
|
1155
|
-
# :order, :q, :sort,
|
1156
1392
|
def order=(val)
|
1157
1393
|
self.order = val
|
1158
1394
|
end
|
@@ -1173,8 +1409,15 @@ end
|
|
1173
1409
|
|
1174
1410
|
|
1175
1411
|
module RequestParams
|
1412
|
+
# TranslationsListParams
|
1413
|
+
# == Parameters:
|
1414
|
+
# order::
|
1415
|
+
# order
|
1416
|
+
# q::
|
1417
|
+
# q
|
1418
|
+
# sort::
|
1419
|
+
# sort
|
1176
1420
|
class TranslationsListParams < ::OpenStruct
|
1177
|
-
# :order, :q, :sort,
|
1178
1421
|
def order=(val)
|
1179
1422
|
self.order = val
|
1180
1423
|
end
|
@@ -1195,8 +1438,15 @@ end
|
|
1195
1438
|
|
1196
1439
|
|
1197
1440
|
module RequestParams
|
1441
|
+
# TranslationsSearchParams
|
1442
|
+
# == Parameters:
|
1443
|
+
# order::
|
1444
|
+
# order
|
1445
|
+
# q::
|
1446
|
+
# q
|
1447
|
+
# sort::
|
1448
|
+
# sort
|
1198
1449
|
class TranslationsSearchParams < ::OpenStruct
|
1199
|
-
# :order, :q, :sort,
|
1200
1450
|
def order=(val)
|
1201
1451
|
self.order = val
|
1202
1452
|
end
|
@@ -1217,8 +1467,15 @@ end
|
|
1217
1467
|
|
1218
1468
|
|
1219
1469
|
module RequestParams
|
1470
|
+
# TranslationsUnverifyParams
|
1471
|
+
# == Parameters:
|
1472
|
+
# order::
|
1473
|
+
# order
|
1474
|
+
# q::
|
1475
|
+
# q
|
1476
|
+
# sort::
|
1477
|
+
# sort
|
1220
1478
|
class TranslationsUnverifyParams < ::OpenStruct
|
1221
|
-
# :order, :q, :sort,
|
1222
1479
|
def order=(val)
|
1223
1480
|
self.order = val
|
1224
1481
|
end
|
@@ -1239,8 +1496,15 @@ end
|
|
1239
1496
|
|
1240
1497
|
|
1241
1498
|
module RequestParams
|
1499
|
+
# TranslationsVerifyParams
|
1500
|
+
# == Parameters:
|
1501
|
+
# order::
|
1502
|
+
# order
|
1503
|
+
# q::
|
1504
|
+
# q
|
1505
|
+
# sort::
|
1506
|
+
# sort
|
1242
1507
|
class TranslationsVerifyParams < ::OpenStruct
|
1243
|
-
# :order, :q, :sort,
|
1244
1508
|
def order=(val)
|
1245
1509
|
self.order = val
|
1246
1510
|
end
|
data/lib/version.rb
CHANGED