files.com 1.1.786 → 1.1.787
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/_VERSION +1 -1
- data/lib/files.com/api.rb +20 -5
- data/lib/files.com/api_client.rb +196 -17
- data/lib/files.com/list.rb +4 -2
- data/lib/files.com/models/action_log.rb +4 -1
- data/lib/files.com/models/action_notification_export.rb +3 -1
- data/lib/files.com/models/action_notification_export_result.rb +4 -1
- data/lib/files.com/models/ai_assistant_personality.rb +20 -7
- data/lib/files.com/models/ai_task.rb +22 -10
- data/lib/files.com/models/api_key.rb +15 -7
- data/lib/files.com/models/api_request_log.rb +4 -1
- data/lib/files.com/models/app.rb +4 -1
- data/lib/files.com/models/as2_incoming_message.rb +4 -1
- data/lib/files.com/models/as2_outgoing_message.rb +4 -1
- data/lib/files.com/models/as2_partner.rb +18 -7
- data/lib/files.com/models/as2_station.rb +14 -7
- data/lib/files.com/models/automation.rb +47 -13
- data/lib/files.com/models/automation_log.rb +4 -1
- data/lib/files.com/models/automation_run.rb +16 -9
- data/lib/files.com/models/bandwidth_snapshot.rb +4 -1
- data/lib/files.com/models/behavior.rb +27 -9
- data/lib/files.com/models/bundle.rb +57 -10
- data/lib/files.com/models/bundle_action.rb +4 -1
- data/lib/files.com/models/bundle_download.rb +4 -1
- data/lib/files.com/models/bundle_notification.rb +20 -7
- data/lib/files.com/models/bundle_recipient.rb +6 -1
- data/lib/files.com/models/bundle_registration.rb +4 -1
- data/lib/files.com/models/chat_session.rb +5 -2
- data/lib/files.com/models/child_site_management_policy.rb +18 -7
- data/lib/files.com/models/clickwrap.rb +14 -7
- data/lib/files.com/models/custom_domain.rb +18 -8
- data/lib/files.com/models/desktop_configuration_profile.rb +21 -7
- data/lib/files.com/models/dns_record.rb +4 -1
- data/lib/files.com/models/email_incoming_message.rb +4 -1
- data/lib/files.com/models/email_log.rb +4 -1
- data/lib/files.com/models/event_channel.rb +20 -7
- data/lib/files.com/models/event_delivery_attempt.rb +5 -2
- data/lib/files.com/models/event_record.rb +5 -2
- data/lib/files.com/models/event_subscription.rb +25 -7
- data/lib/files.com/models/event_target.rb +22 -7
- data/lib/files.com/models/exavault_api_request_log.rb +4 -1
- data/lib/files.com/models/expectation.rb +23 -10
- data/lib/files.com/models/expectation_evaluation.rb +5 -2
- data/lib/files.com/models/expectation_incident.rb +20 -11
- data/lib/files.com/models/external_event.rb +6 -2
- data/lib/files.com/models/file.rb +110 -37
- data/lib/files.com/models/file_comment.rb +14 -7
- data/lib/files.com/models/file_comment_reaction.rb +6 -3
- data/lib/files.com/models/file_migration.rb +1 -1
- data/lib/files.com/models/file_migration_log.rb +4 -1
- data/lib/files.com/models/folder.rb +11 -3
- data/lib/files.com/models/form_field_set.rb +26 -7
- data/lib/files.com/models/ftp_action_log.rb +4 -1
- data/lib/files.com/models/gpg_key.rb +15 -7
- data/lib/files.com/models/group.rb +30 -7
- data/lib/files.com/models/group_user.rb +16 -6
- data/lib/files.com/models/history.rb +23 -8
- data/lib/files.com/models/history_export.rb +2 -1
- data/lib/files.com/models/history_export_result.rb +4 -1
- data/lib/files.com/models/holiday_calendar.rb +15 -7
- data/lib/files.com/models/holiday_region.rb +4 -1
- data/lib/files.com/models/inbound_s3_log.rb +4 -1
- data/lib/files.com/models/inbox_recipient.rb +6 -1
- data/lib/files.com/models/inbox_registration.rb +4 -1
- data/lib/files.com/models/inbox_upload.rb +4 -1
- data/lib/files.com/models/integration_centric_profile.rb +17 -7
- data/lib/files.com/models/invoice.rb +5 -2
- data/lib/files.com/models/ip_address.rb +16 -4
- data/lib/files.com/models/key_lifecycle_rule.rb +17 -7
- data/lib/files.com/models/lock.rb +16 -6
- data/lib/files.com/models/metadata_category.rb +19 -9
- data/lib/files.com/models/notification.rb +39 -7
- data/lib/files.com/models/outbound_connection_log.rb +4 -1
- data/lib/files.com/models/partner.rb +32 -7
- data/lib/files.com/models/partner_channel.rb +17 -7
- data/lib/files.com/models/partner_channel_template.rb +17 -7
- data/lib/files.com/models/partner_site.rb +5 -3
- data/lib/files.com/models/partner_site_request.rb +10 -4
- data/lib/files.com/models/payment.rb +5 -2
- data/lib/files.com/models/pending_work_event.rb +5 -2
- data/lib/files.com/models/permission.rb +12 -4
- data/lib/files.com/models/public_hosting_request_log.rb +4 -1
- data/lib/files.com/models/public_key.rb +15 -7
- data/lib/files.com/models/remote_bandwidth_snapshot.rb +4 -1
- data/lib/files.com/models/remote_mount_backend.rb +25 -10
- data/lib/files.com/models/remote_server.rb +46 -14
- data/lib/files.com/models/remote_server_credential.rb +14 -7
- data/lib/files.com/models/request.rb +17 -6
- data/lib/files.com/models/restore.rb +8 -1
- data/lib/files.com/models/schedule.rb +14 -7
- data/lib/files.com/models/scheduled_export.rb +18 -7
- data/lib/files.com/models/scim_log.rb +5 -2
- data/lib/files.com/models/secret.rb +15 -7
- data/lib/files.com/models/session.rb +1 -0
- data/lib/files.com/models/settings_change.rb +4 -1
- data/lib/files.com/models/sftp_action_log.rb +4 -1
- data/lib/files.com/models/sftp_host_key.rb +17 -7
- data/lib/files.com/models/share_group.rb +14 -7
- data/lib/files.com/models/siem_http_destination.rb +67 -7
- data/lib/files.com/models/siem_http_destination_event.rb +5 -2
- data/lib/files.com/models/site.rb +109 -0
- data/lib/files.com/models/site_subdomain_redirect.rb +10 -5
- data/lib/files.com/models/snapshot.rb +19 -10
- data/lib/files.com/models/sso_event.rb +5 -2
- data/lib/files.com/models/sso_strategy.rb +10 -5
- data/lib/files.com/models/style.rb +9 -6
- data/lib/files.com/models/sync.rb +36 -13
- data/lib/files.com/models/sync_log.rb +4 -1
- data/lib/files.com/models/sync_run.rb +5 -2
- data/lib/files.com/models/usage_daily_snapshot.rb +4 -1
- data/lib/files.com/models/usage_snapshot.rb +4 -1
- data/lib/files.com/models/user.rb +124 -16
- data/lib/files.com/models/user_additional_email_recipient.rb +14 -7
- data/lib/files.com/models/user_cipher_use.rb +4 -1
- data/lib/files.com/models/user_lifecycle_rule.rb +26 -7
- data/lib/files.com/models/user_request.rb +11 -5
- data/lib/files.com/models/user_security_event.rb +5 -2
- data/lib/files.com/models/user_sftp_client_use.rb +4 -1
- data/lib/files.com/models/web_dav_action_log.rb +4 -1
- data/lib/files.com/models/webhook_test.rb +3 -0
- data/lib/files.com/models/workspace.rb +14 -7
- data/lib/files.com/util.rb +32 -1
- data/lib/files.com.rb +54 -1
- data/spec/lib/api_client_spec.rb +483 -0
- data/spec/list_spec.rb +31 -2
- data/spec/models/persistence_spec.rb +1 -1
- data/spec/models/user_spec.rb +20 -0
- metadata +2 -1
|
@@ -61,7 +61,7 @@ module Files
|
|
|
61
61
|
# name - string - Name of the share group
|
|
62
62
|
# members - array(object) - A list of share group members.
|
|
63
63
|
def update(params = {})
|
|
64
|
-
params
|
|
64
|
+
params = (params || {}).dup
|
|
65
65
|
params[:id] = @attributes[:id]
|
|
66
66
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
67
67
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
|
|
@@ -72,18 +72,21 @@ module Files
|
|
|
72
72
|
|
|
73
73
|
response, options = Api.send_request("/share_groups/#{@attributes[:id]}", :patch, params, @options) { |reply| reply.require_object("ShareGroup") }
|
|
74
74
|
@attributes = response.data
|
|
75
|
+
@options = @options.merge(options)
|
|
75
76
|
[ response, options ]
|
|
76
77
|
end
|
|
77
78
|
|
|
78
79
|
# Returns the [response, options] pair from Files::Api.send_request.
|
|
79
80
|
def delete(params = {})
|
|
80
|
-
params
|
|
81
|
+
params = (params || {}).dup
|
|
81
82
|
params[:id] = @attributes[:id]
|
|
82
83
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
83
84
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
|
|
84
85
|
raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
|
|
85
86
|
|
|
86
|
-
Api.send_request("/share_groups/#{@attributes[:id]}", :delete, params, @options)
|
|
87
|
+
response, options = Api.send_request("/share_groups/#{@attributes[:id]}", :delete, params, @options)
|
|
88
|
+
@options = @options.merge(options)
|
|
89
|
+
[ response, options ]
|
|
87
90
|
end
|
|
88
91
|
|
|
89
92
|
# Alias for #delete. Returns nil.
|
|
@@ -98,6 +101,7 @@ module Files
|
|
|
98
101
|
else
|
|
99
102
|
new_obj = ShareGroup.create(@attributes, @options)
|
|
100
103
|
@attributes = new_obj.attributes
|
|
104
|
+
@options = @options.merge(new_obj.options)
|
|
101
105
|
end
|
|
102
106
|
|
|
103
107
|
true
|
|
@@ -117,8 +121,11 @@ module Files
|
|
|
117
121
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if !params[:cursor].nil? and !params[:cursor].is_a?(String)
|
|
118
122
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if !params[:per_page].nil? and !params[:per_page].is_a?(Integer)
|
|
119
123
|
|
|
124
|
+
list_options = options.dup
|
|
120
125
|
List.new(ShareGroup, params) do |page_params, &check_page|
|
|
121
|
-
Api.send_request("/share_groups", :get, page_params,
|
|
126
|
+
response, page_options = Api.send_request("/share_groups", :get, page_params, list_options, &check_page)
|
|
127
|
+
list_options = list_options.merge(page_options)
|
|
128
|
+
[ response, page_options ]
|
|
122
129
|
end
|
|
123
130
|
end
|
|
124
131
|
|
|
@@ -134,7 +141,7 @@ module Files
|
|
|
134
141
|
#
|
|
135
142
|
# Returns a Files::ShareGroup.
|
|
136
143
|
def self.find(id, params = {}, options = {})
|
|
137
|
-
params
|
|
144
|
+
params = (params || {}).dup
|
|
138
145
|
params[:id] = id
|
|
139
146
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
|
|
140
147
|
raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
|
|
@@ -179,7 +186,7 @@ module Files
|
|
|
179
186
|
#
|
|
180
187
|
# Returns a Files::ShareGroup.
|
|
181
188
|
def self.update(id, params = {}, options = {})
|
|
182
|
-
params
|
|
189
|
+
params = (params || {}).dup
|
|
183
190
|
params[:id] = id
|
|
184
191
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
|
|
185
192
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if !params[:notes].nil? and !params[:notes].is_a?(String)
|
|
@@ -196,7 +203,7 @@ module Files
|
|
|
196
203
|
#
|
|
197
204
|
# Returns nil.
|
|
198
205
|
def self.delete(id, params = {}, options = {})
|
|
199
|
-
params
|
|
206
|
+
params = (params || {}).dup
|
|
200
207
|
params[:id] = id
|
|
201
208
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
|
|
202
209
|
raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
|
|
@@ -604,11 +604,13 @@ module Files
|
|
|
604
604
|
# destination_type - string - Destination Type
|
|
605
605
|
# destination_url - string - Destination Url
|
|
606
606
|
def update(params = {})
|
|
607
|
-
params
|
|
607
|
+
params = (params || {}).dup
|
|
608
608
|
params[:id] = @attributes[:id]
|
|
609
609
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
610
610
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
|
|
611
611
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if !params[:name].nil? and !params[:name].is_a?(String)
|
|
612
|
+
raise InvalidParameterError.new("Bad parameter: additional_headers must be an Hash") if !params[:additional_headers].nil? and !params[:additional_headers].is_a?(Hash)
|
|
613
|
+
raise InvalidParameterError.new("Bad parameter: sending_active must be a single value, not #{params[:sending_active].class}") if [ Array, Hash ].any? { |klass| params[:sending_active].is_a?(klass) }
|
|
612
614
|
raise InvalidParameterError.new("Bad parameter: generic_payload_type must be an String") if !params[:generic_payload_type].nil? and !params[:generic_payload_type].is_a?(String)
|
|
613
615
|
raise InvalidParameterError.new("Bad parameter: file_destination_path must be an String") if !params[:file_destination_path].nil? and !params[:file_destination_path].is_a?(String)
|
|
614
616
|
raise InvalidParameterError.new("Bad parameter: file_format must be an String") if !params[:file_format].nil? and !params[:file_format].is_a?(String)
|
|
@@ -625,24 +627,39 @@ module Files
|
|
|
625
627
|
raise InvalidParameterError.new("Bad parameter: solar_winds_token must be an String") if !params[:solar_winds_token].nil? and !params[:solar_winds_token].is_a?(String)
|
|
626
628
|
raise InvalidParameterError.new("Bad parameter: new_relic_api_key must be an String") if !params[:new_relic_api_key].nil? and !params[:new_relic_api_key].is_a?(String)
|
|
627
629
|
raise InvalidParameterError.new("Bad parameter: datadog_api_key must be an String") if !params[:datadog_api_key].nil? and !params[:datadog_api_key].is_a?(String)
|
|
630
|
+
raise InvalidParameterError.new("Bad parameter: action_send_enabled must be a single value, not #{params[:action_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:action_send_enabled].is_a?(klass) }
|
|
631
|
+
raise InvalidParameterError.new("Bad parameter: sftp_action_send_enabled must be a single value, not #{params[:sftp_action_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:sftp_action_send_enabled].is_a?(klass) }
|
|
632
|
+
raise InvalidParameterError.new("Bad parameter: ftp_action_send_enabled must be a single value, not #{params[:ftp_action_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:ftp_action_send_enabled].is_a?(klass) }
|
|
633
|
+
raise InvalidParameterError.new("Bad parameter: web_dav_action_send_enabled must be a single value, not #{params[:web_dav_action_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:web_dav_action_send_enabled].is_a?(klass) }
|
|
634
|
+
raise InvalidParameterError.new("Bad parameter: sync_send_enabled must be a single value, not #{params[:sync_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:sync_send_enabled].is_a?(klass) }
|
|
635
|
+
raise InvalidParameterError.new("Bad parameter: outbound_connection_send_enabled must be a single value, not #{params[:outbound_connection_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:outbound_connection_send_enabled].is_a?(klass) }
|
|
636
|
+
raise InvalidParameterError.new("Bad parameter: automation_send_enabled must be a single value, not #{params[:automation_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:automation_send_enabled].is_a?(klass) }
|
|
637
|
+
raise InvalidParameterError.new("Bad parameter: api_request_send_enabled must be a single value, not #{params[:api_request_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:api_request_send_enabled].is_a?(klass) }
|
|
638
|
+
raise InvalidParameterError.new("Bad parameter: public_hosting_request_send_enabled must be a single value, not #{params[:public_hosting_request_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:public_hosting_request_send_enabled].is_a?(klass) }
|
|
639
|
+
raise InvalidParameterError.new("Bad parameter: email_send_enabled must be a single value, not #{params[:email_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:email_send_enabled].is_a?(klass) }
|
|
640
|
+
raise InvalidParameterError.new("Bad parameter: exavault_api_request_send_enabled must be a single value, not #{params[:exavault_api_request_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:exavault_api_request_send_enabled].is_a?(klass) }
|
|
641
|
+
raise InvalidParameterError.new("Bad parameter: settings_change_send_enabled must be a single value, not #{params[:settings_change_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:settings_change_send_enabled].is_a?(klass) }
|
|
628
642
|
raise InvalidParameterError.new("Bad parameter: destination_type must be an String") if !params[:destination_type].nil? and !params[:destination_type].is_a?(String)
|
|
629
643
|
raise InvalidParameterError.new("Bad parameter: destination_url must be an String") if !params[:destination_url].nil? and !params[:destination_url].is_a?(String)
|
|
630
644
|
raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
|
|
631
645
|
|
|
632
646
|
response, options = Api.send_request("/siem_http_destinations/#{@attributes[:id]}", :patch, params, @options) { |reply| reply.require_object("SiemHttpDestination") }
|
|
633
647
|
@attributes = response.data
|
|
648
|
+
@options = @options.merge(options)
|
|
634
649
|
[ response, options ]
|
|
635
650
|
end
|
|
636
651
|
|
|
637
652
|
# Returns the [response, options] pair from Files::Api.send_request.
|
|
638
653
|
def delete(params = {})
|
|
639
|
-
params
|
|
654
|
+
params = (params || {}).dup
|
|
640
655
|
params[:id] = @attributes[:id]
|
|
641
656
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
642
657
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
|
|
643
658
|
raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
|
|
644
659
|
|
|
645
|
-
Api.send_request("/siem_http_destinations/#{@attributes[:id]}", :delete, params, @options)
|
|
660
|
+
response, options = Api.send_request("/siem_http_destinations/#{@attributes[:id]}", :delete, params, @options)
|
|
661
|
+
@options = @options.merge(options)
|
|
662
|
+
[ response, options ]
|
|
646
663
|
end
|
|
647
664
|
|
|
648
665
|
# Alias for #delete. Returns nil.
|
|
@@ -657,6 +674,7 @@ module Files
|
|
|
657
674
|
else
|
|
658
675
|
new_obj = SiemHttpDestination.create(@attributes, @options)
|
|
659
676
|
@attributes = new_obj.attributes
|
|
677
|
+
@options = @options.merge(new_obj.options)
|
|
660
678
|
end
|
|
661
679
|
|
|
662
680
|
true
|
|
@@ -674,8 +692,11 @@ module Files
|
|
|
674
692
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if !params[:cursor].nil? and !params[:cursor].is_a?(String)
|
|
675
693
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if !params[:per_page].nil? and !params[:per_page].is_a?(Integer)
|
|
676
694
|
|
|
695
|
+
list_options = options.dup
|
|
677
696
|
List.new(SiemHttpDestination, params) do |page_params, &check_page|
|
|
678
|
-
Api.send_request("/siem_http_destinations", :get, page_params,
|
|
697
|
+
response, page_options = Api.send_request("/siem_http_destinations", :get, page_params, list_options, &check_page)
|
|
698
|
+
list_options = list_options.merge(page_options)
|
|
699
|
+
[ response, page_options ]
|
|
679
700
|
end
|
|
680
701
|
end
|
|
681
702
|
|
|
@@ -691,7 +712,7 @@ module Files
|
|
|
691
712
|
#
|
|
692
713
|
# Returns a Files::SiemHttpDestination.
|
|
693
714
|
def self.find(id, params = {}, options = {})
|
|
694
|
-
params
|
|
715
|
+
params = (params || {}).dup
|
|
695
716
|
params[:id] = id
|
|
696
717
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
|
|
697
718
|
raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
|
|
@@ -746,6 +767,7 @@ module Files
|
|
|
746
767
|
def self.create(params = {}, options = {})
|
|
747
768
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if !params[:name].nil? and !params[:name].is_a?(String)
|
|
748
769
|
raise InvalidParameterError.new("Bad parameter: additional_headers must be an Hash") if !params[:additional_headers].nil? and !params[:additional_headers].is_a?(Hash)
|
|
770
|
+
raise InvalidParameterError.new("Bad parameter: sending_active must be a single value, not #{params[:sending_active].class}") if [ Array, Hash ].any? { |klass| params[:sending_active].is_a?(klass) }
|
|
749
771
|
raise InvalidParameterError.new("Bad parameter: generic_payload_type must be an String") if !params[:generic_payload_type].nil? and !params[:generic_payload_type].is_a?(String)
|
|
750
772
|
raise InvalidParameterError.new("Bad parameter: file_destination_path must be an String") if !params[:file_destination_path].nil? and !params[:file_destination_path].is_a?(String)
|
|
751
773
|
raise InvalidParameterError.new("Bad parameter: file_format must be an String") if !params[:file_format].nil? and !params[:file_format].is_a?(String)
|
|
@@ -762,6 +784,18 @@ module Files
|
|
|
762
784
|
raise InvalidParameterError.new("Bad parameter: solar_winds_token must be an String") if !params[:solar_winds_token].nil? and !params[:solar_winds_token].is_a?(String)
|
|
763
785
|
raise InvalidParameterError.new("Bad parameter: new_relic_api_key must be an String") if !params[:new_relic_api_key].nil? and !params[:new_relic_api_key].is_a?(String)
|
|
764
786
|
raise InvalidParameterError.new("Bad parameter: datadog_api_key must be an String") if !params[:datadog_api_key].nil? and !params[:datadog_api_key].is_a?(String)
|
|
787
|
+
raise InvalidParameterError.new("Bad parameter: action_send_enabled must be a single value, not #{params[:action_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:action_send_enabled].is_a?(klass) }
|
|
788
|
+
raise InvalidParameterError.new("Bad parameter: sftp_action_send_enabled must be a single value, not #{params[:sftp_action_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:sftp_action_send_enabled].is_a?(klass) }
|
|
789
|
+
raise InvalidParameterError.new("Bad parameter: ftp_action_send_enabled must be a single value, not #{params[:ftp_action_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:ftp_action_send_enabled].is_a?(klass) }
|
|
790
|
+
raise InvalidParameterError.new("Bad parameter: web_dav_action_send_enabled must be a single value, not #{params[:web_dav_action_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:web_dav_action_send_enabled].is_a?(klass) }
|
|
791
|
+
raise InvalidParameterError.new("Bad parameter: sync_send_enabled must be a single value, not #{params[:sync_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:sync_send_enabled].is_a?(klass) }
|
|
792
|
+
raise InvalidParameterError.new("Bad parameter: outbound_connection_send_enabled must be a single value, not #{params[:outbound_connection_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:outbound_connection_send_enabled].is_a?(klass) }
|
|
793
|
+
raise InvalidParameterError.new("Bad parameter: automation_send_enabled must be a single value, not #{params[:automation_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:automation_send_enabled].is_a?(klass) }
|
|
794
|
+
raise InvalidParameterError.new("Bad parameter: api_request_send_enabled must be a single value, not #{params[:api_request_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:api_request_send_enabled].is_a?(klass) }
|
|
795
|
+
raise InvalidParameterError.new("Bad parameter: public_hosting_request_send_enabled must be a single value, not #{params[:public_hosting_request_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:public_hosting_request_send_enabled].is_a?(klass) }
|
|
796
|
+
raise InvalidParameterError.new("Bad parameter: email_send_enabled must be a single value, not #{params[:email_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:email_send_enabled].is_a?(klass) }
|
|
797
|
+
raise InvalidParameterError.new("Bad parameter: exavault_api_request_send_enabled must be a single value, not #{params[:exavault_api_request_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:exavault_api_request_send_enabled].is_a?(klass) }
|
|
798
|
+
raise InvalidParameterError.new("Bad parameter: settings_change_send_enabled must be a single value, not #{params[:settings_change_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:settings_change_send_enabled].is_a?(klass) }
|
|
765
799
|
raise InvalidParameterError.new("Bad parameter: destination_type must be an String") if !params[:destination_type].nil? and !params[:destination_type].is_a?(String)
|
|
766
800
|
raise InvalidParameterError.new("Bad parameter: destination_url must be an String") if !params[:destination_url].nil? and !params[:destination_url].is_a?(String)
|
|
767
801
|
raise MissingParameterError.new("Parameter missing: destination_type") if params[:destination_type].nil?
|
|
@@ -816,6 +850,7 @@ module Files
|
|
|
816
850
|
raise InvalidParameterError.new("Bad parameter: destination_url must be an String") if !params[:destination_url].nil? and !params[:destination_url].is_a?(String)
|
|
817
851
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if !params[:name].nil? and !params[:name].is_a?(String)
|
|
818
852
|
raise InvalidParameterError.new("Bad parameter: additional_headers must be an Hash") if !params[:additional_headers].nil? and !params[:additional_headers].is_a?(Hash)
|
|
853
|
+
raise InvalidParameterError.new("Bad parameter: sending_active must be a single value, not #{params[:sending_active].class}") if [ Array, Hash ].any? { |klass| params[:sending_active].is_a?(klass) }
|
|
819
854
|
raise InvalidParameterError.new("Bad parameter: generic_payload_type must be an String") if !params[:generic_payload_type].nil? and !params[:generic_payload_type].is_a?(String)
|
|
820
855
|
raise InvalidParameterError.new("Bad parameter: file_destination_path must be an String") if !params[:file_destination_path].nil? and !params[:file_destination_path].is_a?(String)
|
|
821
856
|
raise InvalidParameterError.new("Bad parameter: file_format must be an String") if !params[:file_format].nil? and !params[:file_format].is_a?(String)
|
|
@@ -832,6 +867,18 @@ module Files
|
|
|
832
867
|
raise InvalidParameterError.new("Bad parameter: solar_winds_token must be an String") if !params[:solar_winds_token].nil? and !params[:solar_winds_token].is_a?(String)
|
|
833
868
|
raise InvalidParameterError.new("Bad parameter: new_relic_api_key must be an String") if !params[:new_relic_api_key].nil? and !params[:new_relic_api_key].is_a?(String)
|
|
834
869
|
raise InvalidParameterError.new("Bad parameter: datadog_api_key must be an String") if !params[:datadog_api_key].nil? and !params[:datadog_api_key].is_a?(String)
|
|
870
|
+
raise InvalidParameterError.new("Bad parameter: action_send_enabled must be a single value, not #{params[:action_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:action_send_enabled].is_a?(klass) }
|
|
871
|
+
raise InvalidParameterError.new("Bad parameter: sftp_action_send_enabled must be a single value, not #{params[:sftp_action_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:sftp_action_send_enabled].is_a?(klass) }
|
|
872
|
+
raise InvalidParameterError.new("Bad parameter: ftp_action_send_enabled must be a single value, not #{params[:ftp_action_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:ftp_action_send_enabled].is_a?(klass) }
|
|
873
|
+
raise InvalidParameterError.new("Bad parameter: web_dav_action_send_enabled must be a single value, not #{params[:web_dav_action_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:web_dav_action_send_enabled].is_a?(klass) }
|
|
874
|
+
raise InvalidParameterError.new("Bad parameter: sync_send_enabled must be a single value, not #{params[:sync_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:sync_send_enabled].is_a?(klass) }
|
|
875
|
+
raise InvalidParameterError.new("Bad parameter: outbound_connection_send_enabled must be a single value, not #{params[:outbound_connection_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:outbound_connection_send_enabled].is_a?(klass) }
|
|
876
|
+
raise InvalidParameterError.new("Bad parameter: automation_send_enabled must be a single value, not #{params[:automation_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:automation_send_enabled].is_a?(klass) }
|
|
877
|
+
raise InvalidParameterError.new("Bad parameter: api_request_send_enabled must be a single value, not #{params[:api_request_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:api_request_send_enabled].is_a?(klass) }
|
|
878
|
+
raise InvalidParameterError.new("Bad parameter: public_hosting_request_send_enabled must be a single value, not #{params[:public_hosting_request_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:public_hosting_request_send_enabled].is_a?(klass) }
|
|
879
|
+
raise InvalidParameterError.new("Bad parameter: email_send_enabled must be a single value, not #{params[:email_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:email_send_enabled].is_a?(klass) }
|
|
880
|
+
raise InvalidParameterError.new("Bad parameter: exavault_api_request_send_enabled must be a single value, not #{params[:exavault_api_request_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:exavault_api_request_send_enabled].is_a?(klass) }
|
|
881
|
+
raise InvalidParameterError.new("Bad parameter: settings_change_send_enabled must be a single value, not #{params[:settings_change_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:settings_change_send_enabled].is_a?(klass) }
|
|
835
882
|
|
|
836
883
|
Api.send_request("/siem_http_destinations/send_test_entry", :post, params, options)
|
|
837
884
|
nil
|
|
@@ -877,11 +924,12 @@ module Files
|
|
|
877
924
|
#
|
|
878
925
|
# Returns a Files::SiemHttpDestination.
|
|
879
926
|
def self.update(id, params = {}, options = {})
|
|
880
|
-
params
|
|
927
|
+
params = (params || {}).dup
|
|
881
928
|
params[:id] = id
|
|
882
929
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
|
|
883
930
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if !params[:name].nil? and !params[:name].is_a?(String)
|
|
884
931
|
raise InvalidParameterError.new("Bad parameter: additional_headers must be an Hash") if !params[:additional_headers].nil? and !params[:additional_headers].is_a?(Hash)
|
|
932
|
+
raise InvalidParameterError.new("Bad parameter: sending_active must be a single value, not #{params[:sending_active].class}") if [ Array, Hash ].any? { |klass| params[:sending_active].is_a?(klass) }
|
|
885
933
|
raise InvalidParameterError.new("Bad parameter: generic_payload_type must be an String") if !params[:generic_payload_type].nil? and !params[:generic_payload_type].is_a?(String)
|
|
886
934
|
raise InvalidParameterError.new("Bad parameter: file_destination_path must be an String") if !params[:file_destination_path].nil? and !params[:file_destination_path].is_a?(String)
|
|
887
935
|
raise InvalidParameterError.new("Bad parameter: file_format must be an String") if !params[:file_format].nil? and !params[:file_format].is_a?(String)
|
|
@@ -898,6 +946,18 @@ module Files
|
|
|
898
946
|
raise InvalidParameterError.new("Bad parameter: solar_winds_token must be an String") if !params[:solar_winds_token].nil? and !params[:solar_winds_token].is_a?(String)
|
|
899
947
|
raise InvalidParameterError.new("Bad parameter: new_relic_api_key must be an String") if !params[:new_relic_api_key].nil? and !params[:new_relic_api_key].is_a?(String)
|
|
900
948
|
raise InvalidParameterError.new("Bad parameter: datadog_api_key must be an String") if !params[:datadog_api_key].nil? and !params[:datadog_api_key].is_a?(String)
|
|
949
|
+
raise InvalidParameterError.new("Bad parameter: action_send_enabled must be a single value, not #{params[:action_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:action_send_enabled].is_a?(klass) }
|
|
950
|
+
raise InvalidParameterError.new("Bad parameter: sftp_action_send_enabled must be a single value, not #{params[:sftp_action_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:sftp_action_send_enabled].is_a?(klass) }
|
|
951
|
+
raise InvalidParameterError.new("Bad parameter: ftp_action_send_enabled must be a single value, not #{params[:ftp_action_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:ftp_action_send_enabled].is_a?(klass) }
|
|
952
|
+
raise InvalidParameterError.new("Bad parameter: web_dav_action_send_enabled must be a single value, not #{params[:web_dav_action_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:web_dav_action_send_enabled].is_a?(klass) }
|
|
953
|
+
raise InvalidParameterError.new("Bad parameter: sync_send_enabled must be a single value, not #{params[:sync_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:sync_send_enabled].is_a?(klass) }
|
|
954
|
+
raise InvalidParameterError.new("Bad parameter: outbound_connection_send_enabled must be a single value, not #{params[:outbound_connection_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:outbound_connection_send_enabled].is_a?(klass) }
|
|
955
|
+
raise InvalidParameterError.new("Bad parameter: automation_send_enabled must be a single value, not #{params[:automation_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:automation_send_enabled].is_a?(klass) }
|
|
956
|
+
raise InvalidParameterError.new("Bad parameter: api_request_send_enabled must be a single value, not #{params[:api_request_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:api_request_send_enabled].is_a?(klass) }
|
|
957
|
+
raise InvalidParameterError.new("Bad parameter: public_hosting_request_send_enabled must be a single value, not #{params[:public_hosting_request_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:public_hosting_request_send_enabled].is_a?(klass) }
|
|
958
|
+
raise InvalidParameterError.new("Bad parameter: email_send_enabled must be a single value, not #{params[:email_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:email_send_enabled].is_a?(klass) }
|
|
959
|
+
raise InvalidParameterError.new("Bad parameter: exavault_api_request_send_enabled must be a single value, not #{params[:exavault_api_request_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:exavault_api_request_send_enabled].is_a?(klass) }
|
|
960
|
+
raise InvalidParameterError.new("Bad parameter: settings_change_send_enabled must be a single value, not #{params[:settings_change_send_enabled].class}") if [ Array, Hash ].any? { |klass| params[:settings_change_send_enabled].is_a?(klass) }
|
|
901
961
|
raise InvalidParameterError.new("Bad parameter: destination_type must be an String") if !params[:destination_type].nil? and !params[:destination_type].is_a?(String)
|
|
902
962
|
raise InvalidParameterError.new("Bad parameter: destination_url must be an String") if !params[:destination_url].nil? and !params[:destination_url].is_a?(String)
|
|
903
963
|
raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
|
|
@@ -911,7 +971,7 @@ module Files
|
|
|
911
971
|
#
|
|
912
972
|
# Returns nil.
|
|
913
973
|
def self.delete(id, params = {}, options = {})
|
|
914
|
-
params
|
|
974
|
+
params = (params || {}).dup
|
|
915
975
|
params[:id] = id
|
|
916
976
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
|
|
917
977
|
raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
|
|
@@ -75,8 +75,11 @@ module Files
|
|
|
75
75
|
raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if !params[:filter_lt].nil? and !params[:filter_lt].is_a?(Hash)
|
|
76
76
|
raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if !params[:filter_lteq].nil? and !params[:filter_lteq].is_a?(Hash)
|
|
77
77
|
|
|
78
|
+
list_options = options.dup
|
|
78
79
|
List.new(SiemHttpDestinationEvent, params) do |page_params, &check_page|
|
|
79
|
-
Api.send_request("/siem_http_destination_events", :get, page_params,
|
|
80
|
+
response, page_options = Api.send_request("/siem_http_destination_events", :get, page_params, list_options, &check_page)
|
|
81
|
+
list_options = list_options.merge(page_options)
|
|
82
|
+
[ response, page_options ]
|
|
80
83
|
end
|
|
81
84
|
end
|
|
82
85
|
|
|
@@ -92,7 +95,7 @@ module Files
|
|
|
92
95
|
#
|
|
93
96
|
# Returns a Files::SiemHttpDestinationEvent.
|
|
94
97
|
def self.find(id, params = {}, options = {})
|
|
95
|
-
params
|
|
98
|
+
params = (params || {}).dup
|
|
96
99
|
params[:id] = id
|
|
97
100
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
|
|
98
101
|
raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
|
|
@@ -1238,44 +1238,140 @@ module Files
|
|
|
1238
1238
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if !params[:name].nil? and !params[:name].is_a?(String)
|
|
1239
1239
|
raise InvalidParameterError.new("Bad parameter: subdomain must be an String") if !params[:subdomain].nil? and !params[:subdomain].is_a?(String)
|
|
1240
1240
|
raise InvalidParameterError.new("Bad parameter: domain must be an String") if !params[:domain].nil? and !params[:domain].is_a?(String)
|
|
1241
|
+
raise InvalidParameterError.new("Bad parameter: domain_hsts_header must be a single value, not #{params[:domain_hsts_header].class}") if [ Array, Hash ].any? { |klass| params[:domain_hsts_header].is_a?(klass) }
|
|
1241
1242
|
raise InvalidParameterError.new("Bad parameter: domain_letsencrypt_chain must be an String") if !params[:domain_letsencrypt_chain].nil? and !params[:domain_letsencrypt_chain].is_a?(String)
|
|
1242
1243
|
raise InvalidParameterError.new("Bad parameter: email must be an String") if !params[:email].nil? and !params[:email].is_a?(String)
|
|
1243
1244
|
raise InvalidParameterError.new("Bad parameter: reply_to_email must be an String") if !params[:reply_to_email].nil? and !params[:reply_to_email].is_a?(String)
|
|
1245
|
+
raise InvalidParameterError.new("Bad parameter: allow_bundle_names must be a single value, not #{params[:allow_bundle_names].class}") if [ Array, Hash ].any? { |klass| params[:allow_bundle_names].is_a?(klass) }
|
|
1244
1246
|
raise InvalidParameterError.new("Bad parameter: bundle_expiration must be an Integer") if !params[:bundle_expiration].nil? and !params[:bundle_expiration].is_a?(Integer)
|
|
1247
|
+
raise InvalidParameterError.new("Bad parameter: welcome_email_enabled must be a single value, not #{params[:welcome_email_enabled].class}") if [ Array, Hash ].any? { |klass| params[:welcome_email_enabled].is_a?(klass) }
|
|
1248
|
+
raise InvalidParameterError.new("Bad parameter: ask_about_overwrites must be a single value, not #{params[:ask_about_overwrites].class}") if [ Array, Hash ].any? { |klass| params[:ask_about_overwrites].is_a?(klass) }
|
|
1249
|
+
raise InvalidParameterError.new("Bad parameter: show_request_access_link must be a single value, not #{params[:show_request_access_link].class}") if [ Array, Hash ].any? { |klass| params[:show_request_access_link].is_a?(klass) }
|
|
1250
|
+
raise InvalidParameterError.new("Bad parameter: always_mkdir_parents must be a single value, not #{params[:always_mkdir_parents].class}") if [ Array, Hash ].any? { |klass| params[:always_mkdir_parents].is_a?(klass) }
|
|
1245
1251
|
raise InvalidParameterError.new("Bad parameter: welcome_email_cc must be an String") if !params[:welcome_email_cc].nil? and !params[:welcome_email_cc].is_a?(String)
|
|
1246
1252
|
raise InvalidParameterError.new("Bad parameter: welcome_email_subject must be an String") if !params[:welcome_email_subject].nil? and !params[:welcome_email_subject].is_a?(String)
|
|
1247
1253
|
raise InvalidParameterError.new("Bad parameter: welcome_custom_text must be an String") if !params[:welcome_custom_text].nil? and !params[:welcome_custom_text].is_a?(String)
|
|
1248
1254
|
raise InvalidParameterError.new("Bad parameter: language must be an String") if !params[:language].nil? and !params[:language].is_a?(String)
|
|
1255
|
+
raise InvalidParameterError.new("Bad parameter: windows_mode_ftp must be a single value, not #{params[:windows_mode_ftp].class}") if [ Array, Hash ].any? { |klass| params[:windows_mode_ftp].is_a?(klass) }
|
|
1249
1256
|
raise InvalidParameterError.new("Bad parameter: default_time_zone must be an String") if !params[:default_time_zone].nil? and !params[:default_time_zone].is_a?(String)
|
|
1257
|
+
raise InvalidParameterError.new("Bad parameter: desktop_app must be a single value, not #{params[:desktop_app].class}") if [ Array, Hash ].any? { |klass| params[:desktop_app].is_a?(klass) }
|
|
1258
|
+
raise InvalidParameterError.new("Bad parameter: desktop_app_session_ip_pinning must be a single value, not #{params[:desktop_app_session_ip_pinning].class}") if [ Array, Hash ].any? { |klass| params[:desktop_app_session_ip_pinning].is_a?(klass) }
|
|
1250
1259
|
raise InvalidParameterError.new("Bad parameter: desktop_app_session_lifetime must be an Integer") if !params[:desktop_app_session_lifetime].nil? and !params[:desktop_app_session_lifetime].is_a?(Integer)
|
|
1260
|
+
raise InvalidParameterError.new("Bad parameter: mobile_app must be a single value, not #{params[:mobile_app].class}") if [ Array, Hash ].any? { |klass| params[:mobile_app].is_a?(klass) }
|
|
1261
|
+
raise InvalidParameterError.new("Bad parameter: mobile_app_session_ip_pinning must be a single value, not #{params[:mobile_app_session_ip_pinning].class}") if [ Array, Hash ].any? { |klass| params[:mobile_app_session_ip_pinning].is_a?(klass) }
|
|
1251
1262
|
raise InvalidParameterError.new("Bad parameter: mobile_app_session_lifetime must be an Integer") if !params[:mobile_app_session_lifetime].nil? and !params[:mobile_app_session_lifetime].is_a?(Integer)
|
|
1263
|
+
raise InvalidParameterError.new("Bad parameter: folder_permissions_groups_only must be a single value, not #{params[:folder_permissions_groups_only].class}") if [ Array, Hash ].any? { |klass| params[:folder_permissions_groups_only].is_a?(klass) }
|
|
1252
1264
|
raise InvalidParameterError.new("Bad parameter: welcome_screen must be an String") if !params[:welcome_screen].nil? and !params[:welcome_screen].is_a?(String)
|
|
1265
|
+
raise InvalidParameterError.new("Bad parameter: office_integration_available must be a single value, not #{params[:office_integration_available].class}") if [ Array, Hash ].any? { |klass| params[:office_integration_available].is_a?(klass) }
|
|
1253
1266
|
raise InvalidParameterError.new("Bad parameter: office_integration_type must be an String") if !params[:office_integration_type].nil? and !params[:office_integration_type].is_a?(String)
|
|
1267
|
+
raise InvalidParameterError.new("Bad parameter: pin_all_remote_servers_to_site_region must be a single value, not #{params[:pin_all_remote_servers_to_site_region].class}") if [ Array, Hash ].any? { |klass| params[:pin_all_remote_servers_to_site_region].is_a?(klass) }
|
|
1254
1268
|
raise InvalidParameterError.new("Bad parameter: motd_text must be an String") if !params[:motd_text].nil? and !params[:motd_text].is_a?(String)
|
|
1269
|
+
raise InvalidParameterError.new("Bad parameter: motd_use_for_ftp must be a single value, not #{params[:motd_use_for_ftp].class}") if [ Array, Hash ].any? { |klass| params[:motd_use_for_ftp].is_a?(klass) }
|
|
1270
|
+
raise InvalidParameterError.new("Bad parameter: motd_use_for_sftp must be a single value, not #{params[:motd_use_for_sftp].class}") if [ Array, Hash ].any? { |klass| params[:motd_use_for_sftp].is_a?(klass) }
|
|
1255
1271
|
raise InvalidParameterError.new("Bad parameter: left_navigation_visibility must be an Hash") if !params[:left_navigation_visibility].nil? and !params[:left_navigation_visibility].is_a?(Hash)
|
|
1272
|
+
raise InvalidParameterError.new("Bad parameter: disable_all_ai_features must be a single value, not #{params[:disable_all_ai_features].class}") if [ Array, Hash ].any? { |klass| params[:disable_all_ai_features].is_a?(klass) }
|
|
1256
1273
|
raise InvalidParameterError.new("Bad parameter: ai_feature_availability must be an Hash") if !params[:ai_feature_availability].nil? and !params[:ai_feature_availability].is_a?(Hash)
|
|
1274
|
+
raise InvalidParameterError.new("Bad parameter: mcp_dcr_enabled must be a single value, not #{params[:mcp_dcr_enabled].class}") if [ Array, Hash ].any? { |klass| params[:mcp_dcr_enabled].is_a?(klass) }
|
|
1257
1275
|
raise InvalidParameterError.new("Bad parameter: additional_text_file_types must be an Array") if !params[:additional_text_file_types].nil? and !params[:additional_text_file_types].is_a?(Array)
|
|
1276
|
+
raise InvalidParameterError.new("Bad parameter: bundle_require_note must be a single value, not #{params[:bundle_require_note].class}") if [ Array, Hash ].any? { |klass| params[:bundle_require_note].is_a?(klass) }
|
|
1277
|
+
raise InvalidParameterError.new("Bad parameter: bundle_send_shared_receipts must be a single value, not #{params[:bundle_send_shared_receipts].class}") if [ Array, Hash ].any? { |klass| params[:bundle_send_shared_receipts].is_a?(klass) }
|
|
1278
|
+
raise InvalidParameterError.new("Bad parameter: bundles_default_owned_by_primary_group must be a single value, not #{params[:bundles_default_owned_by_primary_group].class}") if [ Array, Hash ].any? { |klass| params[:bundles_default_owned_by_primary_group].is_a?(klass) }
|
|
1279
|
+
raise InvalidParameterError.new("Bad parameter: calculate_file_checksums_crc32 must be a single value, not #{params[:calculate_file_checksums_crc32].class}") if [ Array, Hash ].any? { |klass| params[:calculate_file_checksums_crc32].is_a?(klass) }
|
|
1280
|
+
raise InvalidParameterError.new("Bad parameter: calculate_file_checksums_md5 must be a single value, not #{params[:calculate_file_checksums_md5].class}") if [ Array, Hash ].any? { |klass| params[:calculate_file_checksums_md5].is_a?(klass) }
|
|
1281
|
+
raise InvalidParameterError.new("Bad parameter: calculate_file_checksums_sha1 must be a single value, not #{params[:calculate_file_checksums_sha1].class}") if [ Array, Hash ].any? { |klass| params[:calculate_file_checksums_sha1].is_a?(klass) }
|
|
1282
|
+
raise InvalidParameterError.new("Bad parameter: calculate_file_checksums_sha256 must be a single value, not #{params[:calculate_file_checksums_sha256].class}") if [ Array, Hash ].any? { |klass| params[:calculate_file_checksums_sha256].is_a?(klass) }
|
|
1283
|
+
raise InvalidParameterError.new("Bad parameter: legacy_checksums_mode must be a single value, not #{params[:legacy_checksums_mode].class}") if [ Array, Hash ].any? { |klass| params[:legacy_checksums_mode].is_a?(klass) }
|
|
1284
|
+
raise InvalidParameterError.new("Bad parameter: migrate_remote_server_sync_to_sync must be a single value, not #{params[:migrate_remote_server_sync_to_sync].class}") if [ Array, Hash ].any? { |klass| params[:migrate_remote_server_sync_to_sync].is_a?(klass) }
|
|
1258
1285
|
raise InvalidParameterError.new("Bad parameter: as2_message_retention_days must be an Integer") if !params[:as2_message_retention_days].nil? and !params[:as2_message_retention_days].is_a?(Integer)
|
|
1286
|
+
raise InvalidParameterError.new("Bad parameter: file_activity_events_enabled must be a single value, not #{params[:file_activity_events_enabled].class}") if [ Array, Hash ].any? { |klass| params[:file_activity_events_enabled].is_a?(klass) }
|
|
1259
1287
|
raise InvalidParameterError.new("Bad parameter: username_display must be an String") if !params[:username_display].nil? and !params[:username_display].is_a?(String)
|
|
1260
1288
|
raise InvalidParameterError.new("Bad parameter: session_expiry_minutes must be an Integer") if !params[:session_expiry_minutes].nil? and !params[:session_expiry_minutes].is_a?(Integer)
|
|
1289
|
+
raise InvalidParameterError.new("Bad parameter: ssl_required must be a single value, not #{params[:ssl_required].class}") if [ Array, Hash ].any? { |klass| params[:ssl_required].is_a?(klass) }
|
|
1290
|
+
raise InvalidParameterError.new("Bad parameter: sftp_insecure_ciphers must be a single value, not #{params[:sftp_insecure_ciphers].class}") if [ Array, Hash ].any? { |klass| params[:sftp_insecure_ciphers].is_a?(klass) }
|
|
1291
|
+
raise InvalidParameterError.new("Bad parameter: sftp_insecure_diffie_hellman must be a single value, not #{params[:sftp_insecure_diffie_hellman].class}") if [ Array, Hash ].any? { |klass| params[:sftp_insecure_diffie_hellman].is_a?(klass) }
|
|
1292
|
+
raise InvalidParameterError.new("Bad parameter: disable_files_certificate_generation must be a single value, not #{params[:disable_files_certificate_generation].class}") if [ Array, Hash ].any? { |klass| params[:disable_files_certificate_generation].is_a?(klass) }
|
|
1293
|
+
raise InvalidParameterError.new("Bad parameter: fedramp must be a single value, not #{params[:fedramp].class}") if [ Array, Hash ].any? { |klass| params[:fedramp].is_a?(klass) }
|
|
1294
|
+
raise InvalidParameterError.new("Bad parameter: user_lockout must be a single value, not #{params[:user_lockout].class}") if [ Array, Hash ].any? { |klass| params[:user_lockout].is_a?(klass) }
|
|
1261
1295
|
raise InvalidParameterError.new("Bad parameter: user_lockout_tries must be an Integer") if !params[:user_lockout_tries].nil? and !params[:user_lockout_tries].is_a?(Integer)
|
|
1262
1296
|
raise InvalidParameterError.new("Bad parameter: user_lockout_within must be an Integer") if !params[:user_lockout_within].nil? and !params[:user_lockout_within].is_a?(Integer)
|
|
1263
1297
|
raise InvalidParameterError.new("Bad parameter: user_lockout_lock_period must be an Integer") if !params[:user_lockout_lock_period].nil? and !params[:user_lockout_lock_period].is_a?(Integer)
|
|
1298
|
+
raise InvalidParameterError.new("Bad parameter: include_password_in_welcome_email must be a single value, not #{params[:include_password_in_welcome_email].class}") if [ Array, Hash ].any? { |klass| params[:include_password_in_welcome_email].is_a?(klass) }
|
|
1264
1299
|
raise InvalidParameterError.new("Bad parameter: allowed_countries must be an String") if !params[:allowed_countries].nil? and !params[:allowed_countries].is_a?(String)
|
|
1265
1300
|
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if !params[:allowed_ips].nil? and !params[:allowed_ips].is_a?(String)
|
|
1301
|
+
raise InvalidParameterError.new("Bad parameter: allow_user_level_2fa_override must be a single value, not #{params[:allow_user_level_2fa_override].class}") if [ Array, Hash ].any? { |klass| params[:allow_user_level_2fa_override].is_a?(klass) }
|
|
1302
|
+
raise InvalidParameterError.new("Bad parameter: allow_user_level_allowed_ip_override must be a single value, not #{params[:allow_user_level_allowed_ip_override].class}") if [ Array, Hash ].any? { |klass| params[:allow_user_level_allowed_ip_override].is_a?(klass) }
|
|
1303
|
+
raise InvalidParameterError.new("Bad parameter: allow_user_level_ssl_override must be a single value, not #{params[:allow_user_level_ssl_override].class}") if [ Array, Hash ].any? { |klass| params[:allow_user_level_ssl_override].is_a?(klass) }
|
|
1266
1304
|
raise InvalidParameterError.new("Bad parameter: disallowed_countries must be an String") if !params[:disallowed_countries].nil? and !params[:disallowed_countries].is_a?(String)
|
|
1267
1305
|
raise InvalidParameterError.new("Bad parameter: days_to_retain_backups must be an Integer") if !params[:days_to_retain_backups].nil? and !params[:days_to_retain_backups].is_a?(Integer)
|
|
1268
1306
|
raise InvalidParameterError.new("Bad parameter: max_prior_passwords must be an Integer") if !params[:max_prior_passwords].nil? and !params[:max_prior_passwords].is_a?(Integer)
|
|
1269
1307
|
raise InvalidParameterError.new("Bad parameter: password_validity_days must be an Integer") if !params[:password_validity_days].nil? and !params[:password_validity_days].is_a?(Integer)
|
|
1270
1308
|
raise InvalidParameterError.new("Bad parameter: password_min_length must be an Integer") if !params[:password_min_length].nil? and !params[:password_min_length].is_a?(Integer)
|
|
1309
|
+
raise InvalidParameterError.new("Bad parameter: password_require_letter must be a single value, not #{params[:password_require_letter].class}") if [ Array, Hash ].any? { |klass| params[:password_require_letter].is_a?(klass) }
|
|
1310
|
+
raise InvalidParameterError.new("Bad parameter: password_require_mixed must be a single value, not #{params[:password_require_mixed].class}") if [ Array, Hash ].any? { |klass| params[:password_require_mixed].is_a?(klass) }
|
|
1311
|
+
raise InvalidParameterError.new("Bad parameter: password_require_special must be a single value, not #{params[:password_require_special].class}") if [ Array, Hash ].any? { |klass| params[:password_require_special].is_a?(klass) }
|
|
1312
|
+
raise InvalidParameterError.new("Bad parameter: password_require_number must be a single value, not #{params[:password_require_number].class}") if [ Array, Hash ].any? { |klass| params[:password_require_number].is_a?(klass) }
|
|
1313
|
+
raise InvalidParameterError.new("Bad parameter: password_require_unbreached must be a single value, not #{params[:password_require_unbreached].class}") if [ Array, Hash ].any? { |klass| params[:password_require_unbreached].is_a?(klass) }
|
|
1314
|
+
raise InvalidParameterError.new("Bad parameter: require_logout_from_bundles_and_inboxes must be a single value, not #{params[:require_logout_from_bundles_and_inboxes].class}") if [ Array, Hash ].any? { |klass| params[:require_logout_from_bundles_and_inboxes].is_a?(klass) }
|
|
1315
|
+
raise InvalidParameterError.new("Bad parameter: dav_user_root_enabled must be a single value, not #{params[:dav_user_root_enabled].class}") if [ Array, Hash ].any? { |klass| params[:dav_user_root_enabled].is_a?(klass) }
|
|
1316
|
+
raise InvalidParameterError.new("Bad parameter: sftp_user_root_enabled must be a single value, not #{params[:sftp_user_root_enabled].class}") if [ Array, Hash ].any? { |klass| params[:sftp_user_root_enabled].is_a?(klass) }
|
|
1317
|
+
raise InvalidParameterError.new("Bad parameter: disable_password_reset must be a single value, not #{params[:disable_password_reset].class}") if [ Array, Hash ].any? { |klass| params[:disable_password_reset].is_a?(klass) }
|
|
1318
|
+
raise InvalidParameterError.new("Bad parameter: immutable_files must be a single value, not #{params[:immutable_files].class}") if [ Array, Hash ].any? { |klass| params[:immutable_files].is_a?(klass) }
|
|
1271
1319
|
raise InvalidParameterError.new("Bad parameter: bundle_not_found_message must be an String") if !params[:bundle_not_found_message].nil? and !params[:bundle_not_found_message].is_a?(String)
|
|
1320
|
+
raise InvalidParameterError.new("Bad parameter: bundle_password_required must be a single value, not #{params[:bundle_password_required].class}") if [ Array, Hash ].any? { |klass| params[:bundle_password_required].is_a?(klass) }
|
|
1321
|
+
raise InvalidParameterError.new("Bad parameter: bundle_require_registration must be a single value, not #{params[:bundle_require_registration].class}") if [ Array, Hash ].any? { |klass| params[:bundle_require_registration].is_a?(klass) }
|
|
1322
|
+
raise InvalidParameterError.new("Bad parameter: bundle_require_share_recipient must be a single value, not #{params[:bundle_require_share_recipient].class}") if [ Array, Hash ].any? { |klass| params[:bundle_require_share_recipient].is_a?(klass) }
|
|
1323
|
+
raise InvalidParameterError.new("Bad parameter: bundle_send_one_time_password_to_recipient_at_registration must be a single value, not #{params[:bundle_send_one_time_password_to_recipient_at_registration].class}") if [ Array, Hash ].any? { |klass| params[:bundle_send_one_time_password_to_recipient_at_registration].is_a?(klass) }
|
|
1272
1324
|
raise InvalidParameterError.new("Bad parameter: bundle_registration_notifications must be an String") if !params[:bundle_registration_notifications].nil? and !params[:bundle_registration_notifications].is_a?(String)
|
|
1273
1325
|
raise InvalidParameterError.new("Bad parameter: bundle_activity_notifications must be an String") if !params[:bundle_activity_notifications].nil? and !params[:bundle_activity_notifications].is_a?(String)
|
|
1274
1326
|
raise InvalidParameterError.new("Bad parameter: bundle_upload_receipt_notifications must be an String") if !params[:bundle_upload_receipt_notifications].nil? and !params[:bundle_upload_receipt_notifications].is_a?(String)
|
|
1327
|
+
raise InvalidParameterError.new("Bad parameter: document_edits_in_bundle_allowed must be a single value, not #{params[:document_edits_in_bundle_allowed].class}") if [ Array, Hash ].any? { |klass| params[:document_edits_in_bundle_allowed].is_a?(klass) }
|
|
1328
|
+
raise InvalidParameterError.new("Bad parameter: password_requirements_apply_to_bundles must be a single value, not #{params[:password_requirements_apply_to_bundles].class}") if [ Array, Hash ].any? { |klass| params[:password_requirements_apply_to_bundles].is_a?(klass) }
|
|
1329
|
+
raise InvalidParameterError.new("Bad parameter: prevent_root_permissions_for_non_site_admins must be a single value, not #{params[:prevent_root_permissions_for_non_site_admins].class}") if [ Array, Hash ].any? { |klass| params[:prevent_root_permissions_for_non_site_admins].is_a?(klass) }
|
|
1330
|
+
raise InvalidParameterError.new("Bad parameter: restrict_root_folder_behaviors_to_site_admins must be a single value, not #{params[:restrict_root_folder_behaviors_to_site_admins].class}") if [ Array, Hash ].any? { |klass| params[:restrict_root_folder_behaviors_to_site_admins].is_a?(klass) }
|
|
1331
|
+
raise InvalidParameterError.new("Bad parameter: root_folder_behaviors_apply_to_workspaces must be a single value, not #{params[:root_folder_behaviors_apply_to_workspaces].class}") if [ Array, Hash ].any? { |klass| params[:root_folder_behaviors_apply_to_workspaces].is_a?(klass) }
|
|
1332
|
+
raise InvalidParameterError.new("Bad parameter: opt_out_global must be a single value, not #{params[:opt_out_global].class}") if [ Array, Hash ].any? { |klass| params[:opt_out_global].is_a?(klass) }
|
|
1333
|
+
raise InvalidParameterError.new("Bad parameter: use_provided_modified_at must be a single value, not #{params[:use_provided_modified_at].class}") if [ Array, Hash ].any? { |klass| params[:use_provided_modified_at].is_a?(klass) }
|
|
1334
|
+
raise InvalidParameterError.new("Bad parameter: custom_namespace must be a single value, not #{params[:custom_namespace].class}") if [ Array, Hash ].any? { |klass| params[:custom_namespace].is_a?(klass) }
|
|
1335
|
+
raise InvalidParameterError.new("Bad parameter: non_sso_groups_allowed must be a single value, not #{params[:non_sso_groups_allowed].class}") if [ Array, Hash ].any? { |klass| params[:non_sso_groups_allowed].is_a?(klass) }
|
|
1336
|
+
raise InvalidParameterError.new("Bad parameter: non_sso_users_allowed must be a single value, not #{params[:non_sso_users_allowed].class}") if [ Array, Hash ].any? { |klass| params[:non_sso_users_allowed].is_a?(klass) }
|
|
1337
|
+
raise InvalidParameterError.new("Bad parameter: sharing_enabled must be a single value, not #{params[:sharing_enabled].class}") if [ Array, Hash ].any? { |klass| params[:sharing_enabled].is_a?(klass) }
|
|
1338
|
+
raise InvalidParameterError.new("Bad parameter: snapshot_sharing_enabled must be a single value, not #{params[:snapshot_sharing_enabled].class}") if [ Array, Hash ].any? { |klass| params[:snapshot_sharing_enabled].is_a?(klass) }
|
|
1339
|
+
raise InvalidParameterError.new("Bad parameter: user_requests_enabled must be a single value, not #{params[:user_requests_enabled].class}") if [ Array, Hash ].any? { |klass| params[:user_requests_enabled].is_a?(klass) }
|
|
1340
|
+
raise InvalidParameterError.new("Bad parameter: user_requests_notify_admins must be a single value, not #{params[:user_requests_notify_admins].class}") if [ Array, Hash ].any? { |klass| params[:user_requests_notify_admins].is_a?(klass) }
|
|
1341
|
+
raise InvalidParameterError.new("Bad parameter: dav_enabled must be a single value, not #{params[:dav_enabled].class}") if [ Array, Hash ].any? { |klass| params[:dav_enabled].is_a?(klass) }
|
|
1342
|
+
raise InvalidParameterError.new("Bad parameter: files_com_remote_server_enabled must be a single value, not #{params[:files_com_remote_server_enabled].class}") if [ Array, Hash ].any? { |klass| params[:files_com_remote_server_enabled].is_a?(klass) }
|
|
1343
|
+
raise InvalidParameterError.new("Bad parameter: ftp_enabled must be a single value, not #{params[:ftp_enabled].class}") if [ Array, Hash ].any? { |klass| params[:ftp_enabled].is_a?(klass) }
|
|
1344
|
+
raise InvalidParameterError.new("Bad parameter: s3_compatible_endpoint_enabled must be a single value, not #{params[:s3_compatible_endpoint_enabled].class}") if [ Array, Hash ].any? { |klass| params[:s3_compatible_endpoint_enabled].is_a?(klass) }
|
|
1345
|
+
raise InvalidParameterError.new("Bad parameter: sftp_enabled must be a single value, not #{params[:sftp_enabled].class}") if [ Array, Hash ].any? { |klass| params[:sftp_enabled].is_a?(klass) }
|
|
1346
|
+
raise InvalidParameterError.new("Bad parameter: sftp_finalize_partial_uploads must be a single value, not #{params[:sftp_finalize_partial_uploads].class}") if [ Array, Hash ].any? { |klass| params[:sftp_finalize_partial_uploads].is_a?(klass) }
|
|
1347
|
+
raise InvalidParameterError.new("Bad parameter: users_can_create_api_keys must be a single value, not #{params[:users_can_create_api_keys].class}") if [ Array, Hash ].any? { |klass| params[:users_can_create_api_keys].is_a?(klass) }
|
|
1348
|
+
raise InvalidParameterError.new("Bad parameter: users_can_create_ssh_keys must be a single value, not #{params[:users_can_create_ssh_keys].class}") if [ Array, Hash ].any? { |klass| params[:users_can_create_ssh_keys].is_a?(klass) }
|
|
1349
|
+
raise InvalidParameterError.new("Bad parameter: show_user_notifications_log_in_link must be a single value, not #{params[:show_user_notifications_log_in_link].class}") if [ Array, Hash ].any? { |klass| params[:show_user_notifications_log_in_link].is_a?(klass) }
|
|
1275
1350
|
raise InvalidParameterError.new("Bad parameter: sftp_host_key_type must be an String") if !params[:sftp_host_key_type].nil? and !params[:sftp_host_key_type].is_a?(String)
|
|
1276
1351
|
raise InvalidParameterError.new("Bad parameter: active_sftp_host_key_id must be an Integer") if !params[:active_sftp_host_key_id].nil? and !params[:active_sftp_host_key_id].is_a?(Integer)
|
|
1277
1352
|
raise InvalidParameterError.new("Bad parameter: active_sftp_host_key_ids must be an Array") if !params[:active_sftp_host_key_ids].nil? and !params[:active_sftp_host_key_ids].is_a?(Array)
|
|
1353
|
+
raise InvalidParameterError.new("Bad parameter: protocol_access_groups_only must be a single value, not #{params[:protocol_access_groups_only].class}") if [ Array, Hash ].any? { |klass| params[:protocol_access_groups_only].is_a?(klass) }
|
|
1354
|
+
raise InvalidParameterError.new("Bad parameter: revoke_bundle_access_on_disable_or_delete must be a single value, not #{params[:revoke_bundle_access_on_disable_or_delete].class}") if [ Array, Hash ].any? { |klass| params[:revoke_bundle_access_on_disable_or_delete].is_a?(klass) }
|
|
1355
|
+
raise InvalidParameterError.new("Bad parameter: group_admins_can_add_users must be a single value, not #{params[:group_admins_can_add_users].class}") if [ Array, Hash ].any? { |klass| params[:group_admins_can_add_users].is_a?(klass) }
|
|
1356
|
+
raise InvalidParameterError.new("Bad parameter: group_admins_can_manage_group_memberships must be a single value, not #{params[:group_admins_can_manage_group_memberships].class}") if [ Array, Hash ].any? { |klass| params[:group_admins_can_manage_group_memberships].is_a?(klass) }
|
|
1357
|
+
raise InvalidParameterError.new("Bad parameter: group_admins_can_delete_users must be a single value, not #{params[:group_admins_can_delete_users].class}") if [ Array, Hash ].any? { |klass| params[:group_admins_can_delete_users].is_a?(klass) }
|
|
1358
|
+
raise InvalidParameterError.new("Bad parameter: group_admins_can_enable_disable_users must be a single value, not #{params[:group_admins_can_enable_disable_users].class}") if [ Array, Hash ].any? { |klass| params[:group_admins_can_enable_disable_users].is_a?(klass) }
|
|
1359
|
+
raise InvalidParameterError.new("Bad parameter: group_admins_can_modify_users must be a single value, not #{params[:group_admins_can_modify_users].class}") if [ Array, Hash ].any? { |klass| params[:group_admins_can_modify_users].is_a?(klass) }
|
|
1360
|
+
raise InvalidParameterError.new("Bad parameter: group_admins_can_bypass_user_lifecycle_rules must be a single value, not #{params[:group_admins_can_bypass_user_lifecycle_rules].class}") if [ Array, Hash ].any? { |klass| params[:group_admins_can_bypass_user_lifecycle_rules].is_a?(klass) }
|
|
1361
|
+
raise InvalidParameterError.new("Bad parameter: group_admins_can_reset_passwords must be a single value, not #{params[:group_admins_can_reset_passwords].class}") if [ Array, Hash ].any? { |klass| params[:group_admins_can_reset_passwords].is_a?(klass) }
|
|
1362
|
+
raise InvalidParameterError.new("Bad parameter: group_admins_can_set_user_password must be a single value, not #{params[:group_admins_can_set_user_password].class}") if [ Array, Hash ].any? { |klass| params[:group_admins_can_set_user_password].is_a?(klass) }
|
|
1363
|
+
raise InvalidParameterError.new("Bad parameter: bundle_recipient_blacklist_free_email_domains must be a single value, not #{params[:bundle_recipient_blacklist_free_email_domains].class}") if [ Array, Hash ].any? { |klass| params[:bundle_recipient_blacklist_free_email_domains].is_a?(klass) }
|
|
1278
1364
|
raise InvalidParameterError.new("Bad parameter: bundle_recipient_blacklist_domains must be an Array") if !params[:bundle_recipient_blacklist_domains].nil? and !params[:bundle_recipient_blacklist_domains].is_a?(Array)
|
|
1365
|
+
raise InvalidParameterError.new("Bad parameter: admins_bypass_locked_subfolders must be a single value, not #{params[:admins_bypass_locked_subfolders].class}") if [ Array, Hash ].any? { |klass| params[:admins_bypass_locked_subfolders].is_a?(klass) }
|
|
1366
|
+
raise InvalidParameterError.new("Bad parameter: allowed_2fa_method_sms must be a single value, not #{params[:allowed_2fa_method_sms].class}") if [ Array, Hash ].any? { |klass| params[:allowed_2fa_method_sms].is_a?(klass) }
|
|
1367
|
+
raise InvalidParameterError.new("Bad parameter: allowed_2fa_method_totp must be a single value, not #{params[:allowed_2fa_method_totp].class}") if [ Array, Hash ].any? { |klass| params[:allowed_2fa_method_totp].is_a?(klass) }
|
|
1368
|
+
raise InvalidParameterError.new("Bad parameter: allowed_2fa_method_webauthn must be a single value, not #{params[:allowed_2fa_method_webauthn].class}") if [ Array, Hash ].any? { |klass| params[:allowed_2fa_method_webauthn].is_a?(klass) }
|
|
1369
|
+
raise InvalidParameterError.new("Bad parameter: allowed_2fa_method_yubi must be a single value, not #{params[:allowed_2fa_method_yubi].class}") if [ Array, Hash ].any? { |klass| params[:allowed_2fa_method_yubi].is_a?(klass) }
|
|
1370
|
+
raise InvalidParameterError.new("Bad parameter: allowed_2fa_method_email must be a single value, not #{params[:allowed_2fa_method_email].class}") if [ Array, Hash ].any? { |klass| params[:allowed_2fa_method_email].is_a?(klass) }
|
|
1371
|
+
raise InvalidParameterError.new("Bad parameter: allowed_2fa_method_static must be a single value, not #{params[:allowed_2fa_method_static].class}") if [ Array, Hash ].any? { |klass| params[:allowed_2fa_method_static].is_a?(klass) }
|
|
1372
|
+
raise InvalidParameterError.new("Bad parameter: allowed_2fa_method_bypass_for_ftp_sftp_dav must be a single value, not #{params[:allowed_2fa_method_bypass_for_ftp_sftp_dav].class}") if [ Array, Hash ].any? { |klass| params[:allowed_2fa_method_bypass_for_ftp_sftp_dav].is_a?(klass) }
|
|
1373
|
+
raise InvalidParameterError.new("Bad parameter: require_2fa must be a single value, not #{params[:require_2fa].class}") if [ Array, Hash ].any? { |klass| params[:require_2fa].is_a?(klass) }
|
|
1374
|
+
raise InvalidParameterError.new("Bad parameter: require_2fa_exempt_all_sso_users must be a single value, not #{params[:require_2fa_exempt_all_sso_users].class}") if [ Array, Hash ].any? { |klass| params[:require_2fa_exempt_all_sso_users].is_a?(klass) }
|
|
1279
1375
|
raise InvalidParameterError.new("Bad parameter: require_2fa_user_type must be an String") if !params[:require_2fa_user_type].nil? and !params[:require_2fa_user_type].is_a?(String)
|
|
1280
1376
|
raise InvalidParameterError.new("Bad parameter: color2_top must be an String") if !params[:color2_top].nil? and !params[:color2_top].is_a?(String)
|
|
1281
1377
|
raise InvalidParameterError.new("Bad parameter: color2_left must be an String") if !params[:color2_left].nil? and !params[:color2_left].is_a?(String)
|
|
@@ -1287,6 +1383,7 @@ module Files
|
|
|
1287
1383
|
raise InvalidParameterError.new("Bad parameter: site_public_header must be an String") if !params[:site_public_header].nil? and !params[:site_public_header].is_a?(String)
|
|
1288
1384
|
raise InvalidParameterError.new("Bad parameter: site_public_footer must be an String") if !params[:site_public_footer].nil? and !params[:site_public_footer].is_a?(String)
|
|
1289
1385
|
raise InvalidParameterError.new("Bad parameter: login_help_text must be an String") if !params[:login_help_text].nil? and !params[:login_help_text].is_a?(String)
|
|
1386
|
+
raise InvalidParameterError.new("Bad parameter: use_dedicated_ips_for_smtp must be a single value, not #{params[:use_dedicated_ips_for_smtp].class}") if [ Array, Hash ].any? { |klass| params[:use_dedicated_ips_for_smtp].is_a?(klass) }
|
|
1290
1387
|
raise InvalidParameterError.new("Bad parameter: email_footer_custom_text must be an String") if !params[:email_footer_custom_text].nil? and !params[:email_footer_custom_text].is_a?(String)
|
|
1291
1388
|
raise InvalidParameterError.new("Bad parameter: smtp_address must be an String") if !params[:smtp_address].nil? and !params[:smtp_address].is_a?(String)
|
|
1292
1389
|
raise InvalidParameterError.new("Bad parameter: smtp_authentication must be an String") if !params[:smtp_authentication].nil? and !params[:smtp_authentication].is_a?(String)
|
|
@@ -1294,11 +1391,13 @@ module Files
|
|
|
1294
1391
|
raise InvalidParameterError.new("Bad parameter: smtp_username must be an String") if !params[:smtp_username].nil? and !params[:smtp_username].is_a?(String)
|
|
1295
1392
|
raise InvalidParameterError.new("Bad parameter: smtp_port must be an Integer") if !params[:smtp_port].nil? and !params[:smtp_port].is_a?(Integer)
|
|
1296
1393
|
raise InvalidParameterError.new("Bad parameter: smtp_ssl must be an String") if !params[:smtp_ssl].nil? and !params[:smtp_ssl].is_a?(String)
|
|
1394
|
+
raise InvalidParameterError.new("Bad parameter: ldap_enabled must be a single value, not #{params[:ldap_enabled].class}") if [ Array, Hash ].any? { |klass| params[:ldap_enabled].is_a?(klass) }
|
|
1297
1395
|
raise InvalidParameterError.new("Bad parameter: ldap_type must be an String") if !params[:ldap_type].nil? and !params[:ldap_type].is_a?(String)
|
|
1298
1396
|
raise InvalidParameterError.new("Bad parameter: ldap_host must be an String") if !params[:ldap_host].nil? and !params[:ldap_host].is_a?(String)
|
|
1299
1397
|
raise InvalidParameterError.new("Bad parameter: ldap_host_2 must be an String") if !params[:ldap_host_2].nil? and !params[:ldap_host_2].is_a?(String)
|
|
1300
1398
|
raise InvalidParameterError.new("Bad parameter: ldap_host_3 must be an String") if !params[:ldap_host_3].nil? and !params[:ldap_host_3].is_a?(String)
|
|
1301
1399
|
raise InvalidParameterError.new("Bad parameter: ldap_port must be an Integer") if !params[:ldap_port].nil? and !params[:ldap_port].is_a?(Integer)
|
|
1400
|
+
raise InvalidParameterError.new("Bad parameter: ldap_secure must be a single value, not #{params[:ldap_secure].class}") if [ Array, Hash ].any? { |klass| params[:ldap_secure].is_a?(klass) }
|
|
1302
1401
|
raise InvalidParameterError.new("Bad parameter: ldap_server_certificate must be an String") if !params[:ldap_server_certificate].nil? and !params[:ldap_server_certificate].is_a?(String)
|
|
1303
1402
|
raise InvalidParameterError.new("Bad parameter: ldap_username must be an String") if !params[:ldap_username].nil? and !params[:ldap_username].is_a?(String)
|
|
1304
1403
|
raise InvalidParameterError.new("Bad parameter: ldap_username_field must be an String") if !params[:ldap_username_field].nil? and !params[:ldap_username_field].is_a?(String)
|
|
@@ -1309,9 +1408,19 @@ module Files
|
|
|
1309
1408
|
raise InvalidParameterError.new("Bad parameter: ldap_group_exclusion must be an String") if !params[:ldap_group_exclusion].nil? and !params[:ldap_group_exclusion].is_a?(String)
|
|
1310
1409
|
raise InvalidParameterError.new("Bad parameter: ldap_group_inclusion must be an String") if !params[:ldap_group_inclusion].nil? and !params[:ldap_group_inclusion].is_a?(String)
|
|
1311
1410
|
raise InvalidParameterError.new("Bad parameter: ldap_base_dn must be an String") if !params[:ldap_base_dn].nil? and !params[:ldap_base_dn].is_a?(String)
|
|
1411
|
+
raise InvalidParameterError.new("Bad parameter: uploads_via_email_authentication must be a single value, not #{params[:uploads_via_email_authentication].class}") if [ Array, Hash ].any? { |klass| params[:uploads_via_email_authentication].is_a?(klass) }
|
|
1312
1412
|
raise InvalidParameterError.new("Bad parameter: bundle_watermark_value must be an Hash") if !params[:bundle_watermark_value].nil? and !params[:bundle_watermark_value].is_a?(Hash)
|
|
1413
|
+
raise InvalidParameterError.new("Bad parameter: icon16_delete must be a single value, not #{params[:icon16_delete].class}") if [ Array, Hash ].any? { |klass| params[:icon16_delete].is_a?(klass) }
|
|
1414
|
+
raise InvalidParameterError.new("Bad parameter: icon32_delete must be a single value, not #{params[:icon32_delete].class}") if [ Array, Hash ].any? { |klass| params[:icon32_delete].is_a?(klass) }
|
|
1415
|
+
raise InvalidParameterError.new("Bad parameter: icon48_delete must be a single value, not #{params[:icon48_delete].class}") if [ Array, Hash ].any? { |klass| params[:icon48_delete].is_a?(klass) }
|
|
1416
|
+
raise InvalidParameterError.new("Bad parameter: icon128_delete must be a single value, not #{params[:icon128_delete].class}") if [ Array, Hash ].any? { |klass| params[:icon128_delete].is_a?(klass) }
|
|
1417
|
+
raise InvalidParameterError.new("Bad parameter: logo_delete must be a single value, not #{params[:logo_delete].class}") if [ Array, Hash ].any? { |klass| params[:logo_delete].is_a?(klass) }
|
|
1418
|
+
raise InvalidParameterError.new("Bad parameter: bundle_watermark_attachment_delete must be a single value, not #{params[:bundle_watermark_attachment_delete].class}") if [ Array, Hash ].any? { |klass| params[:bundle_watermark_attachment_delete].is_a?(klass) }
|
|
1419
|
+
raise InvalidParameterError.new("Bad parameter: login_page_background_image_delete must be a single value, not #{params[:login_page_background_image_delete].class}") if [ Array, Hash ].any? { |klass| params[:login_page_background_image_delete].is_a?(klass) }
|
|
1420
|
+
raise InvalidParameterError.new("Bad parameter: disable_2fa_with_delay must be a single value, not #{params[:disable_2fa_with_delay].class}") if [ Array, Hash ].any? { |klass| params[:disable_2fa_with_delay].is_a?(klass) }
|
|
1313
1421
|
raise InvalidParameterError.new("Bad parameter: ldap_password_change must be an String") if !params[:ldap_password_change].nil? and !params[:ldap_password_change].is_a?(String)
|
|
1314
1422
|
raise InvalidParameterError.new("Bad parameter: ldap_password_change_confirmation must be an String") if !params[:ldap_password_change_confirmation].nil? and !params[:ldap_password_change_confirmation].is_a?(String)
|
|
1423
|
+
raise InvalidParameterError.new("Bad parameter: redirect_old_subdomain must be a single value, not #{params[:redirect_old_subdomain].class}") if [ Array, Hash ].any? { |klass| params[:redirect_old_subdomain].is_a?(klass) }
|
|
1315
1424
|
raise InvalidParameterError.new("Bad parameter: smtp_password must be an String") if !params[:smtp_password].nil? and !params[:smtp_password].is_a?(String)
|
|
1316
1425
|
|
|
1317
1426
|
response, options = Api.send_request("/site", :patch, params, options) { |reply| reply.require_object("Site") }
|
|
@@ -33,13 +33,15 @@ module Files
|
|
|
33
33
|
|
|
34
34
|
# Returns the [response, options] pair from Files::Api.send_request.
|
|
35
35
|
def delete(params = {})
|
|
36
|
-
params
|
|
36
|
+
params = (params || {}).dup
|
|
37
37
|
params[:id] = @attributes[:id]
|
|
38
38
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
39
39
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
|
|
40
40
|
raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
|
|
41
41
|
|
|
42
|
-
Api.send_request("/site_subdomain_redirects/#{@attributes[:id]}", :delete, params, @options)
|
|
42
|
+
response, options = Api.send_request("/site_subdomain_redirects/#{@attributes[:id]}", :delete, params, @options)
|
|
43
|
+
@options = @options.merge(options)
|
|
44
|
+
[ response, options ]
|
|
43
45
|
end
|
|
44
46
|
|
|
45
47
|
# Alias for #delete. Returns nil.
|
|
@@ -62,8 +64,11 @@ module Files
|
|
|
62
64
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if !params[:per_page].nil? and !params[:per_page].is_a?(Integer)
|
|
63
65
|
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if !params[:sort_by].nil? and !params[:sort_by].is_a?(Hash)
|
|
64
66
|
|
|
67
|
+
list_options = options.dup
|
|
65
68
|
List.new(SiteSubdomainRedirect, params) do |page_params, &check_page|
|
|
66
|
-
Api.send_request("/site_subdomain_redirects", :get, page_params,
|
|
69
|
+
response, page_options = Api.send_request("/site_subdomain_redirects", :get, page_params, list_options, &check_page)
|
|
70
|
+
list_options = list_options.merge(page_options)
|
|
71
|
+
[ response, page_options ]
|
|
67
72
|
end
|
|
68
73
|
end
|
|
69
74
|
|
|
@@ -79,7 +84,7 @@ module Files
|
|
|
79
84
|
#
|
|
80
85
|
# Returns a Files::SiteSubdomainRedirect.
|
|
81
86
|
def self.find(id, params = {}, options = {})
|
|
82
|
-
params
|
|
87
|
+
params = (params || {}).dup
|
|
83
88
|
params[:id] = id
|
|
84
89
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
|
|
85
90
|
raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
|
|
@@ -97,7 +102,7 @@ module Files
|
|
|
97
102
|
#
|
|
98
103
|
# Returns nil.
|
|
99
104
|
def self.delete(id, params = {}, options = {})
|
|
100
|
-
params
|
|
105
|
+
params = (params || {}).dup
|
|
101
106
|
params[:id] = id
|
|
102
107
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
|
|
103
108
|
raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
|