crimson-falcon 0.5.0 → 1.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.
Files changed (515) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2151 -1857
  3. data/lib/crimson-falcon/api/{alerts_api.rb → alerts.rb} +105 -39
  4. data/lib/crimson-falcon/api/{api_integrations_api.rb → api_integrations.rb} +12 -12
  5. data/lib/crimson-falcon/api/{aspm_api.rb → aspm.rb} +295 -96
  6. data/lib/crimson-falcon/api/{certificate_based_exclusions_api.rb → certificate_based_exclusions.rb} +25 -25
  7. data/lib/crimson-falcon/api/{default_api.rb → cloud_aws_registration.rb} +29 -29
  8. data/lib/crimson-falcon/api/cloud_azure_registration.rb +105 -0
  9. data/lib/crimson-falcon/api/{cloud_connect_aws_api.rb → cloud_connect_aws.rb} +35 -35
  10. data/lib/crimson-falcon/api/cloud_security_assets.rb +179 -0
  11. data/lib/crimson-falcon/api/{cloud_snapshots_api.rb → cloud_snapshots.rb} +22 -22
  12. data/lib/crimson-falcon/api/{compliance_assessments_api.rb → compliance_assessments.rb} +34 -34
  13. data/lib/crimson-falcon/api/{configuration_assessment_api.rb → configuration_assessment.rb} +11 -11
  14. data/lib/crimson-falcon/api/{configuration_assessment_evaluation_logic_api.rb → configuration_assessment_evaluation_logic.rb} +5 -5
  15. data/lib/crimson-falcon/api/{container_alerts_api.rb → container_alerts.rb} +20 -20
  16. data/lib/crimson-falcon/api/{container_detections_api.rb → container_detections.rb} +46 -46
  17. data/lib/crimson-falcon/api/{container_images_api.rb → container_images.rb} +116 -116
  18. data/lib/crimson-falcon/api/{container_packages_api.rb → container_packages.rb} +122 -52
  19. data/lib/crimson-falcon/api/{container_vulnerabilities_api.rb → container_vulnerabilities.rb} +93 -93
  20. data/lib/crimson-falcon/api/content_update_policies.rb +769 -0
  21. data/lib/crimson-falcon/api/correlation_rules.rb +505 -0
  22. data/lib/crimson-falcon/api/{cspg_iacapi_api.rb → cspg_iac.rb} +4 -4
  23. data/lib/crimson-falcon/api/{cspm_registration_api.rb → cspm_registration.rb} +473 -414
  24. data/lib/crimson-falcon/api/{custom_ioa_api.rb → custom_ioa.rb} +82 -82
  25. data/lib/crimson-falcon/api/{custom_storage_api.rb → custom_storage.rb} +136 -136
  26. data/lib/crimson-falcon/api/{d4c_registration_api.rb → d4c_registration.rb} +97 -178
  27. data/lib/crimson-falcon/api/{datascanner_api.rb → datascanner.rb} +13 -13
  28. data/lib/crimson-falcon/api/{delivery_settings_api.rb → delivery_settings.rb} +8 -8
  29. data/lib/crimson-falcon/api/deployments.rb +115 -0
  30. data/lib/crimson-falcon/api/{detects_api.rb → detects.rb} +18 -18
  31. data/lib/crimson-falcon/api/device_content.rb +176 -0
  32. data/lib/crimson-falcon/api/{device_control_policies_api.rb → device_control_policies.rb} +57 -57
  33. data/lib/crimson-falcon/api/{discover_api.rb → discover.rb} +119 -53
  34. data/lib/crimson-falcon/api/{discover_iot_api.rb → discover_iot.rb} +16 -16
  35. data/lib/crimson-falcon/api/downloads.rb +108 -0
  36. data/lib/crimson-falcon/api/{downloads_api_api.rb → downloads_api.rb} +4 -73
  37. data/lib/crimson-falcon/api/{drift_indicators_api.rb → drift_indicators.rb} +38 -38
  38. data/lib/crimson-falcon/api/{event_schema_api.rb → event_schema.rb} +10 -10
  39. data/lib/crimson-falcon/api/{event_streams_api.rb → event_streams.rb} +11 -11
  40. data/lib/crimson-falcon/api/{exposure_management_api.rb → exposure_management.rb} +47 -41
  41. data/lib/crimson-falcon/api/{falcon_complete_dashboard_api.rb → falcon_complete_dashboard.rb} +73 -73
  42. data/lib/crimson-falcon/api/{falcon_container_api.rb → falcon_container.rb} +4 -4
  43. data/lib/crimson-falcon/api/{falcon_container_cli_api.rb → falcon_container_cli.rb} +5 -5
  44. data/lib/crimson-falcon/api/{falcon_container_image_api.rb → falcon_container_image.rb} +46 -46
  45. data/lib/crimson-falcon/api/{falconx_sandbox_api.rb → falconx_sandbox.rb} +62 -62
  46. data/lib/crimson-falcon/api/{field_schema_api.rb → field_schema.rb} +7 -7
  47. data/lib/crimson-falcon/api/{filevantage_api.rb → filevantage.rb} +149 -149
  48. data/lib/crimson-falcon/api/{firewall_management_api.rb → firewall_management.rb} +138 -138
  49. data/lib/crimson-falcon/api/{firewall_policies_api.rb → firewall_policies.rb} +52 -52
  50. data/lib/crimson-falcon/api/{foundry_logscale_api.rb → foundry_logscale.rb} +65 -65
  51. data/lib/crimson-falcon/api/{handle_api.rb → handle.rb} +4 -4
  52. data/lib/crimson-falcon/api/{host_group_api.rb → host_group.rb} +46 -46
  53. data/lib/crimson-falcon/api/{host_migration_api.rb → host_migration.rb} +49 -49
  54. data/lib/crimson-falcon/api/{hosts_api.rb → hosts.rb} +50 -50
  55. data/lib/crimson-falcon/api/{humio_auth_proxy_api.rb → humio_auth_proxy.rb} +37 -37
  56. data/lib/crimson-falcon/api/{identity_entities_api.rb → identity_entities.rb} +12 -12
  57. data/lib/crimson-falcon/api/{identity_protection_api.rb → identity_protection.rb} +28 -28
  58. data/lib/crimson-falcon/api/{image_assessment_policies_api.rb → image_assessment_policies.rb} +44 -44
  59. data/lib/crimson-falcon/api/{incidents_api.rb → incidents.rb} +22 -22
  60. data/lib/crimson-falcon/api/{installation_tokens_api.rb → installation_tokens.rb} +29 -29
  61. data/lib/crimson-falcon/api/{installation_tokens_settings_api.rb → installation_tokens_settings.rb} +5 -5
  62. data/lib/crimson-falcon/api/{intel_api.rb → intel.rb} +85 -85
  63. data/lib/crimson-falcon/api/intelligence_indicator_graph.rb +118 -0
  64. data/lib/crimson-falcon/api/{ioa_exclusions_api.rb → ioa_exclusions.rb} +20 -20
  65. data/lib/crimson-falcon/api/{ioc_api.rb → ioc.rb} +61 -61
  66. data/lib/crimson-falcon/api/{iocs_api.rb → iocs.rb} +21 -21
  67. data/lib/crimson-falcon/api/{kubernetes_protection_api.rb → kubernetes_protection.rb} +370 -370
  68. data/lib/crimson-falcon/api/lookup_files.rb +239 -0
  69. data/lib/crimson-falcon/api/{malquery_api.rb → malquery.rb} +36 -36
  70. data/lib/crimson-falcon/api/{message_center_api.rb → message_center.rb} +42 -42
  71. data/lib/crimson-falcon/api/{ml_exclusions_api.rb → ml_exclusions.rb} +20 -20
  72. data/lib/crimson-falcon/api/{mobile_enrollment_api.rb → mobile_enrollment.rb} +9 -9
  73. data/lib/crimson-falcon/api/{mssp_api.rb → mssp.rb} +117 -117
  74. data/lib/crimson-falcon/api/{oauth2_api.rb → oauth2.rb} +10 -10
  75. data/lib/crimson-falcon/api/{ods_api.rb → ods.rb} +61 -61
  76. data/lib/crimson-falcon/api/{overwatch_dashboard_api.rb → overwatch_dashboard.rb} +21 -21
  77. data/lib/crimson-falcon/api/{prevention_policies_api.rb → prevention_policies.rb} +50 -50
  78. data/lib/crimson-falcon/api/{quarantine_api.rb → quarantine.rb} +24 -24
  79. data/lib/crimson-falcon/api/{quick_scan_api.rb → quick_scan.rb} +16 -16
  80. data/lib/crimson-falcon/api/{quick_scan_pro_api.rb → quick_scan_pro.rb} +25 -25
  81. data/lib/crimson-falcon/api/{real_time_response_api.rb → real_time_response.rb} +98 -98
  82. data/lib/crimson-falcon/api/{real_time_response_admin_api.rb → real_time_response_admin.rb} +72 -72
  83. data/lib/crimson-falcon/api/{real_time_response_audit_api.rb → real_time_response_audit.rb} +4 -4
  84. data/lib/crimson-falcon/api/{recon_api.rb → recon.rb} +109 -109
  85. data/lib/crimson-falcon/api/release_notes.rb +287 -0
  86. data/lib/crimson-falcon/api/releases.rb +125 -0
  87. data/lib/crimson-falcon/api/{report_executions_api.rb → report_executions.rb} +16 -16
  88. data/lib/crimson-falcon/api/{response_policies_api.rb → response_policies.rb} +50 -50
  89. data/lib/crimson-falcon/api/{runtime_detections_api.rb → runtime_detections.rb} +13 -13
  90. data/lib/crimson-falcon/api/{sample_uploads_api.rb → sample_uploads.rb} +49 -49
  91. data/lib/crimson-falcon/api/{scheduled_reports_api.rb → scheduled_reports.rb} +12 -12
  92. data/lib/crimson-falcon/api/{sensor_download_api.rb → sensor_download.rb} +32 -32
  93. data/lib/crimson-falcon/api/{sensor_update_policies_api.rb → sensor_update_policies.rb} +88 -88
  94. data/lib/crimson-falcon/api/{sensor_usage_api_api.rb → sensor_usage.rb} +4 -4
  95. data/lib/crimson-falcon/api/{sensor_visibility_exclusions_api.rb → sensor_visibility_exclusions.rb} +20 -20
  96. data/lib/crimson-falcon/api/{spotlight_evaluation_logic_api.rb → spotlight_evaluation_logic.rb} +13 -13
  97. data/lib/crimson-falcon/api/{spotlight_vulnerabilities_api.rb → spotlight_vulnerabilities.rb} +27 -27
  98. data/lib/crimson-falcon/api/{threatgraph_api.rb → threatgraph.rb} +42 -42
  99. data/lib/crimson-falcon/api/{unidentified_containers_api.rb → unidentified_containers.rb} +23 -23
  100. data/lib/crimson-falcon/api/{user_management_api.rb → user_management.rb} +94 -94
  101. data/lib/crimson-falcon/api/vulnerabilities.rb +106 -0
  102. data/lib/crimson-falcon/api/{workflows_api.rb → workflows.rb} +76 -76
  103. data/lib/crimson-falcon/api/{zero_trust_assessment_api.rb → zero_trust_assessment.rb} +12 -12
  104. data/lib/crimson-falcon/models/api_create_rule_operation_v1.rb +257 -0
  105. data/lib/crimson-falcon/models/api_get_entities_rules_response_v1.rb +266 -0
  106. data/lib/crimson-falcon/models/api_patch_rule_operation_v1.rb +257 -0
  107. data/lib/crimson-falcon/models/api_patch_rule_search_v1.rb +261 -0
  108. data/lib/crimson-falcon/models/api_rule_create_request_v1.rb +354 -0
  109. data/lib/crimson-falcon/models/api_rule_operation_v1.rb +266 -0
  110. data/lib/crimson-falcon/models/api_rule_patch_request_v1.rb +311 -0
  111. data/lib/crimson-falcon/models/api_rule_schedule_v1.rb +239 -0
  112. data/lib/crimson-falcon/models/api_rule_schedule_v1_patch.rb +239 -0
  113. data/lib/crimson-falcon/models/api_rule_search_v1.rb +276 -0
  114. data/lib/crimson-falcon/models/api_rule_v1.rb +132 -203
  115. data/lib/crimson-falcon/models/apidomain_saved_search_execute_request_v1.rb +1 -89
  116. data/lib/crimson-falcon/models/assets_get_resource_ids_response.rb +261 -0
  117. data/lib/crimson-falcon/models/assets_get_resources_response.rb +266 -0
  118. data/lib/crimson-falcon/models/base_set_content_update_policy_precedence_req_v1.rb +242 -0
  119. data/lib/crimson-falcon/models/content_update_create_policies_req_v1.rb +241 -0
  120. data/lib/crimson-falcon/models/content_update_create_policy_req_v1.rb +259 -0
  121. data/lib/crimson-falcon/models/content_update_ring_assignment_settings_v1.rb +253 -0
  122. data/lib/crimson-falcon/models/content_update_settings_v1.rb +241 -0
  123. data/lib/crimson-falcon/models/content_update_update_policies_req_v1.rb +241 -0
  124. data/lib/crimson-falcon/models/content_update_update_policy_req_v1.rb +269 -0
  125. data/lib/crimson-falcon/models/dataclassifications_label.rb +267 -0
  126. data/lib/crimson-falcon/models/dataclassifications_response.rb +284 -0
  127. data/lib/crimson-falcon/models/dataclassifications_tag.rb +283 -0
  128. data/lib/crimson-falcon/models/deployments_api_deployment_ring_view.rb +302 -0
  129. data/lib/crimson-falcon/models/deployments_api_deployment_view.rb +309 -0
  130. data/lib/crimson-falcon/models/deployments_api_deployment_view_wrapper.rb +271 -0
  131. data/lib/crimson-falcon/models/detectsapi_post_combined_alerts_v1_meta.rb +271 -0
  132. data/lib/crimson-falcon/models/detectsapi_post_combined_alerts_v1_paging.rb +262 -0
  133. data/lib/crimson-falcon/models/detectsapi_post_combined_alerts_v1_request_swagger.rb +261 -0
  134. data/lib/crimson-falcon/models/detectsapi_post_combined_alerts_v1_response_swagger.rb +272 -0
  135. data/lib/crimson-falcon/models/device_control_usb_class_exceptions_req_v1.rb +3 -3
  136. data/lib/crimson-falcon/models/device_control_usb_class_exceptions_response.rb +3 -3
  137. data/lib/crimson-falcon/models/devicecontent_content_category.rb +234 -0
  138. data/lib/crimson-falcon/models/devicecontent_state.rb +345 -0
  139. data/lib/crimson-falcon/models/devicecontentapi_entities_response_v1.rb +271 -0
  140. data/lib/crimson-falcon/models/devicecontentapi_query_response_v1.rb +271 -0
  141. data/lib/crimson-falcon/models/domain_aws_account_resource_metadata.rb +66 -1
  142. data/lib/crimson-falcon/models/domain_benchmark.rb +12 -1
  143. data/lib/crimson-falcon/models/domain_content_update_policy_resp_v1.rb +474 -0
  144. data/lib/crimson-falcon/models/domain_content_update_settings_v1.rb +241 -0
  145. data/lib/crimson-falcon/models/domain_discover_api_active_discovery_host.rb +21 -1
  146. data/lib/crimson-falcon/models/domain_discover_api_application_host.rb +13 -1
  147. data/lib/crimson-falcon/models/domain_discover_api_host.rb +33 -1
  148. data/lib/crimson-falcon/models/domain_discover_apiio_t_host.rb +33 -1
  149. data/lib/crimson-falcon/models/domain_kestrel_params.rb +239 -0
  150. data/lib/crimson-falcon/models/domain_lookup_file.rb +453 -0
  151. data/lib/crimson-falcon/models/domain_lookup_file_wrapper.rb +271 -0
  152. data/lib/crimson-falcon/models/domain_report_metadata.rb +10 -1
  153. data/lib/crimson-falcon/models/domain_ring_assignment_settings_v1.rb +267 -0
  154. data/lib/crimson-falcon/models/domain_scheduled_report_v1.rb +15 -1
  155. data/lib/crimson-falcon/models/domain_update_rule_request_v1.rb +18 -1
  156. data/lib/crimson-falcon/models/figapi_adversary.rb +235 -0
  157. data/lib/crimson-falcon/models/figapi_country.rb +245 -0
  158. data/lib/crimson-falcon/models/figapi_domain.rb +345 -0
  159. data/lib/crimson-falcon/models/figapi_email_address.rb +252 -0
  160. data/lib/crimson-falcon/models/figapi_file.rb +299 -0
  161. data/lib/crimson-falcon/models/figapi_indicator.rb +458 -0
  162. data/lib/crimson-falcon/models/figapi_ipv4.rb +269 -0
  163. data/lib/crimson-falcon/models/figapi_ipv6.rb +269 -0
  164. data/lib/crimson-falcon/models/figapi_mx_record.rb +284 -0
  165. data/lib/crimson-falcon/models/figapi_name_server.rb +254 -0
  166. data/lib/crimson-falcon/models/figapi_report.rb +235 -0
  167. data/lib/crimson-falcon/models/figapi_sector.rb +245 -0
  168. data/lib/crimson-falcon/models/figapi_threat.rb +235 -0
  169. data/lib/crimson-falcon/models/figapi_url.rb +247 -0
  170. data/lib/crimson-falcon/models/figapi_vulnerability.rb +374 -0
  171. data/lib/crimson-falcon/models/figapi_who_is.rb +261 -0
  172. data/lib/crimson-falcon/models/figapi_whois_record.rb +306 -0
  173. data/lib/crimson-falcon/models/figapi_x509_certificate.rb +297 -0
  174. data/lib/crimson-falcon/models/graph_condition.rb +2 -12
  175. data/lib/crimson-falcon/models/help.rb +239 -0
  176. data/lib/crimson-falcon/models/ingestion_cve_exploit_reference.rb +267 -0
  177. data/lib/crimson-falcon/models/ingestion_cve_exploit_source.rb +283 -0
  178. data/lib/crimson-falcon/models/ingestion_ex_prt_rating_factors.rb +281 -0
  179. data/lib/crimson-falcon/models/ingestion_reference.rb +255 -0
  180. data/lib/crimson-falcon/models/inventoryapi_surface_error.rb +260 -0
  181. data/lib/crimson-falcon/models/{client_fql_statement.rb → inventoryapi_user_external_asset.rb} +16 -28
  182. data/lib/crimson-falcon/models/inventoryapi_user_external_asset_create.rb +257 -0
  183. data/lib/crimson-falcon/models/inventoryapi_user_external_asset_create_request_v1.rb +242 -0
  184. data/lib/crimson-falcon/models/inventoryapi_user_external_asset_create_response_v1.rb +266 -0
  185. data/lib/crimson-falcon/models/inventoryapi_user_external_asset_result.rb +322 -0
  186. data/lib/crimson-falcon/models/inventoryapidomain_subsidiary.rb +245 -0
  187. data/lib/crimson-falcon/models/jsonschema_pivot.rb +19 -1
  188. data/lib/crimson-falcon/models/jsonschema_signals_extensions.rb +22 -4
  189. data/lib/crimson-falcon/models/jsonschema_ui_extensions.rb +34 -4
  190. data/lib/crimson-falcon/models/models_api_customer_and_image.rb +15 -1
  191. data/lib/crimson-falcon/models/models_api_image_combined_export.rb +26 -1
  192. data/lib/crimson-falcon/models/models_api_package_combined.rb +15 -1
  193. data/lib/crimson-falcon/models/models_api_package_combined_v2.rb +381 -0
  194. data/lib/crimson-falcon/models/models_api_vulnerability_combined.rb +15 -1
  195. data/lib/crimson-falcon/models/models_application_library.rb +13 -4
  196. data/lib/crimson-falcon/models/models_container.rb +15 -1
  197. data/lib/crimson-falcon/models/models_ext_api_image_combined.rb +15 -1
  198. data/lib/crimson-falcon/models/models_message.rb +239 -0
  199. data/lib/crimson-falcon/models/models_partial_fingerprints.rb +239 -0
  200. data/lib/crimson-falcon/models/models_result.rb +339 -0
  201. data/lib/crimson-falcon/models/models_result_location.rb +253 -0
  202. data/lib/crimson-falcon/models/models_result_location_properties.rb +253 -0
  203. data/lib/crimson-falcon/models/models_result_physical_location.rb +253 -0
  204. data/lib/crimson-falcon/models/models_result_physical_location_artifact_location.rb +239 -0
  205. data/lib/crimson-falcon/models/models_result_physical_location_region.rb +239 -0
  206. data/lib/crimson-falcon/models/models_result_properties.rb +365 -0
  207. data/lib/crimson-falcon/models/models_rule.rb +337 -0
  208. data/lib/crimson-falcon/models/models_rule_default_configuration.rb +239 -0
  209. data/lib/crimson-falcon/models/models_rule_properties.rb +669 -0
  210. data/lib/crimson-falcon/models/models_run.rb +255 -0
  211. data/lib/crimson-falcon/models/models_run_tool.rb +239 -0
  212. data/lib/crimson-falcon/models/models_run_tool_driver.rb +283 -0
  213. data/lib/crimson-falcon/models/models_vulnerability_sarif.rb +269 -0
  214. data/lib/crimson-falcon/models/packages_api_combined_package_v2.rb +266 -0
  215. data/lib/crimson-falcon/models/policyframework_benchmark.rb +253 -0
  216. data/lib/crimson-falcon/models/policyframework_control.rb +290 -0
  217. data/lib/crimson-falcon/models/quickscanpro_query_scan_results_response.rb +10 -1
  218. data/lib/crimson-falcon/models/registration_aws_account_ext_v2.rb +19 -1
  219. data/lib/crimson-falcon/models/registration_aws_account_patch.rb +19 -1
  220. data/lib/crimson-falcon/models/registration_aws_account_response_v2.rb +0 -5
  221. data/lib/crimson-falcon/models/registration_azure_download_certificate_response_v1.rb +0 -5
  222. data/lib/crimson-falcon/models/registration_iom_event_v2.rb +12 -1
  223. data/lib/crimson-falcon/models/releasecontents_release_content.rb +327 -0
  224. data/lib/crimson-falcon/models/releasecontents_release_content_version.rb +267 -0
  225. data/lib/crimson-falcon/models/releasenotes_entities_get_request.rb +241 -0
  226. data/lib/crimson-falcon/models/releasenotes_entities_get_response_wrapper.rb +269 -0
  227. data/lib/crimson-falcon/models/releasenotes_note_detail.rb +270 -0
  228. data/lib/crimson-falcon/models/releasenotes_release_note_v1.rb +303 -0
  229. data/lib/crimson-falcon/models/releasenotes_release_note_wrapper_v1.rb +271 -0
  230. data/lib/crimson-falcon/models/releases_release.rb +328 -0
  231. data/lib/crimson-falcon/models/releases_release_wrapper.rb +271 -0
  232. data/lib/crimson-falcon/models/resources_app.rb +243 -0
  233. data/lib/crimson-falcon/models/resources_asset_graph.rb +243 -0
  234. data/lib/crimson-falcon/models/resources_cloud_context.rb +378 -0
  235. data/lib/crimson-falcon/models/resources_cloud_resource.rb +604 -0
  236. data/lib/crimson-falcon/models/resources_compliance.rb +307 -0
  237. data/lib/crimson-falcon/models/resources_detections.rb +291 -0
  238. data/lib/crimson-falcon/models/resources_host.rb +390 -0
  239. data/lib/crimson-falcon/models/resources_relationship.rb +261 -0
  240. data/lib/crimson-falcon/models/resources_vulnerability.rb +262 -0
  241. data/lib/crimson-falcon/models/rest_azure_download_script_request_data.rb +239 -0
  242. data/lib/crimson-falcon/models/rest_azure_download_script_request_v1.rb +241 -0
  243. data/lib/crimson-falcon/models/rest_azure_provision_get_account_script_response_v1.rb +266 -0
  244. data/lib/crimson-falcon/models/rest_azure_script.rb +276 -0
  245. data/lib/crimson-falcon/models/rest_cursor_and_limit_meta_info.rb +289 -0
  246. data/lib/crimson-falcon/models/rest_cursor_meta_info.rb +280 -0
  247. data/lib/crimson-falcon/models/rest_cursor_response_fields.rb +250 -0
  248. data/lib/crimson-falcon/models/rest_paging.rb +262 -0
  249. data/lib/crimson-falcon/models/restapi_indicator_response.rb +271 -0
  250. data/lib/crimson-falcon/models/restapi_indicators_query_request.rb +255 -0
  251. data/lib/crimson-falcon/models/restapi_indicators_query_sort_request.rb +267 -0
  252. data/lib/crimson-falcon/models/sadomain_typosquatting_base_domain.rb +19 -1
  253. data/lib/crimson-falcon/models/sadomain_typosquatting_subdomain.rb +1 -15
  254. data/lib/crimson-falcon/models/string_wrapper.rb +266 -0
  255. data/lib/crimson-falcon/models/types_get_executor_nodes_metadata_response.rb +278 -0
  256. data/lib/crimson-falcon/models/types_get_integration_tasks_metadata_response.rb +267 -0
  257. data/lib/crimson-falcon/models/v2_for_loop.rb +10 -1
  258. data/lib/crimson-falcon/models/vulnerabilities_vulnerability_entity_sarif_response.rb +266 -0
  259. data/lib/crimson-falcon/version.rb +2 -2
  260. data/lib/crimson-falcon.rb +223 -90
  261. data/spec/api/{alerts_api_spec.rb → alerts_spec.rb} +21 -10
  262. data/spec/api/{api_integrations_api_spec.rb → api_integrations_spec.rb} +8 -8
  263. data/spec/api/{aspm_api_spec.rb → aspm_spec.rb} +51 -8
  264. data/spec/api/{certificate_based_exclusions_api_spec.rb → certificate_based_exclusions_spec.rb} +8 -8
  265. data/spec/api/{default_api_spec.rb → cloud_aws_registration_spec.rb} +8 -8
  266. data/spec/api/cloud_azure_registration_spec.rb +63 -0
  267. data/spec/api/{cloud_connect_aws_api_spec.rb → cloud_connect_aws_spec.rb} +8 -8
  268. data/spec/api/cloud_security_assets_spec.rb +78 -0
  269. data/spec/api/{cloud_snapshots_api_spec.rb → cloud_snapshots_spec.rb} +8 -8
  270. data/spec/api/{compliance_assessments_api_spec.rb → compliance_assessments_spec.rb} +8 -8
  271. data/spec/api/{configuration_assessment_evaluation_logic_api_spec.rb → configuration_assessment_evaluation_logic_spec.rb} +8 -8
  272. data/spec/api/{configuration_assessment_api_spec.rb → configuration_assessment_spec.rb} +8 -8
  273. data/spec/api/{container_alerts_api_spec.rb → container_alerts_spec.rb} +12 -12
  274. data/spec/api/{container_detections_api_spec.rb → container_detections_spec.rb} +18 -18
  275. data/spec/api/{container_images_api_spec.rb → container_images_spec.rb} +38 -38
  276. data/spec/api/{container_packages_api_spec.rb → container_packages_spec.rb} +36 -21
  277. data/spec/api/{container_vulnerabilities_api_spec.rb → container_vulnerabilities_spec.rb} +28 -28
  278. data/spec/api/content_update_policies_spec.rb +177 -0
  279. data/spec/api/correlation_rules_spec.rb +137 -0
  280. data/spec/api/{cspg_iacapi_api_spec.rb → cspg_iac_spec.rb} +8 -8
  281. data/spec/api/{cspm_registration_api_spec.rb → cspm_registration_spec.rb} +94 -84
  282. data/spec/api/{custom_ioa_api_spec.rb → custom_ioa_spec.rb} +12 -12
  283. data/spec/api/{custom_storage_api_spec.rb → custom_storage_spec.rb} +8 -8
  284. data/spec/api/{d4c_registration_api_spec.rb → d4c_registration_spec.rb} +9 -22
  285. data/spec/api/{datascanner_api_spec.rb → datascanner_spec.rb} +8 -8
  286. data/spec/api/{delivery_settings_api_spec.rb → delivery_settings_spec.rb} +8 -8
  287. data/spec/api/deployments_spec.rb +65 -0
  288. data/spec/api/{detects_api_spec.rb → detects_spec.rb} +8 -8
  289. data/spec/api/device_content_spec.rb +77 -0
  290. data/spec/api/{device_control_policies_api_spec.rb → device_control_policies_spec.rb} +8 -8
  291. data/spec/api/{discover_iot_api_spec.rb → discover_iot_spec.rb} +8 -8
  292. data/spec/api/{discover_api_spec.rb → discover_spec.rb} +19 -8
  293. data/spec/api/{downloads_api_api_spec.rb → downloads_spec.rb} +8 -20
  294. data/spec/api/{drift_indicators_api_spec.rb → drift_indicators_spec.rb} +16 -16
  295. data/spec/api/{event_schema_api_spec.rb → event_schema_spec.rb} +8 -8
  296. data/spec/api/{event_streams_api_spec.rb → event_streams_spec.rb} +8 -8
  297. data/spec/api/{exposure_management_api_spec.rb → exposure_management_spec.rb} +10 -8
  298. data/spec/api/{falcon_complete_dashboard_api_spec.rb → falcon_complete_dashboard_spec.rb} +8 -8
  299. data/spec/api/{falcon_container_cli_api_spec.rb → falcon_container_cli_spec.rb} +8 -8
  300. data/spec/api/{falcon_container_image_api_spec.rb → falcon_container_image_spec.rb} +13 -13
  301. data/spec/api/{falcon_container_api_spec.rb → falcon_container_spec.rb} +8 -8
  302. data/spec/api/{falconx_sandbox_api_spec.rb → falconx_sandbox_spec.rb} +8 -8
  303. data/spec/api/{field_schema_api_spec.rb → field_schema_spec.rb} +8 -8
  304. data/spec/api/{filevantage_api_spec.rb → filevantage_spec.rb} +14 -14
  305. data/spec/api/{firewall_management_api_spec.rb → firewall_management_spec.rb} +16 -16
  306. data/spec/api/{firewall_policies_api_spec.rb → firewall_policies_spec.rb} +8 -8
  307. data/spec/api/{foundry_logscale_api_spec.rb → foundry_logscale_spec.rb} +8 -8
  308. data/spec/api/{handle_api_spec.rb → handle_spec.rb} +8 -8
  309. data/spec/api/{host_group_api_spec.rb → host_group_spec.rb} +8 -8
  310. data/spec/api/{host_migration_api_spec.rb → host_migration_spec.rb} +10 -10
  311. data/spec/api/{hosts_api_spec.rb → hosts_spec.rb} +8 -8
  312. data/spec/api/{humio_auth_proxy_api_spec.rb → humio_auth_proxy_spec.rb} +8 -8
  313. data/spec/api/{identity_entities_api_spec.rb → identity_entities_spec.rb} +8 -8
  314. data/spec/api/{identity_protection_api_spec.rb → identity_protection_spec.rb} +8 -8
  315. data/spec/api/{image_assessment_policies_api_spec.rb → image_assessment_policies_spec.rb} +8 -8
  316. data/spec/api/{incidents_api_spec.rb → incidents_spec.rb} +8 -8
  317. data/spec/api/{installation_tokens_settings_api_spec.rb → installation_tokens_settings_spec.rb} +8 -8
  318. data/spec/api/{installation_tokens_api_spec.rb → installation_tokens_spec.rb} +8 -8
  319. data/spec/api/{intel_api_spec.rb → intel_spec.rb} +8 -8
  320. data/spec/api/intelligence_indicator_graph_spec.rb +66 -0
  321. data/spec/api/{ioa_exclusions_api_spec.rb → ioa_exclusions_spec.rb} +8 -8
  322. data/spec/api/{ioc_api_spec.rb → ioc_spec.rb} +8 -8
  323. data/spec/api/{iocs_api_spec.rb → iocs_spec.rb} +8 -8
  324. data/spec/api/{kubernetes_protection_api_spec.rb → kubernetes_protection_spec.rb} +66 -66
  325. data/spec/api/lookup_files_spec.rb +80 -0
  326. data/spec/api/{malquery_api_spec.rb → malquery_spec.rb} +8 -8
  327. data/spec/api/{message_center_api_spec.rb → message_center_spec.rb} +8 -8
  328. data/spec/api/{ml_exclusions_api_spec.rb → ml_exclusions_spec.rb} +8 -8
  329. data/spec/api/{mobile_enrollment_api_spec.rb → mobile_enrollment_spec.rb} +8 -8
  330. data/spec/api/{mssp_api_spec.rb → mssp_spec.rb} +8 -8
  331. data/spec/api/{oauth2_api_spec.rb → oauth2_spec.rb} +8 -8
  332. data/spec/api/{ods_api_spec.rb → ods_spec.rb} +8 -8
  333. data/spec/api/{overwatch_dashboard_api_spec.rb → overwatch_dashboard_spec.rb} +8 -8
  334. data/spec/api/{prevention_policies_api_spec.rb → prevention_policies_spec.rb} +8 -8
  335. data/spec/api/{quarantine_api_spec.rb → quarantine_spec.rb} +8 -8
  336. data/spec/api/{quick_scan_pro_api_spec.rb → quick_scan_pro_spec.rb} +8 -8
  337. data/spec/api/{quick_scan_api_spec.rb → quick_scan_spec.rb} +8 -8
  338. data/spec/api/{real_time_response_admin_api_spec.rb → real_time_response_admin_spec.rb} +8 -8
  339. data/spec/api/{real_time_response_audit_api_spec.rb → real_time_response_audit_spec.rb} +8 -8
  340. data/spec/api/{real_time_response_api_spec.rb → real_time_response_spec.rb} +8 -8
  341. data/spec/api/{recon_api_spec.rb → recon_spec.rb} +8 -8
  342. data/spec/api/release_notes_spec.rb +97 -0
  343. data/spec/api/releases_spec.rb +68 -0
  344. data/spec/api/{report_executions_api_spec.rb → report_executions_spec.rb} +8 -8
  345. data/spec/api/{response_policies_api_spec.rb → response_policies_spec.rb} +8 -8
  346. data/spec/api/{runtime_detections_api_spec.rb → runtime_detections_spec.rb} +11 -11
  347. data/spec/api/{sample_uploads_api_spec.rb → sample_uploads_spec.rb} +8 -8
  348. data/spec/api/{scheduled_reports_api_spec.rb → scheduled_reports_spec.rb} +8 -8
  349. data/spec/api/{sensor_download_api_spec.rb → sensor_download_spec.rb} +8 -8
  350. data/spec/api/{sensor_update_policies_api_spec.rb → sensor_update_policies_spec.rb} +8 -8
  351. data/spec/api/{sensor_usage_api_api_spec.rb → sensor_usage_spec.rb} +8 -8
  352. data/spec/api/{sensor_visibility_exclusions_api_spec.rb → sensor_visibility_exclusions_spec.rb} +8 -8
  353. data/spec/api/{spotlight_evaluation_logic_api_spec.rb → spotlight_evaluation_logic_spec.rb} +8 -8
  354. data/spec/api/{spotlight_vulnerabilities_api_spec.rb → spotlight_vulnerabilities_spec.rb} +12 -12
  355. data/spec/api/{threatgraph_api_spec.rb → threatgraph_spec.rb} +8 -8
  356. data/spec/api/{unidentified_containers_api_spec.rb → unidentified_containers_spec.rb} +13 -13
  357. data/spec/api/{user_management_api_spec.rb → user_management_spec.rb} +8 -8
  358. data/spec/api/vulnerabilities_spec.rb +66 -0
  359. data/spec/api/{workflows_api_spec.rb → workflows_spec.rb} +8 -8
  360. data/spec/api/{zero_trust_assessment_api_spec.rb → zero_trust_assessment_spec.rb} +8 -8
  361. data/spec/models/api_create_rule_operation_v1_spec.rb +63 -0
  362. data/spec/models/api_get_entities_rules_response_v1_spec.rb +63 -0
  363. data/spec/models/api_patch_rule_operation_v1_spec.rb +63 -0
  364. data/spec/models/api_patch_rule_search_v1_spec.rb +69 -0
  365. data/spec/models/api_rule_create_request_v1_spec.rb +111 -0
  366. data/spec/models/api_rule_operation_v1_spec.rb +69 -0
  367. data/spec/models/api_rule_patch_request_v1_spec.rb +99 -0
  368. data/spec/models/api_rule_schedule_v1_patch_spec.rb +51 -0
  369. data/spec/models/api_rule_schedule_v1_spec.rb +51 -0
  370. data/spec/models/api_rule_search_v1_spec.rb +69 -0
  371. data/spec/models/api_rule_v1_spec.rb +16 -34
  372. data/spec/models/apidomain_saved_search_execute_request_v1_spec.rb +0 -36
  373. data/spec/models/assets_get_resource_ids_response_spec.rb +63 -0
  374. data/spec/models/assets_get_resources_response_spec.rb +63 -0
  375. data/spec/models/base_set_content_update_policy_precedence_req_v1_spec.rb +51 -0
  376. data/spec/models/content_update_create_policies_req_v1_spec.rb +51 -0
  377. data/spec/models/content_update_create_policy_req_v1_spec.rb +63 -0
  378. data/spec/models/content_update_ring_assignment_settings_v1_spec.rb +57 -0
  379. data/spec/models/content_update_settings_v1_spec.rb +51 -0
  380. data/spec/models/content_update_update_policies_req_v1_spec.rb +51 -0
  381. data/spec/models/content_update_update_policy_req_v1_spec.rb +69 -0
  382. data/spec/models/dataclassifications_label_spec.rb +63 -0
  383. data/spec/models/dataclassifications_response_spec.rb +75 -0
  384. data/spec/models/dataclassifications_tag_spec.rb +69 -0
  385. data/spec/models/deployments_api_deployment_ring_view_spec.rb +87 -0
  386. data/spec/models/deployments_api_deployment_view_spec.rb +93 -0
  387. data/spec/models/deployments_api_deployment_view_wrapper_spec.rb +63 -0
  388. data/spec/models/detectsapi_post_combined_alerts_v1_meta_spec.rb +69 -0
  389. data/spec/models/detectsapi_post_combined_alerts_v1_paging_spec.rb +63 -0
  390. data/spec/models/detectsapi_post_combined_alerts_v1_request_swagger_spec.rb +69 -0
  391. data/spec/models/detectsapi_post_combined_alerts_v1_response_swagger_spec.rb +63 -0
  392. data/spec/models/device_control_usb_class_exceptions_req_v1_spec.rb +1 -1
  393. data/spec/models/device_control_usb_class_exceptions_response_spec.rb +1 -1
  394. data/spec/models/devicecontent_content_category_spec.rb +51 -0
  395. data/spec/models/devicecontent_state_spec.rb +117 -0
  396. data/spec/models/devicecontentapi_entities_response_v1_spec.rb +63 -0
  397. data/spec/models/devicecontentapi_query_response_v1_spec.rb +63 -0
  398. data/spec/models/domain_aws_account_resource_metadata_spec.rb +30 -0
  399. data/spec/models/domain_benchmark_spec.rb +6 -0
  400. data/spec/models/domain_content_update_policy_resp_v1_spec.rb +153 -0
  401. data/spec/models/domain_content_update_settings_v1_spec.rb +51 -0
  402. data/spec/models/domain_discover_api_active_discovery_host_spec.rb +12 -0
  403. data/spec/models/domain_discover_api_application_host_spec.rb +6 -0
  404. data/spec/models/domain_discover_api_host_spec.rb +18 -0
  405. data/spec/models/domain_discover_apiio_t_host_spec.rb +18 -0
  406. data/spec/models/domain_kestrel_params_spec.rb +51 -0
  407. data/spec/models/domain_lookup_file_spec.rb +147 -0
  408. data/spec/models/domain_lookup_file_wrapper_spec.rb +63 -0
  409. data/spec/models/domain_report_metadata_spec.rb +6 -0
  410. data/spec/models/domain_ring_assignment_settings_v1_spec.rb +63 -0
  411. data/spec/models/domain_scheduled_report_v1_spec.rb +6 -0
  412. data/spec/models/domain_update_rule_request_v1_spec.rb +6 -0
  413. data/spec/models/figapi_adversary_spec.rb +51 -0
  414. data/spec/models/figapi_country_spec.rb +57 -0
  415. data/spec/models/figapi_domain_spec.rb +117 -0
  416. data/spec/models/figapi_email_address_spec.rb +63 -0
  417. data/spec/models/figapi_file_spec.rb +87 -0
  418. data/spec/models/figapi_indicator_spec.rb +183 -0
  419. data/spec/models/figapi_ipv4_spec.rb +69 -0
  420. data/spec/models/figapi_ipv6_spec.rb +69 -0
  421. data/spec/models/figapi_mx_record_spec.rb +75 -0
  422. data/spec/models/figapi_name_server_spec.rb +63 -0
  423. data/spec/models/figapi_report_spec.rb +51 -0
  424. data/spec/models/figapi_sector_spec.rb +57 -0
  425. data/spec/models/figapi_threat_spec.rb +51 -0
  426. data/spec/models/figapi_url_spec.rb +57 -0
  427. data/spec/models/figapi_vulnerability_spec.rb +141 -0
  428. data/spec/models/figapi_who_is_spec.rb +69 -0
  429. data/spec/models/figapi_whois_record_spec.rb +99 -0
  430. data/spec/models/figapi_x509_certificate_spec.rb +93 -0
  431. data/spec/models/graph_condition_spec.rb +0 -6
  432. data/spec/models/help_spec.rb +51 -0
  433. data/spec/models/ingestion_cve_exploit_reference_spec.rb +63 -0
  434. data/spec/models/ingestion_cve_exploit_source_spec.rb +69 -0
  435. data/spec/models/ingestion_ex_prt_rating_factors_spec.rb +69 -0
  436. data/spec/models/ingestion_reference_spec.rb +57 -0
  437. data/spec/models/inventoryapi_surface_error_spec.rb +63 -0
  438. data/spec/models/inventoryapi_user_external_asset_create_request_v1_spec.rb +51 -0
  439. data/spec/models/inventoryapi_user_external_asset_create_response_v1_spec.rb +63 -0
  440. data/spec/models/inventoryapi_user_external_asset_create_spec.rb +57 -0
  441. data/spec/models/inventoryapi_user_external_asset_result_spec.rb +93 -0
  442. data/spec/models/inventoryapi_user_external_asset_spec.rb +57 -0
  443. data/spec/models/inventoryapidomain_subsidiary_spec.rb +57 -0
  444. data/spec/models/jsonschema_pivot_spec.rb +12 -0
  445. data/spec/models/jsonschema_signals_extensions_spec.rb +12 -0
  446. data/spec/models/jsonschema_ui_extensions_spec.rb +18 -0
  447. data/spec/models/models_api_customer_and_image_spec.rb +6 -0
  448. data/spec/models/models_api_image_combined_export_spec.rb +12 -0
  449. data/spec/models/models_api_package_combined_spec.rb +6 -0
  450. data/spec/models/models_api_package_combined_v2_spec.rb +111 -0
  451. data/spec/models/models_api_vulnerability_combined_spec.rb +6 -0
  452. data/spec/models/models_application_library_spec.rb +6 -0
  453. data/spec/models/models_container_spec.rb +6 -0
  454. data/spec/models/models_ext_api_image_combined_spec.rb +6 -0
  455. data/spec/models/models_message_spec.rb +51 -0
  456. data/spec/models/models_partial_fingerprints_spec.rb +51 -0
  457. data/spec/models/models_result_location_properties_spec.rb +57 -0
  458. data/spec/models/models_result_location_spec.rb +57 -0
  459. data/spec/models/models_result_physical_location_artifact_location_spec.rb +51 -0
  460. data/spec/models/models_result_physical_location_region_spec.rb +51 -0
  461. data/spec/models/models_result_physical_location_spec.rb +57 -0
  462. data/spec/models/models_result_properties_spec.rb +105 -0
  463. data/spec/models/models_result_spec.rb +93 -0
  464. data/spec/models/models_rule_default_configuration_spec.rb +51 -0
  465. data/spec/models/models_rule_properties_spec.rb +231 -0
  466. data/spec/models/models_rule_spec.rb +93 -0
  467. data/spec/models/models_run_spec.rb +57 -0
  468. data/spec/models/models_run_tool_driver_spec.rb +69 -0
  469. data/spec/models/models_run_tool_spec.rb +51 -0
  470. data/spec/models/models_vulnerability_sarif_spec.rb +63 -0
  471. data/spec/models/packages_api_combined_package_v2_spec.rb +63 -0
  472. data/spec/models/policyframework_benchmark_spec.rb +57 -0
  473. data/spec/models/policyframework_control_spec.rb +87 -0
  474. data/spec/models/quickscanpro_query_scan_results_response_spec.rb +6 -0
  475. data/spec/models/registration_aws_account_ext_v2_spec.rb +12 -0
  476. data/spec/models/registration_aws_account_patch_spec.rb +12 -0
  477. data/spec/models/registration_iom_event_v2_spec.rb +6 -0
  478. data/spec/models/releasecontents_release_content_spec.rb +93 -0
  479. data/spec/models/releasecontents_release_content_version_spec.rb +63 -0
  480. data/spec/models/releasenotes_entities_get_request_spec.rb +51 -0
  481. data/spec/models/releasenotes_entities_get_response_wrapper_spec.rb +63 -0
  482. data/spec/models/releasenotes_note_detail_spec.rb +69 -0
  483. data/spec/models/releasenotes_release_note_v1_spec.rb +81 -0
  484. data/spec/models/releasenotes_release_note_wrapper_v1_spec.rb +63 -0
  485. data/spec/models/releases_release_spec.rb +99 -0
  486. data/spec/models/releases_release_wrapper_spec.rb +63 -0
  487. data/spec/models/resources_app_spec.rb +57 -0
  488. data/spec/models/resources_asset_graph_spec.rb +57 -0
  489. data/spec/models/resources_cloud_context_spec.rb +147 -0
  490. data/spec/models/resources_cloud_resource_spec.rb +291 -0
  491. data/spec/models/resources_compliance_spec.rb +87 -0
  492. data/spec/models/resources_detections_spec.rb +81 -0
  493. data/spec/models/resources_host_spec.rb +147 -0
  494. data/spec/models/resources_relationship_spec.rb +69 -0
  495. data/spec/models/resources_vulnerability_spec.rb +63 -0
  496. data/spec/models/rest_azure_download_script_request_data_spec.rb +51 -0
  497. data/spec/models/rest_azure_download_script_request_v1_spec.rb +51 -0
  498. data/spec/models/rest_azure_provision_get_account_script_response_v1_spec.rb +63 -0
  499. data/spec/models/rest_azure_script_spec.rb +69 -0
  500. data/spec/models/rest_cursor_and_limit_meta_info_spec.rb +81 -0
  501. data/spec/models/rest_cursor_meta_info_spec.rb +75 -0
  502. data/spec/models/rest_cursor_response_fields_spec.rb +57 -0
  503. data/spec/models/{client_fql_statement_spec.rb → rest_paging_spec.rb} +9 -9
  504. data/spec/models/restapi_indicator_response_spec.rb +63 -0
  505. data/spec/models/restapi_indicators_query_request_spec.rb +57 -0
  506. data/spec/models/restapi_indicators_query_sort_request_spec.rb +63 -0
  507. data/spec/models/sadomain_typosquatting_base_domain_spec.rb +12 -0
  508. data/spec/models/sadomain_typosquatting_subdomain_spec.rb +0 -6
  509. data/spec/models/string_wrapper_spec.rb +63 -0
  510. data/spec/models/types_get_executor_nodes_metadata_response_spec.rb +75 -0
  511. data/spec/models/types_get_integration_tasks_metadata_response_spec.rb +69 -0
  512. data/spec/models/v2_for_loop_spec.rb +6 -0
  513. data/spec/models/vulnerabilities_vulnerability_entity_sarif_response_spec.rb +63 -0
  514. data/spec/spec_helper.rb +8 -0
  515. metadata +2129 -1732
