comet_backup_ruby_sdk 2.44.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +0 -0
- data/CHANGELOG.md +29 -0
- data/Gemfile +0 -0
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/RELEASING.md +7 -7
- data/Rakefile +0 -0
- data/comet_backup_ruby_sdk.gemspec +2 -3
- data/lib/comet/api_response_error.rb +1 -1
- data/lib/comet/comet_server.rb +724 -90
- data/lib/comet/definitions.rb +400 -125
- data/lib/comet/models/add_bucket_response_message.rb +1 -1
- data/lib/comet/models/admin_account_apitoken_create_response.rb +102 -0
- data/lib/comet/models/admin_account_apitoken_list_response.rb +98 -0
- data/lib/comet/models/admin_account_properties_response.rb +38 -1
- data/lib/comet/models/admin_apitoken.rb +139 -0
- data/lib/comet/models/admin_apitoken_info.rb +117 -0
- data/lib/comet/models/admin_email_options.rb +1 -1
- data/lib/comet/models/admin_options.rb +1 -1
- data/lib/comet/models/admin_resource_response.rb +1 -1
- data/lib/comet/models/admin_security_options.rb +1 -1
- data/lib/comet/models/admin_u2fregistration.rb +1 -1
- data/lib/comet/models/admin_user_permissions.rb +20 -1
- data/lib/comet/models/admin_web_authn_registration.rb +1 -1
- data/lib/comet/models/allowed_admin_user.rb +19 -1
- data/lib/comet/models/amazon_awsvirtual_storage_role_settings.rb +1 -1
- data/lib/comet/models/attributed_content_measurement.rb +146 -0
- data/lib/comet/models/attributed_content_measurement_component.rb +105 -0
- data/lib/comet/models/authentication_role_options.rb +2 -4
- data/lib/comet/models/available_download.rb +1 -1
- data/lib/comet/models/azure_destination_location.rb +1 -1
- data/lib/comet/models/b2destination_location.rb +1 -1
- data/lib/comet/models/b2storage_extra_info.rb +1 -1
- data/lib/comet/models/b2transaction_totals.rb +1 -1
- data/lib/comet/models/b2virtual_storage_role_settings.rb +1 -1
- data/lib/comet/models/backup_job_advanced_options.rb +15 -1
- data/lib/comet/models/backup_job_detail.rb +14 -2
- data/lib/comet/models/backup_job_progress.rb +1 -1
- data/lib/comet/models/backup_rule_config.rb +43 -1
- data/lib/comet/models/backup_rule_event_triggers.rb +1 -1
- data/lib/comet/models/branding_options.rb +184 -1
- data/lib/comet/models/branding_properties.rb +184 -1
- data/lib/comet/models/browse_disk_drives_response.rb +1 -1
- data/lib/comet/models/browse_edbresponse.rb +1 -1
- data/lib/comet/models/browse_hvresponse.rb +1 -1
- data/lib/comet/models/browse_office_365list_virtual_accounts_response.rb +1 -1
- data/lib/comet/models/browse_office_365objects_response.rb +1 -1
- data/lib/comet/models/browse_proxmox_nodes_response.rb +1 -1
- data/lib/comet/models/browse_proxmox_response.rb +16 -1
- data/lib/comet/models/browse_proxmox_storage_response.rb +1 -1
- data/lib/comet/models/browse_sqlserver_response.rb +1 -1
- data/lib/comet/models/browse_vmware_datacenters_response.rb +1 -1
- data/lib/comet/models/browse_vmware_datastores_response.rb +1 -1
- data/lib/comet/models/browse_vmware_hosts_response.rb +1 -1
- data/lib/comet/models/browse_vmware_networks_response.rb +1 -1
- data/lib/comet/models/browse_vmware_response.rb +1 -1
- data/lib/comet/models/browse_vssresponse.rb +1 -1
- data/lib/comet/models/bucket_properties.rb +1 -1
- data/lib/comet/models/bucket_usage_info.rb +1 -1
- data/lib/comet/models/comet_apiresponse_message.rb +1 -1
- data/lib/comet/models/comet_destination_location.rb +1 -1
- data/lib/comet/models/constellation_check_report.rb +1 -1
- data/lib/comet/models/constellation_role_options.rb +1 -1
- data/lib/comet/models/constellation_stats.rb +1 -1
- data/lib/comet/models/constellation_status_apiresponse.rb +1 -1
- data/lib/comet/models/content_measurement.rb +1 -1
- data/lib/comet/models/content_measurement_component.rb +3 -3
- data/lib/comet/models/count_jobs_response.rb +1 -1
- data/lib/comet/models/create_group_policy_response.rb +1 -1
- data/lib/comet/models/create_user_group_response.rb +1 -1
- data/lib/comet/models/custom_branding_item.rb +143 -0
- data/lib/comet/models/custom_branding_options.rb +79 -0
- data/lib/comet/models/custom_branding_origin.rb +76 -0
- data/lib/comet/models/custom_remote_bucket_settings.rb +1 -1
- data/lib/comet/models/days_of_week_config.rb +1 -1
- data/lib/comet/models/default_email_report_policy.rb +1 -1
- data/lib/comet/models/default_source_with_osrestriction.rb +1 -1
- data/lib/comet/models/destination_config.rb +32 -5
- data/lib/comet/models/destination_location.rb +11 -2
- data/lib/comet/models/destination_statistics.rb +1 -1
- data/lib/comet/models/device_config.rb +42 -1
- data/lib/comet/models/device_identity_response.rb +82 -0
- data/lib/comet/models/disk_drive.rb +1 -1
- data/lib/comet/models/dispatch_with_job_idresponse.rb +1 -1
- data/lib/comet/models/dispatcher_admin_sources_response.rb +1 -1
- data/lib/comet/models/dispatcher_list_snapshot_virtual_machines_response.rb +1 -1
- data/lib/comet/models/dispatcher_stored_objects_response.rb +1 -1
- data/lib/comet/models/dispatcher_vault_snapshots_response.rb +1 -1
- data/lib/comet/models/dispatcher_windisk_snapshot_response.rb +1 -1
- data/lib/comet/models/dnscache_options.rb +94 -0
- data/lib/comet/models/edbfile_info.rb +1 -1
- data/lib/comet/models/email_options.rb +14 -1
- data/lib/comet/models/email_report_config.rb +15 -1
- data/lib/comet/models/email_report_generated_preview.rb +1 -1
- data/lib/comet/models/email_reporting_option.rb +1 -1
- data/lib/comet/models/external_authentication_source.rb +1 -1
- data/lib/comet/models/external_authentication_source_display.rb +1 -1
- data/lib/comet/models/external_authentication_source_response.rb +1 -1
- data/lib/comet/models/external_ldapauthentication_source_server.rb +1 -1
- data/lib/comet/models/external_ldapauthentication_source_settings.rb +1 -1
- data/lib/comet/models/extra_file_exclusion.rb +1 -1
- data/lib/comet/models/file_option.rb +1 -1
- data/lib/comet/models/ftpdestination_location.rb +1 -1
- data/lib/comet/models/get_group_policy_response.rb +1 -1
- data/lib/comet/models/get_profile_and_hash_response_message.rb +1 -1
- data/lib/comet/models/get_profile_hash_response_message.rb +1 -1
- data/lib/comet/models/get_shared_storage_quota_response.rb +1 -1
- data/lib/comet/models/get_user_group_response.rb +1 -1
- data/lib/comet/models/get_user_group_with_users_response.rb +1 -1
- data/lib/comet/models/global_override_options.rb +1 -1
- data/lib/comet/models/group_policy.rb +1 -1
- data/lib/comet/models/hour_sched_config.rb +1 -1
- data/lib/comet/models/httpconnector_options.rb +1 -1
- data/lib/comet/models/hyper_vmachine_info.rb +1 -1
- data/lib/comet/models/hyper_vrestore_target_options.rb +1 -1
- data/lib/comet/models/impossible_cloud_iamtemplate_settings.rb +1 -1
- data/lib/comet/models/impossible_cloud_partner_template_settings.rb +1 -1
- data/lib/comet/models/install_creds.rb +1 -1
- data/lib/comet/models/install_token.rb +8 -8
- data/lib/comet/models/install_token_response.rb +1 -1
- data/lib/comet/models/job_entry.rb +1 -1
- data/lib/comet/models/license_limits.rb +1 -1
- data/lib/comet/models/license_options.rb +1 -1
- data/lib/comet/models/linux_rpm_code_sign_properties.rb +115 -0
- data/lib/comet/models/list_shared_storage_quota_response.rb +1 -1
- data/lib/comet/models/live_user_connection.rb +1 -1
- data/lib/comet/models/local_destination_location.rb +2 -2
- data/lib/comet/models/local_storage_directory.rb +1 -1
- data/lib/comet/models/login_protection_options.rb +1 -1
- data/lib/comet/models/mac_oscode_sign_properties.rb +1 -1
- data/lib/comet/models/mongo_dbconnection.rb +4 -1
- data/lib/comet/models/mssqlconnection.rb +1 -1
- data/lib/comet/models/mssqllogin_args.rb +1 -1
- data/lib/comet/models/my_sqlconnection.rb +1 -1
- data/lib/comet/models/new_bucket_detail.rb +1 -1
- data/lib/comet/models/news_entry.rb +1 -1
- data/lib/comet/models/nfsdestination_location.rb +132 -0
- data/lib/comet/models/ninja_one_auth_callback_response.rb +82 -0
- data/lib/comet/models/ninja_one_config.rb +130 -0
- data/lib/comet/models/ninja_one_organization.rb +91 -0
- data/lib/comet/models/node.rb +80 -0
- data/lib/comet/models/object_lock_storage_template_settings.rb +1 -1
- data/lib/comet/models/office_365connection.rb +1 -1
- data/lib/comet/models/office_365convert_selection_response.rb +102 -0
- data/lib/comet/models/office_365credential.rb +1 -1
- data/lib/comet/models/office_365custom_setting.rb +1 -1
- data/lib/comet/models/office_365custom_setting_v2.rb +23 -1
- data/lib/comet/models/office_365effective_selection.rb +109 -0
- data/lib/comet/models/office_365effective_selection_account.rb +101 -0
- data/lib/comet/models/office_365evaluate_selection_rules_response.rb +95 -0
- data/lib/comet/models/office_365mixed_virtual_account.rb +1 -1
- data/lib/comet/models/office_365object_info.rb +1 -1
- data/lib/comet/models/office_365selection_rule.rb +182 -0
- data/lib/comet/models/office_365service_rule_decision.rb +93 -0
- data/lib/comet/models/oidc_claim.rb +1 -1
- data/lib/comet/models/oidc_config.rb +1 -1
- data/lib/comet/models/organization.rb +1 -1
- data/lib/comet/models/organization_login_urlresponse.rb +1 -1
- data/lib/comet/models/organization_response.rb +1 -1
- data/lib/comet/models/osinfo.rb +1 -1
- data/lib/comet/models/partition.rb +1 -1
- data/lib/comet/models/partition_conflict.rb +1 -1
- data/lib/comet/models/pkcs_11allowed_driver.rb +75 -0
- data/lib/comet/models/pkcs_11allowlist_options.rb +90 -0
- data/lib/comet/models/policy_options.rb +1 -1
- data/lib/comet/models/postgre_sqlconnection.rb +151 -0
- data/lib/comet/models/private_branding_properties.rb +184 -1
- data/lib/comet/models/protected_item_engine_type_policy.rb +1 -1
- data/lib/comet/models/protected_item_with_backup_rules_response.rb +1 -1
- data/lib/comet/models/proxmox_connection.rb +1 -1
- data/lib/comet/models/proxmox_restore_target_options.rb +1 -1
- data/lib/comet/models/psaconfig.rb +26 -1
- data/lib/comet/models/psaconfig_connect_wise.rb +130 -0
- data/lib/comet/models/psagrouped_by.rb +1 -1
- data/lib/comet/models/public_branding_properties.rb +1 -1
- data/lib/comet/models/pvebackup_disk.rb +1 -1
- data/lib/comet/models/pvebackup_node.rb +1 -1
- data/lib/comet/models/pvebackup_vm.rb +1 -1
- data/lib/comet/models/pvedisk.rb +1 -1
- data/lib/comet/models/pveparams.rb +2 -4
- data/lib/comet/models/pvestorage_name.rb +1 -1
- data/lib/comet/models/pvevm.rb +8 -1
- data/lib/comet/models/ratelimit_options.rb +1 -1
- data/lib/comet/models/ratelimit_rule.rb +1 -1
- data/lib/comet/models/register_office_application_begin_response.rb +1 -1
- data/lib/comet/models/register_office_application_check_response.rb +1 -1
- data/lib/comet/models/registration_lobby_connection.rb +1 -1
- data/lib/comet/models/remote_server_address.rb +1 -1
- data/lib/comet/models/remote_storage_option.rb +10 -1
- data/lib/comet/models/replica_server.rb +1 -1
- data/lib/comet/models/replicator_state_apiresponse.rb +1 -1
- data/lib/comet/models/request_storage_vault_response_message.rb +1 -1
- data/lib/comet/models/restore_job_advanced_options.rb +66 -10
- data/lib/comet/models/retention_policy.rb +1 -1
- data/lib/comet/models/retention_range.rb +1 -1
- data/lib/comet/models/s3destination_location.rb +1 -1
- data/lib/comet/models/s3generic_virtual_storage_role.rb +1 -1
- data/lib/comet/models/schedule_config.rb +1 -1
- data/lib/comet/models/search_clause.rb +1 -1
- data/lib/comet/models/search_result_file_info.rb +1 -1
- data/lib/comet/models/search_snapshots_response.rb +1 -1
- data/lib/comet/models/self_backup_event_data.rb +135 -0
- data/lib/comet/models/self_backup_export_options.rb +1 -1
- data/lib/comet/models/self_backup_options.rb +1 -1
- data/lib/comet/models/self_backup_statistics.rb +1 -1
- data/lib/comet/models/self_backup_target.rb +1 -1
- data/lib/comet/models/server_config_options.rb +76 -1
- data/lib/comet/models/server_config_options_and_hash_response.rb +103 -0
- data/lib/comet/models/server_config_options_branding_fragment.rb +1 -1
- data/lib/comet/models/server_config_options_hash_response.rb +95 -0
- data/lib/comet/models/server_config_options_software_build_role_fragment.rb +1 -1
- data/lib/comet/models/server_meta_branding_properties.rb +20 -1
- data/lib/comet/models/server_meta_version_info.rb +1 -1
- data/lib/comet/models/session_key_regenerated_response.rb +1 -1
- data/lib/comet/models/session_options.rb +1 -1
- data/lib/comet/models/set_shared_storage_quota_response.rb +1 -1
- data/lib/comet/models/sftpdestination_location.rb +1 -1
- data/lib/comet/models/shared_storage_quota.rb +1 -1
- data/lib/comet/models/single_field_source.rb +2 -2
- data/lib/comet/models/size_measurement.rb +1 -1
- data/lib/comet/models/smbdestination_location.rb +1 -1
- data/lib/comet/models/smtpoauth_options.rb +154 -0
- data/lib/comet/models/software_build_role_options.rb +1 -1
- data/lib/comet/models/software_update_news_response.rb +1 -1
- data/lib/comet/models/source_basic_info.rb +10 -1
- data/lib/comet/models/source_config.rb +69 -4
- data/lib/comet/models/source_include_pattern.rb +1 -1
- data/lib/comet/models/source_statistics.rb +1 -1
- data/lib/comet/models/spanned_destination_location.rb +1 -1
- data/lib/comet/models/spanned_storage_extra_info.rb +1 -1
- data/lib/comet/models/speed_limit_time_window.rb +114 -0
- data/lib/comet/models/sshconnection.rb +1 -1
- data/lib/comet/models/stat_result.rb +1 -1
- data/lib/comet/models/storage_free_space_info.rb +1 -1
- data/lib/comet/models/storage_role_options.rb +1 -1
- data/lib/comet/models/storage_vault_provider_policy.rb +1 -1
- data/lib/comet/models/stored_object.rb +1 -1
- data/lib/comet/models/storj_destination_location.rb +1 -1
- data/lib/comet/models/storj_virtual_storage_role_setting.rb +1 -1
- data/lib/comet/models/streamable_event.rb +1 -1
- data/lib/comet/models/swift_destination_location.rb +1 -1
- data/lib/comet/models/test_response.rb +1 -1
- data/lib/comet/models/time_span.rb +1 -1
- data/lib/comet/models/totp_regenerated_response.rb +1 -1
- data/lib/comet/models/u2fregister_request.rb +1 -1
- data/lib/comet/models/u2fregistered_key.rb +1 -1
- data/lib/comet/models/u2fregistration_challenge_response.rb +1 -1
- data/lib/comet/models/u2fsign_request.rb +1 -1
- data/lib/comet/models/u2fsign_response.rb +1 -1
- data/lib/comet/models/uninstall_config.rb +1 -1
- data/lib/comet/models/update_campaign_device_status.rb +9 -1
- data/lib/comet/models/update_campaign_options.rb +1 -1
- data/lib/comet/models/update_campaign_properties.rb +1 -1
- data/lib/comet/models/update_campaign_skip_detail.rb +100 -0
- data/lib/comet/models/update_campaign_status.rb +1 -1
- data/lib/comet/models/update_campaign_status_device_entry.rb +9 -1
- data/lib/comet/models/user_custom_email_settings.rb +1 -1
- data/lib/comet/models/user_group.rb +1 -1
- data/lib/comet/models/user_on_server.rb +1 -1
- data/lib/comet/models/user_policy.rb +18 -1
- data/lib/comet/models/user_profile_config.rb +82 -8
- data/lib/comet/models/user_profile_fragment.rb +1 -1
- data/lib/comet/models/user_server_config.rb +1 -1
- data/lib/comet/models/vault_snapshot.rb +1 -1
- data/lib/comet/models/vmdisk_info.rb +1 -1
- data/lib/comet/models/vmdksnapshot_view_options.rb +1 -1
- data/lib/comet/models/vminfo.rb +1 -1
- data/lib/comet/models/vminfo_list.rb +1 -1
- data/lib/comet/models/vmware_connection.rb +1 -1
- data/lib/comet/models/vmware_datacenter_info.rb +1 -1
- data/lib/comet/models/vmware_datastore_info.rb +1 -1
- data/lib/comet/models/vmware_host_info.rb +1 -1
- data/lib/comet/models/vmware_machine_info.rb +1 -1
- data/lib/comet/models/vmware_network_info.rb +1 -1
- data/lib/comet/models/vmware_restore_target_options.rb +1 -1
- data/lib/comet/models/vsphere_connection.rb +1 -1
- data/lib/comet/models/vsscomponent.rb +1 -1
- data/lib/comet/models/vsswriter_info.rb +1 -1
- data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +1 -1
- data/lib/comet/models/web_authn_authenticator_selection.rb +1 -1
- data/lib/comet/models/web_authn_credential.rb +1 -1
- data/lib/comet/models/web_authn_credential_assertion.rb +1 -1
- data/lib/comet/models/web_authn_credential_descriptor.rb +1 -1
- data/lib/comet/models/web_authn_credential_entity.rb +1 -1
- data/lib/comet/models/web_authn_credential_parameter.rb +1 -1
- data/lib/comet/models/web_authn_public_key_credential_creation_options.rb +2 -4
- data/lib/comet/models/web_authn_public_key_credential_request_options.rb +1 -1
- data/lib/comet/models/web_authn_registration_challenge_response.rb +1 -1
- data/lib/comet/models/web_authn_relying_party_entity.rb +1 -1
- data/lib/comet/models/web_authn_sign_request.rb +1 -1
- data/lib/comet/models/web_authn_sign_response.rb +1 -1
- data/lib/comet/models/web_authn_user_entity.rb +1 -1
- data/lib/comet/models/web_dav_destination_location.rb +1 -1
- data/lib/comet/models/web_interface_branding_properties.rb +1 -1
- data/lib/comet/models/webhook_awsoptions.rb +96 -0
- data/lib/comet/models/webhook_option.rb +49 -2
- data/lib/comet/models/win_smbauth.rb +3 -3
- data/lib/comet/models/windows_code_sign_properties.rb +176 -1
- data/lib/comet_backup_ruby_sdk.rb +35 -1
- metadata +39 -23
- data/Gemfile.lock +0 -43
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2020-2026 Comet Licensing Ltd.
|
|
4
|
+
# Please see the LICENSE file for usage information.
|
|
5
|
+
#
|
|
6
|
+
# SPDX-License-Identifier: MIT
|
|
7
|
+
|
|
8
|
+
require 'json'
|
|
9
|
+
|
|
10
|
+
module Comet
|
|
11
|
+
|
|
12
|
+
# Office365SelectionRule is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
# Office365SelectionRule is a single entry in the ordered rule list of an
|
|
14
|
+
# Office365CustomSettingV2 (see the Rules field).
|
|
15
|
+
# Rules are applied in order from the first element of the array to the last, and a
|
|
16
|
+
# later rule overrides earlier rules for the account services it covers. For each account and
|
|
17
|
+
# each service, the last rule in the list that matches the account and covers that service
|
|
18
|
+
# decides whether the service is included in or excluded from the backup.
|
|
19
|
+
# Any account/service combination that is not covered by any matching rule is not backed up.
|
|
20
|
+
# This type is available in Comet 26.8.1 and later.
|
|
21
|
+
class Office365SelectionRule
|
|
22
|
+
|
|
23
|
+
# If true, services covered by this rule are excluded from the backup. If false, they
|
|
24
|
+
# are included.
|
|
25
|
+
# @type [Boolean] exclude
|
|
26
|
+
attr_accessor :exclude
|
|
27
|
+
|
|
28
|
+
# If true, this rule matches every account in the organization, including accounts
|
|
29
|
+
# created after the rule was saved. SubjectID and SubjectType are ignored.
|
|
30
|
+
# @type [Boolean] all_accounts
|
|
31
|
+
attr_accessor :all_accounts
|
|
32
|
+
|
|
33
|
+
# The ID of the target account (the Office365MixedVirtualAccount ID of a User, Group,
|
|
34
|
+
# Team, or SharePoint site). Ignored if AllAccounts is true. If the ID no longer exists in the
|
|
35
|
+
# organization, the rule matches nothing.
|
|
36
|
+
# @type [String] subject_id
|
|
37
|
+
attr_accessor :subject_id
|
|
38
|
+
|
|
39
|
+
# One of the MIXED_VIRTUAL_ACCOUNT_TYPE_ constants. Informational only; matching is
|
|
40
|
+
# performed by SubjectID.
|
|
41
|
+
# @type [Number] subject_type
|
|
42
|
+
attr_accessor :subject_type
|
|
43
|
+
|
|
44
|
+
# A cached copy of the subject's display name at the time the rule was saved.
|
|
45
|
+
# Informational only, for display when the organization cannot be queried. Never used for
|
|
46
|
+
# matching.
|
|
47
|
+
# @type [String] subject_display_name
|
|
48
|
+
attr_accessor :subject_display_name
|
|
49
|
+
|
|
50
|
+
# If true, this rule covers every service that the matched account supports,
|
|
51
|
+
# including services added in future Comet versions. ServiceOptions is ignored.
|
|
52
|
+
# @type [Boolean] all_services
|
|
53
|
+
attr_accessor :all_services
|
|
54
|
+
|
|
55
|
+
# A bitset of the SERVICE_ constants covered by this rule for directly-matched
|
|
56
|
+
# accounts (the subject account itself, or every account if AllAccounts is true).
|
|
57
|
+
# If zero and AllServices is false, this rule covers no services for directly-matched
|
|
58
|
+
# accounts.
|
|
59
|
+
# @type [Number] service_options
|
|
60
|
+
attr_accessor :service_options
|
|
61
|
+
|
|
62
|
+
# If true, this rule covers every service for accounts that are members of the
|
|
63
|
+
# subject Group or Team, including services added in future Comet versions.
|
|
64
|
+
# MemberServiceOptions is ignored.
|
|
65
|
+
# @type [Boolean] all_member_services
|
|
66
|
+
attr_accessor :all_member_services
|
|
67
|
+
|
|
68
|
+
# A bitset of the SERVICE_ constants covered by this rule for accounts that are
|
|
69
|
+
# members of the subject Group or Team. Ignored if AllAccounts is true.
|
|
70
|
+
# @type [Number] member_service_options
|
|
71
|
+
attr_accessor :member_service_options
|
|
72
|
+
|
|
73
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
74
|
+
attr_accessor :unknown_json_fields
|
|
75
|
+
|
|
76
|
+
def initialize
|
|
77
|
+
clear
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def clear
|
|
81
|
+
@subject_id = ''
|
|
82
|
+
@subject_type = 0
|
|
83
|
+
@subject_display_name = ''
|
|
84
|
+
@service_options = 0
|
|
85
|
+
@member_service_options = 0
|
|
86
|
+
@unknown_json_fields = {}
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# @param [String] json_string The complete object in JSON format
|
|
90
|
+
def from_json(json_string)
|
|
91
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
92
|
+
|
|
93
|
+
from_hash(JSON.parse(json_string))
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
|
97
|
+
def from_hash(obj)
|
|
98
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
99
|
+
|
|
100
|
+
obj.each do |k, v|
|
|
101
|
+
case k
|
|
102
|
+
when 'Exclude'
|
|
103
|
+
@exclude = v
|
|
104
|
+
when 'AllAccounts'
|
|
105
|
+
@all_accounts = v
|
|
106
|
+
when 'SubjectID'
|
|
107
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
108
|
+
|
|
109
|
+
@subject_id = v
|
|
110
|
+
when 'SubjectType'
|
|
111
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
112
|
+
|
|
113
|
+
@subject_type = v
|
|
114
|
+
when 'SubjectDisplayName'
|
|
115
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
116
|
+
|
|
117
|
+
@subject_display_name = v
|
|
118
|
+
when 'AllServices'
|
|
119
|
+
@all_services = v
|
|
120
|
+
when 'ServiceOptions'
|
|
121
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
122
|
+
|
|
123
|
+
@service_options = v
|
|
124
|
+
when 'AllMemberServices'
|
|
125
|
+
@all_member_services = v
|
|
126
|
+
when 'MemberServiceOptions'
|
|
127
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
128
|
+
|
|
129
|
+
@member_service_options = v
|
|
130
|
+
else
|
|
131
|
+
@unknown_json_fields[k] = v
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
137
|
+
def to_hash
|
|
138
|
+
ret = {}
|
|
139
|
+
unless @exclude.nil?
|
|
140
|
+
ret['Exclude'] = @exclude
|
|
141
|
+
end
|
|
142
|
+
unless @all_accounts.nil?
|
|
143
|
+
ret['AllAccounts'] = @all_accounts
|
|
144
|
+
end
|
|
145
|
+
unless @subject_id.nil?
|
|
146
|
+
ret['SubjectID'] = @subject_id
|
|
147
|
+
end
|
|
148
|
+
unless @subject_type.nil?
|
|
149
|
+
ret['SubjectType'] = @subject_type
|
|
150
|
+
end
|
|
151
|
+
unless @subject_display_name.nil?
|
|
152
|
+
ret['SubjectDisplayName'] = @subject_display_name
|
|
153
|
+
end
|
|
154
|
+
unless @all_services.nil?
|
|
155
|
+
ret['AllServices'] = @all_services
|
|
156
|
+
end
|
|
157
|
+
unless @service_options.nil?
|
|
158
|
+
ret['ServiceOptions'] = @service_options
|
|
159
|
+
end
|
|
160
|
+
unless @all_member_services.nil?
|
|
161
|
+
ret['AllMemberServices'] = @all_member_services
|
|
162
|
+
end
|
|
163
|
+
unless @member_service_options.nil?
|
|
164
|
+
ret['MemberServiceOptions'] = @member_service_options
|
|
165
|
+
end
|
|
166
|
+
@unknown_json_fields.each do |k, v|
|
|
167
|
+
ret[k] = v
|
|
168
|
+
end
|
|
169
|
+
ret
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
173
|
+
def to_h
|
|
174
|
+
to_hash
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# @return [String] The complete object as a JSON string
|
|
178
|
+
def to_json(options = {})
|
|
179
|
+
to_hash.to_json(options)
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
end
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2020-2026 Comet Licensing Ltd.
|
|
4
|
+
# Please see the LICENSE file for usage information.
|
|
5
|
+
#
|
|
6
|
+
# SPDX-License-Identifier: MIT
|
|
7
|
+
|
|
8
|
+
require 'json'
|
|
9
|
+
|
|
10
|
+
module Comet
|
|
11
|
+
|
|
12
|
+
# Office365ServiceRuleDecision is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
# Office365ServiceRuleDecision records which rule made the final include/exclude
|
|
14
|
+
# decision for one service of one account, as returned by the Office 365 rule
|
|
15
|
+
# evaluation APIs.
|
|
16
|
+
# This type is available in Comet 26.8.1 and later.
|
|
17
|
+
class Office365ServiceRuleDecision
|
|
18
|
+
|
|
19
|
+
# A single SERVICE_ constant bit identifying the service this decision is for.
|
|
20
|
+
# @type [Number] service_option
|
|
21
|
+
attr_accessor :service_option
|
|
22
|
+
|
|
23
|
+
# The index (into the evaluated rule list) of the last rule that decided this
|
|
24
|
+
# service for the account.
|
|
25
|
+
# @type [Number] rule_index
|
|
26
|
+
attr_accessor :rule_index
|
|
27
|
+
|
|
28
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
29
|
+
attr_accessor :unknown_json_fields
|
|
30
|
+
|
|
31
|
+
def initialize
|
|
32
|
+
clear
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def clear
|
|
36
|
+
@service_option = 0
|
|
37
|
+
@rule_index = 0
|
|
38
|
+
@unknown_json_fields = {}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# @param [String] json_string The complete object in JSON format
|
|
42
|
+
def from_json(json_string)
|
|
43
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
44
|
+
|
|
45
|
+
from_hash(JSON.parse(json_string))
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
|
49
|
+
def from_hash(obj)
|
|
50
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
51
|
+
|
|
52
|
+
obj.each do |k, v|
|
|
53
|
+
case k
|
|
54
|
+
when 'ServiceOption'
|
|
55
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
56
|
+
|
|
57
|
+
@service_option = v
|
|
58
|
+
when 'RuleIndex'
|
|
59
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
60
|
+
|
|
61
|
+
@rule_index = v
|
|
62
|
+
else
|
|
63
|
+
@unknown_json_fields[k] = v
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
69
|
+
def to_hash
|
|
70
|
+
ret = {}
|
|
71
|
+
unless @service_option.nil?
|
|
72
|
+
ret['ServiceOption'] = @service_option
|
|
73
|
+
end
|
|
74
|
+
unless @rule_index.nil?
|
|
75
|
+
ret['RuleIndex'] = @rule_index
|
|
76
|
+
end
|
|
77
|
+
@unknown_json_fields.each do |k, v|
|
|
78
|
+
ret[k] = v
|
|
79
|
+
end
|
|
80
|
+
ret
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
84
|
+
def to_h
|
|
85
|
+
to_hash
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# @return [String] The complete object as a JSON string
|
|
89
|
+
def to_json(options = {})
|
|
90
|
+
to_hash.to_json(options)
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
data/lib/comet/models/osinfo.rb
CHANGED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2020-2026 Comet Licensing Ltd.
|
|
4
|
+
# Please see the LICENSE file for usage information.
|
|
5
|
+
#
|
|
6
|
+
# SPDX-License-Identifier: MIT
|
|
7
|
+
|
|
8
|
+
require 'json'
|
|
9
|
+
|
|
10
|
+
module Comet
|
|
11
|
+
|
|
12
|
+
# Pkcs11AllowedDriver is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
class Pkcs11AllowedDriver
|
|
14
|
+
|
|
15
|
+
# File path of a permitted .so/.dll PKCS#11 driver module
|
|
16
|
+
# This field is available in Comet 26.8.1 and later.
|
|
17
|
+
# @type [String] path
|
|
18
|
+
attr_accessor :path
|
|
19
|
+
|
|
20
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
21
|
+
attr_accessor :unknown_json_fields
|
|
22
|
+
|
|
23
|
+
def initialize
|
|
24
|
+
clear
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def clear
|
|
28
|
+
@path = ''
|
|
29
|
+
@unknown_json_fields = {}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# @param [String] json_string The complete object in JSON format
|
|
33
|
+
def from_json(json_string)
|
|
34
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
35
|
+
|
|
36
|
+
from_hash(JSON.parse(json_string))
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
|
40
|
+
def from_hash(obj)
|
|
41
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
42
|
+
|
|
43
|
+
obj.each do |k, v|
|
|
44
|
+
case k
|
|
45
|
+
when 'Path'
|
|
46
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
47
|
+
|
|
48
|
+
@path = v
|
|
49
|
+
else
|
|
50
|
+
@unknown_json_fields[k] = v
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
56
|
+
def to_hash
|
|
57
|
+
ret = {}
|
|
58
|
+
ret['Path'] = @path
|
|
59
|
+
@unknown_json_fields.each do |k, v|
|
|
60
|
+
ret[k] = v
|
|
61
|
+
end
|
|
62
|
+
ret
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
66
|
+
def to_h
|
|
67
|
+
to_hash
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# @return [String] The complete object as a JSON string
|
|
71
|
+
def to_json(options = {})
|
|
72
|
+
to_hash.to_json(options)
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2020-2026 Comet Licensing Ltd.
|
|
4
|
+
# Please see the LICENSE file for usage information.
|
|
5
|
+
#
|
|
6
|
+
# SPDX-License-Identifier: MIT
|
|
7
|
+
|
|
8
|
+
require 'json'
|
|
9
|
+
|
|
10
|
+
module Comet
|
|
11
|
+
|
|
12
|
+
# Pkcs11AllowlistOptions is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
class Pkcs11AllowlistOptions
|
|
14
|
+
|
|
15
|
+
# Permitted PKCS#11 driver modules during codesigning
|
|
16
|
+
# This field is available in Comet 26.8.1 and later.
|
|
17
|
+
# @type [Array<Comet::Pkcs11AllowedDriver>] allowed_drivers
|
|
18
|
+
attr_accessor :allowed_drivers
|
|
19
|
+
|
|
20
|
+
# Set to true by the server on the first boot after upgrading; the auto-seed pulls existing module
|
|
21
|
+
# paths from branding
|
|
22
|
+
# This field is available in Comet 26.8.1 and later.
|
|
23
|
+
# @type [Boolean] allowlist_is_being_enforced
|
|
24
|
+
attr_accessor :allowlist_is_being_enforced
|
|
25
|
+
|
|
26
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
27
|
+
attr_accessor :unknown_json_fields
|
|
28
|
+
|
|
29
|
+
def initialize
|
|
30
|
+
clear
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def clear
|
|
34
|
+
@allowed_drivers = []
|
|
35
|
+
@unknown_json_fields = {}
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# @param [String] json_string The complete object in JSON format
|
|
39
|
+
def from_json(json_string)
|
|
40
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
41
|
+
|
|
42
|
+
from_hash(JSON.parse(json_string))
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
|
46
|
+
def from_hash(obj)
|
|
47
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
48
|
+
|
|
49
|
+
obj.each do |k, v|
|
|
50
|
+
case k
|
|
51
|
+
when 'AllowedDrivers'
|
|
52
|
+
if v.nil?
|
|
53
|
+
@allowed_drivers = []
|
|
54
|
+
else
|
|
55
|
+
@allowed_drivers = Array.new(v.length)
|
|
56
|
+
v.each_with_index do |v1, i1|
|
|
57
|
+
@allowed_drivers[i1] = Comet::Pkcs11AllowedDriver.new
|
|
58
|
+
@allowed_drivers[i1].from_hash(v1)
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
when 'AllowlistIsBeingEnforced'
|
|
62
|
+
@allowlist_is_being_enforced = v
|
|
63
|
+
else
|
|
64
|
+
@unknown_json_fields[k] = v
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
70
|
+
def to_hash
|
|
71
|
+
ret = {}
|
|
72
|
+
ret['AllowedDrivers'] = @allowed_drivers
|
|
73
|
+
ret['AllowlistIsBeingEnforced'] = @allowlist_is_being_enforced
|
|
74
|
+
@unknown_json_fields.each do |k, v|
|
|
75
|
+
ret[k] = v
|
|
76
|
+
end
|
|
77
|
+
ret
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
81
|
+
def to_h
|
|
82
|
+
to_hash
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# @return [String] The complete object as a JSON string
|
|
86
|
+
def to_json(options = {})
|
|
87
|
+
to_hash.to_json(options)
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2020-2026 Comet Licensing Ltd.
|
|
4
|
+
# Please see the LICENSE file for usage information.
|
|
5
|
+
#
|
|
6
|
+
# SPDX-License-Identifier: MIT
|
|
7
|
+
|
|
8
|
+
require 'json'
|
|
9
|
+
|
|
10
|
+
module Comet
|
|
11
|
+
|
|
12
|
+
# PostgreSQLConnection is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
class PostgreSQLConnection
|
|
14
|
+
|
|
15
|
+
# @type [String] host
|
|
16
|
+
attr_accessor :host
|
|
17
|
+
|
|
18
|
+
# @type [String] port
|
|
19
|
+
attr_accessor :port
|
|
20
|
+
|
|
21
|
+
# Optional
|
|
22
|
+
# @type [String] username
|
|
23
|
+
attr_accessor :username
|
|
24
|
+
|
|
25
|
+
# Optional
|
|
26
|
+
# @type [String] password
|
|
27
|
+
attr_accessor :password
|
|
28
|
+
|
|
29
|
+
# The database to connect to in order to list databases. If blank, "postgres" is used
|
|
30
|
+
# @type [String] connect_database
|
|
31
|
+
attr_accessor :connect_database
|
|
32
|
+
|
|
33
|
+
# @type [Boolean] use_tls
|
|
34
|
+
attr_accessor :use_tls
|
|
35
|
+
|
|
36
|
+
# @type [Boolean] tlsskip_verify
|
|
37
|
+
attr_accessor :tlsskip_verify
|
|
38
|
+
|
|
39
|
+
# @type [String] tlscustom_server_capath
|
|
40
|
+
attr_accessor :tlscustom_server_capath
|
|
41
|
+
|
|
42
|
+
# @type [String] tlscustom_client_crt_path
|
|
43
|
+
attr_accessor :tlscustom_client_crt_path
|
|
44
|
+
|
|
45
|
+
# @type [String] tlscustom_client_key_path
|
|
46
|
+
attr_accessor :tlscustom_client_key_path
|
|
47
|
+
|
|
48
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
49
|
+
attr_accessor :unknown_json_fields
|
|
50
|
+
|
|
51
|
+
def initialize
|
|
52
|
+
clear
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def clear
|
|
56
|
+
@host = ''
|
|
57
|
+
@port = ''
|
|
58
|
+
@username = ''
|
|
59
|
+
@password = ''
|
|
60
|
+
@connect_database = ''
|
|
61
|
+
@tlscustom_server_capath = ''
|
|
62
|
+
@tlscustom_client_crt_path = ''
|
|
63
|
+
@tlscustom_client_key_path = ''
|
|
64
|
+
@unknown_json_fields = {}
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# @param [String] json_string The complete object in JSON format
|
|
68
|
+
def from_json(json_string)
|
|
69
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
70
|
+
|
|
71
|
+
from_hash(JSON.parse(json_string))
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
|
75
|
+
def from_hash(obj)
|
|
76
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
77
|
+
|
|
78
|
+
obj.each do |k, v|
|
|
79
|
+
case k
|
|
80
|
+
when 'Host'
|
|
81
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
82
|
+
|
|
83
|
+
@host = v
|
|
84
|
+
when 'Port'
|
|
85
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
86
|
+
|
|
87
|
+
@port = v
|
|
88
|
+
when 'Username'
|
|
89
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
90
|
+
|
|
91
|
+
@username = v
|
|
92
|
+
when 'Password'
|
|
93
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
94
|
+
|
|
95
|
+
@password = v
|
|
96
|
+
when 'ConnectDatabase'
|
|
97
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
98
|
+
|
|
99
|
+
@connect_database = v
|
|
100
|
+
when 'UseTLS'
|
|
101
|
+
@use_tls = v
|
|
102
|
+
when 'TLSSkipVerify'
|
|
103
|
+
@tlsskip_verify = v
|
|
104
|
+
when 'TLSCustomServerCAPath'
|
|
105
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
106
|
+
|
|
107
|
+
@tlscustom_server_capath = v
|
|
108
|
+
when 'TLSCustomClientCrtPath'
|
|
109
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
110
|
+
|
|
111
|
+
@tlscustom_client_crt_path = v
|
|
112
|
+
when 'TLSCustomClientKeyPath'
|
|
113
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
114
|
+
|
|
115
|
+
@tlscustom_client_key_path = v
|
|
116
|
+
else
|
|
117
|
+
@unknown_json_fields[k] = v
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
123
|
+
def to_hash
|
|
124
|
+
ret = {}
|
|
125
|
+
ret['Host'] = @host
|
|
126
|
+
ret['Port'] = @port
|
|
127
|
+
ret['Username'] = @username
|
|
128
|
+
ret['Password'] = @password
|
|
129
|
+
ret['ConnectDatabase'] = @connect_database
|
|
130
|
+
ret['UseTLS'] = @use_tls
|
|
131
|
+
ret['TLSSkipVerify'] = @tlsskip_verify
|
|
132
|
+
ret['TLSCustomServerCAPath'] = @tlscustom_server_capath
|
|
133
|
+
ret['TLSCustomClientCrtPath'] = @tlscustom_client_crt_path
|
|
134
|
+
ret['TLSCustomClientKeyPath'] = @tlscustom_client_key_path
|
|
135
|
+
@unknown_json_fields.each do |k, v|
|
|
136
|
+
ret[k] = v
|
|
137
|
+
end
|
|
138
|
+
ret
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
142
|
+
def to_h
|
|
143
|
+
to_hash
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# @return [String] The complete object as a JSON string
|
|
147
|
+
def to_json(options = {})
|
|
148
|
+
to_hash.to_json(options)
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|