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,34 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 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::V2
|
|
20
|
+
# The type of error that occurred during file processing. This field provides high-level error categories for easier troubleshooting and is only present when there are errors.
|
|
21
|
+
class TableResultV2DataAttributesFileMetadataCloudStorageErrorType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
TABLE_SCHEMA_ERROR = "TABLE_SCHEMA_ERROR".freeze
|
|
25
|
+
FILE_FORMAT_ERROR = "FILE_FORMAT_ERROR".freeze
|
|
26
|
+
CONFIGURATION_ERROR = "CONFIGURATION_ERROR".freeze
|
|
27
|
+
QUOTA_EXCEEDED = "QUOTA_EXCEEDED".freeze
|
|
28
|
+
CONFLICT_ERROR = "CONFLICT_ERROR".freeze
|
|
29
|
+
VALIDATION_ERROR = "VALIDATION_ERROR".freeze
|
|
30
|
+
STATE_ERROR = "STATE_ERROR".freeze
|
|
31
|
+
OPERATION_ERROR = "OPERATION_ERROR".freeze
|
|
32
|
+
SYSTEM_ERROR = "SYSTEM_ERROR".freeze
|
|
33
|
+
end
|
|
34
|
+
end
|
data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_local_file.rb
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 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::V2
|
|
20
|
+
# File metadata for reference tables created by upload.
|
|
21
|
+
class TableResultV2DataAttributesFileMetadataLocalFile
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The error message returned from the creation/update.
|
|
25
|
+
attr_accessor :error_message
|
|
26
|
+
|
|
27
|
+
# The number of rows that failed to create/update.
|
|
28
|
+
attr_accessor :error_row_count
|
|
29
|
+
|
|
30
|
+
# The upload ID that was used to create/update the table.
|
|
31
|
+
attr_accessor :upload_id
|
|
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
|
+
:'error_message' => :'error_message',
|
|
40
|
+
:'error_row_count' => :'error_row_count',
|
|
41
|
+
:'upload_id' => :'upload_id'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
# @!visibility private
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'error_message' => :'String',
|
|
50
|
+
:'error_row_count' => :'Integer',
|
|
51
|
+
:'upload_id' => :'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::V2::TableResultV2DataAttributesFileMetadataLocalFile` 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?(:'error_message')
|
|
74
|
+
self.error_message = attributes[:'error_message']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'error_row_count')
|
|
78
|
+
self.error_row_count = attributes[:'error_row_count']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'upload_id')
|
|
82
|
+
self.upload_id = attributes[:'upload_id']
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
87
|
+
# @return [Hash] Returns the object in the form of hash
|
|
88
|
+
# @!visibility private
|
|
89
|
+
def to_hash
|
|
90
|
+
hash = {}
|
|
91
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
92
|
+
value = self.send(attr)
|
|
93
|
+
if value.nil?
|
|
94
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
95
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
hash[param] = _to_hash(value)
|
|
99
|
+
end
|
|
100
|
+
self.additional_properties.each_pair do |attr, value|
|
|
101
|
+
hash[attr] = value
|
|
102
|
+
end
|
|
103
|
+
hash
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Checks equality by comparing each attribute.
|
|
107
|
+
# @param o [Object] Object to be compared
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def ==(o)
|
|
110
|
+
return true if self.equal?(o)
|
|
111
|
+
self.class == o.class &&
|
|
112
|
+
error_message == o.error_message &&
|
|
113
|
+
error_row_count == o.error_row_count &&
|
|
114
|
+
upload_id == o.upload_id &&
|
|
115
|
+
additional_properties == o.additional_properties
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Calculates hash code according to all attributes.
|
|
119
|
+
# @return [Integer] Hash code
|
|
120
|
+
# @!visibility private
|
|
121
|
+
def hash
|
|
122
|
+
[error_message, error_row_count, upload_id, additional_properties].hash
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 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::V2
|
|
20
|
+
# The definition of `TableResultV2DataAttributesFileMetadataOneOfAccessDetails` object.
|
|
21
|
+
class TableResultV2DataAttributesFileMetadataOneOfAccessDetails
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The definition of `TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail` object.
|
|
25
|
+
attr_accessor :aws_detail
|
|
26
|
+
|
|
27
|
+
# The definition of `TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail` object.
|
|
28
|
+
attr_accessor :azure_detail
|
|
29
|
+
|
|
30
|
+
# The definition of `TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail` object.
|
|
31
|
+
attr_accessor :gcp_detail
|
|
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
|
+
:'aws_detail' => :'aws_detail',
|
|
40
|
+
:'azure_detail' => :'azure_detail',
|
|
41
|
+
:'gcp_detail' => :'gcp_detail'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
# @!visibility private
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'aws_detail' => :'TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail',
|
|
50
|
+
:'azure_detail' => :'TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail',
|
|
51
|
+
:'gcp_detail' => :'TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail'
|
|
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::V2::TableResultV2DataAttributesFileMetadataOneOfAccessDetails` 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?(:'aws_detail')
|
|
74
|
+
self.aws_detail = attributes[:'aws_detail']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'azure_detail')
|
|
78
|
+
self.azure_detail = attributes[:'azure_detail']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'gcp_detail')
|
|
82
|
+
self.gcp_detail = attributes[:'gcp_detail']
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
87
|
+
# @return [Hash] Returns the object in the form of hash
|
|
88
|
+
# @!visibility private
|
|
89
|
+
def to_hash
|
|
90
|
+
hash = {}
|
|
91
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
92
|
+
value = self.send(attr)
|
|
93
|
+
if value.nil?
|
|
94
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
95
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
hash[param] = _to_hash(value)
|
|
99
|
+
end
|
|
100
|
+
self.additional_properties.each_pair do |attr, value|
|
|
101
|
+
hash[attr] = value
|
|
102
|
+
end
|
|
103
|
+
hash
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Checks equality by comparing each attribute.
|
|
107
|
+
# @param o [Object] Object to be compared
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def ==(o)
|
|
110
|
+
return true if self.equal?(o)
|
|
111
|
+
self.class == o.class &&
|
|
112
|
+
aws_detail == o.aws_detail &&
|
|
113
|
+
azure_detail == o.azure_detail &&
|
|
114
|
+
gcp_detail == o.gcp_detail &&
|
|
115
|
+
additional_properties == o.additional_properties
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Calculates hash code according to all attributes.
|
|
119
|
+
# @return [Integer] Hash code
|
|
120
|
+
# @!visibility private
|
|
121
|
+
def hash
|
|
122
|
+
[aws_detail, azure_detail, gcp_detail, additional_properties].hash
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 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::V2
|
|
20
|
+
# The definition of `TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail` object.
|
|
21
|
+
class TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The ID of the AWS account.
|
|
25
|
+
attr_accessor :aws_account_id
|
|
26
|
+
|
|
27
|
+
# The name of the AWS bucket.
|
|
28
|
+
attr_accessor :aws_bucket_name
|
|
29
|
+
|
|
30
|
+
# The relative file path from the S3 bucket root to the CSV file.
|
|
31
|
+
attr_accessor :file_path
|
|
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
|
+
:'aws_account_id' => :'aws_account_id',
|
|
40
|
+
:'aws_bucket_name' => :'aws_bucket_name',
|
|
41
|
+
:'file_path' => :'file_path'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
# @!visibility private
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'aws_account_id' => :'String',
|
|
50
|
+
:'aws_bucket_name' => :'String',
|
|
51
|
+
:'file_path' => :'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::V2::TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail` 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?(:'aws_account_id')
|
|
74
|
+
self.aws_account_id = attributes[:'aws_account_id']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'aws_bucket_name')
|
|
78
|
+
self.aws_bucket_name = attributes[:'aws_bucket_name']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'file_path')
|
|
82
|
+
self.file_path = attributes[:'file_path']
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
87
|
+
# @return [Hash] Returns the object in the form of hash
|
|
88
|
+
# @!visibility private
|
|
89
|
+
def to_hash
|
|
90
|
+
hash = {}
|
|
91
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
92
|
+
value = self.send(attr)
|
|
93
|
+
if value.nil?
|
|
94
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
95
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
hash[param] = _to_hash(value)
|
|
99
|
+
end
|
|
100
|
+
self.additional_properties.each_pair do |attr, value|
|
|
101
|
+
hash[attr] = value
|
|
102
|
+
end
|
|
103
|
+
hash
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Checks equality by comparing each attribute.
|
|
107
|
+
# @param o [Object] Object to be compared
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def ==(o)
|
|
110
|
+
return true if self.equal?(o)
|
|
111
|
+
self.class == o.class &&
|
|
112
|
+
aws_account_id == o.aws_account_id &&
|
|
113
|
+
aws_bucket_name == o.aws_bucket_name &&
|
|
114
|
+
file_path == o.file_path &&
|
|
115
|
+
additional_properties == o.additional_properties
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Calculates hash code according to all attributes.
|
|
119
|
+
# @return [Integer] Hash code
|
|
120
|
+
# @!visibility private
|
|
121
|
+
def hash
|
|
122
|
+
[aws_account_id, aws_bucket_name, file_path, additional_properties].hash
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 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::V2
|
|
20
|
+
# The definition of `TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail` object.
|
|
21
|
+
class TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The Azure client ID.
|
|
25
|
+
attr_accessor :azure_client_id
|
|
26
|
+
|
|
27
|
+
# The name of the Azure container.
|
|
28
|
+
attr_accessor :azure_container_name
|
|
29
|
+
|
|
30
|
+
# The name of the Azure storage account.
|
|
31
|
+
attr_accessor :azure_storage_account_name
|
|
32
|
+
|
|
33
|
+
# The ID of the Azure tenant.
|
|
34
|
+
attr_accessor :azure_tenant_id
|
|
35
|
+
|
|
36
|
+
# The relative file path from the Azure container root to the CSV file.
|
|
37
|
+
attr_accessor :file_path
|
|
38
|
+
|
|
39
|
+
attr_accessor :additional_properties
|
|
40
|
+
|
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.attribute_map
|
|
44
|
+
{
|
|
45
|
+
:'azure_client_id' => :'azure_client_id',
|
|
46
|
+
:'azure_container_name' => :'azure_container_name',
|
|
47
|
+
:'azure_storage_account_name' => :'azure_storage_account_name',
|
|
48
|
+
:'azure_tenant_id' => :'azure_tenant_id',
|
|
49
|
+
:'file_path' => :'file_path'
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Attribute type mapping.
|
|
54
|
+
# @!visibility private
|
|
55
|
+
def self.openapi_types
|
|
56
|
+
{
|
|
57
|
+
:'azure_client_id' => :'String',
|
|
58
|
+
:'azure_container_name' => :'String',
|
|
59
|
+
:'azure_storage_account_name' => :'String',
|
|
60
|
+
:'azure_tenant_id' => :'String',
|
|
61
|
+
:'file_path' => :'String'
|
|
62
|
+
}
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Initializes the object
|
|
66
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
67
|
+
# @!visibility private
|
|
68
|
+
def initialize(attributes = {})
|
|
69
|
+
if (!attributes.is_a?(Hash))
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail` initialize method"
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
self.additional_properties = {}
|
|
74
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
77
|
+
self.additional_properties[k.to_sym] = v
|
|
78
|
+
else
|
|
79
|
+
h[k.to_sym] = v
|
|
80
|
+
end
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'azure_client_id')
|
|
84
|
+
self.azure_client_id = attributes[:'azure_client_id']
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'azure_container_name')
|
|
88
|
+
self.azure_container_name = attributes[:'azure_container_name']
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'azure_storage_account_name')
|
|
92
|
+
self.azure_storage_account_name = attributes[:'azure_storage_account_name']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'azure_tenant_id')
|
|
96
|
+
self.azure_tenant_id = attributes[:'azure_tenant_id']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'file_path')
|
|
100
|
+
self.file_path = attributes[:'file_path']
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
105
|
+
# @return [Hash] Returns the object in the form of hash
|
|
106
|
+
# @!visibility private
|
|
107
|
+
def to_hash
|
|
108
|
+
hash = {}
|
|
109
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
110
|
+
value = self.send(attr)
|
|
111
|
+
if value.nil?
|
|
112
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
113
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
hash[param] = _to_hash(value)
|
|
117
|
+
end
|
|
118
|
+
self.additional_properties.each_pair do |attr, value|
|
|
119
|
+
hash[attr] = value
|
|
120
|
+
end
|
|
121
|
+
hash
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Checks equality by comparing each attribute.
|
|
125
|
+
# @param o [Object] Object to be compared
|
|
126
|
+
# @!visibility private
|
|
127
|
+
def ==(o)
|
|
128
|
+
return true if self.equal?(o)
|
|
129
|
+
self.class == o.class &&
|
|
130
|
+
azure_client_id == o.azure_client_id &&
|
|
131
|
+
azure_container_name == o.azure_container_name &&
|
|
132
|
+
azure_storage_account_name == o.azure_storage_account_name &&
|
|
133
|
+
azure_tenant_id == o.azure_tenant_id &&
|
|
134
|
+
file_path == o.file_path &&
|
|
135
|
+
additional_properties == o.additional_properties
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Calculates hash code according to all attributes.
|
|
139
|
+
# @return [Integer] Hash code
|
|
140
|
+
# @!visibility private
|
|
141
|
+
def hash
|
|
142
|
+
[azure_client_id, azure_container_name, azure_storage_account_name, azure_tenant_id, file_path, additional_properties].hash
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
end
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 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::V2
|
|
20
|
+
# The definition of `TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail` object.
|
|
21
|
+
class TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The relative file path from the GCS bucket root to the CSV file.
|
|
25
|
+
attr_accessor :file_path
|
|
26
|
+
|
|
27
|
+
# The name of the GCP bucket.
|
|
28
|
+
attr_accessor :gcp_bucket_name
|
|
29
|
+
|
|
30
|
+
# The ID of the GCP project.
|
|
31
|
+
attr_accessor :gcp_project_id
|
|
32
|
+
|
|
33
|
+
# The email of the GCP service account.
|
|
34
|
+
attr_accessor :gcp_service_account_email
|
|
35
|
+
|
|
36
|
+
attr_accessor :additional_properties
|
|
37
|
+
|
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
|
+
# @!visibility private
|
|
40
|
+
def self.attribute_map
|
|
41
|
+
{
|
|
42
|
+
:'file_path' => :'file_path',
|
|
43
|
+
:'gcp_bucket_name' => :'gcp_bucket_name',
|
|
44
|
+
:'gcp_project_id' => :'gcp_project_id',
|
|
45
|
+
:'gcp_service_account_email' => :'gcp_service_account_email'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Attribute type mapping.
|
|
50
|
+
# @!visibility private
|
|
51
|
+
def self.openapi_types
|
|
52
|
+
{
|
|
53
|
+
:'file_path' => :'String',
|
|
54
|
+
:'gcp_bucket_name' => :'String',
|
|
55
|
+
:'gcp_project_id' => :'String',
|
|
56
|
+
:'gcp_service_account_email' => :'String'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Initializes the object
|
|
61
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
62
|
+
# @!visibility private
|
|
63
|
+
def initialize(attributes = {})
|
|
64
|
+
if (!attributes.is_a?(Hash))
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail` initialize method"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
self.additional_properties = {}
|
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
72
|
+
self.additional_properties[k.to_sym] = v
|
|
73
|
+
else
|
|
74
|
+
h[k.to_sym] = v
|
|
75
|
+
end
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'file_path')
|
|
79
|
+
self.file_path = attributes[:'file_path']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'gcp_bucket_name')
|
|
83
|
+
self.gcp_bucket_name = attributes[:'gcp_bucket_name']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'gcp_project_id')
|
|
87
|
+
self.gcp_project_id = attributes[:'gcp_project_id']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'gcp_service_account_email')
|
|
91
|
+
self.gcp_service_account_email = attributes[:'gcp_service_account_email']
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
96
|
+
# @return [Hash] Returns the object in the form of hash
|
|
97
|
+
# @!visibility private
|
|
98
|
+
def to_hash
|
|
99
|
+
hash = {}
|
|
100
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
101
|
+
value = self.send(attr)
|
|
102
|
+
if value.nil?
|
|
103
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
104
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
hash[param] = _to_hash(value)
|
|
108
|
+
end
|
|
109
|
+
self.additional_properties.each_pair do |attr, value|
|
|
110
|
+
hash[attr] = value
|
|
111
|
+
end
|
|
112
|
+
hash
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Checks equality by comparing each attribute.
|
|
116
|
+
# @param o [Object] Object to be compared
|
|
117
|
+
# @!visibility private
|
|
118
|
+
def ==(o)
|
|
119
|
+
return true if self.equal?(o)
|
|
120
|
+
self.class == o.class &&
|
|
121
|
+
file_path == o.file_path &&
|
|
122
|
+
gcp_bucket_name == o.gcp_bucket_name &&
|
|
123
|
+
gcp_project_id == o.gcp_project_id &&
|
|
124
|
+
gcp_service_account_email == o.gcp_service_account_email &&
|
|
125
|
+
additional_properties == o.additional_properties
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Calculates hash code according to all attributes.
|
|
129
|
+
# @return [Integer] Hash code
|
|
130
|
+
# @!visibility private
|
|
131
|
+
def hash
|
|
132
|
+
[file_path, gcp_bucket_name, gcp_project_id, gcp_service_account_email, additional_properties].hash
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|