datadog_api_client 2.43.0 → 2.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.generator/schemas/v1/openapi.yaml +263 -29
- data/.generator/schemas/v2/openapi.yaml +5051 -432
- data/.generator/src/generator/formatter.py +15 -1
- data/.generator/src/generator/templates/api.j2 +2 -2
- data/.generator/src/generator/templates/model.j2 +1 -1
- data/.generator/src/generator/templates/model_generic.j2 +1 -1
- data/.generator/tests/test_formatter.rb +69 -0
- data/CHANGELOG.md +27 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline.rb +2 -2
- data/examples/v1/logs-pipelines/CreateLogsPipeline_1745625064.rb +248 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_2256674867.rb +248 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_501419705.rb +236 -0
- data/examples/v1/logs-pipelines/UpdateLogsPipeline.rb +2 -2
- data/examples/v1/notebooks/CreateNotebook.rb +1 -1
- data/examples/v1/notebooks/UpdateNotebook.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +1 -0
- data/examples/v1/synthetics/UpdateBrowserTest.rb +1 -0
- data/examples/v2/actions-datastores/BulkDeleteDatastoreItems.rb +19 -0
- data/examples/v2/agentless-scanning/CreateAwsOnDemandTask.rb +1 -1
- data/examples/v2/agentless-scanning/CreateAwsScanOptions.rb +1 -1
- data/examples/v2/agentless-scanning/CreateAzureScanOptions.rb +16 -0
- data/examples/v2/agentless-scanning/CreateGcpScanOptions.rb +16 -0
- data/examples/v2/agentless-scanning/DeleteAwsScanOptions.rb +1 -1
- data/examples/v2/agentless-scanning/DeleteAzureScanOptions.rb +5 -0
- data/examples/v2/agentless-scanning/DeleteGcpScanOptions.rb +5 -0
- data/examples/v2/agentless-scanning/GetAwsOnDemandTask.rb +1 -1
- data/examples/v2/agentless-scanning/GetAzureScanOptions.rb +5 -0
- data/examples/v2/agentless-scanning/GetGcpScanOptions.rb +5 -0
- data/examples/v2/agentless-scanning/ListAwsOnDemandTasks.rb +1 -1
- data/examples/v2/agentless-scanning/ListAwsScanOptions.rb +1 -1
- data/examples/v2/agentless-scanning/ListAzureScanOptions.rb +5 -0
- data/examples/v2/agentless-scanning/ListGcpScanOptions.rb +5 -0
- data/examples/v2/agentless-scanning/UpdateAwsScanOptions.rb +1 -1
- data/examples/v2/agentless-scanning/UpdateAzureScanOptions.rb +12 -0
- data/examples/v2/agentless-scanning/UpdateGcpScanOptions.rb +15 -0
- data/examples/v2/case-management/CommentCase.rb +17 -0
- data/examples/v2/case-management/CreateCase.rb +1 -1
- data/examples/v2/case-management/DeleteCaseComment.rb +11 -0
- data/examples/v2/case-management/DeleteCaseCustomAttribute.rb +11 -0
- data/examples/v2/case-management/UpdateCaseCustomAttribute.rb +25 -0
- data/examples/v2/case-management/UpdateCaseDescription.rb +17 -0
- data/examples/v2/case-management/UpdateCaseTitle.rb +17 -0
- data/examples/v2/case-management-attribute/CreateCustomAttributeConfig.rb +20 -0
- data/examples/v2/case-management-attribute/DeleteCustomAttributeConfig.rb +11 -0
- data/examples/v2/case-management-attribute/GetAllCustomAttributeConfigsByCaseType.rb +8 -0
- data/examples/v2/case-management-attribute/GetAllCustomAttributes.rb +5 -0
- data/examples/v2/case-management-type/CreateCaseType.rb +16 -0
- data/examples/v2/case-management-type/DeleteCaseType.rb +5 -0
- data/examples/v2/case-management-type/DeleteCaseType_2790986149.rb +8 -0
- data/examples/v2/case-management-type/GetAllCaseTypes.rb +5 -0
- data/examples/v2/cloud-cost-management/{UpdateArbitraryCostRule.rb → CreateCustomAllocationRule.rb} +2 -4
- data/examples/v2/cloud-cost-management/{CreateRuleset.rb → CreateTagPipelinesRuleset.rb} +2 -2
- data/examples/v2/cloud-cost-management/DeleteCustomAllocationRule.rb +5 -0
- data/examples/v2/cloud-cost-management/DeleteTagPipelinesRuleset.rb +5 -0
- data/examples/v2/cloud-cost-management/GetCustomAllocationRule.rb +5 -0
- data/examples/v2/cloud-cost-management/GetTagPipelinesRuleset.rb +5 -0
- data/examples/v2/cloud-cost-management/ListCustomAllocationRules.rb +5 -0
- data/examples/v2/cloud-cost-management/ListTagPipelinesRulesets.rb +5 -0
- data/examples/v2/cloud-cost-management/{ReorderArbitraryCostRules.rb → ReorderCustomAllocationRules.rb} +2 -2
- data/examples/v2/cloud-cost-management/ReorderTagPipelinesRulesets.rb +22 -0
- data/examples/v2/cloud-cost-management/{CreateArbitraryCostRule.rb → UpdateCustomAllocationRule.rb} +2 -2
- data/examples/v2/cloud-cost-management/{UpdateRuleset.rb → UpdateTagPipelinesRuleset.rb} +4 -3
- data/examples/v2/csm-threats/CreateCSMThreatsAgentPolicy.rb +1 -1
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule.rb +1 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +1 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1363354233.rb +33 -0
- data/examples/v2/dora-metrics/CreateDORADeployment.rb +1 -1
- data/examples/v2/dora-metrics/CreateDORAFailure.rb +1 -1
- data/examples/v2/dora-metrics/CreateDORAIncident.rb +1 -1
- data/examples/v2/dora-metrics/{CreateDORAIncident_1768887482.rb → CreateDORAIncident_1101664022.rb} +1 -1
- data/examples/v2/error-tracking/DeleteIssueAssignee.rb +8 -0
- data/examples/v2/fleet-automation/CancelFleetDeployment.rb +8 -0
- data/examples/v2/fleet-automation/CreateFleetDeploymentConfigure.rb +26 -0
- data/examples/v2/fleet-automation/GetFleetDeployment.rb +11 -0
- data/examples/v2/fleet-automation/ListFleetDeployments.rb +8 -0
- data/examples/v2/monitors/CreateMonitorNotificationRule_1181818787.rb +30 -0
- data/examples/v2/monitors/UpdateMonitorNotificationRule_1400905713.rb +35 -0
- data/examples/v2/reference-tables/CreateReferenceTable.rb +44 -0
- data/examples/v2/reference-tables/CreateReferenceTableUpload.rb +21 -0
- data/examples/v2/reference-tables/CreateReferenceTable_3196130987.rb +41 -0
- data/examples/v2/reference-tables/DeleteTable.rb +5 -0
- data/examples/v2/reference-tables/GetRowsByID.rb +5 -0
- data/examples/v2/reference-tables/GetTable.rb +5 -0
- data/examples/v2/reference-tables/ListTables.rb +5 -0
- data/examples/v2/reference-tables/UpdateReferenceTable.rb +44 -0
- data/examples/v2/roles/ListRoleTemplates.rb +8 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_868881438.rb +3 -1
- data/examples/v2/security-monitoring/ListScannedAssetsMetadata.rb +8 -0
- data/examples/v2/static-analysis/CreateSCAResolveVulnerableSymbols.rb +17 -0
- data/examples/v2/static-analysis/CreateSCAResult.rb +61 -0
- data/examples/v2/test-optimization/SearchFlakyTests.rb +27 -0
- data/examples/v2/test-optimization/SearchFlakyTests_1224086727.rb +27 -0
- data/examples/v2/test-optimization/SearchFlakyTests_2665223746.rb +26 -0
- data/lib/datadog_api_client/configuration.rb +9 -0
- data/lib/datadog_api_client/inflector.rb +208 -0
- data/lib/datadog_api_client/v1/api/hosts_api.rb +1 -0
- data/lib/datadog_api_client/v1/models/logs_processor.rb +2 -1
- data/lib/datadog_api_client/v1/models/logs_schema_category_mapper.rb +211 -0
- data/lib/datadog_api_client/v1/models/logs_schema_category_mapper_category.rb +165 -0
- data/lib/datadog_api_client/v1/models/logs_schema_category_mapper_fallback.rb +115 -0
- data/lib/datadog_api_client/v1/models/logs_schema_category_mapper_targets.rb +115 -0
- data/lib/datadog_api_client/v1/models/logs_schema_category_mapper_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/logs_schema_data.rb +198 -0
- data/lib/datadog_api_client/v1/models/logs_schema_mapper.rb +63 -0
- data/lib/datadog_api_client/v1/models/logs_schema_processor.rb +198 -0
- data/lib/datadog_api_client/v1/models/logs_schema_processor_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/logs_schema_remapper.rb +220 -0
- data/lib/datadog_api_client/v1/models/logs_schema_remapper_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/monitor.rb +0 -1
- data/lib/datadog_api_client/v1/models/monitor_update_request.rb +0 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +13 -1
- data/lib/datadog_api_client/v1/models/widget_marker.rb +0 -1
- data/lib/datadog_api_client/v2/api/actions_datastores_api.rb +72 -0
- data/lib/datadog_api_client/v2/api/agentless_scanning_api.rb +680 -22
- data/lib/datadog_api_client/v2/api/api_management_api.rb +0 -2
- data/lib/datadog_api_client/v2/api/case_management_api.rb +433 -0
- data/lib/datadog_api_client/v2/api/case_management_attribute_api.rb +293 -0
- data/lib/datadog_api_client/v2/api/case_management_type_api.rb +218 -0
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +1 -0
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +336 -336
- data/lib/datadog_api_client/v2/api/container_images_api.rb +1 -0
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +9 -9
- data/lib/datadog_api_client/v2/api/error_tracking_api.rb +65 -0
- data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +318 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +8 -8
- data/lib/datadog_api_client/v2/api/observability_pipelines_api.rb +0 -1
- data/lib/datadog_api_client/v2/api/on_call_paging_api.rb +0 -4
- data/lib/datadog_api_client/v2/api/reference_tables_api.rb +519 -0
- data/lib/datadog_api_client/v2/api/roles_api.rb +66 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +149 -10
- data/lib/datadog_api_client/v2/api/static_analysis_api.rb +166 -0
- data/lib/datadog_api_client/v2/api/test_optimization_api.rb +116 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_array.rb +13 -3
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_array_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/azure_scan_options.rb +105 -0
- data/lib/datadog_api_client/v2/models/azure_scan_options_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/azure_scan_options_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/azure_scan_options_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/azure_scan_options_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/azure_scan_options_input_update.rb +105 -0
- data/lib/datadog_api_client/v2/models/azure_scan_options_input_update_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/azure_scan_options_input_update_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/azure_scan_options_input_update_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/bulk_delete_apps_datastore_items_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/bulk_delete_apps_datastore_items_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/bulk_delete_apps_datastore_items_request_data_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/bulk_delete_apps_datastore_items_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/bulk_mute_findings_request_properties.rb +0 -1
- data/lib/datadog_api_client/v2/models/case_attributes.rb +23 -3
- data/lib/datadog_api_client/v2/models/case_comment.rb +144 -0
- data/lib/datadog_api_client/v2/models/case_comment_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_comment_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_create_attributes.rb +14 -14
- data/lib/datadog_api_client/v2/models/case_type.rb +2 -0
- data/lib/datadog_api_client/v2/models/case_type_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/case_type_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_type_resource.rb +125 -0
- data/lib/datadog_api_client/v2/models/case_type_resource_attributes.rb +161 -0
- data/lib/datadog_api_client/v2/models/case_type_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/case_type_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/case_types_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/case_update_custom_attribute.rb +144 -0
- data/lib/datadog_api_client/v2/models/case_update_custom_attribute_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_update_description.rb +144 -0
- data/lib/datadog_api_client/v2/models/case_update_description_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_update_description_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_update_title.rb +144 -0
- data/lib/datadog_api_client/v2/models/case_update_title_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_update_title_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/cloud_asset_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb +0 -2
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb +0 -1
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb +0 -1
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb +0 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +25 -3
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_version.rb +123 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +35 -5
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +30 -10
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +23 -3
- data/lib/datadog_api_client/v2/models/create_table_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_table_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes.rb +197 -0
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata.rb +63 -0
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_cloud_storage.rb +119 -0
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_local_file.rb +98 -0
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details.rb +125 -0
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +165 -0
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +207 -0
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +186 -0
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema.rb +148 -0
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema_fields_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_table_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/create_upload_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_upload_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/create_upload_request_data_attributes.rb +192 -0
- data/lib/datadog_api_client/v2/models/create_upload_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/create_upload_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_upload_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/create_upload_response_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/create_upload_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_attribute_config.rb +125 -0
- data/lib/datadog_api_client/v2/models/custom_attribute_config_attributes_create.rb +196 -0
- data/lib/datadog_api_client/v2/models/custom_attribute_config_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/custom_attribute_config_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/custom_attribute_config_resource_attributes.rb +217 -0
- data/lib/datadog_api_client/v2/models/custom_attribute_config_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_attribute_config_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/custom_attribute_configs_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/custom_attribute_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/custom_attribute_value.rb +165 -0
- data/lib/datadog_api_client/v2/models/custom_attribute_values_union.rb +65 -0
- data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_response_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/flaky_test.rb +125 -0
- data/lib/datadog_api_client/v2/models/flaky_test_attributes.rb +301 -0
- data/lib/datadog_api_client/v2/models/flaky_test_attributes_flaky_state.rb +29 -0
- data/lib/datadog_api_client/v2/models/flaky_test_pipeline_stats.rb +124 -0
- data/lib/datadog_api_client/v2/models/flaky_test_run_metadata.rb +168 -0
- data/lib/datadog_api_client/v2/models/flaky_test_stats.rb +113 -0
- data/lib/datadog_api_client/v2/models/flaky_test_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/flaky_tests_pagination.rb +113 -0
- data/lib/datadog_api_client/v2/models/flaky_tests_search_filter.rb +115 -0
- data/lib/datadog_api_client/v2/models/flaky_tests_search_page_options.rb +137 -0
- data/lib/datadog_api_client/v2/models/flaky_tests_search_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/flaky_tests_search_request_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/flaky_tests_search_request_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/flaky_tests_search_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/flaky_tests_search_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/flaky_tests_search_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/flaky_tests_search_sort.rb +37 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment.rb +165 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_configure_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_configure_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_configure_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_file_op.rb +30 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_operation.rb +161 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/fleet_deployments_page.rb +105 -0
- data/lib/datadog_api_client/v2/models/fleet_deployments_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/fleet_deployments_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/gcp_scan_options.rb +105 -0
- data/lib/datadog_api_client/v2/models/gcp_scan_options_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/gcp_scan_options_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/gcp_scan_options_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/gcp_scan_options_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update.rb +105 -0
- data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/metric_tag_cardinalities_meta.rb +0 -1
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_attributes.rb +15 -9
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_condition.rb +162 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_conditional_recipients.rb +160 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_response_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/notification_rule_response.rb +0 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_data_firehose_source.rb +0 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination.rb +0 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination.rb +0 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_source.rb +0 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination.rb +0 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +0 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +0 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination.rb +0 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +0 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor_rule.rb +0 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +0 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_destination.rb +0 -1
- data/lib/datadog_api_client/v2/models/patch_table_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_table_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata.rb +63 -0
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_cloud_storage.rb +90 -0
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_local_file.rb +98 -0
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details.rb +125 -0
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +125 -0
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +145 -0
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +135 -0
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema.rb +148 -0
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema_fields_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/patch_table_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/reference_table_create_source_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/reference_table_schema_field_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/reference_table_sort_type.rb +31 -0
- data/lib/datadog_api_client/v2/models/reference_table_source_type.rb +33 -0
- data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_request_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_results.rb +117 -0
- data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_results_vulnerable_symbols.rb +117 -0
- data/lib/datadog_api_client/v2/models/resolve_vulnerable_symbols_response_results_vulnerable_symbols_symbols.rb +125 -0
- data/lib/datadog_api_client/v2/models/role_template_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/role_template_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/role_template_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/role_template_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/sbom_format.rb +27 -0
- data/lib/datadog_api_client/v2/models/sca_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/sca_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/sca_request_data_attributes.rb +193 -0
- data/lib/datadog_api_client/v2/models/sca_request_data_attributes_commit.rb +165 -0
- data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items.rb +211 -0
- data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items_locations_items.rb +135 -0
- data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items_locations_items_file_position.rb +125 -0
- data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items_locations_items_position.rb +144 -0
- data/lib/datadog_api_client/v2/models/sca_request_data_attributes_dependencies_items_reachable_symbol_properties_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/sca_request_data_attributes_files_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/sca_request_data_attributes_relations_items.rb +117 -0
- data/lib/datadog_api_client/v2/models/sca_request_data_attributes_repository.rb +105 -0
- data/lib/datadog_api_client/v2/models/sca_request_data_attributes_vulnerabilities_items.rb +127 -0
- data/lib/datadog_api_client/v2/models/sca_request_data_attributes_vulnerabilities_items_affects_items.rb +105 -0
- data/lib/datadog_api_client/v2/models/sca_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/scanned_asset_metadata.rb +144 -0
- data/lib/datadog_api_client/v2/models/scanned_asset_metadata_asset.rb +144 -0
- data/lib/datadog_api_client/v2/models/scanned_asset_metadata_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/scanned_asset_metadata_last_success.rb +145 -0
- data/lib/datadog_api_client/v2/models/scanned_assets_metadata.rb +145 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +0 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +13 -1
- data/lib/datadog_api_client/v2/models/table_result_v2.rb +105 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes.rb +207 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata.rb +63 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage.rb +145 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage_error_type.rb +34 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_local_file.rb +125 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details.rb +125 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +125 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +145 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +135 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema.rb +148 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema_fields_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/table_row_resource_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/table_row_resource_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/table_row_resource_data_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/table_row_resource_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/timeline_cell.rb +155 -0
- data/lib/datadog_api_client/v2/models/timeline_cell_author.rb +62 -0
- data/lib/datadog_api_client/v2/models/timeline_cell_author_user.rb +115 -0
- data/lib/datadog_api_client/v2/models/timeline_cell_author_user_content.rb +135 -0
- data/lib/datadog_api_client/v2/models/timeline_cell_author_user_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/timeline_cell_content.rb +62 -0
- data/lib/datadog_api_client/v2/models/timeline_cell_content_comment.rb +105 -0
- data/lib/datadog_api_client/v2/models/timeline_cell_resource.rb +165 -0
- data/lib/datadog_api_client/v2/models/timeline_cell_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/timeline_cell_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/timeline_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/vulnerability_advisory.rb +143 -0
- data/lib/datadog_api_client/v2/models/vulnerability_attributes.rb +11 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +274 -14
- data/examples/v2/cloud-cost-management/DeleteArbitraryCostRule.rb +0 -5
- data/examples/v2/cloud-cost-management/DeleteRuleset.rb +0 -5
- data/examples/v2/cloud-cost-management/GetArbitraryCostRule.rb +0 -5
- data/examples/v2/cloud-cost-management/GetRuleset.rb +0 -5
- data/examples/v2/cloud-cost-management/ListArbitraryCostRules.rb +0 -5
- data/examples/v2/cloud-cost-management/ListRulesets.rb +0 -5
- data/examples/v2/cloud-cost-management/ReorderRulesets.rb +0 -13
|
@@ -23,7 +23,7 @@ module DatadogAPIClient::V2
|
|
|
23
23
|
@api_client = api_client
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
#
|
|
26
|
+
# Create AWS on demand task.
|
|
27
27
|
#
|
|
28
28
|
# @see #create_aws_on_demand_task_with_http_info
|
|
29
29
|
def create_aws_on_demand_task(body, opts = {})
|
|
@@ -31,7 +31,7 @@ module DatadogAPIClient::V2
|
|
|
31
31
|
data
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
#
|
|
34
|
+
# Create AWS on demand task.
|
|
35
35
|
#
|
|
36
36
|
# Trigger the scan of an AWS resource with a high priority. Agentless scanning must be activated for the AWS account containing the resource to scan.
|
|
37
37
|
#
|
|
@@ -70,7 +70,7 @@ module DatadogAPIClient::V2
|
|
|
70
70
|
return_type = opts[:debug_return_type] || 'AwsOnDemandResponse'
|
|
71
71
|
|
|
72
72
|
# auth_names
|
|
73
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
73
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
74
74
|
|
|
75
75
|
new_options = opts.merge(
|
|
76
76
|
:operation => :create_aws_on_demand_task,
|
|
@@ -90,7 +90,7 @@ module DatadogAPIClient::V2
|
|
|
90
90
|
return data, status_code, headers
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
-
#
|
|
93
|
+
# Create AWS scan options.
|
|
94
94
|
#
|
|
95
95
|
# @see #create_aws_scan_options_with_http_info
|
|
96
96
|
def create_aws_scan_options(body, opts = {})
|
|
@@ -98,7 +98,7 @@ module DatadogAPIClient::V2
|
|
|
98
98
|
data
|
|
99
99
|
end
|
|
100
100
|
|
|
101
|
-
#
|
|
101
|
+
# Create AWS scan options.
|
|
102
102
|
#
|
|
103
103
|
# Activate Agentless scan options for an AWS account.
|
|
104
104
|
#
|
|
@@ -137,7 +137,7 @@ module DatadogAPIClient::V2
|
|
|
137
137
|
return_type = opts[:debug_return_type] || 'AwsScanOptionsResponse'
|
|
138
138
|
|
|
139
139
|
# auth_names
|
|
140
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
140
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
141
141
|
|
|
142
142
|
new_options = opts.merge(
|
|
143
143
|
:operation => :create_aws_scan_options,
|
|
@@ -157,7 +157,141 @@ module DatadogAPIClient::V2
|
|
|
157
157
|
return data, status_code, headers
|
|
158
158
|
end
|
|
159
159
|
|
|
160
|
-
#
|
|
160
|
+
# Create Azure scan options.
|
|
161
|
+
#
|
|
162
|
+
# @see #create_azure_scan_options_with_http_info
|
|
163
|
+
def create_azure_scan_options(body, opts = {})
|
|
164
|
+
data, _status_code, _headers = create_azure_scan_options_with_http_info(body, opts)
|
|
165
|
+
data
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Create Azure scan options.
|
|
169
|
+
#
|
|
170
|
+
# Activate Agentless scan options for an Azure subscription.
|
|
171
|
+
#
|
|
172
|
+
# @param body [AzureScanOptions]
|
|
173
|
+
# @param opts [Hash] the optional parameters
|
|
174
|
+
# @return [Array<(AzureScanOptions, Integer, Hash)>] AzureScanOptions data, response status code and response headers
|
|
175
|
+
def create_azure_scan_options_with_http_info(body, opts = {})
|
|
176
|
+
|
|
177
|
+
if @api_client.config.debugging
|
|
178
|
+
@api_client.config.logger.debug 'Calling API: AgentlessScanningAPI.create_azure_scan_options ...'
|
|
179
|
+
end
|
|
180
|
+
# verify the required parameter 'body' is set
|
|
181
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
182
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AgentlessScanningAPI.create_azure_scan_options"
|
|
183
|
+
end
|
|
184
|
+
# resource path
|
|
185
|
+
local_var_path = '/api/v2/agentless_scanning/accounts/azure'
|
|
186
|
+
|
|
187
|
+
# query parameters
|
|
188
|
+
query_params = opts[:query_params] || {}
|
|
189
|
+
|
|
190
|
+
# header parameters
|
|
191
|
+
header_params = opts[:header_params] || {}
|
|
192
|
+
# HTTP header 'Accept' (if needed)
|
|
193
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
194
|
+
# HTTP header 'Content-Type'
|
|
195
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
196
|
+
|
|
197
|
+
# form parameters
|
|
198
|
+
form_params = opts[:form_params] || {}
|
|
199
|
+
|
|
200
|
+
# http body (model)
|
|
201
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
202
|
+
|
|
203
|
+
# return_type
|
|
204
|
+
return_type = opts[:debug_return_type] || 'AzureScanOptions'
|
|
205
|
+
|
|
206
|
+
# auth_names
|
|
207
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
208
|
+
|
|
209
|
+
new_options = opts.merge(
|
|
210
|
+
:operation => :create_azure_scan_options,
|
|
211
|
+
:header_params => header_params,
|
|
212
|
+
:query_params => query_params,
|
|
213
|
+
:form_params => form_params,
|
|
214
|
+
:body => post_body,
|
|
215
|
+
:auth_names => auth_names,
|
|
216
|
+
:return_type => return_type,
|
|
217
|
+
:api_version => "V2"
|
|
218
|
+
)
|
|
219
|
+
|
|
220
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
221
|
+
if @api_client.config.debugging
|
|
222
|
+
@api_client.config.logger.debug "API called: AgentlessScanningAPI#create_azure_scan_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
223
|
+
end
|
|
224
|
+
return data, status_code, headers
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Create GCP scan options.
|
|
228
|
+
#
|
|
229
|
+
# @see #create_gcp_scan_options_with_http_info
|
|
230
|
+
def create_gcp_scan_options(body, opts = {})
|
|
231
|
+
data, _status_code, _headers = create_gcp_scan_options_with_http_info(body, opts)
|
|
232
|
+
data
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Create GCP scan options.
|
|
236
|
+
#
|
|
237
|
+
# Activate Agentless scan options for a GCP project.
|
|
238
|
+
#
|
|
239
|
+
# @param body [GcpScanOptions] The definition of the new scan options.
|
|
240
|
+
# @param opts [Hash] the optional parameters
|
|
241
|
+
# @return [Array<(GcpScanOptions, Integer, Hash)>] GcpScanOptions data, response status code and response headers
|
|
242
|
+
def create_gcp_scan_options_with_http_info(body, opts = {})
|
|
243
|
+
|
|
244
|
+
if @api_client.config.debugging
|
|
245
|
+
@api_client.config.logger.debug 'Calling API: AgentlessScanningAPI.create_gcp_scan_options ...'
|
|
246
|
+
end
|
|
247
|
+
# verify the required parameter 'body' is set
|
|
248
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
249
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AgentlessScanningAPI.create_gcp_scan_options"
|
|
250
|
+
end
|
|
251
|
+
# resource path
|
|
252
|
+
local_var_path = '/api/v2/agentless_scanning/accounts/gcp'
|
|
253
|
+
|
|
254
|
+
# query parameters
|
|
255
|
+
query_params = opts[:query_params] || {}
|
|
256
|
+
|
|
257
|
+
# header parameters
|
|
258
|
+
header_params = opts[:header_params] || {}
|
|
259
|
+
# HTTP header 'Accept' (if needed)
|
|
260
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
261
|
+
# HTTP header 'Content-Type'
|
|
262
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
263
|
+
|
|
264
|
+
# form parameters
|
|
265
|
+
form_params = opts[:form_params] || {}
|
|
266
|
+
|
|
267
|
+
# http body (model)
|
|
268
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
269
|
+
|
|
270
|
+
# return_type
|
|
271
|
+
return_type = opts[:debug_return_type] || 'GcpScanOptions'
|
|
272
|
+
|
|
273
|
+
# auth_names
|
|
274
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
275
|
+
|
|
276
|
+
new_options = opts.merge(
|
|
277
|
+
:operation => :create_gcp_scan_options,
|
|
278
|
+
:header_params => header_params,
|
|
279
|
+
:query_params => query_params,
|
|
280
|
+
:form_params => form_params,
|
|
281
|
+
:body => post_body,
|
|
282
|
+
:auth_names => auth_names,
|
|
283
|
+
:return_type => return_type,
|
|
284
|
+
:api_version => "V2"
|
|
285
|
+
)
|
|
286
|
+
|
|
287
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
288
|
+
if @api_client.config.debugging
|
|
289
|
+
@api_client.config.logger.debug "API called: AgentlessScanningAPI#create_gcp_scan_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
290
|
+
end
|
|
291
|
+
return data, status_code, headers
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
# Delete AWS scan options.
|
|
161
295
|
#
|
|
162
296
|
# @see #delete_aws_scan_options_with_http_info
|
|
163
297
|
def delete_aws_scan_options(account_id, opts = {})
|
|
@@ -165,7 +299,7 @@ module DatadogAPIClient::V2
|
|
|
165
299
|
nil
|
|
166
300
|
end
|
|
167
301
|
|
|
168
|
-
# Delete AWS
|
|
302
|
+
# Delete AWS scan options.
|
|
169
303
|
#
|
|
170
304
|
# Delete Agentless scan options for an AWS account.
|
|
171
305
|
#
|
|
@@ -202,7 +336,7 @@ module DatadogAPIClient::V2
|
|
|
202
336
|
return_type = opts[:debug_return_type]
|
|
203
337
|
|
|
204
338
|
# auth_names
|
|
205
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
339
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
206
340
|
|
|
207
341
|
new_options = opts.merge(
|
|
208
342
|
:operation => :delete_aws_scan_options,
|
|
@@ -222,7 +356,137 @@ module DatadogAPIClient::V2
|
|
|
222
356
|
return data, status_code, headers
|
|
223
357
|
end
|
|
224
358
|
|
|
225
|
-
#
|
|
359
|
+
# Delete Azure scan options.
|
|
360
|
+
#
|
|
361
|
+
# @see #delete_azure_scan_options_with_http_info
|
|
362
|
+
def delete_azure_scan_options(subscription_id, opts = {})
|
|
363
|
+
delete_azure_scan_options_with_http_info(subscription_id, opts)
|
|
364
|
+
nil
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
# Delete Azure scan options.
|
|
368
|
+
#
|
|
369
|
+
# Delete Agentless scan options for an Azure subscription.
|
|
370
|
+
#
|
|
371
|
+
# @param subscription_id [String] The Azure subscription ID.
|
|
372
|
+
# @param opts [Hash] the optional parameters
|
|
373
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
374
|
+
def delete_azure_scan_options_with_http_info(subscription_id, opts = {})
|
|
375
|
+
|
|
376
|
+
if @api_client.config.debugging
|
|
377
|
+
@api_client.config.logger.debug 'Calling API: AgentlessScanningAPI.delete_azure_scan_options ...'
|
|
378
|
+
end
|
|
379
|
+
# verify the required parameter 'subscription_id' is set
|
|
380
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
|
381
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling AgentlessScanningAPI.delete_azure_scan_options"
|
|
382
|
+
end
|
|
383
|
+
# resource path
|
|
384
|
+
local_var_path = '/api/v2/agentless_scanning/accounts/azure/{subscription_id}'.sub('{subscription_id}', CGI.escape(subscription_id.to_s).gsub('%2F', '/'))
|
|
385
|
+
|
|
386
|
+
# query parameters
|
|
387
|
+
query_params = opts[:query_params] || {}
|
|
388
|
+
|
|
389
|
+
# header parameters
|
|
390
|
+
header_params = opts[:header_params] || {}
|
|
391
|
+
# HTTP header 'Accept' (if needed)
|
|
392
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
393
|
+
|
|
394
|
+
# form parameters
|
|
395
|
+
form_params = opts[:form_params] || {}
|
|
396
|
+
|
|
397
|
+
# http body (model)
|
|
398
|
+
post_body = opts[:debug_body]
|
|
399
|
+
|
|
400
|
+
# return_type
|
|
401
|
+
return_type = opts[:debug_return_type]
|
|
402
|
+
|
|
403
|
+
# auth_names
|
|
404
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
405
|
+
|
|
406
|
+
new_options = opts.merge(
|
|
407
|
+
:operation => :delete_azure_scan_options,
|
|
408
|
+
:header_params => header_params,
|
|
409
|
+
:query_params => query_params,
|
|
410
|
+
:form_params => form_params,
|
|
411
|
+
:body => post_body,
|
|
412
|
+
:auth_names => auth_names,
|
|
413
|
+
:return_type => return_type,
|
|
414
|
+
:api_version => "V2"
|
|
415
|
+
)
|
|
416
|
+
|
|
417
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
418
|
+
if @api_client.config.debugging
|
|
419
|
+
@api_client.config.logger.debug "API called: AgentlessScanningAPI#delete_azure_scan_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
420
|
+
end
|
|
421
|
+
return data, status_code, headers
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
# Delete GCP scan options.
|
|
425
|
+
#
|
|
426
|
+
# @see #delete_gcp_scan_options_with_http_info
|
|
427
|
+
def delete_gcp_scan_options(project_id, opts = {})
|
|
428
|
+
delete_gcp_scan_options_with_http_info(project_id, opts)
|
|
429
|
+
nil
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
# Delete GCP scan options.
|
|
433
|
+
#
|
|
434
|
+
# Delete Agentless scan options for a GCP project.
|
|
435
|
+
#
|
|
436
|
+
# @param project_id [String] The GCP project ID.
|
|
437
|
+
# @param opts [Hash] the optional parameters
|
|
438
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
439
|
+
def delete_gcp_scan_options_with_http_info(project_id, opts = {})
|
|
440
|
+
|
|
441
|
+
if @api_client.config.debugging
|
|
442
|
+
@api_client.config.logger.debug 'Calling API: AgentlessScanningAPI.delete_gcp_scan_options ...'
|
|
443
|
+
end
|
|
444
|
+
# verify the required parameter 'project_id' is set
|
|
445
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
446
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling AgentlessScanningAPI.delete_gcp_scan_options"
|
|
447
|
+
end
|
|
448
|
+
# resource path
|
|
449
|
+
local_var_path = '/api/v2/agentless_scanning/accounts/gcp/{project_id}'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/'))
|
|
450
|
+
|
|
451
|
+
# query parameters
|
|
452
|
+
query_params = opts[:query_params] || {}
|
|
453
|
+
|
|
454
|
+
# header parameters
|
|
455
|
+
header_params = opts[:header_params] || {}
|
|
456
|
+
# HTTP header 'Accept' (if needed)
|
|
457
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
458
|
+
|
|
459
|
+
# form parameters
|
|
460
|
+
form_params = opts[:form_params] || {}
|
|
461
|
+
|
|
462
|
+
# http body (model)
|
|
463
|
+
post_body = opts[:debug_body]
|
|
464
|
+
|
|
465
|
+
# return_type
|
|
466
|
+
return_type = opts[:debug_return_type]
|
|
467
|
+
|
|
468
|
+
# auth_names
|
|
469
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
470
|
+
|
|
471
|
+
new_options = opts.merge(
|
|
472
|
+
:operation => :delete_gcp_scan_options,
|
|
473
|
+
:header_params => header_params,
|
|
474
|
+
:query_params => query_params,
|
|
475
|
+
:form_params => form_params,
|
|
476
|
+
:body => post_body,
|
|
477
|
+
:auth_names => auth_names,
|
|
478
|
+
:return_type => return_type,
|
|
479
|
+
:api_version => "V2"
|
|
480
|
+
)
|
|
481
|
+
|
|
482
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
483
|
+
if @api_client.config.debugging
|
|
484
|
+
@api_client.config.logger.debug "API called: AgentlessScanningAPI#delete_gcp_scan_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
485
|
+
end
|
|
486
|
+
return data, status_code, headers
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
# Get AWS on demand task.
|
|
226
490
|
#
|
|
227
491
|
# @see #get_aws_on_demand_task_with_http_info
|
|
228
492
|
def get_aws_on_demand_task(task_id, opts = {})
|
|
@@ -230,7 +494,7 @@ module DatadogAPIClient::V2
|
|
|
230
494
|
data
|
|
231
495
|
end
|
|
232
496
|
|
|
233
|
-
# Get AWS
|
|
497
|
+
# Get AWS on demand task.
|
|
234
498
|
#
|
|
235
499
|
# Fetch the data of a specific on demand task.
|
|
236
500
|
#
|
|
@@ -267,7 +531,7 @@ module DatadogAPIClient::V2
|
|
|
267
531
|
return_type = opts[:debug_return_type] || 'AwsOnDemandResponse'
|
|
268
532
|
|
|
269
533
|
# auth_names
|
|
270
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
534
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
271
535
|
|
|
272
536
|
new_options = opts.merge(
|
|
273
537
|
:operation => :get_aws_on_demand_task,
|
|
@@ -332,7 +596,7 @@ module DatadogAPIClient::V2
|
|
|
332
596
|
return_type = opts[:debug_return_type] || 'AwsScanOptionsResponse'
|
|
333
597
|
|
|
334
598
|
# auth_names
|
|
335
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
599
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
336
600
|
|
|
337
601
|
new_options = opts.merge(
|
|
338
602
|
:operation => :get_aws_scan_options,
|
|
@@ -352,7 +616,137 @@ module DatadogAPIClient::V2
|
|
|
352
616
|
return data, status_code, headers
|
|
353
617
|
end
|
|
354
618
|
|
|
355
|
-
# Get
|
|
619
|
+
# Get Azure scan options.
|
|
620
|
+
#
|
|
621
|
+
# @see #get_azure_scan_options_with_http_info
|
|
622
|
+
def get_azure_scan_options(subscription_id, opts = {})
|
|
623
|
+
data, _status_code, _headers = get_azure_scan_options_with_http_info(subscription_id, opts)
|
|
624
|
+
data
|
|
625
|
+
end
|
|
626
|
+
|
|
627
|
+
# Get Azure scan options.
|
|
628
|
+
#
|
|
629
|
+
# Fetches the Agentless scan options for an activated subscription.
|
|
630
|
+
#
|
|
631
|
+
# @param subscription_id [String] The Azure subscription ID.
|
|
632
|
+
# @param opts [Hash] the optional parameters
|
|
633
|
+
# @return [Array<(AzureScanOptions, Integer, Hash)>] AzureScanOptions data, response status code and response headers
|
|
634
|
+
def get_azure_scan_options_with_http_info(subscription_id, opts = {})
|
|
635
|
+
|
|
636
|
+
if @api_client.config.debugging
|
|
637
|
+
@api_client.config.logger.debug 'Calling API: AgentlessScanningAPI.get_azure_scan_options ...'
|
|
638
|
+
end
|
|
639
|
+
# verify the required parameter 'subscription_id' is set
|
|
640
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
|
641
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling AgentlessScanningAPI.get_azure_scan_options"
|
|
642
|
+
end
|
|
643
|
+
# resource path
|
|
644
|
+
local_var_path = '/api/v2/agentless_scanning/accounts/azure/{subscription_id}'.sub('{subscription_id}', CGI.escape(subscription_id.to_s).gsub('%2F', '/'))
|
|
645
|
+
|
|
646
|
+
# query parameters
|
|
647
|
+
query_params = opts[:query_params] || {}
|
|
648
|
+
|
|
649
|
+
# header parameters
|
|
650
|
+
header_params = opts[:header_params] || {}
|
|
651
|
+
# HTTP header 'Accept' (if needed)
|
|
652
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
653
|
+
|
|
654
|
+
# form parameters
|
|
655
|
+
form_params = opts[:form_params] || {}
|
|
656
|
+
|
|
657
|
+
# http body (model)
|
|
658
|
+
post_body = opts[:debug_body]
|
|
659
|
+
|
|
660
|
+
# return_type
|
|
661
|
+
return_type = opts[:debug_return_type] || 'AzureScanOptions'
|
|
662
|
+
|
|
663
|
+
# auth_names
|
|
664
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
665
|
+
|
|
666
|
+
new_options = opts.merge(
|
|
667
|
+
:operation => :get_azure_scan_options,
|
|
668
|
+
:header_params => header_params,
|
|
669
|
+
:query_params => query_params,
|
|
670
|
+
:form_params => form_params,
|
|
671
|
+
:body => post_body,
|
|
672
|
+
:auth_names => auth_names,
|
|
673
|
+
:return_type => return_type,
|
|
674
|
+
:api_version => "V2"
|
|
675
|
+
)
|
|
676
|
+
|
|
677
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
678
|
+
if @api_client.config.debugging
|
|
679
|
+
@api_client.config.logger.debug "API called: AgentlessScanningAPI#get_azure_scan_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
680
|
+
end
|
|
681
|
+
return data, status_code, headers
|
|
682
|
+
end
|
|
683
|
+
|
|
684
|
+
# Get GCP scan options.
|
|
685
|
+
#
|
|
686
|
+
# @see #get_gcp_scan_options_with_http_info
|
|
687
|
+
def get_gcp_scan_options(project_id, opts = {})
|
|
688
|
+
data, _status_code, _headers = get_gcp_scan_options_with_http_info(project_id, opts)
|
|
689
|
+
data
|
|
690
|
+
end
|
|
691
|
+
|
|
692
|
+
# Get GCP scan options.
|
|
693
|
+
#
|
|
694
|
+
# Fetches the Agentless scan options for an activated GCP project.
|
|
695
|
+
#
|
|
696
|
+
# @param project_id [String] The GCP project ID.
|
|
697
|
+
# @param opts [Hash] the optional parameters
|
|
698
|
+
# @return [Array<(GcpScanOptions, Integer, Hash)>] GcpScanOptions data, response status code and response headers
|
|
699
|
+
def get_gcp_scan_options_with_http_info(project_id, opts = {})
|
|
700
|
+
|
|
701
|
+
if @api_client.config.debugging
|
|
702
|
+
@api_client.config.logger.debug 'Calling API: AgentlessScanningAPI.get_gcp_scan_options ...'
|
|
703
|
+
end
|
|
704
|
+
# verify the required parameter 'project_id' is set
|
|
705
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
706
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling AgentlessScanningAPI.get_gcp_scan_options"
|
|
707
|
+
end
|
|
708
|
+
# resource path
|
|
709
|
+
local_var_path = '/api/v2/agentless_scanning/accounts/gcp/{project_id}'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/'))
|
|
710
|
+
|
|
711
|
+
# query parameters
|
|
712
|
+
query_params = opts[:query_params] || {}
|
|
713
|
+
|
|
714
|
+
# header parameters
|
|
715
|
+
header_params = opts[:header_params] || {}
|
|
716
|
+
# HTTP header 'Accept' (if needed)
|
|
717
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
718
|
+
|
|
719
|
+
# form parameters
|
|
720
|
+
form_params = opts[:form_params] || {}
|
|
721
|
+
|
|
722
|
+
# http body (model)
|
|
723
|
+
post_body = opts[:debug_body]
|
|
724
|
+
|
|
725
|
+
# return_type
|
|
726
|
+
return_type = opts[:debug_return_type] || 'GcpScanOptions'
|
|
727
|
+
|
|
728
|
+
# auth_names
|
|
729
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
730
|
+
|
|
731
|
+
new_options = opts.merge(
|
|
732
|
+
:operation => :get_gcp_scan_options,
|
|
733
|
+
:header_params => header_params,
|
|
734
|
+
:query_params => query_params,
|
|
735
|
+
:form_params => form_params,
|
|
736
|
+
:body => post_body,
|
|
737
|
+
:auth_names => auth_names,
|
|
738
|
+
:return_type => return_type,
|
|
739
|
+
:api_version => "V2"
|
|
740
|
+
)
|
|
741
|
+
|
|
742
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
743
|
+
if @api_client.config.debugging
|
|
744
|
+
@api_client.config.logger.debug "API called: AgentlessScanningAPI#get_gcp_scan_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
745
|
+
end
|
|
746
|
+
return data, status_code, headers
|
|
747
|
+
end
|
|
748
|
+
|
|
749
|
+
# List AWS on demand tasks.
|
|
356
750
|
#
|
|
357
751
|
# @see #list_aws_on_demand_tasks_with_http_info
|
|
358
752
|
def list_aws_on_demand_tasks(opts = {})
|
|
@@ -360,7 +754,7 @@ module DatadogAPIClient::V2
|
|
|
360
754
|
data
|
|
361
755
|
end
|
|
362
756
|
|
|
363
|
-
#
|
|
757
|
+
# List AWS on demand tasks.
|
|
364
758
|
#
|
|
365
759
|
# Fetches the most recent 1000 AWS on demand tasks.
|
|
366
760
|
#
|
|
@@ -392,7 +786,7 @@ module DatadogAPIClient::V2
|
|
|
392
786
|
return_type = opts[:debug_return_type] || 'AwsOnDemandListResponse'
|
|
393
787
|
|
|
394
788
|
# auth_names
|
|
395
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
789
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
396
790
|
|
|
397
791
|
new_options = opts.merge(
|
|
398
792
|
:operation => :list_aws_on_demand_tasks,
|
|
@@ -412,7 +806,7 @@ module DatadogAPIClient::V2
|
|
|
412
806
|
return data, status_code, headers
|
|
413
807
|
end
|
|
414
808
|
|
|
415
|
-
# List AWS
|
|
809
|
+
# List AWS scan options.
|
|
416
810
|
#
|
|
417
811
|
# @see #list_aws_scan_options_with_http_info
|
|
418
812
|
def list_aws_scan_options(opts = {})
|
|
@@ -420,7 +814,7 @@ module DatadogAPIClient::V2
|
|
|
420
814
|
data
|
|
421
815
|
end
|
|
422
816
|
|
|
423
|
-
# List AWS
|
|
817
|
+
# List AWS scan options.
|
|
424
818
|
#
|
|
425
819
|
# Fetches the scan options configured for AWS accounts.
|
|
426
820
|
#
|
|
@@ -452,7 +846,7 @@ module DatadogAPIClient::V2
|
|
|
452
846
|
return_type = opts[:debug_return_type] || 'AwsScanOptionsListResponse'
|
|
453
847
|
|
|
454
848
|
# auth_names
|
|
455
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
849
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
456
850
|
|
|
457
851
|
new_options = opts.merge(
|
|
458
852
|
:operation => :list_aws_scan_options,
|
|
@@ -472,7 +866,127 @@ module DatadogAPIClient::V2
|
|
|
472
866
|
return data, status_code, headers
|
|
473
867
|
end
|
|
474
868
|
|
|
475
|
-
#
|
|
869
|
+
# List Azure scan options.
|
|
870
|
+
#
|
|
871
|
+
# @see #list_azure_scan_options_with_http_info
|
|
872
|
+
def list_azure_scan_options(opts = {})
|
|
873
|
+
data, _status_code, _headers = list_azure_scan_options_with_http_info(opts)
|
|
874
|
+
data
|
|
875
|
+
end
|
|
876
|
+
|
|
877
|
+
# List Azure scan options.
|
|
878
|
+
#
|
|
879
|
+
# Fetches the scan options configured for Azure accounts.
|
|
880
|
+
#
|
|
881
|
+
# @param opts [Hash] the optional parameters
|
|
882
|
+
# @return [Array<(AzureScanOptionsArray, Integer, Hash)>] AzureScanOptionsArray data, response status code and response headers
|
|
883
|
+
def list_azure_scan_options_with_http_info(opts = {})
|
|
884
|
+
|
|
885
|
+
if @api_client.config.debugging
|
|
886
|
+
@api_client.config.logger.debug 'Calling API: AgentlessScanningAPI.list_azure_scan_options ...'
|
|
887
|
+
end
|
|
888
|
+
# resource path
|
|
889
|
+
local_var_path = '/api/v2/agentless_scanning/accounts/azure'
|
|
890
|
+
|
|
891
|
+
# query parameters
|
|
892
|
+
query_params = opts[:query_params] || {}
|
|
893
|
+
|
|
894
|
+
# header parameters
|
|
895
|
+
header_params = opts[:header_params] || {}
|
|
896
|
+
# HTTP header 'Accept' (if needed)
|
|
897
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
898
|
+
|
|
899
|
+
# form parameters
|
|
900
|
+
form_params = opts[:form_params] || {}
|
|
901
|
+
|
|
902
|
+
# http body (model)
|
|
903
|
+
post_body = opts[:debug_body]
|
|
904
|
+
|
|
905
|
+
# return_type
|
|
906
|
+
return_type = opts[:debug_return_type] || 'AzureScanOptionsArray'
|
|
907
|
+
|
|
908
|
+
# auth_names
|
|
909
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
910
|
+
|
|
911
|
+
new_options = opts.merge(
|
|
912
|
+
:operation => :list_azure_scan_options,
|
|
913
|
+
:header_params => header_params,
|
|
914
|
+
:query_params => query_params,
|
|
915
|
+
:form_params => form_params,
|
|
916
|
+
:body => post_body,
|
|
917
|
+
:auth_names => auth_names,
|
|
918
|
+
:return_type => return_type,
|
|
919
|
+
:api_version => "V2"
|
|
920
|
+
)
|
|
921
|
+
|
|
922
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
923
|
+
if @api_client.config.debugging
|
|
924
|
+
@api_client.config.logger.debug "API called: AgentlessScanningAPI#list_azure_scan_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
925
|
+
end
|
|
926
|
+
return data, status_code, headers
|
|
927
|
+
end
|
|
928
|
+
|
|
929
|
+
# List GCP scan options.
|
|
930
|
+
#
|
|
931
|
+
# @see #list_gcp_scan_options_with_http_info
|
|
932
|
+
def list_gcp_scan_options(opts = {})
|
|
933
|
+
data, _status_code, _headers = list_gcp_scan_options_with_http_info(opts)
|
|
934
|
+
data
|
|
935
|
+
end
|
|
936
|
+
|
|
937
|
+
# List GCP scan options.
|
|
938
|
+
#
|
|
939
|
+
# Fetches the scan options configured for all GCP projects.
|
|
940
|
+
#
|
|
941
|
+
# @param opts [Hash] the optional parameters
|
|
942
|
+
# @return [Array<(GcpScanOptionsArray, Integer, Hash)>] GcpScanOptionsArray data, response status code and response headers
|
|
943
|
+
def list_gcp_scan_options_with_http_info(opts = {})
|
|
944
|
+
|
|
945
|
+
if @api_client.config.debugging
|
|
946
|
+
@api_client.config.logger.debug 'Calling API: AgentlessScanningAPI.list_gcp_scan_options ...'
|
|
947
|
+
end
|
|
948
|
+
# resource path
|
|
949
|
+
local_var_path = '/api/v2/agentless_scanning/accounts/gcp'
|
|
950
|
+
|
|
951
|
+
# query parameters
|
|
952
|
+
query_params = opts[:query_params] || {}
|
|
953
|
+
|
|
954
|
+
# header parameters
|
|
955
|
+
header_params = opts[:header_params] || {}
|
|
956
|
+
# HTTP header 'Accept' (if needed)
|
|
957
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
958
|
+
|
|
959
|
+
# form parameters
|
|
960
|
+
form_params = opts[:form_params] || {}
|
|
961
|
+
|
|
962
|
+
# http body (model)
|
|
963
|
+
post_body = opts[:debug_body]
|
|
964
|
+
|
|
965
|
+
# return_type
|
|
966
|
+
return_type = opts[:debug_return_type] || 'GcpScanOptionsArray'
|
|
967
|
+
|
|
968
|
+
# auth_names
|
|
969
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
970
|
+
|
|
971
|
+
new_options = opts.merge(
|
|
972
|
+
:operation => :list_gcp_scan_options,
|
|
973
|
+
:header_params => header_params,
|
|
974
|
+
:query_params => query_params,
|
|
975
|
+
:form_params => form_params,
|
|
976
|
+
:body => post_body,
|
|
977
|
+
:auth_names => auth_names,
|
|
978
|
+
:return_type => return_type,
|
|
979
|
+
:api_version => "V2"
|
|
980
|
+
)
|
|
981
|
+
|
|
982
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
983
|
+
if @api_client.config.debugging
|
|
984
|
+
@api_client.config.logger.debug "API called: AgentlessScanningAPI#list_gcp_scan_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
985
|
+
end
|
|
986
|
+
return data, status_code, headers
|
|
987
|
+
end
|
|
988
|
+
|
|
989
|
+
# Update AWS scan options.
|
|
476
990
|
#
|
|
477
991
|
# @see #update_aws_scan_options_with_http_info
|
|
478
992
|
def update_aws_scan_options(account_id, body, opts = {})
|
|
@@ -480,7 +994,7 @@ module DatadogAPIClient::V2
|
|
|
480
994
|
nil
|
|
481
995
|
end
|
|
482
996
|
|
|
483
|
-
#
|
|
997
|
+
# Update AWS scan options.
|
|
484
998
|
#
|
|
485
999
|
# Update the Agentless scan options for an activated account.
|
|
486
1000
|
#
|
|
@@ -524,7 +1038,7 @@ module DatadogAPIClient::V2
|
|
|
524
1038
|
return_type = opts[:debug_return_type]
|
|
525
1039
|
|
|
526
1040
|
# auth_names
|
|
527
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
1041
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
528
1042
|
|
|
529
1043
|
new_options = opts.merge(
|
|
530
1044
|
:operation => :update_aws_scan_options,
|
|
@@ -543,5 +1057,149 @@ module DatadogAPIClient::V2
|
|
|
543
1057
|
end
|
|
544
1058
|
return data, status_code, headers
|
|
545
1059
|
end
|
|
1060
|
+
|
|
1061
|
+
# Update Azure scan options.
|
|
1062
|
+
#
|
|
1063
|
+
# @see #update_azure_scan_options_with_http_info
|
|
1064
|
+
def update_azure_scan_options(subscription_id, body, opts = {})
|
|
1065
|
+
data, _status_code, _headers = update_azure_scan_options_with_http_info(subscription_id, body, opts)
|
|
1066
|
+
data
|
|
1067
|
+
end
|
|
1068
|
+
|
|
1069
|
+
# Update Azure scan options.
|
|
1070
|
+
#
|
|
1071
|
+
# Update the Agentless scan options for an activated subscription.
|
|
1072
|
+
#
|
|
1073
|
+
# @param subscription_id [String] The Azure subscription ID.
|
|
1074
|
+
# @param body [AzureScanOptionsInputUpdate]
|
|
1075
|
+
# @param opts [Hash] the optional parameters
|
|
1076
|
+
# @return [Array<(AzureScanOptions, Integer, Hash)>] AzureScanOptions data, response status code and response headers
|
|
1077
|
+
def update_azure_scan_options_with_http_info(subscription_id, body, opts = {})
|
|
1078
|
+
|
|
1079
|
+
if @api_client.config.debugging
|
|
1080
|
+
@api_client.config.logger.debug 'Calling API: AgentlessScanningAPI.update_azure_scan_options ...'
|
|
1081
|
+
end
|
|
1082
|
+
# verify the required parameter 'subscription_id' is set
|
|
1083
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
|
1084
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling AgentlessScanningAPI.update_azure_scan_options"
|
|
1085
|
+
end
|
|
1086
|
+
# verify the required parameter 'body' is set
|
|
1087
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1088
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AgentlessScanningAPI.update_azure_scan_options"
|
|
1089
|
+
end
|
|
1090
|
+
# resource path
|
|
1091
|
+
local_var_path = '/api/v2/agentless_scanning/accounts/azure/{subscription_id}'.sub('{subscription_id}', CGI.escape(subscription_id.to_s).gsub('%2F', '/'))
|
|
1092
|
+
|
|
1093
|
+
# query parameters
|
|
1094
|
+
query_params = opts[:query_params] || {}
|
|
1095
|
+
|
|
1096
|
+
# header parameters
|
|
1097
|
+
header_params = opts[:header_params] || {}
|
|
1098
|
+
# HTTP header 'Accept' (if needed)
|
|
1099
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1100
|
+
# HTTP header 'Content-Type'
|
|
1101
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1102
|
+
|
|
1103
|
+
# form parameters
|
|
1104
|
+
form_params = opts[:form_params] || {}
|
|
1105
|
+
|
|
1106
|
+
# http body (model)
|
|
1107
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1108
|
+
|
|
1109
|
+
# return_type
|
|
1110
|
+
return_type = opts[:debug_return_type] || 'AzureScanOptions'
|
|
1111
|
+
|
|
1112
|
+
# auth_names
|
|
1113
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1114
|
+
|
|
1115
|
+
new_options = opts.merge(
|
|
1116
|
+
:operation => :update_azure_scan_options,
|
|
1117
|
+
:header_params => header_params,
|
|
1118
|
+
:query_params => query_params,
|
|
1119
|
+
:form_params => form_params,
|
|
1120
|
+
:body => post_body,
|
|
1121
|
+
:auth_names => auth_names,
|
|
1122
|
+
:return_type => return_type,
|
|
1123
|
+
:api_version => "V2"
|
|
1124
|
+
)
|
|
1125
|
+
|
|
1126
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
1127
|
+
if @api_client.config.debugging
|
|
1128
|
+
@api_client.config.logger.debug "API called: AgentlessScanningAPI#update_azure_scan_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1129
|
+
end
|
|
1130
|
+
return data, status_code, headers
|
|
1131
|
+
end
|
|
1132
|
+
|
|
1133
|
+
# Update GCP scan options.
|
|
1134
|
+
#
|
|
1135
|
+
# @see #update_gcp_scan_options_with_http_info
|
|
1136
|
+
def update_gcp_scan_options(project_id, body, opts = {})
|
|
1137
|
+
data, _status_code, _headers = update_gcp_scan_options_with_http_info(project_id, body, opts)
|
|
1138
|
+
data
|
|
1139
|
+
end
|
|
1140
|
+
|
|
1141
|
+
# Update GCP scan options.
|
|
1142
|
+
#
|
|
1143
|
+
# Update the Agentless scan options for an activated GCP project.
|
|
1144
|
+
#
|
|
1145
|
+
# @param project_id [String] The GCP project ID.
|
|
1146
|
+
# @param body [GcpScanOptionsInputUpdate] New definition of the scan options.
|
|
1147
|
+
# @param opts [Hash] the optional parameters
|
|
1148
|
+
# @return [Array<(GcpScanOptions, Integer, Hash)>] GcpScanOptions data, response status code and response headers
|
|
1149
|
+
def update_gcp_scan_options_with_http_info(project_id, body, opts = {})
|
|
1150
|
+
|
|
1151
|
+
if @api_client.config.debugging
|
|
1152
|
+
@api_client.config.logger.debug 'Calling API: AgentlessScanningAPI.update_gcp_scan_options ...'
|
|
1153
|
+
end
|
|
1154
|
+
# verify the required parameter 'project_id' is set
|
|
1155
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
1156
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling AgentlessScanningAPI.update_gcp_scan_options"
|
|
1157
|
+
end
|
|
1158
|
+
# verify the required parameter 'body' is set
|
|
1159
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1160
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AgentlessScanningAPI.update_gcp_scan_options"
|
|
1161
|
+
end
|
|
1162
|
+
# resource path
|
|
1163
|
+
local_var_path = '/api/v2/agentless_scanning/accounts/gcp/{project_id}'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/'))
|
|
1164
|
+
|
|
1165
|
+
# query parameters
|
|
1166
|
+
query_params = opts[:query_params] || {}
|
|
1167
|
+
|
|
1168
|
+
# header parameters
|
|
1169
|
+
header_params = opts[:header_params] || {}
|
|
1170
|
+
# HTTP header 'Accept' (if needed)
|
|
1171
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1172
|
+
# HTTP header 'Content-Type'
|
|
1173
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1174
|
+
|
|
1175
|
+
# form parameters
|
|
1176
|
+
form_params = opts[:form_params] || {}
|
|
1177
|
+
|
|
1178
|
+
# http body (model)
|
|
1179
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1180
|
+
|
|
1181
|
+
# return_type
|
|
1182
|
+
return_type = opts[:debug_return_type] || 'GcpScanOptions'
|
|
1183
|
+
|
|
1184
|
+
# auth_names
|
|
1185
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1186
|
+
|
|
1187
|
+
new_options = opts.merge(
|
|
1188
|
+
:operation => :update_gcp_scan_options,
|
|
1189
|
+
:header_params => header_params,
|
|
1190
|
+
:query_params => query_params,
|
|
1191
|
+
:form_params => form_params,
|
|
1192
|
+
:body => post_body,
|
|
1193
|
+
:auth_names => auth_names,
|
|
1194
|
+
:return_type => return_type,
|
|
1195
|
+
:api_version => "V2"
|
|
1196
|
+
)
|
|
1197
|
+
|
|
1198
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
1199
|
+
if @api_client.config.debugging
|
|
1200
|
+
@api_client.config.logger.debug "API called: AgentlessScanningAPI#update_gcp_scan_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1201
|
+
end
|
|
1202
|
+
return data, status_code, headers
|
|
1203
|
+
end
|
|
546
1204
|
end
|
|
547
1205
|
end
|