@@ -0,0 +1,769 @@
1
+ =begin
2
+ Crimson Falcon - Ruby Client SDK
3
+
4
+ Code auto-generated by OpenAPI Generator; DO NOT EDIT.
5
+
6
+ MIT License
7
+
8
+ Copyright (c) 2023 Crowdstrike
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ =end
29
+
30
+ require 'cgi'
31
+
32
+ module Falcon
33
+ class ContentUpdatePolicies
34
+ attr_accessor :api_client
35
+
36
+ def initialize(api_client = ApiClient.default)
37
+ @api_client = api_client
38
+ end
39
+ # Create Content Update Policies by specifying details about the policy to create
40
+ # @param body [ContentUpdateCreatePoliciesReqV1]
41
+ # @param [Hash] opts the optional parameters
42
+ # @return [DomainContentUpdatePolicyRespV1]
43
+ def create_content_update_policies(body, opts = {})
44
+ data, _status_code, _headers = create_content_update_policies_with_http_info(body, opts)
45
+ data
46
+ end
47
+
48
+ # Create Content Update Policies by specifying details about the policy to create
49
+ # @param body [ContentUpdateCreatePoliciesReqV1]
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [Array<(DomainContentUpdatePolicyRespV1, Integer, Hash)>] DomainContentUpdatePolicyRespV1 data, response status code and response headers
52
+ def create_content_update_policies_with_http_info(body, opts = {})
53
+ if @api_client.config.debugging
54
+ @api_client.config.logger.debug 'Calling API: ContentUpdatePolicies.create_content_update_policies ...'
55
+ end
56
+ # verify the required parameter 'body' is set
57
+ if @api_client.config.client_side_validation && body.nil?
58
+ fail ArgumentError, "Missing the required parameter 'body' when calling ContentUpdatePolicies.create_content_update_policies"
59
+ end
60
+ # resource path
61
+ local_var_path = '/policy/entities/content-update/v1'
62
+
63
+ # query parameters
64
+ query_params = opts[:query_params] || {}
65
+
66
+ # header parameters
67
+ header_params = opts[:header_params] || {}
68
+ # HTTP header 'Accept' (if needed)
69
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
70
+ # HTTP header 'Content-Type'
71
+ content_type = @api_client.select_header_content_type(['application/json'])
72
+ if !content_type.nil?
73
+ header_params['Content-Type'] = content_type
74
+ end
75
+
76
+ # form parameters
77
+ form_params = opts[:form_params] || {}
78
+
79
+ # http body (model)
80
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
81
+
82
+ # return_type
83
+ return_type = opts[:debug_return_type] || 'DomainContentUpdatePolicyRespV1'
84
+
85
+ # auth_names
86
+ auth_names = opts[:debug_auth_names] || ['oauth2']
87
+
88
+ new_options = opts.merge(
89
+ :operation => :"ContentUpdatePolicies.create_content_update_policies",
90
+ :header_params => header_params,
91
+ :query_params => query_params,
92
+ :form_params => form_params,
93
+ :body => post_body,
94
+ :auth_names => auth_names,
95
+ :return_type => return_type
96
+ )
97
+
98
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
99
+ if @api_client.config.debugging
100
+ @api_client.config.logger.debug "API called: ContentUpdatePolicies#create_content_update_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
101
+ end
102
+ return data, status_code, headers
103
+ end
104
+
105
+ # Delete a set of Content Update Policies by specifying their IDs
106
+ # @param ids [Array<String>] The IDs of the Content Update Policies to delete
107
+ # @param [Hash] opts the optional parameters
108
+ # @return [MsaQueryResponse]
109
+ def delete_content_update_policies(ids, opts = {})
110
+ data, _status_code, _headers = delete_content_update_policies_with_http_info(ids, opts)
111
+ data
112
+ end
113
+
114
+ # Delete a set of Content Update Policies by specifying their IDs
115
+ # @param ids [Array<String>] The IDs of the Content Update Policies to delete
116
+ # @param [Hash] opts the optional parameters
117
+ # @return [Array<(MsaQueryResponse, Integer, Hash)>] MsaQueryResponse data, response status code and response headers
118
+ def delete_content_update_policies_with_http_info(ids, opts = {})
119
+ if @api_client.config.debugging
120
+ @api_client.config.logger.debug 'Calling API: ContentUpdatePolicies.delete_content_update_policies ...'
121
+ end
122
+ # verify the required parameter 'ids' is set
123
+ if @api_client.config.client_side_validation && ids.nil?
124
+ fail ArgumentError, "Missing the required parameter 'ids' when calling ContentUpdatePolicies.delete_content_update_policies"
125
+ end
126
+ # resource path
127
+ local_var_path = '/policy/entities/content-update/v1'
128
+
129
+ # query parameters
130
+ query_params = opts[:query_params] || {}
131
+ query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)
132
+
133
+ # header parameters
134
+ header_params = opts[:header_params] || {}
135
+ # HTTP header 'Accept' (if needed)
136
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
137
+
138
+ # form parameters
139
+ form_params = opts[:form_params] || {}
140
+
141
+ # http body (model)
142
+ post_body = opts[:debug_body]
143
+
144
+ # return_type
145
+ return_type = opts[:debug_return_type] || 'MsaQueryResponse'
146
+
147
+ # auth_names
148
+ auth_names = opts[:debug_auth_names] || ['oauth2']
149
+
150
+ new_options = opts.merge(
151
+ :operation => :"ContentUpdatePolicies.delete_content_update_policies",
152
+ :header_params => header_params,
153
+ :query_params => query_params,
154
+ :form_params => form_params,
155
+ :body => post_body,
156
+ :auth_names => auth_names,
157
+ :return_type => return_type
158
+ )
159
+
160
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
161
+ if @api_client.config.debugging
162
+ @api_client.config.logger.debug "API called: ContentUpdatePolicies#delete_content_update_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
163
+ end
164
+ return data, status_code, headers
165
+ end
166
+
167
+ # Retrieve a set of Content Update Policies by specifying their IDs
168
+ # @param ids [Array<String>] The IDs of the Content Update Policies to return
169
+ # @param [Hash] opts the optional parameters
170
+ # @return [DomainContentUpdatePolicyRespV1]
171
+ def get_content_update_policies(ids, opts = {})
172
+ data, _status_code, _headers = get_content_update_policies_with_http_info(ids, opts)
173
+ data
174
+ end
175
+
176
+ # Retrieve a set of Content Update Policies by specifying their IDs
177
+ # @param ids [Array<String>] The IDs of the Content Update Policies to return
178
+ # @param [Hash] opts the optional parameters
179
+ # @return [Array<(DomainContentUpdatePolicyRespV1, Integer, Hash)>] DomainContentUpdatePolicyRespV1 data, response status code and response headers
180
+ def get_content_update_policies_with_http_info(ids, opts = {})
181
+ if @api_client.config.debugging
182
+ @api_client.config.logger.debug 'Calling API: ContentUpdatePolicies.get_content_update_policies ...'
183
+ end
184
+ # verify the required parameter 'ids' is set
185
+ if @api_client.config.client_side_validation && ids.nil?
186
+ fail ArgumentError, "Missing the required parameter 'ids' when calling ContentUpdatePolicies.get_content_update_policies"
187
+ end
188
+ # resource path
189
+ local_var_path = '/policy/entities/content-update/v1'
190
+
191
+ # query parameters
192
+ query_params = opts[:query_params] || {}
193
+ query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)
194
+
195
+ # header parameters
196
+ header_params = opts[:header_params] || {}
197
+ # HTTP header 'Accept' (if needed)
198
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
199
+
200
+ # form parameters
201
+ form_params = opts[:form_params] || {}
202
+
203
+ # http body (model)
204
+ post_body = opts[:debug_body]
205
+
206
+ # return_type
207
+ return_type = opts[:debug_return_type] || 'DomainContentUpdatePolicyRespV1'
208
+
209
+ # auth_names
210
+ auth_names = opts[:debug_auth_names] || ['oauth2']
211
+
212
+ new_options = opts.merge(
213
+ :operation => :"ContentUpdatePolicies.get_content_update_policies",
214
+ :header_params => header_params,
215
+ :query_params => query_params,
216
+ :form_params => form_params,
217
+ :body => post_body,
218
+ :auth_names => auth_names,
219
+ :return_type => return_type
220
+ )
221
+
222
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
223
+ if @api_client.config.debugging
224
+ @api_client.config.logger.debug "API called: ContentUpdatePolicies#get_content_update_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
225
+ end
226
+ return data, status_code, headers
227
+ end
228
+
229
+ # Perform the specified action on the Content Update Policies specified in the request
230
+ # @param action_name [String] The action to perform
231
+ # @param body [MsaEntityActionRequestV2]
232
+ # @param [Hash] opts the optional parameters
233
+ # @return [DomainContentUpdatePolicyRespV1]
234
+ def perform_content_update_policies_action(action_name, body, opts = {})
235
+ data, _status_code, _headers = perform_content_update_policies_action_with_http_info(action_name, body, opts)
236
+ data
237
+ end
238
+
239
+ # Perform the specified action on the Content Update Policies specified in the request
240
+ # @param action_name [String] The action to perform
241
+ # @param body [MsaEntityActionRequestV2]
242
+ # @param [Hash] opts the optional parameters
243
+ # @return [Array<(DomainContentUpdatePolicyRespV1, Integer, Hash)>] DomainContentUpdatePolicyRespV1 data, response status code and response headers
244
+ def perform_content_update_policies_action_with_http_info(action_name, body, opts = {})
245
+ if @api_client.config.debugging
246
+ @api_client.config.logger.debug 'Calling API: ContentUpdatePolicies.perform_content_update_policies_action ...'
247
+ end
248
+ # verify the required parameter 'action_name' is set
249
+ if @api_client.config.client_side_validation && action_name.nil?
250
+ fail ArgumentError, "Missing the required parameter 'action_name' when calling ContentUpdatePolicies.perform_content_update_policies_action"
251
+ end
252
+ # verify enum value
253
+ allowable_values = ["add-host-group", "disable", "enable", "remove-host-group"]
254
+ if @api_client.config.client_side_validation && !allowable_values.include?(action_name)
255
+ fail ArgumentError, "invalid value for \"action_name\", must be one of #{allowable_values}"
256
+ end
257
+ # verify the required parameter 'body' is set
258
+ if @api_client.config.client_side_validation && body.nil?
259
+ fail ArgumentError, "Missing the required parameter 'body' when calling ContentUpdatePolicies.perform_content_update_policies_action"
260
+ end
261
+ # resource path
262
+ local_var_path = '/policy/entities/content-update-actions/v1'
263
+
264
+ # query parameters
265
+ query_params = opts[:query_params] || {}
266
+ query_params[:'action_name'] = action_name
267
+
268
+ # header parameters
269
+ header_params = opts[:header_params] || {}
270
+ # HTTP header 'Accept' (if needed)
271
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
272
+ # HTTP header 'Content-Type'
273
+ content_type = @api_client.select_header_content_type(['application/json'])
274
+ if !content_type.nil?
275
+ header_params['Content-Type'] = content_type
276
+ end
277
+
278
+ # form parameters
279
+ form_params = opts[:form_params] || {}
280
+
281
+ # http body (model)
282
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
283
+
284
+ # return_type
285
+ return_type = opts[:debug_return_type] || 'DomainContentUpdatePolicyRespV1'
286
+
287
+ # auth_names
288
+ auth_names = opts[:debug_auth_names] || ['oauth2']
289
+
290
+ new_options = opts.merge(
291
+ :operation => :"ContentUpdatePolicies.perform_content_update_policies_action",
292
+ :header_params => header_params,
293
+ :query_params => query_params,
294
+ :form_params => form_params,
295
+ :body => post_body,
296
+ :auth_names => auth_names,
297
+ :return_type => return_type
298
+ )
299
+
300
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
301
+ if @api_client.config.debugging
302
+ @api_client.config.logger.debug "API called: ContentUpdatePolicies#perform_content_update_policies_action\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
303
+ end
304
+ return data, status_code, headers
305
+ end
306
+
307
+ # Search for Content Update Policies in your environment by providing an FQL filter and paging details. Returns a set of Content Update Policies which match the filter criteria
308
+ # @param [Hash] opts the optional parameters
309
+ # @option opts [String] :filter The filter expression that should be used to limit the results
310
+ # @option opts [Integer] :offset The offset to start retrieving records from
311
+ # @option opts [Integer] :limit The maximum records to return. [1-5000]
312
+ # @option opts [String] :sort The property to sort by
313
+ # @return [DomainContentUpdatePolicyRespV1]
314
+ def query_combined_content_update_policies(opts = {})
315
+ data, _status_code, _headers = query_combined_content_update_policies_with_http_info(opts)
316
+ data
317
+ end
318
+
319
+ # Search for Content Update Policies in your environment by providing an FQL filter and paging details. Returns a set of Content Update Policies which match the filter criteria
320
+ # @param [Hash] opts the optional parameters
321
+ # @option opts [String] :filter The filter expression that should be used to limit the results
322
+ # @option opts [Integer] :offset The offset to start retrieving records from
323
+ # @option opts [Integer] :limit The maximum records to return. [1-5000]
324
+ # @option opts [String] :sort The property to sort by
325
+ # @return [Array<(DomainContentUpdatePolicyRespV1, Integer, Hash)>] DomainContentUpdatePolicyRespV1 data, response status code and response headers
326
+ def query_combined_content_update_policies_with_http_info(opts = {})
327
+ if @api_client.config.debugging
328
+ @api_client.config.logger.debug 'Calling API: ContentUpdatePolicies.query_combined_content_update_policies ...'
329
+ end
330
+ if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
331
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling ContentUpdatePolicies.query_combined_content_update_policies, must be greater than or equal to 0.'
332
+ end
333
+
334
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 5000
335
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ContentUpdatePolicies.query_combined_content_update_policies, must be smaller than or equal to 5000.'
336
+ end
337
+
338
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
339
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ContentUpdatePolicies.query_combined_content_update_policies, must be greater than or equal to 1.'
340
+ end
341
+
342
+ allowable_values = ["created_by.asc", "created_by.desc", "created_timestamp.asc", "created_timestamp.desc", "enabled.asc", "enabled.desc", "modified_by.asc", "modified_by.desc", "modified_timestamp.asc", "modified_timestamp.desc", "name.asc", "name.desc", "platform_name.asc", "platform_name.desc", "precedence.asc", "precedence.desc"]
343
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
344
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
345
+ end
346
+ # resource path
347
+ local_var_path = '/policy/combined/content-update/v1'
348
+
349
+ # query parameters
350
+ query_params = opts[:query_params] || {}
351
+ query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
352
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
353
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
354
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
355
+
356
+ # header parameters
357
+ header_params = opts[:header_params] || {}
358
+ # HTTP header 'Accept' (if needed)
359
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
360
+
361
+ # form parameters
362
+ form_params = opts[:form_params] || {}
363
+
364
+ # http body (model)
365
+ post_body = opts[:debug_body]
366
+
367
+ # return_type
368
+ return_type = opts[:debug_return_type] || 'DomainContentUpdatePolicyRespV1'
369
+
370
+ # auth_names
371
+ auth_names = opts[:debug_auth_names] || ['oauth2']
372
+
373
+ new_options = opts.merge(
374
+ :operation => :"ContentUpdatePolicies.query_combined_content_update_policies",
375
+ :header_params => header_params,
376
+ :query_params => query_params,
377
+ :form_params => form_params,
378
+ :body => post_body,
379
+ :auth_names => auth_names,
380
+ :return_type => return_type
381
+ )
382
+
383
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
384
+ if @api_client.config.debugging
385
+ @api_client.config.logger.debug "API called: ContentUpdatePolicies#query_combined_content_update_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
386
+ end
387
+ return data, status_code, headers
388
+ end
389
+
390
+ # Search for members of a Content Update Policy in your environment by providing an FQL filter and paging details. Returns a set of host details which match the filter criteria
391
+ # @param [Hash] opts the optional parameters
392
+ # @option opts [String] :id The ID of the Content Update Policy to search for members of
393
+ # @option opts [String] :filter The filter expression that should be used to limit the results
394
+ # @option opts [Integer] :offset The offset to start retrieving records from
395
+ # @option opts [Integer] :limit The maximum records to return. [1-5000]
396
+ # @option opts [String] :sort The property to sort by
397
+ # @return [BasePolicyMembersRespV1]
398
+ def query_combined_content_update_policy_members(opts = {})
399
+ data, _status_code, _headers = query_combined_content_update_policy_members_with_http_info(opts)
400
+ data
401
+ end
402
+
403
+ # Search for members of a Content Update Policy in your environment by providing an FQL filter and paging details. Returns a set of host details which match the filter criteria
404
+ # @param [Hash] opts the optional parameters
405
+ # @option opts [String] :id The ID of the Content Update Policy to search for members of
406
+ # @option opts [String] :filter The filter expression that should be used to limit the results
407
+ # @option opts [Integer] :offset The offset to start retrieving records from
408
+ # @option opts [Integer] :limit The maximum records to return. [1-5000]
409
+ # @option opts [String] :sort The property to sort by
410
+ # @return [Array<(BasePolicyMembersRespV1, Integer, Hash)>] BasePolicyMembersRespV1 data, response status code and response headers
411
+ def query_combined_content_update_policy_members_with_http_info(opts = {})
412
+ if @api_client.config.debugging
413
+ @api_client.config.logger.debug 'Calling API: ContentUpdatePolicies.query_combined_content_update_policy_members ...'
414
+ end
415
+ if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
416
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling ContentUpdatePolicies.query_combined_content_update_policy_members, must be greater than or equal to 0.'
417
+ end
418
+
419
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 5000
420
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ContentUpdatePolicies.query_combined_content_update_policy_members, must be smaller than or equal to 5000.'
421
+ end
422
+
423
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
424
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ContentUpdatePolicies.query_combined_content_update_policy_members, must be greater than or equal to 1.'
425
+ end
426
+
427
+ # resource path
428
+ local_var_path = '/policy/combined/content-update-members/v1'
429
+
430
+ # query parameters
431
+ query_params = opts[:query_params] || {}
432
+ query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
433
+ query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
434
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
435
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
436
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
437
+
438
+ # header parameters
439
+ header_params = opts[:header_params] || {}
440
+ # HTTP header 'Accept' (if needed)
441
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
442
+
443
+ # form parameters
444
+ form_params = opts[:form_params] || {}
445
+
446
+ # http body (model)
447
+ post_body = opts[:debug_body]
448
+
449
+ # return_type
450
+ return_type = opts[:debug_return_type] || 'BasePolicyMembersRespV1'
451
+
452
+ # auth_names
453
+ auth_names = opts[:debug_auth_names] || ['oauth2']
454
+
455
+ new_options = opts.merge(
456
+ :operation => :"ContentUpdatePolicies.query_combined_content_update_policy_members",
457
+ :header_params => header_params,
458
+ :query_params => query_params,
459
+ :form_params => form_params,
460
+ :body => post_body,
461
+ :auth_names => auth_names,
462
+ :return_type => return_type
463
+ )
464
+
465
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
466
+ if @api_client.config.debugging
467
+ @api_client.config.logger.debug "API called: ContentUpdatePolicies#query_combined_content_update_policy_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
468
+ end
469
+ return data, status_code, headers
470
+ end
471
+
472
+ # Search for Content Update Policies in your environment by providing an FQL filter and paging details. Returns a set of Content Update Policy IDs which match the filter criteria
473
+ # @param [Hash] opts the optional parameters
474
+ # @option opts [String] :filter The filter expression that should be used to limit the results
475
+ # @option opts [Integer] :offset The offset to start retrieving records from
476
+ # @option opts [Integer] :limit The maximum records to return. [1-5000]
477
+ # @option opts [String] :sort The property to sort by
478
+ # @return [MsaQueryResponse]
479
+ def query_content_update_policies(opts = {})
480
+ data, _status_code, _headers = query_content_update_policies_with_http_info(opts)
481
+ data
482
+ end
483
+
484
+ # Search for Content Update Policies in your environment by providing an FQL filter and paging details. Returns a set of Content Update Policy IDs which match the filter criteria
485
+ # @param [Hash] opts the optional parameters
486
+ # @option opts [String] :filter The filter expression that should be used to limit the results
487
+ # @option opts [Integer] :offset The offset to start retrieving records from
488
+ # @option opts [Integer] :limit The maximum records to return. [1-5000]
489
+ # @option opts [String] :sort The property to sort by
490
+ # @return [Array<(MsaQueryResponse, Integer, Hash)>] MsaQueryResponse data, response status code and response headers
491
+ def query_content_update_policies_with_http_info(opts = {})
492
+ if @api_client.config.debugging
493
+ @api_client.config.logger.debug 'Calling API: ContentUpdatePolicies.query_content_update_policies ...'
494
+ end
495
+ if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
496
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling ContentUpdatePolicies.query_content_update_policies, must be greater than or equal to 0.'
497
+ end
498
+
499
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 5000
500
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ContentUpdatePolicies.query_content_update_policies, must be smaller than or equal to 5000.'
501
+ end
502
+
503
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
504
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ContentUpdatePolicies.query_content_update_policies, must be greater than or equal to 1.'
505
+ end
506
+
507
+ allowable_values = ["created_by.asc", "created_by.desc", "created_timestamp.asc", "created_timestamp.desc", "enabled.asc", "enabled.desc", "modified_by.asc", "modified_by.desc", "modified_timestamp.asc", "modified_timestamp.desc", "name.asc", "name.desc", "platform_name.asc", "platform_name.desc", "precedence.asc", "precedence.desc"]
508
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
509
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
510
+ end
511
+ # resource path
512
+ local_var_path = '/policy/queries/content-update/v1'
513
+
514
+ # query parameters
515
+ query_params = opts[:query_params] || {}
516
+ query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
517
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
518
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
519
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
520
+
521
+ # header parameters
522
+ header_params = opts[:header_params] || {}
523
+ # HTTP header 'Accept' (if needed)
524
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
525
+
526
+ # form parameters
527
+ form_params = opts[:form_params] || {}
528
+
529
+ # http body (model)
530
+ post_body = opts[:debug_body]
531
+
532
+ # return_type
533
+ return_type = opts[:debug_return_type] || 'MsaQueryResponse'
534
+
535
+ # auth_names
536
+ auth_names = opts[:debug_auth_names] || ['oauth2']
537
+
538
+ new_options = opts.merge(
539
+ :operation => :"ContentUpdatePolicies.query_content_update_policies",
540
+ :header_params => header_params,
541
+ :query_params => query_params,
542
+ :form_params => form_params,
543
+ :body => post_body,
544
+ :auth_names => auth_names,
545
+ :return_type => return_type
546
+ )
547
+
548
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
549
+ if @api_client.config.debugging
550
+ @api_client.config.logger.debug "API called: ContentUpdatePolicies#query_content_update_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
551
+ end
552
+ return data, status_code, headers
553
+ end
554
+
555
+ # Search for members of a Content Update Policy in your environment by providing an FQL filter and paging details. Returns a set of Agent IDs which match the filter criteria
556
+ # @param [Hash] opts the optional parameters
557
+ # @option opts [String] :id The ID of the Content Update Policy to search for members of
558
+ # @option opts [String] :filter The filter expression that should be used to limit the results
559
+ # @option opts [Integer] :offset The offset to start retrieving records from
560
+ # @option opts [Integer] :limit The maximum records to return. [1-5000]
561
+ # @option opts [String] :sort The property to sort by
562
+ # @return [MsaQueryResponse]
563
+ def query_content_update_policy_members(opts = {})
564
+ data, _status_code, _headers = query_content_update_policy_members_with_http_info(opts)
565
+ data
566
+ end
567
+
568
+ # Search for members of a Content Update Policy in your environment by providing an FQL filter and paging details. Returns a set of Agent IDs which match the filter criteria
569
+ # @param [Hash] opts the optional parameters
570
+ # @option opts [String] :id The ID of the Content Update Policy to search for members of
571
+ # @option opts [String] :filter The filter expression that should be used to limit the results
572
+ # @option opts [Integer] :offset The offset to start retrieving records from
573
+ # @option opts [Integer] :limit The maximum records to return. [1-5000]
574
+ # @option opts [String] :sort The property to sort by
575
+ # @return [Array<(MsaQueryResponse, Integer, Hash)>] MsaQueryResponse data, response status code and response headers
576
+ def query_content_update_policy_members_with_http_info(opts = {})
577
+ if @api_client.config.debugging
578
+ @api_client.config.logger.debug 'Calling API: ContentUpdatePolicies.query_content_update_policy_members ...'
579
+ end
580
+ if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
581
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling ContentUpdatePolicies.query_content_update_policy_members, must be greater than or equal to 0.'
582
+ end
583
+
584
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 5000
585
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ContentUpdatePolicies.query_content_update_policy_members, must be smaller than or equal to 5000.'
586
+ end
587
+
588
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
589
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ContentUpdatePolicies.query_content_update_policy_members, must be greater than or equal to 1.'
590
+ end
591
+
592
+ # resource path
593
+ local_var_path = '/policy/queries/content-update-members/v1'
594
+
595
+ # query parameters
596
+ query_params = opts[:query_params] || {}
597
+ query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
598
+ query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
599
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
600
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
601
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
602
+
603
+ # header parameters
604
+ header_params = opts[:header_params] || {}
605
+ # HTTP header 'Accept' (if needed)
606
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
607
+
608
+ # form parameters
609
+ form_params = opts[:form_params] || {}
610
+
611
+ # http body (model)
612
+ post_body = opts[:debug_body]
613
+
614
+ # return_type
615
+ return_type = opts[:debug_return_type] || 'MsaQueryResponse'
616
+
617
+ # auth_names
618
+ auth_names = opts[:debug_auth_names] || ['oauth2']
619
+
620
+ new_options = opts.merge(
621
+ :operation => :"ContentUpdatePolicies.query_content_update_policy_members",
622
+ :header_params => header_params,
623
+ :query_params => query_params,
624
+ :form_params => form_params,
625
+ :body => post_body,
626
+ :auth_names => auth_names,
627
+ :return_type => return_type
628
+ )
629
+
630
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
631
+ if @api_client.config.debugging
632
+ @api_client.config.logger.debug "API called: ContentUpdatePolicies#query_content_update_policy_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
633
+ end
634
+ return data, status_code, headers
635
+ end
636
+
637
+ # Sets the precedence of Content Update Policies based on the order of IDs specified in the request. The first ID specified will have the highest precedence and the last ID specified will have the lowest. You must specify all non-Default Policies when updating precedence
638
+ # @param body [BaseSetContentUpdatePolicyPrecedenceReqV1]
639
+ # @param [Hash] opts the optional parameters
640
+ # @return [MsaQueryResponse]
641
+ def set_content_update_policies_precedence(body, opts = {})
642
+ data, _status_code, _headers = set_content_update_policies_precedence_with_http_info(body, opts)
643
+ data
644
+ end
645
+
646
+ # Sets the precedence of Content Update Policies based on the order of IDs specified in the request. The first ID specified will have the highest precedence and the last ID specified will have the lowest. You must specify all non-Default Policies when updating precedence
647
+ # @param body [BaseSetContentUpdatePolicyPrecedenceReqV1]
648
+ # @param [Hash] opts the optional parameters
649
+ # @return [Array<(MsaQueryResponse, Integer, Hash)>] MsaQueryResponse data, response status code and response headers
650
+ def set_content_update_policies_precedence_with_http_info(body, opts = {})
651
+ if @api_client.config.debugging
652
+ @api_client.config.logger.debug 'Calling API: ContentUpdatePolicies.set_content_update_policies_precedence ...'
653
+ end
654
+ # verify the required parameter 'body' is set
655
+ if @api_client.config.client_side_validation && body.nil?
656
+ fail ArgumentError, "Missing the required parameter 'body' when calling ContentUpdatePolicies.set_content_update_policies_precedence"
657
+ end
658
+ # resource path
659
+ local_var_path = '/policy/entities/content-update-precedence/v1'
660
+
661
+ # query parameters
662
+ query_params = opts[:query_params] || {}
663
+
664
+ # header parameters
665
+ header_params = opts[:header_params] || {}
666
+ # HTTP header 'Accept' (if needed)
667
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
668
+ # HTTP header 'Content-Type'
669
+ content_type = @api_client.select_header_content_type(['application/json'])
670
+ if !content_type.nil?
671
+ header_params['Content-Type'] = content_type
672
+ end
673
+
674
+ # form parameters
675
+ form_params = opts[:form_params] || {}
676
+
677
+ # http body (model)
678
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
679
+
680
+ # return_type
681
+ return_type = opts[:debug_return_type] || 'MsaQueryResponse'
682
+
683
+ # auth_names
684
+ auth_names = opts[:debug_auth_names] || ['oauth2']
685
+
686
+ new_options = opts.merge(
687
+ :operation => :"ContentUpdatePolicies.set_content_update_policies_precedence",
688
+ :header_params => header_params,
689
+ :query_params => query_params,
690
+ :form_params => form_params,
691
+ :body => post_body,
692
+ :auth_names => auth_names,
693
+ :return_type => return_type
694
+ )
695
+
696
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
697
+ if @api_client.config.debugging
698
+ @api_client.config.logger.debug "API called: ContentUpdatePolicies#set_content_update_policies_precedence\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
699
+ end
700
+ return data, status_code, headers
701
+ end
702
+
703
+ # Update Content Update Policies by specifying the ID of the policy and details to update
704
+ # @param body [ContentUpdateUpdatePoliciesReqV1]
705
+ # @param [Hash] opts the optional parameters
706
+ # @return [DomainContentUpdatePolicyRespV1]
707
+ def update_content_update_policies(body, opts = {})
708
+ data, _status_code, _headers = update_content_update_policies_with_http_info(body, opts)
709
+ data
710
+ end
711
+
712
+ # Update Content Update Policies by specifying the ID of the policy and details to update
713
+ # @param body [ContentUpdateUpdatePoliciesReqV1]
714
+ # @param [Hash] opts the optional parameters
715
+ # @return [Array<(DomainContentUpdatePolicyRespV1, Integer, Hash)>] DomainContentUpdatePolicyRespV1 data, response status code and response headers
716
+ def update_content_update_policies_with_http_info(body, opts = {})
717
+ if @api_client.config.debugging
718
+ @api_client.config.logger.debug 'Calling API: ContentUpdatePolicies.update_content_update_policies ...'
719
+ end
720
+ # verify the required parameter 'body' is set
721
+ if @api_client.config.client_side_validation && body.nil?
722
+ fail ArgumentError, "Missing the required parameter 'body' when calling ContentUpdatePolicies.update_content_update_policies"
723
+ end
724
+ # resource path
725
+ local_var_path = '/policy/entities/content-update/v1'
726
+
727
+ # query parameters
728
+ query_params = opts[:query_params] || {}
729
+
730
+ # header parameters
731
+ header_params = opts[:header_params] || {}
732
+ # HTTP header 'Accept' (if needed)
733
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
734
+ # HTTP header 'Content-Type'
735
+ content_type = @api_client.select_header_content_type(['application/json'])
736
+ if !content_type.nil?
737
+ header_params['Content-Type'] = content_type
738
+ end
739
+
740
+ # form parameters
741
+ form_params = opts[:form_params] || {}
742
+
743
+ # http body (model)
744
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
745
+
746
+ # return_type
747
+ return_type = opts[:debug_return_type] || 'DomainContentUpdatePolicyRespV1'
748
+
749
+ # auth_names
750
+ auth_names = opts[:debug_auth_names] || ['oauth2']
751
+
752
+ new_options = opts.merge(
753
+ :operation => :"ContentUpdatePolicies.update_content_update_policies",
754
+ :header_params => header_params,
755
+ :query_params => query_params,
756
+ :form_params => form_params,
757
+ :body => post_body,
758
+ :auth_names => auth_names,
759
+ :return_type => return_type
760
+ )
761
+
762
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
763
+ if @api_client.config.debugging
764
+ @api_client.config.logger.debug "API called: ContentUpdatePolicies#update_content_update_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
765
+ end
766
+ return data, status_code, headers
767
+ end
768
+ end
769
+ end