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,161 @@
|
|
|
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
|
+
# A single configuration file operation to perform on the target hosts.
|
|
21
|
+
class FleetDeploymentOperation
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Type of file operation to perform on the target configuration file.
|
|
25
|
+
# - `merge-patch`: Merges the provided patch data with the existing configuration file.
|
|
26
|
+
# Creates the file if it doesn't exist.
|
|
27
|
+
# - `delete`: Removes the specified configuration file from the target hosts.
|
|
28
|
+
attr_reader :file_op
|
|
29
|
+
|
|
30
|
+
# Absolute path to the target configuration file on the host.
|
|
31
|
+
attr_reader :file_path
|
|
32
|
+
|
|
33
|
+
# Patch data in JSON format to apply to the configuration file.
|
|
34
|
+
# When using `merge-patch`, this object is merged with the existing configuration,
|
|
35
|
+
# allowing you to add, update, or override specific fields without replacing the entire file.
|
|
36
|
+
# The structure must match the target configuration file format (for example, YAML structure for Datadog Agent config).
|
|
37
|
+
# Not applicable when using the `delete` operation.
|
|
38
|
+
attr_accessor :patch
|
|
39
|
+
|
|
40
|
+
attr_accessor :additional_properties
|
|
41
|
+
|
|
42
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
|
+
# @!visibility private
|
|
44
|
+
def self.attribute_map
|
|
45
|
+
{
|
|
46
|
+
:'file_op' => :'file_op',
|
|
47
|
+
:'file_path' => :'file_path',
|
|
48
|
+
:'patch' => :'patch'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Attribute type mapping.
|
|
53
|
+
# @!visibility private
|
|
54
|
+
def self.openapi_types
|
|
55
|
+
{
|
|
56
|
+
:'file_op' => :'FleetDeploymentFileOp',
|
|
57
|
+
:'file_path' => :'String',
|
|
58
|
+
:'patch' => :'Hash<String, Object>'
|
|
59
|
+
}
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Initializes the object
|
|
63
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
64
|
+
# @!visibility private
|
|
65
|
+
def initialize(attributes = {})
|
|
66
|
+
if (!attributes.is_a?(Hash))
|
|
67
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FleetDeploymentOperation` initialize method"
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
self.additional_properties = {}
|
|
71
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
72
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
73
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
74
|
+
self.additional_properties[k.to_sym] = v
|
|
75
|
+
else
|
|
76
|
+
h[k.to_sym] = v
|
|
77
|
+
end
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'file_op')
|
|
81
|
+
self.file_op = attributes[:'file_op']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'file_path')
|
|
85
|
+
self.file_path = attributes[:'file_path']
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'patch')
|
|
89
|
+
self.patch = attributes[:'patch']
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Check to see if the all the properties in the model are valid
|
|
94
|
+
# @return true if the model is valid
|
|
95
|
+
# @!visibility private
|
|
96
|
+
def valid?
|
|
97
|
+
return false if @file_op.nil?
|
|
98
|
+
return false if @file_path.nil?
|
|
99
|
+
true
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Custom attribute writer method with validation
|
|
103
|
+
# @param file_op [Object] Object to be assigned
|
|
104
|
+
# @!visibility private
|
|
105
|
+
def file_op=(file_op)
|
|
106
|
+
if file_op.nil?
|
|
107
|
+
fail ArgumentError, 'invalid value for "file_op", file_op cannot be nil.'
|
|
108
|
+
end
|
|
109
|
+
@file_op = file_op
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Custom attribute writer method with validation
|
|
113
|
+
# @param file_path [Object] Object to be assigned
|
|
114
|
+
# @!visibility private
|
|
115
|
+
def file_path=(file_path)
|
|
116
|
+
if file_path.nil?
|
|
117
|
+
fail ArgumentError, 'invalid value for "file_path", file_path cannot be nil.'
|
|
118
|
+
end
|
|
119
|
+
@file_path = file_path
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
123
|
+
# @return [Hash] Returns the object in the form of hash
|
|
124
|
+
# @!visibility private
|
|
125
|
+
def to_hash
|
|
126
|
+
hash = {}
|
|
127
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
128
|
+
value = self.send(attr)
|
|
129
|
+
if value.nil?
|
|
130
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
131
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
hash[param] = _to_hash(value)
|
|
135
|
+
end
|
|
136
|
+
self.additional_properties.each_pair do |attr, value|
|
|
137
|
+
hash[attr] = value
|
|
138
|
+
end
|
|
139
|
+
hash
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Checks equality by comparing each attribute.
|
|
143
|
+
# @param o [Object] Object to be compared
|
|
144
|
+
# @!visibility private
|
|
145
|
+
def ==(o)
|
|
146
|
+
return true if self.equal?(o)
|
|
147
|
+
self.class == o.class &&
|
|
148
|
+
file_op == o.file_op &&
|
|
149
|
+
file_path == o.file_path &&
|
|
150
|
+
patch == o.patch &&
|
|
151
|
+
additional_properties == o.additional_properties
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Calculates hash code according to all attributes.
|
|
155
|
+
# @return [Integer] Hash code
|
|
156
|
+
# @!visibility private
|
|
157
|
+
def hash
|
|
158
|
+
[file_op, file_path, patch, additional_properties].hash
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
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
|
+
# The type of deployment resource.
|
|
21
|
+
class FleetDeploymentResourceType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
DEPLOYMENT = "deployment".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
# Response containing a single deployment.
|
|
21
|
+
class FleetDeploymentResponse
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# A deployment that defines automated configuration changes for a fleet of hosts.
|
|
25
|
+
attr_accessor :data
|
|
26
|
+
|
|
27
|
+
attr_accessor :additional_properties
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
# @!visibility private
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'data' => :'data'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'data' => :'FleetDeployment'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
47
|
+
# @!visibility private
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
if (!attributes.is_a?(Hash))
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FleetDeploymentResponse` initialize method"
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
self.additional_properties = {}
|
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
+
self.additional_properties[k.to_sym] = v
|
|
58
|
+
else
|
|
59
|
+
h[k.to_sym] = v
|
|
60
|
+
end
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'data')
|
|
64
|
+
self.data = attributes[:'data']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
69
|
+
# @return [Hash] Returns the object in the form of hash
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def to_hash
|
|
72
|
+
hash = {}
|
|
73
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
74
|
+
value = self.send(attr)
|
|
75
|
+
if value.nil?
|
|
76
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
77
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
hash[param] = _to_hash(value)
|
|
81
|
+
end
|
|
82
|
+
self.additional_properties.each_pair do |attr, value|
|
|
83
|
+
hash[attr] = value
|
|
84
|
+
end
|
|
85
|
+
hash
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param o [Object] Object to be compared
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
data == o.data &&
|
|
95
|
+
additional_properties == o.additional_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Calculates hash code according to all attributes.
|
|
99
|
+
# @return [Integer] Hash code
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def hash
|
|
102
|
+
[data, additional_properties].hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
# Pagination details for the list of deployments.
|
|
21
|
+
class FleetDeploymentsPage
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Total number of deployments available across all pages.
|
|
25
|
+
attr_accessor :total_count
|
|
26
|
+
|
|
27
|
+
attr_accessor :additional_properties
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
# @!visibility private
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'total_count' => :'total_count'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'total_count' => :'Integer'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
47
|
+
# @!visibility private
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
if (!attributes.is_a?(Hash))
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FleetDeploymentsPage` initialize method"
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
self.additional_properties = {}
|
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
+
self.additional_properties[k.to_sym] = v
|
|
58
|
+
else
|
|
59
|
+
h[k.to_sym] = v
|
|
60
|
+
end
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'total_count')
|
|
64
|
+
self.total_count = attributes[:'total_count']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
69
|
+
# @return [Hash] Returns the object in the form of hash
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def to_hash
|
|
72
|
+
hash = {}
|
|
73
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
74
|
+
value = self.send(attr)
|
|
75
|
+
if value.nil?
|
|
76
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
77
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
hash[param] = _to_hash(value)
|
|
81
|
+
end
|
|
82
|
+
self.additional_properties.each_pair do |attr, value|
|
|
83
|
+
hash[attr] = value
|
|
84
|
+
end
|
|
85
|
+
hash
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param o [Object] Object to be compared
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
total_count == o.total_count &&
|
|
95
|
+
additional_properties == o.additional_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Calculates hash code according to all attributes.
|
|
99
|
+
# @return [Integer] Hash code
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def hash
|
|
102
|
+
[total_count, additional_properties].hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
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
|
+
# Response containing a paginated list of deployments.
|
|
21
|
+
class FleetDeploymentsResponse
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Array of deployments matching the query criteria.
|
|
25
|
+
attr_reader :data
|
|
26
|
+
|
|
27
|
+
# Metadata for the list of deployments, including pagination information.
|
|
28
|
+
attr_accessor :meta
|
|
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
|
+
:'data' => :'data',
|
|
37
|
+
:'meta' => :'meta'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'data' => :'Array<FleetDeployment>',
|
|
46
|
+
:'meta' => :'FleetDeploymentsResponseMeta'
|
|
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::FleetDeploymentsResponse` 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?(:'data')
|
|
69
|
+
if (value = attributes[:'data']).is_a?(Array)
|
|
70
|
+
self.data = value
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'meta')
|
|
75
|
+
self.meta = attributes[:'meta']
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Check to see if the all the properties in the model are valid
|
|
80
|
+
# @return true if the model is valid
|
|
81
|
+
# @!visibility private
|
|
82
|
+
def valid?
|
|
83
|
+
return false if @data.nil?
|
|
84
|
+
true
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Custom attribute writer method with validation
|
|
88
|
+
# @param data [Object] Object to be assigned
|
|
89
|
+
# @!visibility private
|
|
90
|
+
def data=(data)
|
|
91
|
+
if data.nil?
|
|
92
|
+
fail ArgumentError, 'invalid value for "data", data cannot be nil.'
|
|
93
|
+
end
|
|
94
|
+
@data = data
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
98
|
+
# @return [Hash] Returns the object in the form of hash
|
|
99
|
+
# @!visibility private
|
|
100
|
+
def to_hash
|
|
101
|
+
hash = {}
|
|
102
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
103
|
+
value = self.send(attr)
|
|
104
|
+
if value.nil?
|
|
105
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
106
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
hash[param] = _to_hash(value)
|
|
110
|
+
end
|
|
111
|
+
self.additional_properties.each_pair do |attr, value|
|
|
112
|
+
hash[attr] = value
|
|
113
|
+
end
|
|
114
|
+
hash
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Checks equality by comparing each attribute.
|
|
118
|
+
# @param o [Object] Object to be compared
|
|
119
|
+
# @!visibility private
|
|
120
|
+
def ==(o)
|
|
121
|
+
return true if self.equal?(o)
|
|
122
|
+
self.class == o.class &&
|
|
123
|
+
data == o.data &&
|
|
124
|
+
meta == o.meta &&
|
|
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
|
+
[data, meta, additional_properties].hash
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
# Metadata for the list of deployments, including pagination information.
|
|
21
|
+
class FleetDeploymentsResponseMeta
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Pagination details for the list of deployments.
|
|
25
|
+
attr_accessor :page
|
|
26
|
+
|
|
27
|
+
attr_accessor :additional_properties
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
# @!visibility private
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'page' => :'page'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'page' => :'FleetDeploymentsPage'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
47
|
+
# @!visibility private
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
if (!attributes.is_a?(Hash))
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FleetDeploymentsResponseMeta` initialize method"
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
self.additional_properties = {}
|
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
+
self.additional_properties[k.to_sym] = v
|
|
58
|
+
else
|
|
59
|
+
h[k.to_sym] = v
|
|
60
|
+
end
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'page')
|
|
64
|
+
self.page = attributes[:'page']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
69
|
+
# @return [Hash] Returns the object in the form of hash
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def to_hash
|
|
72
|
+
hash = {}
|
|
73
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
74
|
+
value = self.send(attr)
|
|
75
|
+
if value.nil?
|
|
76
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
77
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
hash[param] = _to_hash(value)
|
|
81
|
+
end
|
|
82
|
+
self.additional_properties.each_pair do |attr, value|
|
|
83
|
+
hash[attr] = value
|
|
84
|
+
end
|
|
85
|
+
hash
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param o [Object] Object to be compared
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
page == o.page &&
|
|
95
|
+
additional_properties == o.additional_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Calculates hash code according to all attributes.
|
|
99
|
+
# @return [Integer] Hash code
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def hash
|
|
102
|
+
[page, additional_properties].hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|