comet_backup_ruby_sdk 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +5 -0
- data/CHANGELOG.md +13 -0
- data/Gemfile +0 -0
- data/Gemfile.lock +1 -1
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/RELEASING.md +3 -3
- data/Rakefile +0 -0
- data/comet_backup_ruby_sdk.gemspec +1 -1
- data/lib/comet/api_response_error.rb +0 -0
- data/lib/comet/comet_server.rb +30 -2
- data/lib/comet/definitions.rb +26 -4
- data/lib/comet/models/add_bucket_response_message.rb +0 -0
- data/lib/comet/models/admin_account_properties_response.rb +0 -0
- data/lib/comet/models/admin_email_options.rb +0 -0
- data/lib/comet/models/admin_resource_response.rb +0 -0
- data/lib/comet/models/admin_security_options.rb +0 -0
- data/lib/comet/models/admin_u2fregistration.rb +0 -0
- data/lib/comet/models/admin_user_permissions.rb +0 -0
- data/lib/comet/models/available_download.rb +0 -0
- data/lib/comet/models/azure_destination_location.rb +0 -0
- data/lib/comet/models/b2destination_location.rb +0 -0
- data/lib/comet/models/b2storage_extra_info.rb +0 -0
- data/lib/comet/models/b2transaction_totals.rb +0 -0
- data/lib/comet/models/b2virtual_storage_role_settings.rb +0 -0
- data/lib/comet/models/backup_job_advanced_options.rb +0 -0
- data/lib/comet/models/backup_job_detail.rb +0 -0
- data/lib/comet/models/backup_job_progress.rb +0 -0
- data/lib/comet/models/backup_rule_config.rb +0 -0
- data/lib/comet/models/backup_rule_event_triggers.rb +0 -0
- data/lib/comet/models/branding_options.rb +0 -0
- data/lib/comet/models/branding_properties.rb +0 -0
- data/lib/comet/models/browse_disk_drives_response.rb +0 -0
- data/lib/comet/models/browse_edbresponse.rb +0 -0
- data/lib/comet/models/browse_hvresponse.rb +0 -0
- data/lib/comet/models/browse_office_365objects_response.rb +0 -0
- data/lib/comet/models/browse_sqlserver_response.rb +0 -0
- data/lib/comet/models/browse_vssresponse.rb +0 -0
- data/lib/comet/models/bucket_properties.rb +0 -0
- data/lib/comet/models/bucket_usage_info.rb +0 -0
- data/lib/comet/models/comet_apiresponse_message.rb +0 -0
- data/lib/comet/models/comet_destination_location.rb +0 -0
- data/lib/comet/models/constellation_check_report.rb +0 -0
- data/lib/comet/models/constellation_stats.rb +0 -0
- data/lib/comet/models/constellation_status_apiresponse.rb +0 -0
- data/lib/comet/models/content_measurement.rb +0 -0
- data/lib/comet/models/content_measurement_component.rb +0 -0
- data/lib/comet/models/create_group_policy_response.rb +0 -0
- data/lib/comet/models/custom_remote_bucket_settings.rb +0 -0
- data/lib/comet/models/default_email_report_policy.rb +0 -0
- data/lib/comet/models/default_source_with_osrestriction.rb +0 -0
- data/lib/comet/models/destination_config.rb +0 -0
- data/lib/comet/models/destination_location.rb +0 -0
- data/lib/comet/models/destination_statistics.rb +0 -0
- data/lib/comet/models/device_config.rb +11 -0
- data/lib/comet/models/disk_drive.rb +0 -0
- data/lib/comet/models/dispatcher_admin_sources_response.rb +0 -0
- data/lib/comet/models/dispatcher_stored_objects_response.rb +0 -0
- data/lib/comet/models/dispatcher_vault_snapshots_response.rb +0 -0
- data/lib/comet/models/edbfile_info.rb +0 -0
- data/lib/comet/models/email_options.rb +0 -0
- data/lib/comet/models/email_report_config.rb +0 -0
- data/lib/comet/models/email_report_generated_preview.rb +0 -0
- data/lib/comet/models/external_ldapauthentication_source_settings.rb +0 -0
- data/lib/comet/models/extra_file_exclusion.rb +0 -0
- data/lib/comet/models/ftpdestination_location.rb +0 -0
- data/lib/comet/models/get_group_policy_response.rb +0 -0
- data/lib/comet/models/get_profile_and_hash_response_message.rb +0 -0
- data/lib/comet/models/get_profile_hash_response_message.rb +0 -0
- data/lib/comet/models/group_policy.rb +0 -0
- data/lib/comet/models/hyper_vmachine_info.rb +0 -0
- data/lib/comet/models/install_creds.rb +0 -0
- data/lib/comet/models/install_token.rb +0 -0
- data/lib/comet/models/install_token_response.rb +0 -0
- data/lib/comet/models/job_entry.rb +0 -0
- data/lib/comet/models/live_user_connection.rb +11 -0
- data/lib/comet/models/local_destination_location.rb +0 -0
- data/lib/comet/models/mac_oscode_sign_properties.rb +0 -0
- data/lib/comet/models/mongo_dbconnection.rb +0 -0
- data/lib/comet/models/mssqlconnection.rb +0 -0
- data/lib/comet/models/my_sqlconnection.rb +0 -0
- data/lib/comet/models/new_bucket_detail.rb +0 -0
- data/lib/comet/models/news_entry.rb +0 -0
- data/lib/comet/models/office_365connection.rb +0 -0
- data/lib/comet/models/office_365credential.rb +0 -0
- data/lib/comet/models/office_365custom_setting.rb +0 -0
- data/lib/comet/models/office_365object_info.rb +0 -0
- data/lib/comet/models/organization.rb +0 -0
- data/lib/comet/models/organization_response.rb +0 -0
- data/lib/comet/models/osinfo.rb +0 -0
- data/lib/comet/models/partition.rb +0 -0
- data/lib/comet/models/private_branding_properties.rb +0 -0
- data/lib/comet/models/protected_item_engine_type_policy.rb +0 -0
- data/lib/comet/models/public_branding_properties.rb +0 -0
- data/lib/comet/models/register_office_application_begin_response.rb +0 -0
- data/lib/comet/models/register_office_application_check_response.rb +0 -0
- data/lib/comet/models/remote_server_address.rb +0 -0
- data/lib/comet/models/remote_storage_option.rb +0 -0
- data/lib/comet/models/replicator_state_apiresponse.rb +0 -0
- data/lib/comet/models/request_storage_vault_response_message.rb +0 -0
- data/lib/comet/models/restore_job_advanced_options.rb +0 -0
- data/lib/comet/models/retention_policy.rb +0 -0
- data/lib/comet/models/retention_range.rb +0 -0
- data/lib/comet/models/s3destination_location.rb +0 -0
- data/lib/comet/models/schedule_config.rb +0 -0
- data/lib/comet/models/search_clause.rb +0 -0
- data/lib/comet/models/self_backup_statistics.rb +0 -0
- data/lib/comet/models/server_config_options_branding_fragment.rb +0 -0
- data/lib/comet/models/server_config_options_software_build_role_fragment.rb +0 -0
- data/lib/comet/models/server_meta_branding_properties.rb +0 -0
- data/lib/comet/models/server_meta_version_info.rb +0 -0
- data/lib/comet/models/session_key_regenerated_response.rb +0 -0
- data/lib/comet/models/sftpdestination_location.rb +0 -0
- data/lib/comet/models/size_measurement.rb +0 -0
- data/lib/comet/models/software_build_role_options.rb +0 -0
- data/lib/comet/models/software_update_news_response.rb +0 -0
- data/lib/comet/models/source_basic_info.rb +0 -0
- data/lib/comet/models/source_config.rb +0 -0
- data/lib/comet/models/source_include_pattern.rb +0 -0
- data/lib/comet/models/source_statistics.rb +0 -0
- data/lib/comet/models/spanned_destination_location.rb +0 -0
- data/lib/comet/models/spanned_storage_extra_info.rb +0 -0
- data/lib/comet/models/sshconnection.rb +0 -0
- data/lib/comet/models/stat_result.rb +0 -0
- data/lib/comet/models/storage_free_space_info.rb +0 -0
- data/lib/comet/models/storage_vault_provider_policy.rb +0 -0
- data/lib/comet/models/stored_object.rb +0 -0
- data/lib/comet/models/streamable_event.rb +0 -0
- data/lib/comet/models/swift_destination_location.rb +0 -0
- data/lib/comet/models/test_response.rb +0 -0
- data/lib/comet/models/totp_regenerated_response.rb +0 -0
- data/lib/comet/models/u2fregister_request.rb +0 -0
- data/lib/comet/models/u2fregistered_key.rb +0 -0
- data/lib/comet/models/u2fregistration_challenge_response.rb +0 -0
- data/lib/comet/models/u2fsign_request.rb +0 -0
- data/lib/comet/models/u2fsign_response.rb +0 -0
- data/lib/comet/models/uninstall_config.rb +0 -0
- data/lib/comet/models/update_campaign_device_status.rb +0 -0
- data/lib/comet/models/update_campaign_options.rb +0 -0
- data/lib/comet/models/update_campaign_properties.rb +0 -0
- data/lib/comet/models/update_campaign_status.rb +0 -0
- data/lib/comet/models/update_campaign_status_device_entry.rb +0 -0
- data/lib/comet/models/user_custom_email_settings.rb +0 -0
- data/lib/comet/models/user_on_server.rb +0 -0
- data/lib/comet/models/user_policy.rb +0 -0
- data/lib/comet/models/user_profile_config.rb +0 -0
- data/lib/comet/models/user_profile_fragment.rb +0 -0
- data/lib/comet/models/vault_snapshot.rb +0 -0
- data/lib/comet/models/vsscomponent.rb +0 -0
- data/lib/comet/models/vsswriter_info.rb +0 -0
- data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +0 -0
- data/lib/comet/models/web_interface_branding_properties.rb +0 -0
- data/lib/comet/models/webhook_option.rb +0 -0
- data/lib/comet/models/win_smbauth.rb +0 -0
- data/lib/comet/models/windows_code_sign_properties.rb +0 -0
- data/lib/comet_backup_ruby_sdk.rb +0 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5978dc4b2eb4c0001eb7a7c44b3a215450fcbdc9ad7e639c75ba4b9b023b9ac5
|
4
|
+
data.tar.gz: 8bfd3b9417fefa6bde04316a2fbd6917ded287594e42cc64d989f56be52a6af4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bf9d9f36941632b74473ab2d6aeb6d0252951bdcf9be1b6f9ef9b1e595bc2cd91ee813f689d9e84c0b08442378799c8e6fd563c43aef40fd75f23b57d33d5bc
|
7
|
+
data.tar.gz: 859734f1a066f09426fb736ab83e28fa1b829ed795db56ed403622825fdf701723e25465f511be44e9316876d5d5f9e2a5f3904569005b1930db78aca3773a8c
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,17 @@
|
|
1
1
|
# CHANGELOG
|
2
|
+
## 2021-09-08 v1.7.0
|
3
|
+
- Based on Comet 21.9.1
|
4
|
+
- Support new `device_timezone` field on the `DeviceConfig` class.
|
5
|
+
- Add `admin_dispatcher_ping_destination` api method
|
6
|
+
- Add support for new retention range type constants: `RETENTIONRANGE_LAST_X_BACKUPS_ONE_FOR_EACH_DAY`
|
7
|
+
- Add support for new retention range type constants: `RETENTIONRANGE_LAST_X_BACKUPS_ONE_FOR_EACH_WEEK`
|
8
|
+
- Add support for new retention range type constants: `RETENTIONRANGE_LAST_X_BACKUPS_ONE_FOR_EACH_MONTH`
|
9
|
+
- Add support for Microsoft Office 365 Sharepoiint constant `STOREDOBJECTTYPE_MSSITELISTDRIVEENTITY`
|
10
|
+
- Add Microsoft Office 365 Region cloud region constants `OFFICE_365_REGION_PUBLIC`
|
11
|
+
- Add Microsoft Office 365 Region cloud region constants `OFFICE_365_REGION_CHINA`
|
12
|
+
- Add Microsoft Office 365 Region cloud region constants `OFFICE_365_REGION_GERMANY`
|
13
|
+
- Add Microsoft Office 365 Region cloud region constants `OFFICE_365_REGION_US_GOVT`
|
14
|
+
- Add Microsoft Office 365 Region cloud region constants `OFFICE_365_REGION_US_DOD`
|
2
15
|
|
3
16
|
## 2021-07-01 v1.6.0
|
4
17
|
- Based on Comet 21.6.6
|
data/Gemfile
CHANGED
File without changes
|
data/Gemfile.lock
CHANGED
data/LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/RELEASING.md
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
3. Update version number in `comet_backup_ruby_sdk.gemspec`
|
6
6
|
4. `bundle install`
|
7
7
|
- Should update our internal version in Gemfile.lock
|
8
|
-
|
8
|
+
5. `gem build comet_backup_ruby_sdk.gemspec`
|
9
9
|
- Should be warning-free
|
10
|
-
|
10
|
+
6. Git tag
|
11
11
|
- Respect semver
|
12
|
-
|
12
|
+
7. `gem push comet_backup_ruby_sdk-1.x.x.gem`
|
data/Rakefile
CHANGED
File without changes
|
@@ -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.
|
15
|
+
spec.version = '1.7.0'
|
16
16
|
spec.authors = ['Comet Licensing Ltd.']
|
17
17
|
spec.email = ['hello@cometbackup.com']
|
18
18
|
|
File without changes
|
data/lib/comet/comet_server.rb
CHANGED
@@ -808,6 +808,7 @@ module Comet
|
|
808
808
|
# This does not remove any storage buckets. Unused storage buckets will be cleaned up by the Constellation Role.
|
809
809
|
# Any stored data can not be decrypted without the user profile. Misuse can cause data loss!
|
810
810
|
# This also allows to uninstall software from active devices under the user account
|
811
|
+
# This also removes all job history for the user account.
|
811
812
|
#
|
812
813
|
# You must supply administrator authentication credentials to use this API.
|
813
814
|
# This API requires the Auth Role to be enabled.
|
@@ -1076,6 +1077,33 @@ module Comet
|
|
1076
1077
|
ret
|
1077
1078
|
end
|
1078
1079
|
|
1080
|
+
# AdminDispatcherPingDestination
|
1081
|
+
#
|
1082
|
+
# Test the connection to the storage bucket.
|
1083
|
+
#
|
1084
|
+
# You must supply administrator authentication credentials to use this API.
|
1085
|
+
# This API requires the Auth Role to be enabled.
|
1086
|
+
#
|
1087
|
+
# @param [String] target_id The live connection GUID
|
1088
|
+
# @param [Comet::DestinationLocation] extra_data The destination location settings
|
1089
|
+
# @return [Comet::CometAPIResponseMessage]
|
1090
|
+
def admin_dispatcher_ping_destination(target_id, extra_data)
|
1091
|
+
submit_params = {}
|
1092
|
+
raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
|
1093
|
+
|
1094
|
+
submit_params['TargetID'] = target_id
|
1095
|
+
raise TypeError, "'extra_data' expected Comet::DestinationLocation, got #{extra_data.class}" unless extra_data.is_a? Comet::DestinationLocation
|
1096
|
+
|
1097
|
+
submit_params['ExtraData'] = extra_data.to_json
|
1098
|
+
|
1099
|
+
body = perform_request('api/v1/admin/dispatcher/ping-destination', submit_params)
|
1100
|
+
json_body = JSON.parse body
|
1101
|
+
check_status json_body
|
1102
|
+
ret = Comet::CometAPIResponseMessage.new
|
1103
|
+
ret.from_hash(json_body)
|
1104
|
+
ret
|
1105
|
+
end
|
1106
|
+
|
1079
1107
|
# AdminDispatcherRefetchProfile
|
1080
1108
|
#
|
1081
1109
|
# Instruct a live connected device to refresh their profile.
|
@@ -3455,7 +3483,7 @@ module Comet
|
|
3455
3483
|
|
3456
3484
|
ret_error = Comet::CometAPIResponseMessage.new
|
3457
3485
|
ret_error.from_hash(obj)
|
3458
|
-
raise Comet::APIResponseError.new(ret_error)
|
3486
|
+
raise Comet::APIResponseError.new(ret_error), 'Comet API response status was not OK'
|
3459
3487
|
end
|
3460
3488
|
|
3461
3489
|
# Perform a synchronous HTTP request.
|
@@ -3492,7 +3520,7 @@ module Comet
|
|
3492
3520
|
|
3493
3521
|
form_params = []
|
3494
3522
|
params.each do |k, v|
|
3495
|
-
form_params.append [k, v, {:filename => k}]
|
3523
|
+
form_params.append [k, v, { :filename => k }]
|
3496
3524
|
end
|
3497
3525
|
req.set_form(form_params, 'multipart/form-data')
|
3498
3526
|
|
data/lib/comet/definitions.rb
CHANGED
@@ -224,8 +224,17 @@ module Comet
|
|
224
224
|
# RetentionRangeType: Uses Weeks, WeekOffset
|
225
225
|
RETENTIONRANGE_FIRST_JOB_FOR_LAST_X_WEEKS = 906
|
226
226
|
|
227
|
+
# RetentionRangeType: Uses Jobs
|
228
|
+
RETENTIONRANGE_LAST_X_BACKUPS_ONE_FOR_EACH_DAY = 907
|
229
|
+
|
230
|
+
# RetentionRangeType: Uses Jobs
|
231
|
+
RETENTIONRANGE_LAST_X_BACKUPS_ONE_FOR_EACH_WEEK = 908
|
232
|
+
|
233
|
+
# RetentionRangeType: Uses Jobs
|
234
|
+
RETENTIONRANGE_LAST_X_BACKUPS_ONE_FOR_EACH_MONTH = 909
|
235
|
+
|
227
236
|
# RetentionRangeType:
|
228
|
-
RETENTIONRANGE__HIGHEST =
|
237
|
+
RETENTIONRANGE__HIGHEST = 909
|
229
238
|
|
230
239
|
RETENTIONRANGE_MAXINT = 1_125_899_906_842_624
|
231
240
|
|
@@ -362,6 +371,9 @@ module Comet
|
|
362
371
|
# StoredObjectType:
|
363
372
|
STOREDOBJECTTYPE_MSSITEITEMENTITY = 'mssiteitementity'
|
364
373
|
|
374
|
+
# StoredObjectType:
|
375
|
+
STOREDOBJECTTYPE_MSSITELISTDRIVEENTITY = 'mssitelistdriveentity'
|
376
|
+
|
365
377
|
# ExtraFileExclusionOSRestriction:
|
366
378
|
OS_ANY = 0
|
367
379
|
|
@@ -400,13 +412,13 @@ module Comet
|
|
400
412
|
|
401
413
|
DEFAULT_TIMEZONE = 'UTC'
|
402
414
|
|
403
|
-
APPLICATION_VERSION = '21.
|
415
|
+
APPLICATION_VERSION = '21.9.1'
|
404
416
|
|
405
417
|
APPLICATION_VERSION_MAJOR = 21
|
406
418
|
|
407
|
-
APPLICATION_VERSION_MINOR =
|
419
|
+
APPLICATION_VERSION_MINOR = 9
|
408
420
|
|
409
|
-
APPLICATION_VERSION_REVISION =
|
421
|
+
APPLICATION_VERSION_REVISION = 1
|
410
422
|
|
411
423
|
RELEASE_CODENAME = 'Voyager'
|
412
424
|
|
@@ -600,4 +612,14 @@ module Comet
|
|
600
612
|
# StreamableEventType: Data is the string bucket ref
|
601
613
|
SEVT_BUCKET_NEW = 4300
|
602
614
|
|
615
|
+
OFFICE365_REGION_PUBLIC = 'GlobalPublicCloud'
|
616
|
+
|
617
|
+
OFFICE365_REGION_CHINA = 'ChinaCloud'
|
618
|
+
|
619
|
+
OFFICE365_REGION_GERMANY = 'GermanCloud'
|
620
|
+
|
621
|
+
OFFICE365_REGION_US_GOVT = 'USGovtGccCloud'
|
622
|
+
|
623
|
+
OFFICE365_REGION_US_DOD = 'USGovtGccDoDCloud'
|
624
|
+
|
603
625
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -23,6 +23,9 @@ module Comet
|
|
23
23
|
# @type [Hash{String => Comet::SourceBasicInfo}] sources
|
24
24
|
attr_accessor :sources
|
25
25
|
|
26
|
+
# @type [String] device_timezone
|
27
|
+
attr_accessor :device_timezone
|
28
|
+
|
26
29
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
27
30
|
attr_accessor :unknown_json_fields
|
28
31
|
|
@@ -34,6 +37,7 @@ module Comet
|
|
34
37
|
@friendly_name = ''
|
35
38
|
@platform_version = Comet::OSInfo.new
|
36
39
|
@sources = {}
|
40
|
+
@device_timezone = ''
|
37
41
|
@unknown_json_fields = {}
|
38
42
|
end
|
39
43
|
|
@@ -67,6 +71,10 @@ module Comet
|
|
67
71
|
@sources[k1].from_hash(v1)
|
68
72
|
end
|
69
73
|
end
|
74
|
+
when 'DeviceTimezone'
|
75
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
76
|
+
|
77
|
+
@device_timezone = v
|
70
78
|
else
|
71
79
|
@unknown_json_fields[k] = v
|
72
80
|
end
|
@@ -83,6 +91,9 @@ module Comet
|
|
83
91
|
unless @sources.nil?
|
84
92
|
ret['Sources'] = @sources
|
85
93
|
end
|
94
|
+
unless @device_timezone.nil?
|
95
|
+
ret['DeviceTimezone'] = @device_timezone
|
96
|
+
end
|
86
97
|
@unknown_json_fields.each do |k, v|
|
87
98
|
ret[k] = v
|
88
99
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -29,6 +29,9 @@ module Comet
|
|
29
29
|
# @type [Comet::OSInfo] reported_platform_version
|
30
30
|
attr_accessor :reported_platform_version
|
31
31
|
|
32
|
+
# @type [String] device_time_zone
|
33
|
+
attr_accessor :device_time_zone
|
34
|
+
|
32
35
|
# @type [String] ipaddress
|
33
36
|
attr_accessor :ipaddress
|
34
37
|
|
@@ -51,6 +54,7 @@ module Comet
|
|
51
54
|
@reported_version = ''
|
52
55
|
@reported_platform = ''
|
53
56
|
@reported_platform_version = Comet::OSInfo.new
|
57
|
+
@device_time_zone = ''
|
54
58
|
@ipaddress = ''
|
55
59
|
@connection_time = 0
|
56
60
|
@unknown_json_fields = {}
|
@@ -88,6 +92,10 @@ module Comet
|
|
88
92
|
when 'ReportedPlatformVersion'
|
89
93
|
@reported_platform_version = Comet::OSInfo.new
|
90
94
|
@reported_platform_version.from_hash(v)
|
95
|
+
when 'DeviceTimeZone'
|
96
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
97
|
+
|
98
|
+
@device_time_zone = v
|
91
99
|
when 'IPAddress'
|
92
100
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
93
101
|
|
@@ -114,6 +122,9 @@ module Comet
|
|
114
122
|
unless @reported_platform_version.nil?
|
115
123
|
ret['ReportedPlatformVersion'] = @reported_platform_version
|
116
124
|
end
|
125
|
+
unless @device_time_zone.nil?
|
126
|
+
ret['DeviceTimeZone'] = @device_time_zone
|
127
|
+
end
|
117
128
|
unless @ipaddress.nil?
|
118
129
|
ret['IPAddress'] = @ipaddress
|
119
130
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/comet/models/osinfo.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
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.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Comet Licensing Ltd.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -233,7 +233,7 @@ homepage: https://github.com/CometBackup/comet-ruby-sdk
|
|
233
233
|
licenses:
|
234
234
|
- MIT
|
235
235
|
metadata: {}
|
236
|
-
post_install_message:
|
236
|
+
post_install_message:
|
237
237
|
rdoc_options: []
|
238
238
|
require_paths:
|
239
239
|
- lib
|
@@ -248,8 +248,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
248
|
- !ruby/object:Gem::Version
|
249
249
|
version: '0'
|
250
250
|
requirements: []
|
251
|
-
rubygems_version: 3.
|
252
|
-
signing_key:
|
251
|
+
rubygems_version: 3.1.6
|
252
|
+
signing_key:
|
253
253
|
specification_version: 4
|
254
254
|
summary: Comet Backup - Comet Server API SDK
|
255
255
|
test_files: []
|