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,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 `PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail` object.
|
|
21
|
+
class PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail
|
|
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::PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsAzureDetail` 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 `PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail` object.
|
|
21
|
+
class PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail
|
|
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::PatchTableRequestDataAttributesFileMetadataOneOfAccessDetailsGcpDetail` 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
|
|
@@ -0,0 +1,148 @@
|
|
|
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 `PatchTableRequestDataAttributesSchema` object.
|
|
21
|
+
class PatchTableRequestDataAttributesSchema
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The `schema` `fields`.
|
|
25
|
+
attr_reader :fields
|
|
26
|
+
|
|
27
|
+
# List of field names that serve as primary keys for the table. Only one primary key is supported, and it is used as an ID to retrieve rows.
|
|
28
|
+
attr_reader :primary_keys
|
|
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
|
+
:'fields' => :'fields',
|
|
37
|
+
:'primary_keys' => :'primary_keys'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'fields' => :'Array<PatchTableRequestDataAttributesSchemaFieldsItems>',
|
|
46
|
+
:'primary_keys' => :'Array<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::V2::PatchTableRequestDataAttributesSchema` 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?(:'fields')
|
|
69
|
+
if (value = attributes[:'fields']).is_a?(Array)
|
|
70
|
+
self.fields = value
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'primary_keys')
|
|
75
|
+
if (value = attributes[:'primary_keys']).is_a?(Array)
|
|
76
|
+
self.primary_keys = value
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Check to see if the all the properties in the model are valid
|
|
82
|
+
# @return true if the model is valid
|
|
83
|
+
# @!visibility private
|
|
84
|
+
def valid?
|
|
85
|
+
return false if @fields.nil?
|
|
86
|
+
return false if @primary_keys.nil?
|
|
87
|
+
true
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Custom attribute writer method with validation
|
|
91
|
+
# @param fields [Object] Object to be assigned
|
|
92
|
+
# @!visibility private
|
|
93
|
+
def fields=(fields)
|
|
94
|
+
if fields.nil?
|
|
95
|
+
fail ArgumentError, 'invalid value for "fields", fields cannot be nil.'
|
|
96
|
+
end
|
|
97
|
+
@fields = fields
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Custom attribute writer method with validation
|
|
101
|
+
# @param primary_keys [Object] Object to be assigned
|
|
102
|
+
# @!visibility private
|
|
103
|
+
def primary_keys=(primary_keys)
|
|
104
|
+
if primary_keys.nil?
|
|
105
|
+
fail ArgumentError, 'invalid value for "primary_keys", primary_keys cannot be nil.'
|
|
106
|
+
end
|
|
107
|
+
@primary_keys = primary_keys
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
111
|
+
# @return [Hash] Returns the object in the form of hash
|
|
112
|
+
# @!visibility private
|
|
113
|
+
def to_hash
|
|
114
|
+
hash = {}
|
|
115
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
116
|
+
value = self.send(attr)
|
|
117
|
+
if value.nil?
|
|
118
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
119
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
hash[param] = _to_hash(value)
|
|
123
|
+
end
|
|
124
|
+
self.additional_properties.each_pair do |attr, value|
|
|
125
|
+
hash[attr] = value
|
|
126
|
+
end
|
|
127
|
+
hash
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Checks equality by comparing each attribute.
|
|
131
|
+
# @param o [Object] Object to be compared
|
|
132
|
+
# @!visibility private
|
|
133
|
+
def ==(o)
|
|
134
|
+
return true if self.equal?(o)
|
|
135
|
+
self.class == o.class &&
|
|
136
|
+
fields == o.fields &&
|
|
137
|
+
primary_keys == o.primary_keys &&
|
|
138
|
+
additional_properties == o.additional_properties
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Calculates hash code according to all attributes.
|
|
142
|
+
# @return [Integer] Hash code
|
|
143
|
+
# @!visibility private
|
|
144
|
+
def hash
|
|
145
|
+
[fields, primary_keys, additional_properties].hash
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
end
|
data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema_fields_items.rb
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
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 `PatchTableRequestDataAttributesSchemaFieldsItems` object.
|
|
21
|
+
class PatchTableRequestDataAttributesSchemaFieldsItems
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The field name.
|
|
25
|
+
attr_reader :name
|
|
26
|
+
|
|
27
|
+
# The field type for reference table schema fields.
|
|
28
|
+
attr_reader :type
|
|
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
|
+
:'name' => :'name',
|
|
37
|
+
:'type' => :'type'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'name' => :'String',
|
|
46
|
+
:'type' => :'ReferenceTableSchemaFieldType'
|
|
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::V2::PatchTableRequestDataAttributesSchemaFieldsItems` 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?(:'name')
|
|
69
|
+
self.name = attributes[:'name']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'type')
|
|
73
|
+
self.type = attributes[:'type']
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Check to see if the all the properties in the model are valid
|
|
78
|
+
# @return true if the model is valid
|
|
79
|
+
# @!visibility private
|
|
80
|
+
def valid?
|
|
81
|
+
return false if @name.nil?
|
|
82
|
+
return false if @type.nil?
|
|
83
|
+
true
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Custom attribute writer method with validation
|
|
87
|
+
# @param name [Object] Object to be assigned
|
|
88
|
+
# @!visibility private
|
|
89
|
+
def name=(name)
|
|
90
|
+
if name.nil?
|
|
91
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
92
|
+
end
|
|
93
|
+
@name = name
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Custom attribute writer method with validation
|
|
97
|
+
# @param type [Object] Object to be assigned
|
|
98
|
+
# @!visibility private
|
|
99
|
+
def type=(type)
|
|
100
|
+
if type.nil?
|
|
101
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
102
|
+
end
|
|
103
|
+
@type = type
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
107
|
+
# @return [Hash] Returns the object in the form of hash
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def to_hash
|
|
110
|
+
hash = {}
|
|
111
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
112
|
+
value = self.send(attr)
|
|
113
|
+
if value.nil?
|
|
114
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
115
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
hash[param] = _to_hash(value)
|
|
119
|
+
end
|
|
120
|
+
self.additional_properties.each_pair do |attr, value|
|
|
121
|
+
hash[attr] = value
|
|
122
|
+
end
|
|
123
|
+
hash
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Checks equality by comparing each attribute.
|
|
127
|
+
# @param o [Object] Object to be compared
|
|
128
|
+
# @!visibility private
|
|
129
|
+
def ==(o)
|
|
130
|
+
return true if self.equal?(o)
|
|
131
|
+
self.class == o.class &&
|
|
132
|
+
name == o.name &&
|
|
133
|
+
type == o.type &&
|
|
134
|
+
additional_properties == o.additional_properties
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Calculates hash code according to all attributes.
|
|
138
|
+
# @return [Integer] Hash code
|
|
139
|
+
# @!visibility private
|
|
140
|
+
def hash
|
|
141
|
+
[name, type, additional_properties].hash
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
# Reference table resource type.
|
|
21
|
+
class PatchTableRequestDataType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
REFERENCE_TABLE = "reference_table".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
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 source type for creating reference table data. Only these source types can be created through this API.
|
|
21
|
+
class ReferenceTableCreateSourceType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
LOCAL_FILE = "LOCAL_FILE".freeze
|
|
25
|
+
S3 = "S3".freeze
|
|
26
|
+
GCS = "GCS".freeze
|
|
27
|
+
AZURE = "AZURE".freeze
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
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 field type for reference table schema fields.
|
|
21
|
+
class ReferenceTableSchemaFieldType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
STRING = "STRING".freeze
|
|
25
|
+
INT32 = "INT32".freeze
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
# Sort field and direction for reference tables. Use field name for ascending, prefix with "-" for descending.
|
|
21
|
+
class ReferenceTableSortType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
UPDATED_AT = "updated_at".freeze
|
|
25
|
+
TABLE_NAME = "table_name".freeze
|
|
26
|
+
STATUS = "status".freeze
|
|
27
|
+
MINUS_UPDATED_AT = "-updated_at".freeze
|
|
28
|
+
MINUS_TABLE_NAME = "-table_name".freeze
|
|
29
|
+
MINUS_STATUS = "-status".freeze
|
|
30
|
+
end
|
|
31
|
+
end
|