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
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V1
|
|
20
|
+
# Use the Schema Category Mapper to categorize log event into enum fields.
|
|
21
|
+
# In the case of OCSF, they can be used to map sibling fields which are composed of an ID and a name.
|
|
22
|
+
#
|
|
23
|
+
# **Notes**:
|
|
24
|
+
#
|
|
25
|
+
# - The syntax of the query is the one of Logs Explorer search bar.
|
|
26
|
+
# The query can be done on any log attribute or tag, whether it is a facet or not.
|
|
27
|
+
# Wildcards can also be used inside your query.
|
|
28
|
+
# - Categories are executed in order and processing stops at the first match.
|
|
29
|
+
# Make sure categories are properly ordered in case a log could match multiple queries.
|
|
30
|
+
# - Sibling fields always have a numerical ID field and a human-readable string name.
|
|
31
|
+
# - A fallback section handles cases where the name or ID value matches a specific value.
|
|
32
|
+
# If the name matches "Other" or the ID matches 99, the value of the sibling name field will be pulled from a source field from the original log.
|
|
33
|
+
class LogsSchemaCategoryMapper
|
|
34
|
+
include BaseGenericModel
|
|
35
|
+
|
|
36
|
+
# Array of filters to match or not a log and their
|
|
37
|
+
# corresponding `name` to assign a custom value to the log.
|
|
38
|
+
attr_reader :categories
|
|
39
|
+
|
|
40
|
+
# Used to override hardcoded category values with a value pulled from a source attribute on the log.
|
|
41
|
+
attr_accessor :fallback
|
|
42
|
+
|
|
43
|
+
# Name of the logs schema category mapper.
|
|
44
|
+
attr_reader :name
|
|
45
|
+
|
|
46
|
+
# Name of the target attributes which value is defined by the matching category.
|
|
47
|
+
attr_reader :targets
|
|
48
|
+
|
|
49
|
+
# Type of logs schema category mapper.
|
|
50
|
+
attr_reader :type
|
|
51
|
+
|
|
52
|
+
attr_accessor :additional_properties
|
|
53
|
+
|
|
54
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
55
|
+
# @!visibility private
|
|
56
|
+
def self.attribute_map
|
|
57
|
+
{
|
|
58
|
+
:'categories' => :'categories',
|
|
59
|
+
:'fallback' => :'fallback',
|
|
60
|
+
:'name' => :'name',
|
|
61
|
+
:'targets' => :'targets',
|
|
62
|
+
:'type' => :'type'
|
|
63
|
+
}
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Attribute type mapping.
|
|
67
|
+
# @!visibility private
|
|
68
|
+
def self.openapi_types
|
|
69
|
+
{
|
|
70
|
+
:'categories' => :'Array<LogsSchemaCategoryMapperCategory>',
|
|
71
|
+
:'fallback' => :'LogsSchemaCategoryMapperFallback',
|
|
72
|
+
:'name' => :'String',
|
|
73
|
+
:'targets' => :'LogsSchemaCategoryMapperTargets',
|
|
74
|
+
:'type' => :'LogsSchemaCategoryMapperType'
|
|
75
|
+
}
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Initializes the object
|
|
79
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
80
|
+
# @!visibility private
|
|
81
|
+
def initialize(attributes = {})
|
|
82
|
+
if (!attributes.is_a?(Hash))
|
|
83
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsSchemaCategoryMapper` initialize method"
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
self.additional_properties = {}
|
|
87
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
88
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
89
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
90
|
+
self.additional_properties[k.to_sym] = v
|
|
91
|
+
else
|
|
92
|
+
h[k.to_sym] = v
|
|
93
|
+
end
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'categories')
|
|
97
|
+
if (value = attributes[:'categories']).is_a?(Array)
|
|
98
|
+
self.categories = value
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'fallback')
|
|
103
|
+
self.fallback = attributes[:'fallback']
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'name')
|
|
107
|
+
self.name = attributes[:'name']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'targets')
|
|
111
|
+
self.targets = attributes[:'targets']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'type')
|
|
115
|
+
self.type = attributes[:'type']
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Check to see if the all the properties in the model are valid
|
|
120
|
+
# @return true if the model is valid
|
|
121
|
+
# @!visibility private
|
|
122
|
+
def valid?
|
|
123
|
+
return false if @categories.nil?
|
|
124
|
+
return false if @name.nil?
|
|
125
|
+
return false if @targets.nil?
|
|
126
|
+
return false if @type.nil?
|
|
127
|
+
true
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Custom attribute writer method with validation
|
|
131
|
+
# @param categories [Object] Object to be assigned
|
|
132
|
+
# @!visibility private
|
|
133
|
+
def categories=(categories)
|
|
134
|
+
if categories.nil?
|
|
135
|
+
fail ArgumentError, 'invalid value for "categories", categories cannot be nil.'
|
|
136
|
+
end
|
|
137
|
+
@categories = categories
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Custom attribute writer method with validation
|
|
141
|
+
# @param name [Object] Object to be assigned
|
|
142
|
+
# @!visibility private
|
|
143
|
+
def name=(name)
|
|
144
|
+
if name.nil?
|
|
145
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
146
|
+
end
|
|
147
|
+
@name = name
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Custom attribute writer method with validation
|
|
151
|
+
# @param targets [Object] Object to be assigned
|
|
152
|
+
# @!visibility private
|
|
153
|
+
def targets=(targets)
|
|
154
|
+
if targets.nil?
|
|
155
|
+
fail ArgumentError, 'invalid value for "targets", targets cannot be nil.'
|
|
156
|
+
end
|
|
157
|
+
@targets = targets
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Custom attribute writer method with validation
|
|
161
|
+
# @param type [Object] Object to be assigned
|
|
162
|
+
# @!visibility private
|
|
163
|
+
def type=(type)
|
|
164
|
+
if type.nil?
|
|
165
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
166
|
+
end
|
|
167
|
+
@type = type
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
171
|
+
# @return [Hash] Returns the object in the form of hash
|
|
172
|
+
# @!visibility private
|
|
173
|
+
def to_hash
|
|
174
|
+
hash = {}
|
|
175
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
176
|
+
value = self.send(attr)
|
|
177
|
+
if value.nil?
|
|
178
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
179
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
hash[param] = _to_hash(value)
|
|
183
|
+
end
|
|
184
|
+
self.additional_properties.each_pair do |attr, value|
|
|
185
|
+
hash[attr] = value
|
|
186
|
+
end
|
|
187
|
+
hash
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Checks equality by comparing each attribute.
|
|
191
|
+
# @param o [Object] Object to be compared
|
|
192
|
+
# @!visibility private
|
|
193
|
+
def ==(o)
|
|
194
|
+
return true if self.equal?(o)
|
|
195
|
+
self.class == o.class &&
|
|
196
|
+
categories == o.categories &&
|
|
197
|
+
fallback == o.fallback &&
|
|
198
|
+
name == o.name &&
|
|
199
|
+
targets == o.targets &&
|
|
200
|
+
type == o.type &&
|
|
201
|
+
additional_properties == o.additional_properties
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Calculates hash code according to all attributes.
|
|
205
|
+
# @return [Integer] Hash code
|
|
206
|
+
# @!visibility private
|
|
207
|
+
def hash
|
|
208
|
+
[categories, fallback, name, targets, type, additional_properties].hash
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
end
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V1
|
|
20
|
+
# Object describing the logs filter with corresponding category ID and name assignment.
|
|
21
|
+
class LogsSchemaCategoryMapperCategory
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Filter for logs.
|
|
25
|
+
attr_reader :filter
|
|
26
|
+
|
|
27
|
+
# ID to inject into the category.
|
|
28
|
+
attr_reader :id
|
|
29
|
+
|
|
30
|
+
# Value to assign to target schema field.
|
|
31
|
+
attr_reader :name
|
|
32
|
+
|
|
33
|
+
attr_accessor :additional_properties
|
|
34
|
+
|
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
|
+
# @!visibility private
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'filter' => :'filter',
|
|
40
|
+
:'id' => :'id',
|
|
41
|
+
:'name' => :'name'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
# @!visibility private
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'filter' => :'LogsFilter',
|
|
50
|
+
:'id' => :'Integer',
|
|
51
|
+
:'name' => :'String'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
57
|
+
# @!visibility private
|
|
58
|
+
def initialize(attributes = {})
|
|
59
|
+
if (!attributes.is_a?(Hash))
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsSchemaCategoryMapperCategory` initialize method"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
self.additional_properties = {}
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
67
|
+
self.additional_properties[k.to_sym] = v
|
|
68
|
+
else
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
end
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'filter')
|
|
74
|
+
self.filter = attributes[:'filter']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'id')
|
|
78
|
+
self.id = attributes[:'id']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'name')
|
|
82
|
+
self.name = attributes[:'name']
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Check to see if the all the properties in the model are valid
|
|
87
|
+
# @return true if the model is valid
|
|
88
|
+
# @!visibility private
|
|
89
|
+
def valid?
|
|
90
|
+
return false if @filter.nil?
|
|
91
|
+
return false if @id.nil?
|
|
92
|
+
return false if @name.nil?
|
|
93
|
+
true
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Custom attribute writer method with validation
|
|
97
|
+
# @param filter [Object] Object to be assigned
|
|
98
|
+
# @!visibility private
|
|
99
|
+
def filter=(filter)
|
|
100
|
+
if filter.nil?
|
|
101
|
+
fail ArgumentError, 'invalid value for "filter", filter cannot be nil.'
|
|
102
|
+
end
|
|
103
|
+
@filter = filter
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Custom attribute writer method with validation
|
|
107
|
+
# @param id [Object] Object to be assigned
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def id=(id)
|
|
110
|
+
if id.nil?
|
|
111
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
|
112
|
+
end
|
|
113
|
+
@id = id
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Custom attribute writer method with validation
|
|
117
|
+
# @param name [Object] Object to be assigned
|
|
118
|
+
# @!visibility private
|
|
119
|
+
def name=(name)
|
|
120
|
+
if name.nil?
|
|
121
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
122
|
+
end
|
|
123
|
+
@name = name
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
127
|
+
# @return [Hash] Returns the object in the form of hash
|
|
128
|
+
# @!visibility private
|
|
129
|
+
def to_hash
|
|
130
|
+
hash = {}
|
|
131
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
132
|
+
value = self.send(attr)
|
|
133
|
+
if value.nil?
|
|
134
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
135
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
hash[param] = _to_hash(value)
|
|
139
|
+
end
|
|
140
|
+
self.additional_properties.each_pair do |attr, value|
|
|
141
|
+
hash[attr] = value
|
|
142
|
+
end
|
|
143
|
+
hash
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Checks equality by comparing each attribute.
|
|
147
|
+
# @param o [Object] Object to be compared
|
|
148
|
+
# @!visibility private
|
|
149
|
+
def ==(o)
|
|
150
|
+
return true if self.equal?(o)
|
|
151
|
+
self.class == o.class &&
|
|
152
|
+
filter == o.filter &&
|
|
153
|
+
id == o.id &&
|
|
154
|
+
name == o.name &&
|
|
155
|
+
additional_properties == o.additional_properties
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Calculates hash code according to all attributes.
|
|
159
|
+
# @return [Integer] Hash code
|
|
160
|
+
# @!visibility private
|
|
161
|
+
def hash
|
|
162
|
+
[filter, id, name, additional_properties].hash
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
end
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V1
|
|
20
|
+
# Used to override hardcoded category values with a value pulled from a source attribute on the log.
|
|
21
|
+
class LogsSchemaCategoryMapperFallback
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Fallback sources used to populate value of field.
|
|
25
|
+
attr_accessor :sources
|
|
26
|
+
|
|
27
|
+
# Values that define when the fallback is used.
|
|
28
|
+
attr_accessor :values
|
|
29
|
+
|
|
30
|
+
attr_accessor :additional_properties
|
|
31
|
+
|
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
|
+
# @!visibility private
|
|
34
|
+
def self.attribute_map
|
|
35
|
+
{
|
|
36
|
+
:'sources' => :'sources',
|
|
37
|
+
:'values' => :'values'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'sources' => :'Hash<String, Array<String>>',
|
|
46
|
+
:'values' => :'Hash<String, String>'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
52
|
+
# @!visibility private
|
|
53
|
+
def initialize(attributes = {})
|
|
54
|
+
if (!attributes.is_a?(Hash))
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsSchemaCategoryMapperFallback` initialize method"
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
self.additional_properties = {}
|
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
62
|
+
self.additional_properties[k.to_sym] = v
|
|
63
|
+
else
|
|
64
|
+
h[k.to_sym] = v
|
|
65
|
+
end
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'sources')
|
|
69
|
+
self.sources = attributes[:'sources']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'values')
|
|
73
|
+
self.values = attributes[:'values']
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
78
|
+
# @return [Hash] Returns the object in the form of hash
|
|
79
|
+
# @!visibility private
|
|
80
|
+
def to_hash
|
|
81
|
+
hash = {}
|
|
82
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
83
|
+
value = self.send(attr)
|
|
84
|
+
if value.nil?
|
|
85
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
86
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
hash[param] = _to_hash(value)
|
|
90
|
+
end
|
|
91
|
+
self.additional_properties.each_pair do |attr, value|
|
|
92
|
+
hash[attr] = value
|
|
93
|
+
end
|
|
94
|
+
hash
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Checks equality by comparing each attribute.
|
|
98
|
+
# @param o [Object] Object to be compared
|
|
99
|
+
# @!visibility private
|
|
100
|
+
def ==(o)
|
|
101
|
+
return true if self.equal?(o)
|
|
102
|
+
self.class == o.class &&
|
|
103
|
+
sources == o.sources &&
|
|
104
|
+
values == o.values &&
|
|
105
|
+
additional_properties == o.additional_properties
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Calculates hash code according to all attributes.
|
|
109
|
+
# @return [Integer] Hash code
|
|
110
|
+
# @!visibility private
|
|
111
|
+
def hash
|
|
112
|
+
[sources, values, additional_properties].hash
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V1
|
|
20
|
+
# Name of the target attributes which value is defined by the matching category.
|
|
21
|
+
class LogsSchemaCategoryMapperTargets
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# ID of the field to map log attributes to.
|
|
25
|
+
attr_accessor :id
|
|
26
|
+
|
|
27
|
+
# Name of the field to map log attributes to.
|
|
28
|
+
attr_accessor :name
|
|
29
|
+
|
|
30
|
+
attr_accessor :additional_properties
|
|
31
|
+
|
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
|
+
# @!visibility private
|
|
34
|
+
def self.attribute_map
|
|
35
|
+
{
|
|
36
|
+
:'id' => :'id',
|
|
37
|
+
:'name' => :'name'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'id' => :'String',
|
|
46
|
+
:'name' => :'String'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
52
|
+
# @!visibility private
|
|
53
|
+
def initialize(attributes = {})
|
|
54
|
+
if (!attributes.is_a?(Hash))
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsSchemaCategoryMapperTargets` initialize method"
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
self.additional_properties = {}
|
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
62
|
+
self.additional_properties[k.to_sym] = v
|
|
63
|
+
else
|
|
64
|
+
h[k.to_sym] = v
|
|
65
|
+
end
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'id')
|
|
69
|
+
self.id = attributes[:'id']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'name')
|
|
73
|
+
self.name = attributes[:'name']
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
78
|
+
# @return [Hash] Returns the object in the form of hash
|
|
79
|
+
# @!visibility private
|
|
80
|
+
def to_hash
|
|
81
|
+
hash = {}
|
|
82
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
83
|
+
value = self.send(attr)
|
|
84
|
+
if value.nil?
|
|
85
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
86
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
hash[param] = _to_hash(value)
|
|
90
|
+
end
|
|
91
|
+
self.additional_properties.each_pair do |attr, value|
|
|
92
|
+
hash[attr] = value
|
|
93
|
+
end
|
|
94
|
+
hash
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Checks equality by comparing each attribute.
|
|
98
|
+
# @param o [Object] Object to be compared
|
|
99
|
+
# @!visibility private
|
|
100
|
+
def ==(o)
|
|
101
|
+
return true if self.equal?(o)
|
|
102
|
+
self.class == o.class &&
|
|
103
|
+
id == o.id &&
|
|
104
|
+
name == o.name &&
|
|
105
|
+
additional_properties == o.additional_properties
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Calculates hash code according to all attributes.
|
|
109
|
+
# @return [Integer] Hash code
|
|
110
|
+
# @!visibility private
|
|
111
|
+
def hash
|
|
112
|
+
[id, name, additional_properties].hash
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V1
|
|
20
|
+
# Type of logs schema category mapper.
|
|
21
|
+
class LogsSchemaCategoryMapperType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
SCHEMA_CATEGORY_MAPPER = "schema-category-mapper".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|