comet_backup_ruby_sdk 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ab077fca07acb49e1718c0ba71798a105e88ec3862457648e9c7ac99bc5da49
4
- data.tar.gz: f495d2a625abb94c25ef337ac03dce967bc64595c8847f92215b7fe2efccf1b4
3
+ metadata.gz: 28c20d30682b68212614c323e57214c8e7e4c25d7d96874d064c8d810e559faa
4
+ data.tar.gz: 1abc454c8e6505934dade8b26ac3b3791bc6436bf7203332805fb375ce6e9b90
5
5
  SHA512:
6
- metadata.gz: ebf84239a94db56cfc315b3a4e0b51805fa84cd9e6aaef679757ccbbad02e4bcc5f2b0b2f96b82993a4cfe23e280a9b5cce15c96237c43f922558f2b1d90b12a
7
- data.tar.gz: 459c8197ab831eb5a6a9c526692ec2e3e30ff248647ca1b60cd8be20fe371f2ab940dcd1ae04658f2d8a2589364a5615e36482aaa4a941a9ee84c96956488ff7
6
+ metadata.gz: 0bc8d5889354e1a0a8f4b1e0c89a71b4a1d6c44faab8ec03432bfd7fdffaebebaeb6a44ea5e44293979a4f5694e89e14a63f0ba7f543fc420d1e05deb835d0d6
7
+ data.tar.gz: c7654db0f8f17ef9fe6939e6fe3fc42f72db4d8b855b4b692fc5b1b2ac6a12d6858f5e7c7c8ecf82cd1994cf1b227223042e3226dd17308e5145b02df332a3f0
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2020-10-08 v1.1.0
4
+ - Based on Comet 20.9.6
5
+ - Support new `AdminStorageBucketProperties` API
6
+ - Allow passing in nil or no value for `AdminStorageFreeSpace` parameter
7
+ - Fix an issue with automatic SelfAddress parameters not containing a trailing slash
8
+
3
9
  ## 2020-09-16 v1.0.0
4
10
  - Tag a v1.0.0 release as the SDK design has stabilized. Future v1.x.x SDK releases will remain compatible with code written against v1.0.0, according to [Semantic Versioning](https://semver.org/).
5
11
  - Support new Organization feature
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- comet_backup_ruby_sdk (1.0.0)
4
+ comet_backup_ruby_sdk (1.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -12,7 +12,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
12
12
 
13
13
  Gem::Specification.new do |spec|
14
14
  spec.name = 'comet_backup_ruby_sdk'
15
- spec.version = '1.0.0'
15
+ spec.version = '1.1.0'
16
16
  spec.authors = ['Comet Licensing Ltd.']
17
17
  spec.email = ['hello@cometbackup.com']
18
18
 
@@ -35,6 +35,9 @@ module Comet
35
35
  @server_address = server_address
36
36
  @username = username
37
37
  @password = password
38
+
39
+ # Ensure Comet Server URL has a trailing slash
40
+ @server_address += '/' unless server_address.end_with?('/')
38
41
  end
39
42
 
40
43
  # AdminAccountProperties
@@ -46,7 +49,7 @@ module Comet
46
49
  #
47
50
  # @return [Comet::AdminAccountPropertiesResponse]
48
51
  def admin_account_properties
49
- body = perform_request('/api/v1/admin/account/properties')
52
+ body = perform_request('api/v1/admin/account/properties')
50
53
  json_body = JSON.parse body
51
54
  check_status json_body
52
55
  ret = Comet::AdminAccountPropertiesResponse.new
@@ -63,7 +66,7 @@ module Comet
63
66
  #
64
67
  # @return [Comet::TotpRegeneratedResponse]
65
68
  def admin_account_regenerate_totp
66
- body = perform_request('/api/v1/admin/account/regenerate-totp')
69
+ body = perform_request('api/v1/admin/account/regenerate-totp')
67
70
  json_body = JSON.parse body
68
71
  check_status json_body
69
72
  ret = Comet::TotpRegeneratedResponse.new
@@ -79,7 +82,7 @@ module Comet
79
82
  #
80
83
  # @return [Comet::CometAPIResponseMessage]
81
84
  def admin_account_session_revoke
82
- body = perform_request('/api/v1/admin/account/session-revoke')
85
+ body = perform_request('api/v1/admin/account/session-revoke')
83
86
  json_body = JSON.parse body
84
87
  check_status json_body
85
88
  ret = Comet::CometAPIResponseMessage.new
@@ -105,7 +108,7 @@ module Comet
105
108
  submit_params['SelfAddress'] = self_address
106
109
  end
107
110
 
108
- body = perform_request('/api/v1/admin/account/session-start', submit_params)
111
+ body = perform_request('api/v1/admin/account/session-start', submit_params)
109
112
  json_body = JSON.parse body
110
113
  check_status json_body
111
114
  ret = Comet::SessionKeyRegeneratedResponse.new
@@ -127,7 +130,7 @@ module Comet
127
130
 
128
131
  submit_params['TargetUser'] = target_user
129
132
 
130
- body = perform_request('/api/v1/admin/account/session-start-as-user', submit_params)
133
+ body = perform_request('api/v1/admin/account/session-start-as-user', submit_params)
131
134
  json_body = JSON.parse body
132
135
  check_status json_body
133
136
  ret = Comet::SessionKeyRegeneratedResponse.new
@@ -152,7 +155,7 @@ module Comet
152
155
 
153
156
  submit_params['Security'] = security.to_json
154
157
 
155
- body = perform_request('/api/v1/admin/account/set-properties', submit_params)
158
+ body = perform_request('api/v1/admin/account/set-properties', submit_params)
156
159
  json_body = JSON.parse body
157
160
  check_status json_body
158
161
  ret = Comet::CometAPIResponseMessage.new
@@ -174,7 +177,7 @@ module Comet
174
177
 
175
178
  submit_params['SelfAddress'] = self_address
176
179
 
177
- body = perform_request('/api/v1/admin/account/u2f/request-registration-challenge', submit_params)
180
+ body = perform_request('api/v1/admin/account/u2f/request-registration-challenge', submit_params)
178
181
  json_body = JSON.parse body
179
182
  check_status json_body
180
183
  ret = Comet::U2FRegistrationChallengeResponse.new
@@ -212,7 +215,7 @@ module Comet
212
215
 
213
216
  submit_params['Description'] = description
214
217
 
215
- body = perform_request('/api/v1/admin/account/u2f/submit-challenge-response', submit_params)
218
+ body = perform_request('api/v1/admin/account/u2f/submit-challenge-response', submit_params)
216
219
  json_body = JSON.parse body
217
220
  check_status json_body
218
221
  ret = Comet::CometAPIResponseMessage.new
@@ -234,7 +237,7 @@ module Comet
234
237
 
235
238
  submit_params['TOTPCode'] = totpcode
236
239
 
237
- body = perform_request('/api/v1/admin/account/validate-totp', submit_params)
240
+ body = perform_request('api/v1/admin/account/validate-totp', submit_params)
238
241
  json_body = JSON.parse body
239
242
  check_status json_body
240
243
  ret = Comet::CometAPIResponseMessage.new
@@ -273,7 +276,7 @@ module Comet
273
276
  submit_params['RequirePasswordChange'] = require_password_change
274
277
  end
275
278
 
276
- body = perform_request('/api/v1/admin/add-user', submit_params)
279
+ body = perform_request('api/v1/admin/add-user', submit_params)
277
280
  json_body = JSON.parse body
278
281
  check_status json_body
279
282
  ret = Comet::CometAPIResponseMessage.new
@@ -301,7 +304,7 @@ module Comet
301
304
 
302
305
  submit_params['ProfileData'] = profile_data.to_json
303
306
 
304
- body = perform_request('/api/v1/admin/add-user-from-profile', submit_params)
307
+ body = perform_request('api/v1/admin/add-user-from-profile', submit_params)
305
308
  json_body = JSON.parse body
306
309
  check_status json_body
307
310
  ret = Comet::CometAPIResponseMessage.new
@@ -325,7 +328,7 @@ module Comet
325
328
 
326
329
  submit_params['TargetUser'] = target_user
327
330
 
328
- body = perform_request('/api/v1/admin/admin-user/delete', submit_params)
331
+ body = perform_request('api/v1/admin/admin-user/delete', submit_params)
329
332
  json_body = JSON.parse body
330
333
  check_status json_body
331
334
  ret = Comet::CometAPIResponseMessage.new
@@ -343,7 +346,7 @@ module Comet
343
346
  #
344
347
  # @return [Array<Comet::AllowedAdminUser>]
345
348
  def admin_admin_user_list
346
- body = perform_request('/api/v1/admin/admin-user/list')
349
+ body = perform_request('api/v1/admin/admin-user/list')
347
350
  json_body = JSON.parse body
348
351
  check_status json_body
349
352
  if json_body.nil?
@@ -384,7 +387,7 @@ module Comet
384
387
  submit_params['TargetOrgID'] = target_org_id
385
388
  end
386
389
 
387
- body = perform_request('/api/v1/admin/admin-user/new', submit_params)
390
+ body = perform_request('api/v1/admin/admin-user/new', submit_params)
388
391
  json_body = JSON.parse body
389
392
  check_status json_body
390
393
  ret = Comet::CometAPIResponseMessage.new
@@ -402,7 +405,7 @@ module Comet
402
405
  #
403
406
  # @return [Hash{Number => Comet::AvailableDownload}]
404
407
  def admin_branding_available_platforms
405
- body = perform_request('/api/v1/admin/branding/available-platforms')
408
+ body = perform_request('api/v1/admin/branding/available-platforms')
406
409
  json_body = JSON.parse body
407
410
  check_status json_body
408
411
  ret = {}
@@ -441,7 +444,7 @@ module Comet
441
444
  submit_params['SelfAddress'] = self_address
442
445
  end
443
446
 
444
- perform_request('/api/v1/admin/branding/generate-client/by-platform', submit_params)
447
+ perform_request('api/v1/admin/branding/generate-client/by-platform', submit_params)
445
448
  end
446
449
 
447
450
  # AdminBrandingGenerateClientLinuxgeneric
@@ -464,7 +467,7 @@ module Comet
464
467
  submit_params['SelfAddress'] = self_address
465
468
  end
466
469
 
467
- perform_request('/api/v1/admin/branding/generate-client/linuxgeneric', submit_params)
470
+ perform_request('api/v1/admin/branding/generate-client/linuxgeneric', submit_params)
468
471
  end
469
472
 
470
473
  # AdminBrandingGenerateClientMacosX8664
@@ -487,7 +490,7 @@ module Comet
487
490
  submit_params['SelfAddress'] = self_address
488
491
  end
489
492
 
490
- perform_request('/api/v1/admin/branding/generate-client/macos-x86_64', submit_params)
493
+ perform_request('api/v1/admin/branding/generate-client/macos-x86_64', submit_params)
491
494
  end
492
495
 
493
496
  # AdminBrandingGenerateClientTest
@@ -514,7 +517,7 @@ module Comet
514
517
  submit_params['SelfAddress'] = self_address
515
518
  end
516
519
 
517
- body = perform_request('/api/v1/admin/branding/generate-client/test', submit_params)
520
+ body = perform_request('api/v1/admin/branding/generate-client/test', submit_params)
518
521
  json_body = JSON.parse body
519
522
  check_status json_body
520
523
  ret = Comet::CometAPIResponseMessage.new
@@ -543,7 +546,7 @@ module Comet
543
546
  submit_params['SelfAddress'] = self_address
544
547
  end
545
548
 
546
- perform_request('/api/v1/admin/branding/generate-client/windows-anycpu-exe', submit_params)
549
+ perform_request('api/v1/admin/branding/generate-client/windows-anycpu-exe', submit_params)
547
550
  end
548
551
 
549
552
  # AdminBrandingGenerateClientWindowsAnycpuZip
@@ -567,7 +570,7 @@ module Comet
567
570
  submit_params['SelfAddress'] = self_address
568
571
  end
569
572
 
570
- perform_request('/api/v1/admin/branding/generate-client/windows-anycpu-zip', submit_params)
573
+ perform_request('api/v1/admin/branding/generate-client/windows-anycpu-zip', submit_params)
571
574
  end
572
575
 
573
576
  # AdminBrandingGenerateClientWindowsX8632Exe
@@ -591,7 +594,7 @@ module Comet
591
594
  submit_params['SelfAddress'] = self_address
592
595
  end
593
596
 
594
- perform_request('/api/v1/admin/branding/generate-client/windows-x86_32-exe', submit_params)
597
+ perform_request('api/v1/admin/branding/generate-client/windows-x86_32-exe', submit_params)
595
598
  end
596
599
 
597
600
  # AdminBrandingGenerateClientWindowsX8632Zip
@@ -615,7 +618,7 @@ module Comet
615
618
  submit_params['SelfAddress'] = self_address
616
619
  end
617
620
 
618
- perform_request('/api/v1/admin/branding/generate-client/windows-x86_32-zip', submit_params)
621
+ perform_request('api/v1/admin/branding/generate-client/windows-x86_32-zip', submit_params)
619
622
  end
620
623
 
621
624
  # AdminBrandingGenerateClientWindowsX8664Exe
@@ -639,7 +642,7 @@ module Comet
639
642
  submit_params['SelfAddress'] = self_address
640
643
  end
641
644
 
642
- perform_request('/api/v1/admin/branding/generate-client/windows-x86_64-exe', submit_params)
645
+ perform_request('api/v1/admin/branding/generate-client/windows-x86_64-exe', submit_params)
643
646
  end
644
647
 
645
648
  # AdminBrandingGenerateClientWindowsX8664Zip
@@ -663,7 +666,7 @@ module Comet
663
666
  submit_params['SelfAddress'] = self_address
664
667
  end
665
668
 
666
- perform_request('/api/v1/admin/branding/generate-client/windows-x86_64-zip', submit_params)
669
+ perform_request('api/v1/admin/branding/generate-client/windows-x86_64-zip', submit_params)
667
670
  end
668
671
 
669
672
  # AdminBulletinSubmit
@@ -685,7 +688,7 @@ module Comet
685
688
 
686
689
  submit_params['Content'] = content
687
690
 
688
- body = perform_request('/api/v1/admin/bulletin/submit', submit_params)
691
+ body = perform_request('api/v1/admin/bulletin/submit', submit_params)
689
692
  json_body = JSON.parse body
690
693
  check_status json_body
691
694
  ret = Comet::CometAPIResponseMessage.new
@@ -703,7 +706,7 @@ module Comet
703
706
  #
704
707
  # @return [Comet::ConstellationCheckReport]
705
708
  def admin_constellation_last_report
706
- body = perform_request('/api/v1/admin/constellation/last-report')
709
+ body = perform_request('api/v1/admin/constellation/last-report')
707
710
  json_body = JSON.parse body
708
711
  check_status json_body
709
712
  ret = Comet::ConstellationCheckReport.new
@@ -721,7 +724,7 @@ module Comet
721
724
  #
722
725
  # @return [Comet::ConstellationCheckReport]
723
726
  def admin_constellation_new_report
724
- body = perform_request('/api/v1/admin/constellation/new-report')
727
+ body = perform_request('api/v1/admin/constellation/new-report')
725
728
  json_body = JSON.parse body
726
729
  check_status json_body
727
730
  ret = Comet::ConstellationCheckReport.new
@@ -739,7 +742,7 @@ module Comet
739
742
  #
740
743
  # @return [Comet::CometAPIResponseMessage]
741
744
  def admin_constellation_prune_now
742
- body = perform_request('/api/v1/admin/constellation/prune-now')
745
+ body = perform_request('api/v1/admin/constellation/prune-now')
743
746
  json_body = JSON.parse body
744
747
  check_status json_body
745
748
  ret = Comet::CometAPIResponseMessage.new
@@ -757,7 +760,7 @@ module Comet
757
760
  #
758
761
  # @return [Comet::ConstellationStatusAPIResponse]
759
762
  def admin_constellation_status
760
- body = perform_request('/api/v1/admin/constellation/status')
763
+ body = perform_request('api/v1/admin/constellation/status')
761
764
  json_body = JSON.parse body
762
765
  check_status json_body
763
766
  ret = Comet::ConstellationStatusAPIResponse.new
@@ -791,7 +794,7 @@ module Comet
791
794
  submit_params['Server'] = server
792
795
  end
793
796
 
794
- body = perform_request('/api/v1/admin/create-install-token', submit_params)
797
+ body = perform_request('api/v1/admin/create-install-token', submit_params)
795
798
  json_body = JSON.parse body
796
799
  check_status json_body
797
800
  ret = Comet::InstallTokenResponse.new
@@ -823,7 +826,7 @@ module Comet
823
826
  submit_params['UninstallConfig'] = uninstall_config.to_json
824
827
  end
825
828
 
826
- body = perform_request('/api/v1/admin/delete-user', submit_params)
829
+ body = perform_request('api/v1/admin/delete-user', submit_params)
827
830
  json_body = JSON.parse body
828
831
  check_status json_body
829
832
  ret = Comet::CometAPIResponseMessage.new
@@ -846,7 +849,7 @@ module Comet
846
849
 
847
850
  submit_params['TargetUser'] = target_user
848
851
 
849
- body = perform_request('/api/v1/admin/disable-user-totp', submit_params)
852
+ body = perform_request('api/v1/admin/disable-user-totp', submit_params)
850
853
  json_body = JSON.parse body
851
854
  check_status json_body
852
855
  ret = Comet::CometAPIResponseMessage.new
@@ -874,7 +877,7 @@ module Comet
874
877
 
875
878
  submit_params['Destination'] = destination
876
879
 
877
- body = perform_request('/api/v1/admin/dispatcher/apply-retention-rules', submit_params)
880
+ body = perform_request('api/v1/admin/dispatcher/apply-retention-rules', submit_params)
878
881
  json_body = JSON.parse body
879
882
  check_status json_body
880
883
  ret = Comet::CometAPIResponseMessage.new
@@ -902,7 +905,7 @@ module Comet
902
905
 
903
906
  submit_params['Destination'] = destination
904
907
 
905
- body = perform_request('/api/v1/admin/dispatcher/deepverify-storage-vault', submit_params)
908
+ body = perform_request('api/v1/admin/dispatcher/deepverify-storage-vault', submit_params)
906
909
  json_body = JSON.parse body
907
910
  check_status json_body
908
911
  ret = Comet::CometAPIResponseMessage.new
@@ -933,7 +936,7 @@ module Comet
933
936
 
934
937
  submit_params['SnapshotID'] = snapshot_id
935
938
 
936
- body = perform_request('/api/v1/admin/dispatcher/delete-snapshot', submit_params)
939
+ body = perform_request('api/v1/admin/dispatcher/delete-snapshot', submit_params)
937
940
  json_body = JSON.parse body
938
941
  check_status json_body
939
942
  ret = Comet::CometAPIResponseMessage.new
@@ -957,7 +960,7 @@ module Comet
957
960
 
958
961
  submit_params['TargetID'] = target_id
959
962
 
960
- body = perform_request('/api/v1/admin/dispatcher/drop-connection', submit_params)
963
+ body = perform_request('api/v1/admin/dispatcher/drop-connection', submit_params)
961
964
  json_body = JSON.parse body
962
965
  check_status json_body
963
966
  ret = Comet::CometAPIResponseMessage.new
@@ -985,7 +988,7 @@ module Comet
985
988
 
986
989
  submit_params['ImportSourceID'] = import_source_id
987
990
 
988
- body = perform_request('/api/v1/admin/dispatcher/import-apply', submit_params)
991
+ body = perform_request('api/v1/admin/dispatcher/import-apply', submit_params)
989
992
  json_body = JSON.parse body
990
993
  check_status json_body
991
994
  ret = Comet::CometAPIResponseMessage.new
@@ -1009,7 +1012,7 @@ module Comet
1009
1012
 
1010
1013
  submit_params['TargetID'] = target_id
1011
1014
 
1012
- body = perform_request('/api/v1/admin/dispatcher/kill-process', submit_params)
1015
+ body = perform_request('api/v1/admin/dispatcher/kill-process', submit_params)
1013
1016
  json_body = JSON.parse body
1014
1017
  check_status json_body
1015
1018
  ret = Comet::CometAPIResponseMessage.new
@@ -1026,7 +1029,7 @@ module Comet
1026
1029
  #
1027
1030
  # @return [Hash{String => Comet::LiveUserConnection}]
1028
1031
  def admin_dispatcher_list_active
1029
- body = perform_request('/api/v1/admin/dispatcher/list-active')
1032
+ body = perform_request('api/v1/admin/dispatcher/list-active')
1030
1033
  json_body = JSON.parse body
1031
1034
  check_status json_body
1032
1035
  ret = {}
@@ -1057,7 +1060,7 @@ module Comet
1057
1060
 
1058
1061
  submit_params['TargetID'] = target_id
1059
1062
 
1060
- body = perform_request('/api/v1/admin/dispatcher/refetch-profile', submit_params)
1063
+ body = perform_request('api/v1/admin/dispatcher/refetch-profile', submit_params)
1061
1064
  json_body = JSON.parse body
1062
1065
  check_status json_body
1063
1066
  ret = Comet::CometAPIResponseMessage.new
@@ -1085,7 +1088,7 @@ module Comet
1085
1088
 
1086
1089
  submit_params['Destination'] = destination
1087
1090
 
1088
- body = perform_request('/api/v1/admin/dispatcher/reindex-storage-vault', submit_params)
1091
+ body = perform_request('api/v1/admin/dispatcher/reindex-storage-vault', submit_params)
1089
1092
  json_body = JSON.parse body
1090
1093
  check_status json_body
1091
1094
  ret = Comet::CometAPIResponseMessage.new
@@ -1108,7 +1111,7 @@ module Comet
1108
1111
 
1109
1112
  submit_params['TargetID'] = target_id
1110
1113
 
1111
- body = perform_request('/api/v1/admin/dispatcher/request-browse-disk-drives', submit_params)
1114
+ body = perform_request('api/v1/admin/dispatcher/request-browse-disk-drives', submit_params)
1112
1115
  json_body = JSON.parse body
1113
1116
  check_status json_body
1114
1117
  ret = Comet::BrowseDiskDrivesResponse.new
@@ -1131,7 +1134,7 @@ module Comet
1131
1134
 
1132
1135
  submit_params['TargetID'] = target_id
1133
1136
 
1134
- body = perform_request('/api/v1/admin/dispatcher/request-browse-exchange-edb', submit_params)
1137
+ body = perform_request('api/v1/admin/dispatcher/request-browse-exchange-edb', submit_params)
1135
1138
  json_body = JSON.parse body
1136
1139
  check_status json_body
1137
1140
  ret = Comet::BrowseEDBResponse.new
@@ -1154,7 +1157,7 @@ module Comet
1154
1157
 
1155
1158
  submit_params['TargetID'] = target_id
1156
1159
 
1157
- body = perform_request('/api/v1/admin/dispatcher/request-browse-hyperv', submit_params)
1160
+ body = perform_request('api/v1/admin/dispatcher/request-browse-hyperv', submit_params)
1158
1161
  json_body = JSON.parse body
1159
1162
  check_status json_body
1160
1163
  ret = Comet::BrowseHVResponse.new
@@ -1177,7 +1180,7 @@ module Comet
1177
1180
 
1178
1181
  submit_params['TargetID'] = target_id
1179
1182
 
1180
- body = perform_request('/api/v1/admin/dispatcher/request-browse-vss-aaw', submit_params)
1183
+ body = perform_request('api/v1/admin/dispatcher/request-browse-vss-aaw', submit_params)
1181
1184
  json_body = JSON.parse body
1182
1185
  check_status json_body
1183
1186
  ret = Comet::BrowseVSSResponse.new
@@ -1207,7 +1210,7 @@ module Comet
1207
1210
  submit_params['Path'] = path
1208
1211
  end
1209
1212
 
1210
- body = perform_request('/api/v1/admin/dispatcher/request-filesystem-objects', submit_params)
1213
+ body = perform_request('api/v1/admin/dispatcher/request-filesystem-objects', submit_params)
1211
1214
  json_body = JSON.parse body
1212
1215
  check_status json_body
1213
1216
  if json_body.nil?
@@ -1237,7 +1240,7 @@ module Comet
1237
1240
 
1238
1241
  submit_params['TargetID'] = target_id
1239
1242
 
1240
- body = perform_request('/api/v1/admin/dispatcher/request-import-sources', submit_params)
1243
+ body = perform_request('api/v1/admin/dispatcher/request-import-sources', submit_params)
1241
1244
  json_body = JSON.parse body
1242
1245
  check_status json_body
1243
1246
  ret = Comet::DispatcherAdminSourcesResponse.new
@@ -1275,7 +1278,7 @@ module Comet
1275
1278
  submit_params['TreeID'] = tree_id
1276
1279
  end
1277
1280
 
1278
- body = perform_request('/api/v1/admin/dispatcher/request-stored-objects', submit_params)
1281
+ body = perform_request('api/v1/admin/dispatcher/request-stored-objects', submit_params)
1279
1282
  json_body = JSON.parse body
1280
1283
  check_status json_body
1281
1284
  ret = Comet::DispatcherStoredObjectsResponse.new
@@ -1302,7 +1305,7 @@ module Comet
1302
1305
 
1303
1306
  submit_params['Destination'] = destination
1304
1307
 
1305
- body = perform_request('/api/v1/admin/dispatcher/request-vault-snapshots', submit_params)
1308
+ body = perform_request('api/v1/admin/dispatcher/request-vault-snapshots', submit_params)
1306
1309
  json_body = JSON.parse body
1307
1310
  check_status json_body
1308
1311
  ret = Comet::DispatcherVaultSnapshotsResponse.new
@@ -1329,7 +1332,7 @@ module Comet
1329
1332
 
1330
1333
  submit_params['BackupRule'] = backup_rule
1331
1334
 
1332
- body = perform_request('/api/v1/admin/dispatcher/run-backup', submit_params)
1335
+ body = perform_request('api/v1/admin/dispatcher/run-backup', submit_params)
1333
1336
  json_body = JSON.parse body
1334
1337
  check_status json_body
1335
1338
  ret = Comet::CometAPIResponseMessage.new
@@ -1366,7 +1369,7 @@ module Comet
1366
1369
  submit_params['Options'] = options.to_json
1367
1370
  end
1368
1371
 
1369
- body = perform_request('/api/v1/admin/dispatcher/run-backup-custom', submit_params)
1372
+ body = perform_request('api/v1/admin/dispatcher/run-backup-custom', submit_params)
1370
1373
  json_body = JSON.parse body
1371
1374
  check_status json_body
1372
1375
  ret = Comet::CometAPIResponseMessage.new
@@ -1414,7 +1417,7 @@ module Comet
1414
1417
  submit_params['Paths'] = paths.to_json
1415
1418
  end
1416
1419
 
1417
- body = perform_request('/api/v1/admin/dispatcher/run-restore', submit_params)
1420
+ body = perform_request('api/v1/admin/dispatcher/run-restore', submit_params)
1418
1421
  json_body = JSON.parse body
1419
1422
  check_status json_body
1420
1423
  ret = Comet::CometAPIResponseMessage.new
@@ -1462,7 +1465,7 @@ module Comet
1462
1465
  submit_params['Paths'] = paths.to_json
1463
1466
  end
1464
1467
 
1465
- body = perform_request('/api/v1/admin/dispatcher/run-restore-custom', submit_params)
1468
+ body = perform_request('api/v1/admin/dispatcher/run-restore-custom', submit_params)
1466
1469
  json_body = JSON.parse body
1467
1470
  check_status json_body
1468
1471
  ret = Comet::CometAPIResponseMessage.new
@@ -1487,7 +1490,7 @@ module Comet
1487
1490
  submit_params['TargetID'] = target_id
1488
1491
  submit_params['RemoveConfigFile'] = (remove_config_file ? 1 : 0)
1489
1492
 
1490
- body = perform_request('/api/v1/admin/dispatcher/uninstall-software', submit_params)
1493
+ body = perform_request('api/v1/admin/dispatcher/uninstall-software', submit_params)
1491
1494
  json_body = JSON.parse body
1492
1495
  check_status json_body
1493
1496
  ret = Comet::CometAPIResponseMessage.new
@@ -1516,7 +1519,7 @@ module Comet
1516
1519
 
1517
1520
  submit_params['Destination'] = destination
1518
1521
 
1519
- body = perform_request('/api/v1/admin/dispatcher/unlock', submit_params)
1522
+ body = perform_request('api/v1/admin/dispatcher/unlock', submit_params)
1520
1523
  json_body = JSON.parse body
1521
1524
  check_status json_body
1522
1525
  ret = Comet::CometAPIResponseMessage.new
@@ -1544,7 +1547,7 @@ module Comet
1544
1547
 
1545
1548
  submit_params['NewURL'] = new_url
1546
1549
 
1547
- body = perform_request('/api/v1/admin/dispatcher/update-login-url', submit_params)
1550
+ body = perform_request('api/v1/admin/dispatcher/update-login-url', submit_params)
1548
1551
  json_body = JSON.parse body
1549
1552
  check_status json_body
1550
1553
  ret = Comet::CometAPIResponseMessage.new
@@ -1576,7 +1579,7 @@ module Comet
1576
1579
  submit_params['SelfAddress'] = self_address
1577
1580
  end
1578
1581
 
1579
- body = perform_request('/api/v1/admin/dispatcher/update-software', submit_params)
1582
+ body = perform_request('api/v1/admin/dispatcher/update-software', submit_params)
1580
1583
  json_body = JSON.parse body
1581
1584
  check_status json_body
1582
1585
  ret = Comet::CometAPIResponseMessage.new
@@ -1599,7 +1602,7 @@ module Comet
1599
1602
 
1600
1603
  submit_params['JobID'] = job_id
1601
1604
 
1602
- perform_request('/api/v1/admin/get-job-log', submit_params)
1605
+ perform_request('api/v1/admin/get-job-log', submit_params)
1603
1606
  end
1604
1607
 
1605
1608
  # AdminGetJobLogEntries
@@ -1617,7 +1620,7 @@ module Comet
1617
1620
 
1618
1621
  submit_params['JobID'] = job_id
1619
1622
 
1620
- body = perform_request('/api/v1/admin/get-job-log-entries', submit_params)
1623
+ body = perform_request('api/v1/admin/get-job-log-entries', submit_params)
1621
1624
  json_body = JSON.parse body
1622
1625
  check_status json_body
1623
1626
  if json_body.nil?
@@ -1647,7 +1650,7 @@ module Comet
1647
1650
 
1648
1651
  submit_params['JobID'] = job_id
1649
1652
 
1650
- body = perform_request('/api/v1/admin/get-job-properties', submit_params)
1653
+ body = perform_request('api/v1/admin/get-job-properties', submit_params)
1651
1654
  json_body = JSON.parse body
1652
1655
  check_status json_body
1653
1656
  ret = Comet::BackupJobDetail.new
@@ -1665,7 +1668,7 @@ module Comet
1665
1668
  #
1666
1669
  # @return [Array<Comet::BackupJobDetail>]
1667
1670
  def admin_get_jobs_all
1668
- body = perform_request('/api/v1/admin/get-jobs-all')
1671
+ body = perform_request('api/v1/admin/get-jobs-all')
1669
1672
  json_body = JSON.parse body
1670
1673
  check_status json_body
1671
1674
  if json_body.nil?
@@ -1696,7 +1699,7 @@ module Comet
1696
1699
 
1697
1700
  submit_params['Query'] = query.to_json
1698
1701
 
1699
- body = perform_request('/api/v1/admin/get-jobs-for-custom-search', submit_params)
1702
+ body = perform_request('api/v1/admin/get-jobs-for-custom-search', submit_params)
1700
1703
  json_body = JSON.parse body
1701
1704
  check_status json_body
1702
1705
  if json_body.nil?
@@ -1737,7 +1740,7 @@ module Comet
1737
1740
 
1738
1741
  submit_params['End'] = end_value
1739
1742
 
1740
- body = perform_request('/api/v1/admin/get-jobs-for-date-range', submit_params)
1743
+ body = perform_request('api/v1/admin/get-jobs-for-date-range', submit_params)
1741
1744
  json_body = JSON.parse body
1742
1745
  check_status json_body
1743
1746
  if json_body.nil?
@@ -1768,7 +1771,7 @@ module Comet
1768
1771
 
1769
1772
  submit_params['TargetUser'] = target_user
1770
1773
 
1771
- body = perform_request('/api/v1/admin/get-jobs-for-user', submit_params)
1774
+ body = perform_request('api/v1/admin/get-jobs-for-user', submit_params)
1772
1775
  json_body = JSON.parse body
1773
1776
  check_status json_body
1774
1777
  if json_body.nil?
@@ -1793,7 +1796,7 @@ module Comet
1793
1796
  #
1794
1797
  # @return [Array<Comet::BackupJobDetail>]
1795
1798
  def admin_get_jobs_recent
1796
- body = perform_request('/api/v1/admin/get-jobs-recent')
1799
+ body = perform_request('api/v1/admin/get-jobs-recent')
1797
1800
  json_body = JSON.parse body
1798
1801
  check_status json_body
1799
1802
  if json_body.nil?
@@ -1823,7 +1826,7 @@ module Comet
1823
1826
 
1824
1827
  submit_params['TargetUser'] = target_user
1825
1828
 
1826
- body = perform_request('/api/v1/admin/get-user-profile', submit_params)
1829
+ body = perform_request('api/v1/admin/get-user-profile', submit_params)
1827
1830
  json_body = JSON.parse body
1828
1831
  check_status json_body
1829
1832
  ret = Comet::UserProfileConfig.new
@@ -1848,7 +1851,7 @@ module Comet
1848
1851
 
1849
1852
  submit_params['TargetUser'] = target_user
1850
1853
 
1851
- body = perform_request('/api/v1/admin/get-user-profile-and-hash', submit_params)
1854
+ body = perform_request('api/v1/admin/get-user-profile-and-hash', submit_params)
1852
1855
  json_body = JSON.parse body
1853
1856
  check_status json_body
1854
1857
  ret = Comet::GetProfileAndHashResponseMessage.new
@@ -1873,7 +1876,7 @@ module Comet
1873
1876
 
1874
1877
  submit_params['TargetUser'] = target_user
1875
1878
 
1876
- body = perform_request('/api/v1/admin/get-user-profile-hash', submit_params)
1879
+ body = perform_request('api/v1/admin/get-user-profile-hash', submit_params)
1877
1880
  json_body = JSON.parse body
1878
1881
  check_status json_body
1879
1882
  ret = Comet::GetProfileHashResponseMessage.new
@@ -1902,7 +1905,7 @@ module Comet
1902
1905
 
1903
1906
  submit_params['JobID'] = job_id
1904
1907
 
1905
- body = perform_request('/api/v1/admin/job/cancel', submit_params)
1908
+ body = perform_request('api/v1/admin/job/cancel', submit_params)
1906
1909
  json_body = JSON.parse body
1907
1910
  check_status json_body
1908
1911
  ret = Comet::CometAPIResponseMessage.new
@@ -1919,7 +1922,7 @@ module Comet
1919
1922
  #
1920
1923
  # @return [Array<String>]
1921
1924
  def admin_list_users
1922
- body = perform_request('/api/v1/admin/list-users')
1925
+ body = perform_request('api/v1/admin/list-users')
1923
1926
  json_body = JSON.parse body
1924
1927
  check_status json_body
1925
1928
  if json_body.nil?
@@ -1944,7 +1947,7 @@ module Comet
1944
1947
  #
1945
1948
  # @return [Hash{String => Comet::UserProfileConfig}]
1946
1949
  def admin_list_users_full
1947
- body = perform_request('/api/v1/admin/list-users-full')
1950
+ body = perform_request('api/v1/admin/list-users-full')
1948
1951
  json_body = JSON.parse body
1949
1952
  check_status json_body
1950
1953
  ret = {}
@@ -1968,7 +1971,7 @@ module Comet
1968
1971
  #
1969
1972
  # @return [Comet::ServerConfigOptionsBrandingFragment]
1970
1973
  def admin_meta_branding_config_get
1971
- body = perform_request('/api/v1/admin/meta/branding-config/get')
1974
+ body = perform_request('api/v1/admin/meta/branding-config/get')
1972
1975
  json_body = JSON.parse body
1973
1976
  check_status json_body
1974
1977
  ret = Comet::ServerConfigOptionsBrandingFragment.new
@@ -1992,7 +1995,7 @@ module Comet
1992
1995
 
1993
1996
  submit_params['BrandingConfig'] = branding_config.to_json
1994
1997
 
1995
- body = perform_request('/api/v1/admin/meta/branding-config/set', submit_params)
1998
+ body = perform_request('api/v1/admin/meta/branding-config/set', submit_params)
1996
1999
  json_body = JSON.parse body
1997
2000
  check_status json_body
1998
2001
  ret = Comet::CometAPIResponseMessage.new
@@ -2009,7 +2012,7 @@ module Comet
2009
2012
  #
2010
2013
  # @return [Comet::ServerConfigOptionsSoftwareBuildRoleFragment]
2011
2014
  def admin_meta_build_config_get
2012
- body = perform_request('/api/v1/admin/meta/build-config/get')
2015
+ body = perform_request('api/v1/admin/meta/build-config/get')
2013
2016
  json_body = JSON.parse body
2014
2017
  check_status json_body
2015
2018
  ret = Comet::ServerConfigOptionsSoftwareBuildRoleFragment.new
@@ -2032,7 +2035,7 @@ module Comet
2032
2035
 
2033
2036
  submit_params['SoftwareBuildRoleConfig'] = software_build_role_config.to_json
2034
2037
 
2035
- body = perform_request('/api/v1/admin/meta/build-config/set', submit_params)
2038
+ body = perform_request('api/v1/admin/meta/build-config/set', submit_params)
2036
2039
  json_body = JSON.parse body
2037
2040
  check_status json_body
2038
2041
  ret = Comet::CometAPIResponseMessage.new
@@ -2049,7 +2052,7 @@ module Comet
2049
2052
  #
2050
2053
  # @return [Array<Number>]
2051
2054
  def admin_meta_list_available_log_days
2052
- body = perform_request('/api/v1/admin/meta/list-available-log-days')
2055
+ body = perform_request('api/v1/admin/meta/list-available-log-days')
2053
2056
  json_body = JSON.parse body
2054
2057
  check_status json_body
2055
2058
  if json_body.nil?
@@ -2082,7 +2085,7 @@ module Comet
2082
2085
 
2083
2086
  submit_params['Log'] = log
2084
2087
 
2085
- perform_request('/api/v1/admin/meta/read-logs', submit_params)
2088
+ perform_request('api/v1/admin/meta/read-logs', submit_params)
2086
2089
  end
2087
2090
 
2088
2091
  # AdminMetaRemoteStorageVaultGet
@@ -2094,7 +2097,7 @@ module Comet
2094
2097
  #
2095
2098
  # @return [Array<Comet::RemoteStorageOption>]
2096
2099
  def admin_meta_remote_storage_vault_get
2097
- body = perform_request('/api/v1/admin/meta/remote-storage-vault/get')
2100
+ body = perform_request('api/v1/admin/meta/remote-storage-vault/get')
2098
2101
  json_body = JSON.parse body
2099
2102
  check_status json_body
2100
2103
  if json_body.nil?
@@ -2124,7 +2127,7 @@ module Comet
2124
2127
 
2125
2128
  submit_params['RemoteStorageOptions'] = remote_storage_options.to_json
2126
2129
 
2127
- body = perform_request('/api/v1/admin/meta/remote-storage-vault/set', submit_params)
2130
+ body = perform_request('api/v1/admin/meta/remote-storage-vault/set', submit_params)
2128
2131
  json_body = JSON.parse body
2129
2132
  check_status json_body
2130
2133
  ret = Comet::CometAPIResponseMessage.new
@@ -2147,7 +2150,7 @@ module Comet
2147
2150
 
2148
2151
  submit_params['Hash'] = hash
2149
2152
 
2150
- perform_request('/api/v1/admin/meta/resource/get', submit_params)
2153
+ perform_request('api/v1/admin/meta/resource/get', submit_params)
2151
2154
  end
2152
2155
 
2153
2156
  # AdminMetaRestartService
@@ -2163,7 +2166,7 @@ module Comet
2163
2166
  #
2164
2167
  # @return [Comet::CometAPIResponseMessage]
2165
2168
  def admin_meta_restart_service
2166
- body = perform_request('/api/v1/admin/meta/restart-service')
2169
+ body = perform_request('api/v1/admin/meta/restart-service')
2167
2170
  json_body = JSON.parse body
2168
2171
  check_status json_body
2169
2172
  ret = Comet::CometAPIResponseMessage.new
@@ -2192,7 +2195,7 @@ module Comet
2192
2195
 
2193
2196
  submit_params['Recipient'] = recipient
2194
2197
 
2195
- body = perform_request('/api/v1/admin/meta/send-test-email', submit_params)
2198
+ body = perform_request('api/v1/admin/meta/send-test-email', submit_params)
2196
2199
  json_body = JSON.parse body
2197
2200
  check_status json_body
2198
2201
  ret = Comet::CometAPIResponseMessage.new
@@ -2210,7 +2213,7 @@ module Comet
2210
2213
  #
2211
2214
  # @return [Comet::ServerConfigOptions]
2212
2215
  def admin_meta_server_config_get
2213
- body = perform_request('/api/v1/admin/meta/server-config/get')
2216
+ body = perform_request('api/v1/admin/meta/server-config/get')
2214
2217
  json_body = JSON.parse body
2215
2218
  check_status json_body
2216
2219
  ret = Comet::ServerConfigOptions.new
@@ -2229,7 +2232,7 @@ module Comet
2229
2232
  #
2230
2233
  # @return [Array<String>]
2231
2234
  def admin_meta_server_config_network_interfaces
2232
- body = perform_request('/api/v1/admin/meta/server-config/network-interfaces')
2235
+ body = perform_request('api/v1/admin/meta/server-config/network-interfaces')
2233
2236
  json_body = JSON.parse body
2234
2237
  check_status json_body
2235
2238
  if json_body.nil?
@@ -2264,7 +2267,7 @@ module Comet
2264
2267
 
2265
2268
  submit_params['Config'] = config.to_json
2266
2269
 
2267
- body = perform_request('/api/v1/admin/meta/server-config/set', submit_params)
2270
+ body = perform_request('api/v1/admin/meta/server-config/set', submit_params)
2268
2271
  json_body = JSON.parse body
2269
2272
  check_status json_body
2270
2273
  ret = Comet::CometAPIResponseMessage.new
@@ -2285,7 +2288,7 @@ module Comet
2285
2288
  #
2286
2289
  # @return [Comet::CometAPIResponseMessage]
2287
2290
  def admin_meta_shutdown_service
2288
- body = perform_request('/api/v1/admin/meta/shutdown-service')
2291
+ body = perform_request('api/v1/admin/meta/shutdown-service')
2289
2292
  json_body = JSON.parse body
2290
2293
  check_status json_body
2291
2294
  ret = Comet::CometAPIResponseMessage.new
@@ -2301,7 +2304,7 @@ module Comet
2301
2304
  #
2302
2305
  # @return [Comet::SoftwareUpdateNewsResponse]
2303
2306
  def admin_meta_software_update_news
2304
- body = perform_request('/api/v1/admin/meta/software-update-news')
2307
+ body = perform_request('api/v1/admin/meta/software-update-news')
2305
2308
  json_body = JSON.parse body
2306
2309
  check_status json_body
2307
2310
  ret = Comet::SoftwareUpdateNewsResponse.new
@@ -2322,7 +2325,7 @@ module Comet
2322
2325
  submit_params = {}
2323
2326
  submit_params['Simple'] = (simple ? 1 : 0)
2324
2327
 
2325
- body = perform_request('/api/v1/admin/meta/stats', submit_params)
2328
+ body = perform_request('api/v1/admin/meta/stats', submit_params)
2326
2329
  json_body = JSON.parse body
2327
2330
  check_status json_body
2328
2331
  ret = {}
@@ -2346,7 +2349,7 @@ module Comet
2346
2349
  #
2347
2350
  # @return [Comet::ServerMetaVersionInfo]
2348
2351
  def admin_meta_version
2349
- body = perform_request('/api/v1/admin/meta/version')
2352
+ body = perform_request('api/v1/admin/meta/version')
2350
2353
  json_body = JSON.parse body
2351
2354
  check_status json_body
2352
2355
  ret = Comet::ServerMetaVersionInfo.new
@@ -2362,7 +2365,7 @@ module Comet
2362
2365
  #
2363
2366
  # @return [Hash{String => Comet::WebhookOption}]
2364
2367
  def admin_meta_webhook_options_get
2365
- body = perform_request('/api/v1/admin/meta/webhook-options/get')
2368
+ body = perform_request('api/v1/admin/meta/webhook-options/get')
2366
2369
  json_body = JSON.parse body
2367
2370
  check_status json_body
2368
2371
  ret = {}
@@ -2392,7 +2395,7 @@ module Comet
2392
2395
 
2393
2396
  submit_params['WebhookOptions'] = webhook_options.to_json
2394
2397
 
2395
- body = perform_request('/api/v1/admin/meta/webhook-options/set', submit_params)
2398
+ body = perform_request('api/v1/admin/meta/webhook-options/set', submit_params)
2396
2399
  json_body = JSON.parse body
2397
2400
  check_status json_body
2398
2401
  ret = Comet::CometAPIResponseMessage.new
@@ -2409,7 +2412,7 @@ module Comet
2409
2412
  #
2410
2413
  # @return [Hash{String => Comet::NewsEntry}]
2411
2414
  def admin_news_get_all
2412
- body = perform_request('/api/v1/admin/news/get-all')
2415
+ body = perform_request('api/v1/admin/news/get-all')
2413
2416
  json_body = JSON.parse body
2414
2417
  check_status json_body
2415
2418
  ret = {}
@@ -2439,7 +2442,7 @@ module Comet
2439
2442
 
2440
2443
  submit_params['NewsItem'] = news_item
2441
2444
 
2442
- body = perform_request('/api/v1/admin/news/remove', submit_params)
2445
+ body = perform_request('api/v1/admin/news/remove', submit_params)
2443
2446
  json_body = JSON.parse body
2444
2447
  check_status json_body
2445
2448
  ret = Comet::CometAPIResponseMessage.new
@@ -2462,7 +2465,7 @@ module Comet
2462
2465
 
2463
2466
  submit_params['NewsContent'] = news_content
2464
2467
 
2465
- body = perform_request('/api/v1/admin/news/submit', submit_params)
2468
+ body = perform_request('api/v1/admin/news/submit', submit_params)
2466
2469
  json_body = JSON.parse body
2467
2470
  check_status json_body
2468
2471
  ret = Comet::CometAPIResponseMessage.new
@@ -2493,7 +2496,7 @@ module Comet
2493
2496
  submit_params['UninstallConfig'] = uninstall_config.to_json
2494
2497
  end
2495
2498
 
2496
- body = perform_request('/api/v1/admin/organization/delete', submit_params)
2499
+ body = perform_request('api/v1/admin/organization/delete', submit_params)
2497
2500
  json_body = JSON.parse body
2498
2501
  check_status json_body
2499
2502
  ret = Comet::OrganizationResponse.new
@@ -2510,7 +2513,7 @@ module Comet
2510
2513
  #
2511
2514
  # @return [Hash{String => Comet::Organization}]
2512
2515
  def admin_organization_list
2513
- body = perform_request('/api/v1/admin/organization/list')
2516
+ body = perform_request('api/v1/admin/organization/list')
2514
2517
  json_body = JSON.parse body
2515
2518
  check_status json_body
2516
2519
  ret = {}
@@ -2548,7 +2551,7 @@ module Comet
2548
2551
  submit_params['Organization'] = organization.to_json
2549
2552
  end
2550
2553
 
2551
- body = perform_request('/api/v1/admin/organization/set', submit_params)
2554
+ body = perform_request('api/v1/admin/organization/set', submit_params)
2552
2555
  json_body = JSON.parse body
2553
2556
  check_status json_body
2554
2557
  ret = Comet::OrganizationResponse.new
@@ -2571,7 +2574,7 @@ module Comet
2571
2574
 
2572
2575
  submit_params['PolicyID'] = policy_id
2573
2576
 
2574
- body = perform_request('/api/v1/admin/policies/delete', submit_params)
2577
+ body = perform_request('api/v1/admin/policies/delete', submit_params)
2575
2578
  json_body = JSON.parse body
2576
2579
  check_status json_body
2577
2580
  ret = Comet::CometAPIResponseMessage.new
@@ -2595,7 +2598,7 @@ module Comet
2595
2598
 
2596
2599
  submit_params['PolicyID'] = policy_id
2597
2600
 
2598
- body = perform_request('/api/v1/admin/policies/get', submit_params)
2601
+ body = perform_request('api/v1/admin/policies/get', submit_params)
2599
2602
  json_body = JSON.parse body
2600
2603
  check_status json_body
2601
2604
  ret = Comet::GetGroupPolicyResponse.new
@@ -2612,7 +2615,7 @@ module Comet
2612
2615
  #
2613
2616
  # @return [Hash{String => String}]
2614
2617
  def admin_policies_list
2615
- body = perform_request('/api/v1/admin/policies/list')
2618
+ body = perform_request('api/v1/admin/policies/list')
2616
2619
  json_body = JSON.parse body
2617
2620
  check_status json_body
2618
2621
  ret = {}
@@ -2637,7 +2640,7 @@ module Comet
2637
2640
  #
2638
2641
  # @return [Hash{String => Comet::GroupPolicy}]
2639
2642
  def admin_policies_list_full
2640
- body = perform_request('/api/v1/admin/policies/list-full')
2643
+ body = perform_request('api/v1/admin/policies/list-full')
2641
2644
  json_body = JSON.parse body
2642
2645
  check_status json_body
2643
2646
  ret = {}
@@ -2667,7 +2670,7 @@ module Comet
2667
2670
 
2668
2671
  submit_params['Policy'] = policy.to_json
2669
2672
 
2670
- body = perform_request('/api/v1/admin/policies/new', submit_params)
2673
+ body = perform_request('api/v1/admin/policies/new', submit_params)
2671
2674
  json_body = JSON.parse body
2672
2675
  check_status json_body
2673
2676
  ret = Comet::CreateGroupPolicyResponse.new
@@ -2702,7 +2705,7 @@ module Comet
2702
2705
  submit_params['CheckPolicyHash'] = check_policy_hash
2703
2706
  end
2704
2707
 
2705
- body = perform_request('/api/v1/admin/policies/set', submit_params)
2708
+ body = perform_request('api/v1/admin/policies/set', submit_params)
2706
2709
  json_body = JSON.parse body
2707
2710
  check_status json_body
2708
2711
  ret = Comet::CometAPIResponseMessage.new
@@ -2735,7 +2738,7 @@ module Comet
2735
2738
  submit_params['EmailAddress'] = email_address
2736
2739
  end
2737
2740
 
2738
- body = perform_request('/api/v1/admin/preview-user-email-report', submit_params)
2741
+ body = perform_request('api/v1/admin/preview-user-email-report', submit_params)
2739
2742
  json_body = JSON.parse body
2740
2743
  check_status json_body
2741
2744
  ret = Comet::EmailReportGeneratedPreview.new
@@ -2752,7 +2755,7 @@ module Comet
2752
2755
  #
2753
2756
  # @return [Array<Comet::ReplicatorStateAPIResponse>]
2754
2757
  def admin_replication_state
2755
- body = perform_request('/api/v1/admin/replication/state')
2758
+ body = perform_request('api/v1/admin/replication/state')
2756
2759
  json_body = JSON.parse body
2757
2760
  check_status json_body
2758
2761
  if json_body.nil?
@@ -2796,7 +2799,7 @@ module Comet
2796
2799
  submit_params['SelfAddress'] = self_address
2797
2800
  end
2798
2801
 
2799
- body = perform_request('/api/v1/admin/request-storage-vault', submit_params)
2802
+ body = perform_request('api/v1/admin/request-storage-vault', submit_params)
2800
2803
  json_body = JSON.parse body
2801
2804
  check_status json_body
2802
2805
  ret = Comet::RequestStorageVaultResponseMessage.new
@@ -2813,7 +2816,7 @@ module Comet
2813
2816
  #
2814
2817
  # @return [Hash{String => String}]
2815
2818
  def admin_request_storage_vault_providers
2816
- body = perform_request('/api/v1/admin/request-storage-vault-providers')
2819
+ body = perform_request('api/v1/admin/request-storage-vault-providers')
2817
2820
  json_body = JSON.parse body
2818
2821
  check_status json_body
2819
2822
  ret = {}
@@ -2853,7 +2856,7 @@ module Comet
2853
2856
 
2854
2857
  submit_params['OldPassword'] = old_password
2855
2858
 
2856
- body = perform_request('/api/v1/admin/reset-user-password', submit_params)
2859
+ body = perform_request('api/v1/admin/reset-user-password', submit_params)
2857
2860
  json_body = JSON.parse body
2858
2861
  check_status json_body
2859
2862
  ret = Comet::CometAPIResponseMessage.new
@@ -2881,7 +2884,7 @@ module Comet
2881
2884
 
2882
2885
  submit_params['TargetDevice'] = target_device
2883
2886
 
2884
- body = perform_request('/api/v1/admin/revoke-device', submit_params)
2887
+ body = perform_request('api/v1/admin/revoke-device', submit_params)
2885
2888
  json_body = JSON.parse body
2886
2889
  check_status json_body
2887
2890
  ret = Comet::CometAPIResponseMessage.new
@@ -2908,7 +2911,7 @@ module Comet
2908
2911
 
2909
2912
  submit_params['ProfileData'] = profile_data.to_json
2910
2913
 
2911
- body = perform_request('/api/v1/admin/set-user-profile', submit_params)
2914
+ body = perform_request('api/v1/admin/set-user-profile', submit_params)
2912
2915
  json_body = JSON.parse body
2913
2916
  check_status json_body
2914
2917
  ret = Comet::CometAPIResponseMessage.new
@@ -2941,7 +2944,7 @@ module Comet
2941
2944
 
2942
2945
  submit_params['RequireHash'] = require_hash
2943
2946
 
2944
- body = perform_request('/api/v1/admin/set-user-profile-hash', submit_params)
2947
+ body = perform_request('api/v1/admin/set-user-profile-hash', submit_params)
2945
2948
  json_body = JSON.parse body
2946
2949
  check_status json_body
2947
2950
  ret = Comet::CometAPIResponseMessage.new
@@ -2949,6 +2952,36 @@ module Comet
2949
2952
  ret
2950
2953
  end
2951
2954
 
2955
+ # AdminStorageBucketProperties
2956
+ #
2957
+ # Retrieve properties for a single bucket.
2958
+ # This API can also be used to refresh the size measurement for a single bucket by passing a valid AfterTimestamp parameter.
2959
+ #
2960
+ # You must supply administrator authentication credentials to use this API.
2961
+ # This API requires the Storage Role to be enabled.
2962
+ #
2963
+ # @param [String] bucket_id Bucket ID
2964
+ # @param [Number] after_timestamp (Optional) Allow a stale size measurement if it is at least as new as the supplied Unix timestamp. Timestamps in the future may produce a result clamped down to the Comet Server's current time. If not present, the size measurement may be arbitrarily stale.
2965
+ # @return [Comet::BucketProperties]
2966
+ def admin_storage_bucket_properties(bucket_id, after_timestamp = nil)
2967
+ submit_params = {}
2968
+ raise TypeError "'bucket_id' expected String, got #{bucket_id.class}" unless bucket_id.is_a? String
2969
+
2970
+ submit_params['BucketID'] = bucket_id
2971
+ unless after_timestamp.nil?
2972
+ raise TypeError "'after_timestamp' expected Numeric, got #{after_timestamp.class}" unless after_timestamp.is_a? Numeric
2973
+
2974
+ submit_params['AfterTimestamp'] = after_timestamp
2975
+ end
2976
+
2977
+ body = perform_request('api/v1/admin/storage/bucket-properties', submit_params)
2978
+ json_body = JSON.parse body
2979
+ check_status json_body
2980
+ ret = Comet::BucketProperties.new
2981
+ ret.from_hash(json_body)
2982
+ ret
2983
+ end
2984
+
2952
2985
  # AdminStorageDeleteBucket
2953
2986
  #
2954
2987
  # Delete a bucket.
@@ -2965,7 +2998,7 @@ module Comet
2965
2998
 
2966
2999
  submit_params['BucketID'] = bucket_id
2967
3000
 
2968
- body = perform_request('/api/v1/admin/storage/delete-bucket', submit_params)
3001
+ body = perform_request('api/v1/admin/storage/delete-bucket', submit_params)
2969
3002
  json_body = JSON.parse body
2970
3003
  check_status json_body
2971
3004
  ret = Comet::CometAPIResponseMessage.new
@@ -2982,15 +3015,17 @@ module Comet
2982
3015
  # This API requires the Storage Role to be enabled.
2983
3016
  # This API is only available for administrator accounts in the top-level Organization, not in any other Organization.
2984
3017
  #
2985
- # @param [String] bucket_id Selected bucket name
3018
+ # @param [String] bucket_id (Optional) (This parameter is not used)
2986
3019
  # @return [Comet::StorageFreeSpaceInfo]
2987
- def admin_storage_free_space(bucket_id)
3020
+ def admin_storage_free_space(bucket_id = nil)
2988
3021
  submit_params = {}
2989
- raise TypeError "'bucket_id' expected String, got #{bucket_id.class}" unless bucket_id.is_a? String
3022
+ unless bucket_id.nil?
3023
+ raise TypeError "'bucket_id' expected String, got #{bucket_id.class}" unless bucket_id.is_a? String
2990
3024
 
2991
- submit_params['BucketID'] = bucket_id
3025
+ submit_params['BucketID'] = bucket_id
3026
+ end
2992
3027
 
2993
- body = perform_request('/api/v1/admin/storage/free-space', submit_params)
3028
+ body = perform_request('api/v1/admin/storage/free-space', submit_params)
2994
3029
  json_body = JSON.parse body
2995
3030
  check_status json_body
2996
3031
  ret = Comet::StorageFreeSpaceInfo.new
@@ -3007,7 +3042,7 @@ module Comet
3007
3042
  #
3008
3043
  # @return [Hash{String => Comet::BucketProperties}]
3009
3044
  def admin_storage_list_buckets
3010
- body = perform_request('/api/v1/admin/storage/list-buckets')
3045
+ body = perform_request('api/v1/admin/storage/list-buckets')
3011
3046
  json_body = JSON.parse body
3012
3047
  check_status json_body
3013
3048
  ret = {}
@@ -3059,7 +3094,7 @@ module Comet
3059
3094
  submit_params['SetOrganizationID'] = set_organization_id
3060
3095
  end
3061
3096
 
3062
- body = perform_request('/api/v1/admin/storage/register-bucket', submit_params)
3097
+ body = perform_request('api/v1/admin/storage/register-bucket', submit_params)
3063
3098
  json_body = JSON.parse body
3064
3099
  check_status json_body
3065
3100
  ret = Comet::AddBucketResponseMessage.new
@@ -3084,7 +3119,7 @@ module Comet
3084
3119
 
3085
3120
  submit_params['Options'] = options.to_json
3086
3121
 
3087
- body = perform_request('/api/v1/admin/update-campaign/start', submit_params)
3122
+ body = perform_request('api/v1/admin/update-campaign/start', submit_params)
3088
3123
  json_body = JSON.parse body
3089
3124
  check_status json_body
3090
3125
  ret = Comet::CometAPIResponseMessage.new
@@ -3103,7 +3138,7 @@ module Comet
3103
3138
  #
3104
3139
  # @return [Comet::UpdateCampaignStatus]
3105
3140
  def admin_update_campaign_status
3106
- body = perform_request('/api/v1/admin/update-campaign/status')
3141
+ body = perform_request('api/v1/admin/update-campaign/status')
3107
3142
  json_body = JSON.parse body
3108
3143
  check_status json_body
3109
3144
  ret = Comet::UpdateCampaignStatus.new
@@ -3119,7 +3154,7 @@ module Comet
3119
3154
  #
3120
3155
  # @return [Comet::SessionKeyRegeneratedResponse]
3121
3156
  def hybrid_session_start
3122
- body = perform_request('/api/v1/hybrid/session/start')
3157
+ body = perform_request('api/v1/hybrid/session/start')
3123
3158
  json_body = JSON.parse body
3124
3159
  check_status json_body
3125
3160
  ret = Comet::SessionKeyRegeneratedResponse.new
@@ -3136,7 +3171,7 @@ module Comet
3136
3171
  #
3137
3172
  # @return [Comet::CometAPIResponseMessage]
3138
3173
  def user_web_session_revoke
3139
- body = perform_request('/api/v1/user/web/session/revoke')
3174
+ body = perform_request('api/v1/user/web/session/revoke')
3140
3175
  json_body = JSON.parse body
3141
3176
  check_status json_body
3142
3177
  ret = Comet::CometAPIResponseMessage.new
@@ -3153,7 +3188,7 @@ module Comet
3153
3188
  #
3154
3189
  # @return [Comet::SessionKeyRegeneratedResponse]
3155
3190
  def user_web_session_start
3156
- body = perform_request('/api/v1/user/web/session/start')
3191
+ body = perform_request('api/v1/user/web/session/start')
3157
3192
  json_body = JSON.parse body
3158
3193
  check_status json_body
3159
3194
  ret = Comet::SessionKeyRegeneratedResponse.new
@@ -135,6 +135,15 @@ module Comet
135
135
  # EmailReportType:
136
136
  EMAILREPORTTYPE_SUMMARY = 1
137
137
 
138
+ # FtpsModeType:
139
+ FTPS_MODE_PLAINTEXT = 0
140
+
141
+ # FtpsModeType:
142
+ FTPS_MODE_IMPLICIT = 1
143
+
144
+ # FtpsModeType:
145
+ FTPS_MODE_EXPLICIT = 2
146
+
138
147
  # Severity:
139
148
  SEVERITY_INFO = 'I'
140
149
 
@@ -356,13 +365,13 @@ module Comet
356
365
 
357
366
  DEFAULT_TIMEZONE = 'UTC'
358
367
 
359
- APPLICATION_VERSION = '20.9.1'
368
+ APPLICATION_VERSION = '20.9.6'
360
369
 
361
370
  APPLICATION_VERSION_MAJOR = 20
362
371
 
363
372
  APPLICATION_VERSION_MINOR = 9
364
373
 
365
- APPLICATION_VERSION_REVISION = 1
374
+ APPLICATION_VERSION_REVISION = 6
366
375
 
367
376
  RELEASE_CODENAME = 'Voyager'
368
377
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comet_backup_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Comet Licensing Ltd.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-16 00:00:00.000000000 Z
11
+ date: 2020-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler