datadog_api_client 2.42.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 +266 -36
- data/.generator/schemas/v2/openapi.yaml +8163 -626
- 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/.github/CODEOWNERS +4 -4
- data/.github/workflows/reusable-ci.yml +71 -0
- data/.github/workflows/reusable-examples.yml +40 -0
- data/.github/workflows/{test_integration.yml → reusable-integration-test.yml} +66 -17
- data/.github/workflows/reusable-pre-commit.yml +84 -0
- data/.github/workflows/reusable-ruby-test.yml +65 -0
- data/.github/workflows/test.yml +31 -89
- data/CHANGELOG.md +46 -0
- data/examples/v1/dashboards/CreateDashboard_607525069.rb +61 -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/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection.rb +5 -0
- data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection_1008672547.rb +5 -0
- data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard.rb +5 -0
- data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard_3136299151.rb +5 -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/CreateCostAzureUCConfigs.rb +0 -1
- data/examples/v2/cloud-cost-management/CreateCostGCPUsageCostConfig.rb +1 -1
- data/examples/v2/cloud-cost-management/CreateCustomAllocationRule.rb +61 -0
- data/examples/v2/cloud-cost-management/CreateTagPipelinesRuleset.rb +32 -0
- data/examples/v2/cloud-cost-management/DeleteCostGCPUsageCostConfig.rb +1 -1
- 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/GetCostAWSCURConfig.rb +5 -0
- data/examples/v2/cloud-cost-management/GetCostAzureUCConfig.rb +5 -0
- data/examples/v2/cloud-cost-management/GetCostGCPUsageCostConfig.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/ListCostGCPUsageCostConfigs.rb +1 -1
- 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/ReorderCustomAllocationRules.rb +22 -0
- data/examples/v2/cloud-cost-management/ReorderTagPipelinesRulesets.rb +22 -0
- data/examples/v2/cloud-cost-management/UpdateCostGCPUsageCostConfig.rb +1 -1
- data/examples/v2/cloud-cost-management/UpdateCustomAllocationRule.rb +63 -0
- data/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset.rb +32 -0
- data/examples/v2/cloud-cost-management/ValidateQuery.rb +14 -0
- 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/dora-metrics/DeleteDORADeployment.rb +5 -0
- data/examples/v2/dora-metrics/DeleteDORAFailure.rb +5 -0
- 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/incidents/CreateIncidentImpact.rb +22 -0
- data/examples/v2/incidents/DeleteIncidentImpact.rb +12 -0
- data/examples/v2/incidents/ListIncidentImpacts.rb +11 -0
- data/examples/v2/key-management/GetCurrentUserApplicationKey.rb +4 -1
- 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_2899714190.rb +68 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_868881438.rb +3 -1
- data/examples/v2/security-monitoring/ListScannedAssetsMetadata.rb +8 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_4152369508.rb +70 -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 +12 -0
- data/lib/datadog_api_client/inflector.rb +312 -1
- data/lib/datadog_api_client/v1/api/hosts_api.rb +1 -0
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +1 -3
- data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.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/aws_integration_api.rb +120 -0
- 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 +1229 -144
- data/lib/datadog_api_client/v2/api/container_images_api.rb +1 -0
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +139 -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 +237 -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 +151 -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/account_filtering_config.rb +8 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes.rb +241 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_costs_to_allocate_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy.rb +215 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_allocated_by_filters_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_allocated_by_items.rb +146 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_allocated_by_items_allocated_tags_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_based_on_costs_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_evaluate_grouped_by_filters_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_array.rb +135 -0
- 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.rb +143 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes.rb +361 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_costs_to_allocate_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy.rb +215 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_allocated_by_filters_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_allocated_by_items.rb +146 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_allocated_by_items_allocated_tags_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_based_on_costs_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_evaluate_grouped_by_filters_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb +8 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb +1 -12
- data/lib/datadog_api_client/v2/models/aws_cur_config_response.rb +5 -5
- data/lib/datadog_api_client/v2/models/aws_cur_config_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_response_data_attributes.rb +225 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_response_data_attributes_account_filters.rb +137 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb +19 -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/azure_uc_config.rb +9 -1
- data/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb +1 -12
- data/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb +1 -12
- data/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb +3 -13
- data/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb +19 -1
- 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_ruleset_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items.rb +195 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_mapping.rb +167 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_query.rb +172 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_query_addition.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_reference_table.rb +189 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_reference_table_field_pairs_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_type.rb +26 -0
- 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/datastore_trigger.rb +105 -0
- data/lib/datadog_api_client/v2/models/datastore_trigger_wrapper.rb +135 -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/full_api_key_attributes.rb +19 -1
- data/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +12 -1
- 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/gcp_uc_config_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/gcp_uc_config_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/gcp_uc_config_response_data_attributes.rb +235 -0
- data/lib/datadog_api_client/v2/models/gcp_uc_config_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config.rb +4 -4
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_attributes.rb +13 -13
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_data.rb +4 -15
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request_attributes.rb +7 -7
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_configs_response.rb +21 -3
- data/lib/datadog_api_client/v2/models/historical_job_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_impact_attributes.rb +203 -0
- data/lib/datadog_api_client/v2/models/incident_impact_create_attributes.rb +173 -0
- data/lib/datadog_api_client/v2/models/incident_impact_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_impact_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_impact_related_object.rb +28 -0
- data/lib/datadog_api_client/v2/models/incident_impact_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/incident_impact_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_impact_response_data.rb +164 -0
- data/lib/datadog_api_client/v2/models/incident_impact_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_impacts_response.rb +137 -0
- data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +33 -1
- data/lib/datadog_api_client/v2/models/incident_response_relationships.rb +11 -1
- 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_config_destination_item.rb +2 -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 +250 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination_encoding.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination_type.rb +26 -0
- 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/partial_api_key_attributes.rb +19 -1
- data/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +12 -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/relationship_to_incident.rb +123 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/reorder_rule_resource_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/reorder_rule_resource_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/reorder_rule_resource_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/reorder_ruleset_resource_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/reorder_ruleset_resource_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/reorder_ruleset_resource_data_type.rb +26 -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/rules_validate_query_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_response_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp.rb +105 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes.rb +286 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_created.rb +133 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_modified.rb +133 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items.rb +195 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_mapping.rb +167 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_query.rb +172 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_query_addition.rb +144 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_reference_table.rb +189 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_reference_table_field_pairs_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +22 -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_detection_method.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +11 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_sequence_detection_options.rb +119 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_sequence_detection_step.rb +126 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_sequence_detection_step_transition.rb +126 -0
- 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/trigger.rb +1 -0
- data/lib/datadog_api_client/v2/models/uc_config_pair.rb +105 -0
- data/lib/datadog_api_client/v2/models/uc_config_pair_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/uc_config_pair_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/uc_config_pair_data_attributes_configs_items.rb +255 -0
- data/lib/datadog_api_client/v2/models/uc_config_pair_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes.rb +156 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items.rb +195 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_mapping.rb +167 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_query.rb +172 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_query_addition.rb +144 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_reference_table.rb +189 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_reference_table_field_pairs_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_type.rb +26 -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 +398 -4
- data/examples/v1/synthetics/SearchTests_195957771.rb +0 -14
|
@@ -37,7 +37,7 @@ module DatadogAPIClient::V2
|
|
|
37
37
|
#
|
|
38
38
|
# @param body [AwsCURConfigPostRequest]
|
|
39
39
|
# @param opts [Hash] the optional parameters
|
|
40
|
-
# @return [Array<(
|
|
40
|
+
# @return [Array<(AwsCurConfigResponse, Integer, Hash)>] AwsCurConfigResponse data, response status code and response headers
|
|
41
41
|
def create_cost_awscur_config_with_http_info(body, opts = {})
|
|
42
42
|
|
|
43
43
|
if @api_client.config.debugging
|
|
@@ -67,7 +67,7 @@ module DatadogAPIClient::V2
|
|
|
67
67
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
68
68
|
|
|
69
69
|
# return_type
|
|
70
|
-
return_type = opts[:debug_return_type] || '
|
|
70
|
+
return_type = opts[:debug_return_type] || 'AwsCurConfigResponse'
|
|
71
71
|
|
|
72
72
|
# auth_names
|
|
73
73
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
@@ -157,7 +157,7 @@ module DatadogAPIClient::V2
|
|
|
157
157
|
return data, status_code, headers
|
|
158
158
|
end
|
|
159
159
|
|
|
160
|
-
# Create Cloud
|
|
160
|
+
# Create Google Cloud Usage Cost config.
|
|
161
161
|
#
|
|
162
162
|
# @see #create_cost_gcp_usage_cost_config_with_http_info
|
|
163
163
|
def create_cost_gcp_usage_cost_config(body, opts = {})
|
|
@@ -165,9 +165,9 @@ module DatadogAPIClient::V2
|
|
|
165
165
|
data
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
-
# Create Cloud
|
|
168
|
+
# Create Google Cloud Usage Cost config.
|
|
169
169
|
#
|
|
170
|
-
# Create a Cloud Cost Management account for an
|
|
170
|
+
# Create a Cloud Cost Management account for an Google Cloud Usage Cost config.
|
|
171
171
|
#
|
|
172
172
|
# @param body [GCPUsageCostConfigPostRequest]
|
|
173
173
|
# @param opts [Hash] the optional parameters
|
|
@@ -224,6 +224,152 @@ module DatadogAPIClient::V2
|
|
|
224
224
|
return data, status_code, headers
|
|
225
225
|
end
|
|
226
226
|
|
|
227
|
+
# Create custom allocation rule.
|
|
228
|
+
#
|
|
229
|
+
# @see #create_custom_allocation_rule_with_http_info
|
|
230
|
+
def create_custom_allocation_rule(body, opts = {})
|
|
231
|
+
data, _status_code, _headers = create_custom_allocation_rule_with_http_info(body, opts)
|
|
232
|
+
data
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Create custom allocation rule.
|
|
236
|
+
#
|
|
237
|
+
# Create a new custom allocation rule with the specified filters and allocation strategy.
|
|
238
|
+
#
|
|
239
|
+
# **Strategy Methods:**
|
|
240
|
+
# - **PROPORTIONAL/EVEN**: Allocates costs proportionally/evenly based on existing costs. Requires: granularity, allocated_by_tag_keys. Optional: based_on_costs, allocated_by_filters, evaluate_grouped_by_tag_keys, evaluate_grouped_by_filters.
|
|
241
|
+
# - **PROPORTIONAL_TIMESERIES/EVEN_TIMESERIES**: Allocates based on timeseries data. Requires: granularity, based_on_timeseries. Optional: evaluate_grouped_by_tag_keys.
|
|
242
|
+
# - **PERCENT**: Allocates fixed percentages to specific tags. Requires: allocated_by (array of percentage allocations).
|
|
243
|
+
#
|
|
244
|
+
# **Filter Conditions:**
|
|
245
|
+
# - Use **value** for single-value conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is all values", "is untagged"
|
|
246
|
+
# - Use **values** for multi-value conditions: "in", "not in"
|
|
247
|
+
# - Cannot use both value and values simultaneously.
|
|
248
|
+
#
|
|
249
|
+
# **Supported operators**: is, is not, is all values, is untagged, contains, does not contain, in, not in, =, !=, like, not like
|
|
250
|
+
#
|
|
251
|
+
# @param body [ArbitraryCostUpsertRequest]
|
|
252
|
+
# @param opts [Hash] the optional parameters
|
|
253
|
+
# @return [Array<(ArbitraryRuleResponse, Integer, Hash)>] ArbitraryRuleResponse data, response status code and response headers
|
|
254
|
+
def create_custom_allocation_rule_with_http_info(body, opts = {})
|
|
255
|
+
|
|
256
|
+
if @api_client.config.debugging
|
|
257
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.create_custom_allocation_rule ...'
|
|
258
|
+
end
|
|
259
|
+
# verify the required parameter 'body' is set
|
|
260
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
261
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.create_custom_allocation_rule"
|
|
262
|
+
end
|
|
263
|
+
# resource path
|
|
264
|
+
local_var_path = '/api/v2/cost/arbitrary_rule'
|
|
265
|
+
|
|
266
|
+
# query parameters
|
|
267
|
+
query_params = opts[:query_params] || {}
|
|
268
|
+
|
|
269
|
+
# header parameters
|
|
270
|
+
header_params = opts[:header_params] || {}
|
|
271
|
+
# HTTP header 'Accept' (if needed)
|
|
272
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
273
|
+
# HTTP header 'Content-Type'
|
|
274
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
275
|
+
|
|
276
|
+
# form parameters
|
|
277
|
+
form_params = opts[:form_params] || {}
|
|
278
|
+
|
|
279
|
+
# http body (model)
|
|
280
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
281
|
+
|
|
282
|
+
# return_type
|
|
283
|
+
return_type = opts[:debug_return_type] || 'ArbitraryRuleResponse'
|
|
284
|
+
|
|
285
|
+
# auth_names
|
|
286
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
287
|
+
|
|
288
|
+
new_options = opts.merge(
|
|
289
|
+
:operation => :create_custom_allocation_rule,
|
|
290
|
+
:header_params => header_params,
|
|
291
|
+
:query_params => query_params,
|
|
292
|
+
:form_params => form_params,
|
|
293
|
+
:body => post_body,
|
|
294
|
+
:auth_names => auth_names,
|
|
295
|
+
:return_type => return_type,
|
|
296
|
+
:api_version => "V2"
|
|
297
|
+
)
|
|
298
|
+
|
|
299
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
300
|
+
if @api_client.config.debugging
|
|
301
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#create_custom_allocation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
302
|
+
end
|
|
303
|
+
return data, status_code, headers
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
# Create tag pipeline ruleset.
|
|
307
|
+
#
|
|
308
|
+
# @see #create_tag_pipelines_ruleset_with_http_info
|
|
309
|
+
def create_tag_pipelines_ruleset(body, opts = {})
|
|
310
|
+
data, _status_code, _headers = create_tag_pipelines_ruleset_with_http_info(body, opts)
|
|
311
|
+
data
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
# Create tag pipeline ruleset.
|
|
315
|
+
#
|
|
316
|
+
# Create a new tag pipeline ruleset with the specified rules and configuration
|
|
317
|
+
#
|
|
318
|
+
# @param body [CreateRulesetRequest]
|
|
319
|
+
# @param opts [Hash] the optional parameters
|
|
320
|
+
# @return [Array<(RulesetResp, Integer, Hash)>] RulesetResp data, response status code and response headers
|
|
321
|
+
def create_tag_pipelines_ruleset_with_http_info(body, opts = {})
|
|
322
|
+
|
|
323
|
+
if @api_client.config.debugging
|
|
324
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.create_tag_pipelines_ruleset ...'
|
|
325
|
+
end
|
|
326
|
+
# verify the required parameter 'body' is set
|
|
327
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
328
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.create_tag_pipelines_ruleset"
|
|
329
|
+
end
|
|
330
|
+
# resource path
|
|
331
|
+
local_var_path = '/api/v2/tags/enrichment'
|
|
332
|
+
|
|
333
|
+
# query parameters
|
|
334
|
+
query_params = opts[:query_params] || {}
|
|
335
|
+
|
|
336
|
+
# header parameters
|
|
337
|
+
header_params = opts[:header_params] || {}
|
|
338
|
+
# HTTP header 'Accept' (if needed)
|
|
339
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
340
|
+
# HTTP header 'Content-Type'
|
|
341
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
342
|
+
|
|
343
|
+
# form parameters
|
|
344
|
+
form_params = opts[:form_params] || {}
|
|
345
|
+
|
|
346
|
+
# http body (model)
|
|
347
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
348
|
+
|
|
349
|
+
# return_type
|
|
350
|
+
return_type = opts[:debug_return_type] || 'RulesetResp'
|
|
351
|
+
|
|
352
|
+
# auth_names
|
|
353
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
354
|
+
|
|
355
|
+
new_options = opts.merge(
|
|
356
|
+
:operation => :create_tag_pipelines_ruleset,
|
|
357
|
+
:header_params => header_params,
|
|
358
|
+
:query_params => query_params,
|
|
359
|
+
:form_params => form_params,
|
|
360
|
+
:body => post_body,
|
|
361
|
+
:auth_names => auth_names,
|
|
362
|
+
:return_type => return_type,
|
|
363
|
+
:api_version => "V2"
|
|
364
|
+
)
|
|
365
|
+
|
|
366
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
367
|
+
if @api_client.config.debugging
|
|
368
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#create_tag_pipelines_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
369
|
+
end
|
|
370
|
+
return data, status_code, headers
|
|
371
|
+
end
|
|
372
|
+
|
|
227
373
|
# Delete a budget.
|
|
228
374
|
#
|
|
229
375
|
# @see #delete_budget_with_http_info
|
|
@@ -419,7 +565,7 @@ module DatadogAPIClient::V2
|
|
|
419
565
|
return data, status_code, headers
|
|
420
566
|
end
|
|
421
567
|
|
|
422
|
-
# Delete Cloud
|
|
568
|
+
# Delete Google Cloud Usage Cost config.
|
|
423
569
|
#
|
|
424
570
|
# @see #delete_cost_gcp_usage_cost_config_with_http_info
|
|
425
571
|
def delete_cost_gcp_usage_cost_config(cloud_account_id, opts = {})
|
|
@@ -427,7 +573,7 @@ module DatadogAPIClient::V2
|
|
|
427
573
|
nil
|
|
428
574
|
end
|
|
429
575
|
|
|
430
|
-
# Delete Cloud
|
|
576
|
+
# Delete Google Cloud Usage Cost config.
|
|
431
577
|
#
|
|
432
578
|
# Archive a Cloud Cost Management account.
|
|
433
579
|
#
|
|
@@ -484,32 +630,32 @@ module DatadogAPIClient::V2
|
|
|
484
630
|
return data, status_code, headers
|
|
485
631
|
end
|
|
486
632
|
|
|
487
|
-
# Delete
|
|
633
|
+
# Delete custom allocation rule.
|
|
488
634
|
#
|
|
489
|
-
# @see #
|
|
490
|
-
def
|
|
491
|
-
|
|
635
|
+
# @see #delete_custom_allocation_rule_with_http_info
|
|
636
|
+
def delete_custom_allocation_rule(rule_id, opts = {})
|
|
637
|
+
delete_custom_allocation_rule_with_http_info(rule_id, opts)
|
|
492
638
|
nil
|
|
493
639
|
end
|
|
494
640
|
|
|
495
|
-
# Delete
|
|
641
|
+
# Delete custom allocation rule.
|
|
496
642
|
#
|
|
497
|
-
# Delete
|
|
643
|
+
# Delete a custom allocation rule - Delete an existing custom allocation rule by its ID
|
|
498
644
|
#
|
|
499
|
-
# @param
|
|
645
|
+
# @param rule_id [Integer] The unique identifier of the custom allocation rule
|
|
500
646
|
# @param opts [Hash] the optional parameters
|
|
501
647
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
502
|
-
def
|
|
648
|
+
def delete_custom_allocation_rule_with_http_info(rule_id, opts = {})
|
|
503
649
|
|
|
504
650
|
if @api_client.config.debugging
|
|
505
|
-
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.
|
|
651
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.delete_custom_allocation_rule ...'
|
|
506
652
|
end
|
|
507
|
-
# verify the required parameter '
|
|
508
|
-
if @api_client.config.client_side_validation &&
|
|
509
|
-
fail ArgumentError, "Missing the required parameter '
|
|
653
|
+
# verify the required parameter 'rule_id' is set
|
|
654
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
655
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling CloudCostManagementAPI.delete_custom_allocation_rule"
|
|
510
656
|
end
|
|
511
657
|
# resource path
|
|
512
|
-
local_var_path = '/api/v2/cost/
|
|
658
|
+
local_var_path = '/api/v2/cost/arbitrary_rule/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
513
659
|
|
|
514
660
|
# query parameters
|
|
515
661
|
query_params = opts[:query_params] || {}
|
|
@@ -532,7 +678,7 @@ module DatadogAPIClient::V2
|
|
|
532
678
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
533
679
|
|
|
534
680
|
new_options = opts.merge(
|
|
535
|
-
:operation => :
|
|
681
|
+
:operation => :delete_custom_allocation_rule,
|
|
536
682
|
:header_params => header_params,
|
|
537
683
|
:query_params => query_params,
|
|
538
684
|
:form_params => form_params,
|
|
@@ -544,37 +690,37 @@ module DatadogAPIClient::V2
|
|
|
544
690
|
|
|
545
691
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
546
692
|
if @api_client.config.debugging
|
|
547
|
-
@api_client.config.logger.debug "API called: CloudCostManagementAPI#
|
|
693
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#delete_custom_allocation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
548
694
|
end
|
|
549
695
|
return data, status_code, headers
|
|
550
696
|
end
|
|
551
697
|
|
|
552
|
-
#
|
|
698
|
+
# Delete Custom Costs file.
|
|
553
699
|
#
|
|
554
|
-
# @see #
|
|
555
|
-
def
|
|
556
|
-
|
|
557
|
-
|
|
700
|
+
# @see #delete_custom_costs_file_with_http_info
|
|
701
|
+
def delete_custom_costs_file(file_id, opts = {})
|
|
702
|
+
delete_custom_costs_file_with_http_info(file_id, opts)
|
|
703
|
+
nil
|
|
558
704
|
end
|
|
559
705
|
|
|
560
|
-
#
|
|
706
|
+
# Delete Custom Costs file.
|
|
561
707
|
#
|
|
562
|
-
#
|
|
708
|
+
# Delete the specified Custom Costs file.
|
|
563
709
|
#
|
|
564
|
-
# @param
|
|
710
|
+
# @param file_id [String] File ID.
|
|
565
711
|
# @param opts [Hash] the optional parameters
|
|
566
|
-
# @return [Array<(
|
|
567
|
-
def
|
|
712
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
713
|
+
def delete_custom_costs_file_with_http_info(file_id, opts = {})
|
|
568
714
|
|
|
569
715
|
if @api_client.config.debugging
|
|
570
|
-
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.
|
|
716
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.delete_custom_costs_file ...'
|
|
571
717
|
end
|
|
572
|
-
# verify the required parameter '
|
|
573
|
-
if @api_client.config.client_side_validation &&
|
|
574
|
-
fail ArgumentError, "Missing the required parameter '
|
|
718
|
+
# verify the required parameter 'file_id' is set
|
|
719
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
|
720
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling CloudCostManagementAPI.delete_custom_costs_file"
|
|
575
721
|
end
|
|
576
722
|
# resource path
|
|
577
|
-
local_var_path = '/api/v2/cost/
|
|
723
|
+
local_var_path = '/api/v2/cost/custom_costs/{file_id}'.sub('{file_id}', CGI.escape(file_id.to_s).gsub('%2F', '/'))
|
|
578
724
|
|
|
579
725
|
# query parameters
|
|
580
726
|
query_params = opts[:query_params] || {}
|
|
@@ -582,7 +728,7 @@ module DatadogAPIClient::V2
|
|
|
582
728
|
# header parameters
|
|
583
729
|
header_params = opts[:header_params] || {}
|
|
584
730
|
# HTTP header 'Accept' (if needed)
|
|
585
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
731
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
586
732
|
|
|
587
733
|
# form parameters
|
|
588
734
|
form_params = opts[:form_params] || {}
|
|
@@ -591,13 +737,13 @@ module DatadogAPIClient::V2
|
|
|
591
737
|
post_body = opts[:debug_body]
|
|
592
738
|
|
|
593
739
|
# return_type
|
|
594
|
-
return_type = opts[:debug_return_type]
|
|
740
|
+
return_type = opts[:debug_return_type]
|
|
595
741
|
|
|
596
742
|
# auth_names
|
|
597
743
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
598
744
|
|
|
599
745
|
new_options = opts.merge(
|
|
600
|
-
:operation => :
|
|
746
|
+
:operation => :delete_custom_costs_file,
|
|
601
747
|
:header_params => header_params,
|
|
602
748
|
:query_params => query_params,
|
|
603
749
|
:form_params => form_params,
|
|
@@ -607,39 +753,39 @@ module DatadogAPIClient::V2
|
|
|
607
753
|
:api_version => "V2"
|
|
608
754
|
)
|
|
609
755
|
|
|
610
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::
|
|
756
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
611
757
|
if @api_client.config.debugging
|
|
612
|
-
@api_client.config.logger.debug "API called: CloudCostManagementAPI#
|
|
758
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#delete_custom_costs_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
613
759
|
end
|
|
614
760
|
return data, status_code, headers
|
|
615
761
|
end
|
|
616
762
|
|
|
617
|
-
#
|
|
763
|
+
# Delete tag pipeline ruleset.
|
|
618
764
|
#
|
|
619
|
-
# @see #
|
|
620
|
-
def
|
|
621
|
-
|
|
622
|
-
|
|
765
|
+
# @see #delete_tag_pipelines_ruleset_with_http_info
|
|
766
|
+
def delete_tag_pipelines_ruleset(ruleset_id, opts = {})
|
|
767
|
+
delete_tag_pipelines_ruleset_with_http_info(ruleset_id, opts)
|
|
768
|
+
nil
|
|
623
769
|
end
|
|
624
770
|
|
|
625
|
-
#
|
|
771
|
+
# Delete tag pipeline ruleset.
|
|
626
772
|
#
|
|
627
|
-
#
|
|
773
|
+
# Delete a tag pipeline ruleset - Delete an existing tag pipeline ruleset by its ID
|
|
628
774
|
#
|
|
629
|
-
# @param
|
|
775
|
+
# @param ruleset_id [String] The unique identifier of the ruleset
|
|
630
776
|
# @param opts [Hash] the optional parameters
|
|
631
|
-
# @return [Array<(
|
|
632
|
-
def
|
|
777
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
778
|
+
def delete_tag_pipelines_ruleset_with_http_info(ruleset_id, opts = {})
|
|
633
779
|
|
|
634
780
|
if @api_client.config.debugging
|
|
635
|
-
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.
|
|
781
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.delete_tag_pipelines_ruleset ...'
|
|
636
782
|
end
|
|
637
|
-
# verify the required parameter '
|
|
638
|
-
if @api_client.config.client_side_validation &&
|
|
639
|
-
fail ArgumentError, "Missing the required parameter '
|
|
783
|
+
# verify the required parameter 'ruleset_id' is set
|
|
784
|
+
if @api_client.config.client_side_validation && ruleset_id.nil?
|
|
785
|
+
fail ArgumentError, "Missing the required parameter 'ruleset_id' when calling CloudCostManagementAPI.delete_tag_pipelines_ruleset"
|
|
640
786
|
end
|
|
641
787
|
# resource path
|
|
642
|
-
local_var_path = '/api/v2/
|
|
788
|
+
local_var_path = '/api/v2/tags/enrichment/{ruleset_id}'.sub('{ruleset_id}', CGI.escape(ruleset_id.to_s).gsub('%2F', '/'))
|
|
643
789
|
|
|
644
790
|
# query parameters
|
|
645
791
|
query_params = opts[:query_params] || {}
|
|
@@ -647,7 +793,7 @@ module DatadogAPIClient::V2
|
|
|
647
793
|
# header parameters
|
|
648
794
|
header_params = opts[:header_params] || {}
|
|
649
795
|
# HTTP header 'Accept' (if needed)
|
|
650
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
796
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
651
797
|
|
|
652
798
|
# form parameters
|
|
653
799
|
form_params = opts[:form_params] || {}
|
|
@@ -656,13 +802,13 @@ module DatadogAPIClient::V2
|
|
|
656
802
|
post_body = opts[:debug_body]
|
|
657
803
|
|
|
658
804
|
# return_type
|
|
659
|
-
return_type = opts[:debug_return_type]
|
|
805
|
+
return_type = opts[:debug_return_type]
|
|
660
806
|
|
|
661
807
|
# auth_names
|
|
662
808
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
663
809
|
|
|
664
810
|
new_options = opts.merge(
|
|
665
|
-
:operation => :
|
|
811
|
+
:operation => :delete_tag_pipelines_ruleset,
|
|
666
812
|
:header_params => header_params,
|
|
667
813
|
:query_params => query_params,
|
|
668
814
|
:form_params => form_params,
|
|
@@ -672,34 +818,39 @@ module DatadogAPIClient::V2
|
|
|
672
818
|
:api_version => "V2"
|
|
673
819
|
)
|
|
674
820
|
|
|
675
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::
|
|
821
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
676
822
|
if @api_client.config.debugging
|
|
677
|
-
@api_client.config.logger.debug "API called: CloudCostManagementAPI#
|
|
823
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#delete_tag_pipelines_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
678
824
|
end
|
|
679
825
|
return data, status_code, headers
|
|
680
826
|
end
|
|
681
827
|
|
|
682
|
-
#
|
|
828
|
+
# Get a budget.
|
|
683
829
|
#
|
|
684
|
-
# @see #
|
|
685
|
-
def
|
|
686
|
-
data, _status_code, _headers =
|
|
830
|
+
# @see #get_budget_with_http_info
|
|
831
|
+
def get_budget(budget_id, opts = {})
|
|
832
|
+
data, _status_code, _headers = get_budget_with_http_info(budget_id, opts)
|
|
687
833
|
data
|
|
688
834
|
end
|
|
689
835
|
|
|
690
|
-
#
|
|
836
|
+
# Get a budget.
|
|
691
837
|
#
|
|
692
|
-
#
|
|
838
|
+
# Get a budget.
|
|
693
839
|
#
|
|
840
|
+
# @param budget_id [String] Budget id.
|
|
694
841
|
# @param opts [Hash] the optional parameters
|
|
695
|
-
# @return [Array<(
|
|
696
|
-
def
|
|
842
|
+
# @return [Array<(BudgetWithEntries, Integer, Hash)>] BudgetWithEntries data, response status code and response headers
|
|
843
|
+
def get_budget_with_http_info(budget_id, opts = {})
|
|
697
844
|
|
|
698
845
|
if @api_client.config.debugging
|
|
699
|
-
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.
|
|
846
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_budget ...'
|
|
847
|
+
end
|
|
848
|
+
# verify the required parameter 'budget_id' is set
|
|
849
|
+
if @api_client.config.client_side_validation && budget_id.nil?
|
|
850
|
+
fail ArgumentError, "Missing the required parameter 'budget_id' when calling CloudCostManagementAPI.get_budget"
|
|
700
851
|
end
|
|
701
852
|
# resource path
|
|
702
|
-
local_var_path = '/api/v2/cost/
|
|
853
|
+
local_var_path = '/api/v2/cost/budget/{budget_id}'.sub('{budget_id}', CGI.escape(budget_id.to_s).gsub('%2F', '/'))
|
|
703
854
|
|
|
704
855
|
# query parameters
|
|
705
856
|
query_params = opts[:query_params] || {}
|
|
@@ -716,13 +867,13 @@ module DatadogAPIClient::V2
|
|
|
716
867
|
post_body = opts[:debug_body]
|
|
717
868
|
|
|
718
869
|
# return_type
|
|
719
|
-
return_type = opts[:debug_return_type] || '
|
|
870
|
+
return_type = opts[:debug_return_type] || 'BudgetWithEntries'
|
|
720
871
|
|
|
721
872
|
# auth_names
|
|
722
873
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
723
874
|
|
|
724
875
|
new_options = opts.merge(
|
|
725
|
-
:operation => :
|
|
876
|
+
:operation => :get_budget,
|
|
726
877
|
:header_params => header_params,
|
|
727
878
|
:query_params => query_params,
|
|
728
879
|
:form_params => form_params,
|
|
@@ -734,32 +885,37 @@ module DatadogAPIClient::V2
|
|
|
734
885
|
|
|
735
886
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
736
887
|
if @api_client.config.debugging
|
|
737
|
-
@api_client.config.logger.debug "API called: CloudCostManagementAPI#
|
|
888
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#get_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
738
889
|
end
|
|
739
890
|
return data, status_code, headers
|
|
740
891
|
end
|
|
741
892
|
|
|
742
|
-
#
|
|
893
|
+
# Get cost AWS CUR config.
|
|
743
894
|
#
|
|
744
|
-
# @see #
|
|
745
|
-
def
|
|
746
|
-
data, _status_code, _headers =
|
|
895
|
+
# @see #get_cost_awscur_config_with_http_info
|
|
896
|
+
def get_cost_awscur_config(cloud_account_id, opts = {})
|
|
897
|
+
data, _status_code, _headers = get_cost_awscur_config_with_http_info(cloud_account_id, opts)
|
|
747
898
|
data
|
|
748
899
|
end
|
|
749
900
|
|
|
750
|
-
#
|
|
901
|
+
# Get cost AWS CUR config.
|
|
751
902
|
#
|
|
752
|
-
#
|
|
903
|
+
# Get a specific AWS CUR config.
|
|
753
904
|
#
|
|
905
|
+
# @param cloud_account_id [Integer] The unique identifier of the cloud account
|
|
754
906
|
# @param opts [Hash] the optional parameters
|
|
755
|
-
# @return [Array<(
|
|
756
|
-
def
|
|
907
|
+
# @return [Array<(AwsCurConfigResponse, Integer, Hash)>] AwsCurConfigResponse data, response status code and response headers
|
|
908
|
+
def get_cost_awscur_config_with_http_info(cloud_account_id, opts = {})
|
|
757
909
|
|
|
758
910
|
if @api_client.config.debugging
|
|
759
|
-
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.
|
|
911
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_cost_awscur_config ...'
|
|
912
|
+
end
|
|
913
|
+
# verify the required parameter 'cloud_account_id' is set
|
|
914
|
+
if @api_client.config.client_side_validation && cloud_account_id.nil?
|
|
915
|
+
fail ArgumentError, "Missing the required parameter 'cloud_account_id' when calling CloudCostManagementAPI.get_cost_awscur_config"
|
|
760
916
|
end
|
|
761
917
|
# resource path
|
|
762
|
-
local_var_path = '/api/v2/cost/aws_cur_config'
|
|
918
|
+
local_var_path = '/api/v2/cost/aws_cur_config/{cloud_account_id}'.sub('{cloud_account_id}', CGI.escape(cloud_account_id.to_s).gsub('%2F', '/'))
|
|
763
919
|
|
|
764
920
|
# query parameters
|
|
765
921
|
query_params = opts[:query_params] || {}
|
|
@@ -776,13 +932,13 @@ module DatadogAPIClient::V2
|
|
|
776
932
|
post_body = opts[:debug_body]
|
|
777
933
|
|
|
778
934
|
# return_type
|
|
779
|
-
return_type = opts[:debug_return_type] || '
|
|
935
|
+
return_type = opts[:debug_return_type] || 'AwsCurConfigResponse'
|
|
780
936
|
|
|
781
937
|
# auth_names
|
|
782
938
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
783
939
|
|
|
784
940
|
new_options = opts.merge(
|
|
785
|
-
:operation => :
|
|
941
|
+
:operation => :get_cost_awscur_config,
|
|
786
942
|
:header_params => header_params,
|
|
787
943
|
:query_params => query_params,
|
|
788
944
|
:form_params => form_params,
|
|
@@ -794,32 +950,37 @@ module DatadogAPIClient::V2
|
|
|
794
950
|
|
|
795
951
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
796
952
|
if @api_client.config.debugging
|
|
797
|
-
@api_client.config.logger.debug "API called: CloudCostManagementAPI#
|
|
953
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#get_cost_awscur_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
798
954
|
end
|
|
799
955
|
return data, status_code, headers
|
|
800
956
|
end
|
|
801
957
|
|
|
802
|
-
#
|
|
958
|
+
# Get cost Azure UC config.
|
|
803
959
|
#
|
|
804
|
-
# @see #
|
|
805
|
-
def
|
|
806
|
-
data, _status_code, _headers =
|
|
960
|
+
# @see #get_cost_azure_uc_config_with_http_info
|
|
961
|
+
def get_cost_azure_uc_config(cloud_account_id, opts = {})
|
|
962
|
+
data, _status_code, _headers = get_cost_azure_uc_config_with_http_info(cloud_account_id, opts)
|
|
807
963
|
data
|
|
808
964
|
end
|
|
809
965
|
|
|
810
|
-
#
|
|
966
|
+
# Get cost Azure UC config.
|
|
811
967
|
#
|
|
812
|
-
#
|
|
968
|
+
# Get a specific Azure config.
|
|
813
969
|
#
|
|
970
|
+
# @param cloud_account_id [Integer] The unique identifier of the cloud account
|
|
814
971
|
# @param opts [Hash] the optional parameters
|
|
815
|
-
# @return [Array<(
|
|
816
|
-
def
|
|
972
|
+
# @return [Array<(UCConfigPair, Integer, Hash)>] UCConfigPair data, response status code and response headers
|
|
973
|
+
def get_cost_azure_uc_config_with_http_info(cloud_account_id, opts = {})
|
|
817
974
|
|
|
818
975
|
if @api_client.config.debugging
|
|
819
|
-
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.
|
|
976
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_cost_azure_uc_config ...'
|
|
977
|
+
end
|
|
978
|
+
# verify the required parameter 'cloud_account_id' is set
|
|
979
|
+
if @api_client.config.client_side_validation && cloud_account_id.nil?
|
|
980
|
+
fail ArgumentError, "Missing the required parameter 'cloud_account_id' when calling CloudCostManagementAPI.get_cost_azure_uc_config"
|
|
820
981
|
end
|
|
821
982
|
# resource path
|
|
822
|
-
local_var_path = '/api/v2/cost/azure_uc_config'
|
|
983
|
+
local_var_path = '/api/v2/cost/azure_uc_config/{cloud_account_id}'.sub('{cloud_account_id}', CGI.escape(cloud_account_id.to_s).gsub('%2F', '/'))
|
|
823
984
|
|
|
824
985
|
# query parameters
|
|
825
986
|
query_params = opts[:query_params] || {}
|
|
@@ -836,13 +997,13 @@ module DatadogAPIClient::V2
|
|
|
836
997
|
post_body = opts[:debug_body]
|
|
837
998
|
|
|
838
999
|
# return_type
|
|
839
|
-
return_type = opts[:debug_return_type] || '
|
|
1000
|
+
return_type = opts[:debug_return_type] || 'UCConfigPair'
|
|
840
1001
|
|
|
841
1002
|
# auth_names
|
|
842
1003
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
843
1004
|
|
|
844
1005
|
new_options = opts.merge(
|
|
845
|
-
:operation => :
|
|
1006
|
+
:operation => :get_cost_azure_uc_config,
|
|
846
1007
|
:header_params => header_params,
|
|
847
1008
|
:query_params => query_params,
|
|
848
1009
|
:form_params => form_params,
|
|
@@ -854,32 +1015,731 @@ module DatadogAPIClient::V2
|
|
|
854
1015
|
|
|
855
1016
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
856
1017
|
if @api_client.config.debugging
|
|
857
|
-
@api_client.config.logger.debug "API called: CloudCostManagementAPI#
|
|
1018
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#get_cost_azure_uc_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
858
1019
|
end
|
|
859
1020
|
return data, status_code, headers
|
|
860
1021
|
end
|
|
861
1022
|
|
|
862
|
-
#
|
|
1023
|
+
# Get Google Cloud Usage Cost config.
|
|
863
1024
|
#
|
|
864
|
-
# @see #
|
|
865
|
-
def
|
|
866
|
-
data, _status_code, _headers =
|
|
1025
|
+
# @see #get_cost_gcp_usage_cost_config_with_http_info
|
|
1026
|
+
def get_cost_gcp_usage_cost_config(cloud_account_id, opts = {})
|
|
1027
|
+
data, _status_code, _headers = get_cost_gcp_usage_cost_config_with_http_info(cloud_account_id, opts)
|
|
867
1028
|
data
|
|
868
1029
|
end
|
|
869
1030
|
|
|
870
|
-
#
|
|
1031
|
+
# Get Google Cloud Usage Cost config.
|
|
871
1032
|
#
|
|
872
|
-
#
|
|
1033
|
+
# Get a specific Google Cloud Usage Cost config.
|
|
873
1034
|
#
|
|
1035
|
+
# @param cloud_account_id [Integer] The unique identifier of the cloud account
|
|
874
1036
|
# @param opts [Hash] the optional parameters
|
|
875
|
-
# @return [Array<(
|
|
1037
|
+
# @return [Array<(GcpUcConfigResponse, Integer, Hash)>] GcpUcConfigResponse data, response status code and response headers
|
|
1038
|
+
def get_cost_gcp_usage_cost_config_with_http_info(cloud_account_id, opts = {})
|
|
1039
|
+
|
|
1040
|
+
if @api_client.config.debugging
|
|
1041
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_cost_gcp_usage_cost_config ...'
|
|
1042
|
+
end
|
|
1043
|
+
# verify the required parameter 'cloud_account_id' is set
|
|
1044
|
+
if @api_client.config.client_side_validation && cloud_account_id.nil?
|
|
1045
|
+
fail ArgumentError, "Missing the required parameter 'cloud_account_id' when calling CloudCostManagementAPI.get_cost_gcp_usage_cost_config"
|
|
1046
|
+
end
|
|
1047
|
+
# resource path
|
|
1048
|
+
local_var_path = '/api/v2/cost/gcp_uc_config/{cloud_account_id}'.sub('{cloud_account_id}', CGI.escape(cloud_account_id.to_s).gsub('%2F', '/'))
|
|
1049
|
+
|
|
1050
|
+
# query parameters
|
|
1051
|
+
query_params = opts[:query_params] || {}
|
|
1052
|
+
|
|
1053
|
+
# header parameters
|
|
1054
|
+
header_params = opts[:header_params] || {}
|
|
1055
|
+
# HTTP header 'Accept' (if needed)
|
|
1056
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1057
|
+
|
|
1058
|
+
# form parameters
|
|
1059
|
+
form_params = opts[:form_params] || {}
|
|
1060
|
+
|
|
1061
|
+
# http body (model)
|
|
1062
|
+
post_body = opts[:debug_body]
|
|
1063
|
+
|
|
1064
|
+
# return_type
|
|
1065
|
+
return_type = opts[:debug_return_type] || 'GcpUcConfigResponse'
|
|
1066
|
+
|
|
1067
|
+
# auth_names
|
|
1068
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1069
|
+
|
|
1070
|
+
new_options = opts.merge(
|
|
1071
|
+
:operation => :get_cost_gcp_usage_cost_config,
|
|
1072
|
+
:header_params => header_params,
|
|
1073
|
+
:query_params => query_params,
|
|
1074
|
+
:form_params => form_params,
|
|
1075
|
+
:body => post_body,
|
|
1076
|
+
:auth_names => auth_names,
|
|
1077
|
+
:return_type => return_type,
|
|
1078
|
+
:api_version => "V2"
|
|
1079
|
+
)
|
|
1080
|
+
|
|
1081
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1082
|
+
if @api_client.config.debugging
|
|
1083
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#get_cost_gcp_usage_cost_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1084
|
+
end
|
|
1085
|
+
return data, status_code, headers
|
|
1086
|
+
end
|
|
1087
|
+
|
|
1088
|
+
# Get custom allocation rule.
|
|
1089
|
+
#
|
|
1090
|
+
# @see #get_custom_allocation_rule_with_http_info
|
|
1091
|
+
def get_custom_allocation_rule(rule_id, opts = {})
|
|
1092
|
+
data, _status_code, _headers = get_custom_allocation_rule_with_http_info(rule_id, opts)
|
|
1093
|
+
data
|
|
1094
|
+
end
|
|
1095
|
+
|
|
1096
|
+
# Get custom allocation rule.
|
|
1097
|
+
#
|
|
1098
|
+
# Get a specific custom allocation rule - Retrieve a specific custom allocation rule by its ID
|
|
1099
|
+
#
|
|
1100
|
+
# @param rule_id [Integer] The unique identifier of the custom allocation rule
|
|
1101
|
+
# @param opts [Hash] the optional parameters
|
|
1102
|
+
# @return [Array<(ArbitraryRuleResponse, Integer, Hash)>] ArbitraryRuleResponse data, response status code and response headers
|
|
1103
|
+
def get_custom_allocation_rule_with_http_info(rule_id, opts = {})
|
|
1104
|
+
|
|
1105
|
+
if @api_client.config.debugging
|
|
1106
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_custom_allocation_rule ...'
|
|
1107
|
+
end
|
|
1108
|
+
# verify the required parameter 'rule_id' is set
|
|
1109
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
1110
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling CloudCostManagementAPI.get_custom_allocation_rule"
|
|
1111
|
+
end
|
|
1112
|
+
# resource path
|
|
1113
|
+
local_var_path = '/api/v2/cost/arbitrary_rule/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
1114
|
+
|
|
1115
|
+
# query parameters
|
|
1116
|
+
query_params = opts[:query_params] || {}
|
|
1117
|
+
|
|
1118
|
+
# header parameters
|
|
1119
|
+
header_params = opts[:header_params] || {}
|
|
1120
|
+
# HTTP header 'Accept' (if needed)
|
|
1121
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1122
|
+
|
|
1123
|
+
# form parameters
|
|
1124
|
+
form_params = opts[:form_params] || {}
|
|
1125
|
+
|
|
1126
|
+
# http body (model)
|
|
1127
|
+
post_body = opts[:debug_body]
|
|
1128
|
+
|
|
1129
|
+
# return_type
|
|
1130
|
+
return_type = opts[:debug_return_type] || 'ArbitraryRuleResponse'
|
|
1131
|
+
|
|
1132
|
+
# auth_names
|
|
1133
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1134
|
+
|
|
1135
|
+
new_options = opts.merge(
|
|
1136
|
+
:operation => :get_custom_allocation_rule,
|
|
1137
|
+
:header_params => header_params,
|
|
1138
|
+
:query_params => query_params,
|
|
1139
|
+
:form_params => form_params,
|
|
1140
|
+
:body => post_body,
|
|
1141
|
+
:auth_names => auth_names,
|
|
1142
|
+
:return_type => return_type,
|
|
1143
|
+
:api_version => "V2"
|
|
1144
|
+
)
|
|
1145
|
+
|
|
1146
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1147
|
+
if @api_client.config.debugging
|
|
1148
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#get_custom_allocation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1149
|
+
end
|
|
1150
|
+
return data, status_code, headers
|
|
1151
|
+
end
|
|
1152
|
+
|
|
1153
|
+
# Get Custom Costs file.
|
|
1154
|
+
#
|
|
1155
|
+
# @see #get_custom_costs_file_with_http_info
|
|
1156
|
+
def get_custom_costs_file(file_id, opts = {})
|
|
1157
|
+
data, _status_code, _headers = get_custom_costs_file_with_http_info(file_id, opts)
|
|
1158
|
+
data
|
|
1159
|
+
end
|
|
1160
|
+
|
|
1161
|
+
# Get Custom Costs file.
|
|
1162
|
+
#
|
|
1163
|
+
# Fetch the specified Custom Costs file.
|
|
1164
|
+
#
|
|
1165
|
+
# @param file_id [String] File ID.
|
|
1166
|
+
# @param opts [Hash] the optional parameters
|
|
1167
|
+
# @return [Array<(CustomCostsFileGetResponse, Integer, Hash)>] CustomCostsFileGetResponse data, response status code and response headers
|
|
1168
|
+
def get_custom_costs_file_with_http_info(file_id, opts = {})
|
|
1169
|
+
|
|
1170
|
+
if @api_client.config.debugging
|
|
1171
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_custom_costs_file ...'
|
|
1172
|
+
end
|
|
1173
|
+
# verify the required parameter 'file_id' is set
|
|
1174
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
|
1175
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling CloudCostManagementAPI.get_custom_costs_file"
|
|
1176
|
+
end
|
|
1177
|
+
# resource path
|
|
1178
|
+
local_var_path = '/api/v2/cost/custom_costs/{file_id}'.sub('{file_id}', CGI.escape(file_id.to_s).gsub('%2F', '/'))
|
|
1179
|
+
|
|
1180
|
+
# query parameters
|
|
1181
|
+
query_params = opts[:query_params] || {}
|
|
1182
|
+
|
|
1183
|
+
# header parameters
|
|
1184
|
+
header_params = opts[:header_params] || {}
|
|
1185
|
+
# HTTP header 'Accept' (if needed)
|
|
1186
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1187
|
+
|
|
1188
|
+
# form parameters
|
|
1189
|
+
form_params = opts[:form_params] || {}
|
|
1190
|
+
|
|
1191
|
+
# http body (model)
|
|
1192
|
+
post_body = opts[:debug_body]
|
|
1193
|
+
|
|
1194
|
+
# return_type
|
|
1195
|
+
return_type = opts[:debug_return_type] || 'CustomCostsFileGetResponse'
|
|
1196
|
+
|
|
1197
|
+
# auth_names
|
|
1198
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1199
|
+
|
|
1200
|
+
new_options = opts.merge(
|
|
1201
|
+
:operation => :get_custom_costs_file,
|
|
1202
|
+
:header_params => header_params,
|
|
1203
|
+
:query_params => query_params,
|
|
1204
|
+
:form_params => form_params,
|
|
1205
|
+
:body => post_body,
|
|
1206
|
+
:auth_names => auth_names,
|
|
1207
|
+
:return_type => return_type,
|
|
1208
|
+
:api_version => "V2"
|
|
1209
|
+
)
|
|
1210
|
+
|
|
1211
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1212
|
+
if @api_client.config.debugging
|
|
1213
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#get_custom_costs_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1214
|
+
end
|
|
1215
|
+
return data, status_code, headers
|
|
1216
|
+
end
|
|
1217
|
+
|
|
1218
|
+
# Get a tag pipeline ruleset.
|
|
1219
|
+
#
|
|
1220
|
+
# @see #get_tag_pipelines_ruleset_with_http_info
|
|
1221
|
+
def get_tag_pipelines_ruleset(ruleset_id, opts = {})
|
|
1222
|
+
data, _status_code, _headers = get_tag_pipelines_ruleset_with_http_info(ruleset_id, opts)
|
|
1223
|
+
data
|
|
1224
|
+
end
|
|
1225
|
+
|
|
1226
|
+
# Get a tag pipeline ruleset.
|
|
1227
|
+
#
|
|
1228
|
+
# Get a specific tag pipeline ruleset - Retrieve a specific tag pipeline ruleset by its ID
|
|
1229
|
+
#
|
|
1230
|
+
# @param ruleset_id [String] The unique identifier of the ruleset
|
|
1231
|
+
# @param opts [Hash] the optional parameters
|
|
1232
|
+
# @return [Array<(RulesetResp, Integer, Hash)>] RulesetResp data, response status code and response headers
|
|
1233
|
+
def get_tag_pipelines_ruleset_with_http_info(ruleset_id, opts = {})
|
|
1234
|
+
|
|
1235
|
+
if @api_client.config.debugging
|
|
1236
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_tag_pipelines_ruleset ...'
|
|
1237
|
+
end
|
|
1238
|
+
# verify the required parameter 'ruleset_id' is set
|
|
1239
|
+
if @api_client.config.client_side_validation && ruleset_id.nil?
|
|
1240
|
+
fail ArgumentError, "Missing the required parameter 'ruleset_id' when calling CloudCostManagementAPI.get_tag_pipelines_ruleset"
|
|
1241
|
+
end
|
|
1242
|
+
# resource path
|
|
1243
|
+
local_var_path = '/api/v2/tags/enrichment/{ruleset_id}'.sub('{ruleset_id}', CGI.escape(ruleset_id.to_s).gsub('%2F', '/'))
|
|
1244
|
+
|
|
1245
|
+
# query parameters
|
|
1246
|
+
query_params = opts[:query_params] || {}
|
|
1247
|
+
|
|
1248
|
+
# header parameters
|
|
1249
|
+
header_params = opts[:header_params] || {}
|
|
1250
|
+
# HTTP header 'Accept' (if needed)
|
|
1251
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1252
|
+
|
|
1253
|
+
# form parameters
|
|
1254
|
+
form_params = opts[:form_params] || {}
|
|
1255
|
+
|
|
1256
|
+
# http body (model)
|
|
1257
|
+
post_body = opts[:debug_body]
|
|
1258
|
+
|
|
1259
|
+
# return_type
|
|
1260
|
+
return_type = opts[:debug_return_type] || 'RulesetResp'
|
|
1261
|
+
|
|
1262
|
+
# auth_names
|
|
1263
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1264
|
+
|
|
1265
|
+
new_options = opts.merge(
|
|
1266
|
+
:operation => :get_tag_pipelines_ruleset,
|
|
1267
|
+
:header_params => header_params,
|
|
1268
|
+
:query_params => query_params,
|
|
1269
|
+
:form_params => form_params,
|
|
1270
|
+
:body => post_body,
|
|
1271
|
+
:auth_names => auth_names,
|
|
1272
|
+
:return_type => return_type,
|
|
1273
|
+
:api_version => "V2"
|
|
1274
|
+
)
|
|
1275
|
+
|
|
1276
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1277
|
+
if @api_client.config.debugging
|
|
1278
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#get_tag_pipelines_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1279
|
+
end
|
|
1280
|
+
return data, status_code, headers
|
|
1281
|
+
end
|
|
1282
|
+
|
|
1283
|
+
# List budgets.
|
|
1284
|
+
#
|
|
1285
|
+
# @see #list_budgets_with_http_info
|
|
1286
|
+
def list_budgets(opts = {})
|
|
1287
|
+
data, _status_code, _headers = list_budgets_with_http_info(opts)
|
|
1288
|
+
data
|
|
1289
|
+
end
|
|
1290
|
+
|
|
1291
|
+
# List budgets.
|
|
1292
|
+
#
|
|
1293
|
+
# List budgets.
|
|
1294
|
+
#
|
|
1295
|
+
# @param opts [Hash] the optional parameters
|
|
1296
|
+
# @return [Array<(BudgetArray, Integer, Hash)>] BudgetArray data, response status code and response headers
|
|
1297
|
+
def list_budgets_with_http_info(opts = {})
|
|
1298
|
+
|
|
1299
|
+
if @api_client.config.debugging
|
|
1300
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_budgets ...'
|
|
1301
|
+
end
|
|
1302
|
+
# resource path
|
|
1303
|
+
local_var_path = '/api/v2/cost/budgets'
|
|
1304
|
+
|
|
1305
|
+
# query parameters
|
|
1306
|
+
query_params = opts[:query_params] || {}
|
|
1307
|
+
|
|
1308
|
+
# header parameters
|
|
1309
|
+
header_params = opts[:header_params] || {}
|
|
1310
|
+
# HTTP header 'Accept' (if needed)
|
|
1311
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1312
|
+
|
|
1313
|
+
# form parameters
|
|
1314
|
+
form_params = opts[:form_params] || {}
|
|
1315
|
+
|
|
1316
|
+
# http body (model)
|
|
1317
|
+
post_body = opts[:debug_body]
|
|
1318
|
+
|
|
1319
|
+
# return_type
|
|
1320
|
+
return_type = opts[:debug_return_type] || 'BudgetArray'
|
|
1321
|
+
|
|
1322
|
+
# auth_names
|
|
1323
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1324
|
+
|
|
1325
|
+
new_options = opts.merge(
|
|
1326
|
+
:operation => :list_budgets,
|
|
1327
|
+
:header_params => header_params,
|
|
1328
|
+
:query_params => query_params,
|
|
1329
|
+
:form_params => form_params,
|
|
1330
|
+
:body => post_body,
|
|
1331
|
+
:auth_names => auth_names,
|
|
1332
|
+
:return_type => return_type,
|
|
1333
|
+
:api_version => "V2"
|
|
1334
|
+
)
|
|
1335
|
+
|
|
1336
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1337
|
+
if @api_client.config.debugging
|
|
1338
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#list_budgets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1339
|
+
end
|
|
1340
|
+
return data, status_code, headers
|
|
1341
|
+
end
|
|
1342
|
+
|
|
1343
|
+
# List Cloud Cost Management AWS CUR configs.
|
|
1344
|
+
#
|
|
1345
|
+
# @see #list_cost_awscur_configs_with_http_info
|
|
1346
|
+
def list_cost_awscur_configs(opts = {})
|
|
1347
|
+
data, _status_code, _headers = list_cost_awscur_configs_with_http_info(opts)
|
|
1348
|
+
data
|
|
1349
|
+
end
|
|
1350
|
+
|
|
1351
|
+
# List Cloud Cost Management AWS CUR configs.
|
|
1352
|
+
#
|
|
1353
|
+
# List the AWS CUR configs.
|
|
1354
|
+
#
|
|
1355
|
+
# @param opts [Hash] the optional parameters
|
|
1356
|
+
# @return [Array<(AwsCURConfigsResponse, Integer, Hash)>] AwsCURConfigsResponse data, response status code and response headers
|
|
1357
|
+
def list_cost_awscur_configs_with_http_info(opts = {})
|
|
1358
|
+
|
|
1359
|
+
if @api_client.config.debugging
|
|
1360
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_cost_awscur_configs ...'
|
|
1361
|
+
end
|
|
1362
|
+
# resource path
|
|
1363
|
+
local_var_path = '/api/v2/cost/aws_cur_config'
|
|
1364
|
+
|
|
1365
|
+
# query parameters
|
|
1366
|
+
query_params = opts[:query_params] || {}
|
|
1367
|
+
|
|
1368
|
+
# header parameters
|
|
1369
|
+
header_params = opts[:header_params] || {}
|
|
1370
|
+
# HTTP header 'Accept' (if needed)
|
|
1371
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1372
|
+
|
|
1373
|
+
# form parameters
|
|
1374
|
+
form_params = opts[:form_params] || {}
|
|
1375
|
+
|
|
1376
|
+
# http body (model)
|
|
1377
|
+
post_body = opts[:debug_body]
|
|
1378
|
+
|
|
1379
|
+
# return_type
|
|
1380
|
+
return_type = opts[:debug_return_type] || 'AwsCURConfigsResponse'
|
|
1381
|
+
|
|
1382
|
+
# auth_names
|
|
1383
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1384
|
+
|
|
1385
|
+
new_options = opts.merge(
|
|
1386
|
+
:operation => :list_cost_awscur_configs,
|
|
1387
|
+
:header_params => header_params,
|
|
1388
|
+
:query_params => query_params,
|
|
1389
|
+
:form_params => form_params,
|
|
1390
|
+
:body => post_body,
|
|
1391
|
+
:auth_names => auth_names,
|
|
1392
|
+
:return_type => return_type,
|
|
1393
|
+
:api_version => "V2"
|
|
1394
|
+
)
|
|
1395
|
+
|
|
1396
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1397
|
+
if @api_client.config.debugging
|
|
1398
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#list_cost_awscur_configs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1399
|
+
end
|
|
1400
|
+
return data, status_code, headers
|
|
1401
|
+
end
|
|
1402
|
+
|
|
1403
|
+
# List Cloud Cost Management Azure configs.
|
|
1404
|
+
#
|
|
1405
|
+
# @see #list_cost_azure_uc_configs_with_http_info
|
|
1406
|
+
def list_cost_azure_uc_configs(opts = {})
|
|
1407
|
+
data, _status_code, _headers = list_cost_azure_uc_configs_with_http_info(opts)
|
|
1408
|
+
data
|
|
1409
|
+
end
|
|
1410
|
+
|
|
1411
|
+
# List Cloud Cost Management Azure configs.
|
|
1412
|
+
#
|
|
1413
|
+
# List the Azure configs.
|
|
1414
|
+
#
|
|
1415
|
+
# @param opts [Hash] the optional parameters
|
|
1416
|
+
# @return [Array<(AzureUCConfigsResponse, Integer, Hash)>] AzureUCConfigsResponse data, response status code and response headers
|
|
1417
|
+
def list_cost_azure_uc_configs_with_http_info(opts = {})
|
|
1418
|
+
|
|
1419
|
+
if @api_client.config.debugging
|
|
1420
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_cost_azure_uc_configs ...'
|
|
1421
|
+
end
|
|
1422
|
+
# resource path
|
|
1423
|
+
local_var_path = '/api/v2/cost/azure_uc_config'
|
|
1424
|
+
|
|
1425
|
+
# query parameters
|
|
1426
|
+
query_params = opts[:query_params] || {}
|
|
1427
|
+
|
|
1428
|
+
# header parameters
|
|
1429
|
+
header_params = opts[:header_params] || {}
|
|
1430
|
+
# HTTP header 'Accept' (if needed)
|
|
1431
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1432
|
+
|
|
1433
|
+
# form parameters
|
|
1434
|
+
form_params = opts[:form_params] || {}
|
|
1435
|
+
|
|
1436
|
+
# http body (model)
|
|
1437
|
+
post_body = opts[:debug_body]
|
|
1438
|
+
|
|
1439
|
+
# return_type
|
|
1440
|
+
return_type = opts[:debug_return_type] || 'AzureUCConfigsResponse'
|
|
1441
|
+
|
|
1442
|
+
# auth_names
|
|
1443
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1444
|
+
|
|
1445
|
+
new_options = opts.merge(
|
|
1446
|
+
:operation => :list_cost_azure_uc_configs,
|
|
1447
|
+
:header_params => header_params,
|
|
1448
|
+
:query_params => query_params,
|
|
1449
|
+
:form_params => form_params,
|
|
1450
|
+
:body => post_body,
|
|
1451
|
+
:auth_names => auth_names,
|
|
1452
|
+
:return_type => return_type,
|
|
1453
|
+
:api_version => "V2"
|
|
1454
|
+
)
|
|
1455
|
+
|
|
1456
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1457
|
+
if @api_client.config.debugging
|
|
1458
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#list_cost_azure_uc_configs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1459
|
+
end
|
|
1460
|
+
return data, status_code, headers
|
|
1461
|
+
end
|
|
1462
|
+
|
|
1463
|
+
# List Google Cloud Usage Cost configs.
|
|
1464
|
+
#
|
|
1465
|
+
# @see #list_cost_gcp_usage_cost_configs_with_http_info
|
|
1466
|
+
def list_cost_gcp_usage_cost_configs(opts = {})
|
|
1467
|
+
data, _status_code, _headers = list_cost_gcp_usage_cost_configs_with_http_info(opts)
|
|
1468
|
+
data
|
|
1469
|
+
end
|
|
1470
|
+
|
|
1471
|
+
# List Google Cloud Usage Cost configs.
|
|
1472
|
+
#
|
|
1473
|
+
# List the Google Cloud Usage Cost configs.
|
|
1474
|
+
#
|
|
1475
|
+
# @param opts [Hash] the optional parameters
|
|
1476
|
+
# @return [Array<(GCPUsageCostConfigsResponse, Integer, Hash)>] GCPUsageCostConfigsResponse data, response status code and response headers
|
|
876
1477
|
def list_cost_gcp_usage_cost_configs_with_http_info(opts = {})
|
|
877
1478
|
|
|
878
1479
|
if @api_client.config.debugging
|
|
879
|
-
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_cost_gcp_usage_cost_configs ...'
|
|
1480
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_cost_gcp_usage_cost_configs ...'
|
|
1481
|
+
end
|
|
1482
|
+
# resource path
|
|
1483
|
+
local_var_path = '/api/v2/cost/gcp_uc_config'
|
|
1484
|
+
|
|
1485
|
+
# query parameters
|
|
1486
|
+
query_params = opts[:query_params] || {}
|
|
1487
|
+
|
|
1488
|
+
# header parameters
|
|
1489
|
+
header_params = opts[:header_params] || {}
|
|
1490
|
+
# HTTP header 'Accept' (if needed)
|
|
1491
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1492
|
+
|
|
1493
|
+
# form parameters
|
|
1494
|
+
form_params = opts[:form_params] || {}
|
|
1495
|
+
|
|
1496
|
+
# http body (model)
|
|
1497
|
+
post_body = opts[:debug_body]
|
|
1498
|
+
|
|
1499
|
+
# return_type
|
|
1500
|
+
return_type = opts[:debug_return_type] || 'GCPUsageCostConfigsResponse'
|
|
1501
|
+
|
|
1502
|
+
# auth_names
|
|
1503
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1504
|
+
|
|
1505
|
+
new_options = opts.merge(
|
|
1506
|
+
:operation => :list_cost_gcp_usage_cost_configs,
|
|
1507
|
+
:header_params => header_params,
|
|
1508
|
+
:query_params => query_params,
|
|
1509
|
+
:form_params => form_params,
|
|
1510
|
+
:body => post_body,
|
|
1511
|
+
:auth_names => auth_names,
|
|
1512
|
+
:return_type => return_type,
|
|
1513
|
+
:api_version => "V2"
|
|
1514
|
+
)
|
|
1515
|
+
|
|
1516
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1517
|
+
if @api_client.config.debugging
|
|
1518
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#list_cost_gcp_usage_cost_configs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1519
|
+
end
|
|
1520
|
+
return data, status_code, headers
|
|
1521
|
+
end
|
|
1522
|
+
|
|
1523
|
+
# List custom allocation rules.
|
|
1524
|
+
#
|
|
1525
|
+
# @see #list_custom_allocation_rules_with_http_info
|
|
1526
|
+
def list_custom_allocation_rules(opts = {})
|
|
1527
|
+
data, _status_code, _headers = list_custom_allocation_rules_with_http_info(opts)
|
|
1528
|
+
data
|
|
1529
|
+
end
|
|
1530
|
+
|
|
1531
|
+
# List custom allocation rules.
|
|
1532
|
+
#
|
|
1533
|
+
# List all custom allocation rules - Retrieve a list of all custom allocation rules for the organization
|
|
1534
|
+
#
|
|
1535
|
+
# @param opts [Hash] the optional parameters
|
|
1536
|
+
# @return [Array<(ArbitraryRuleResponseArray, Integer, Hash)>] ArbitraryRuleResponseArray data, response status code and response headers
|
|
1537
|
+
def list_custom_allocation_rules_with_http_info(opts = {})
|
|
1538
|
+
|
|
1539
|
+
if @api_client.config.debugging
|
|
1540
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_custom_allocation_rules ...'
|
|
1541
|
+
end
|
|
1542
|
+
# resource path
|
|
1543
|
+
local_var_path = '/api/v2/cost/arbitrary_rule'
|
|
1544
|
+
|
|
1545
|
+
# query parameters
|
|
1546
|
+
query_params = opts[:query_params] || {}
|
|
1547
|
+
|
|
1548
|
+
# header parameters
|
|
1549
|
+
header_params = opts[:header_params] || {}
|
|
1550
|
+
# HTTP header 'Accept' (if needed)
|
|
1551
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1552
|
+
|
|
1553
|
+
# form parameters
|
|
1554
|
+
form_params = opts[:form_params] || {}
|
|
1555
|
+
|
|
1556
|
+
# http body (model)
|
|
1557
|
+
post_body = opts[:debug_body]
|
|
1558
|
+
|
|
1559
|
+
# return_type
|
|
1560
|
+
return_type = opts[:debug_return_type] || 'ArbitraryRuleResponseArray'
|
|
1561
|
+
|
|
1562
|
+
# auth_names
|
|
1563
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1564
|
+
|
|
1565
|
+
new_options = opts.merge(
|
|
1566
|
+
:operation => :list_custom_allocation_rules,
|
|
1567
|
+
:header_params => header_params,
|
|
1568
|
+
:query_params => query_params,
|
|
1569
|
+
:form_params => form_params,
|
|
1570
|
+
:body => post_body,
|
|
1571
|
+
:auth_names => auth_names,
|
|
1572
|
+
:return_type => return_type,
|
|
1573
|
+
:api_version => "V2"
|
|
1574
|
+
)
|
|
1575
|
+
|
|
1576
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1577
|
+
if @api_client.config.debugging
|
|
1578
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#list_custom_allocation_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1579
|
+
end
|
|
1580
|
+
return data, status_code, headers
|
|
1581
|
+
end
|
|
1582
|
+
|
|
1583
|
+
# List Custom Costs files.
|
|
1584
|
+
#
|
|
1585
|
+
# @see #list_custom_costs_files_with_http_info
|
|
1586
|
+
def list_custom_costs_files(opts = {})
|
|
1587
|
+
data, _status_code, _headers = list_custom_costs_files_with_http_info(opts)
|
|
1588
|
+
data
|
|
1589
|
+
end
|
|
1590
|
+
|
|
1591
|
+
# List Custom Costs files.
|
|
1592
|
+
#
|
|
1593
|
+
# List the Custom Costs files.
|
|
1594
|
+
#
|
|
1595
|
+
# @param opts [Hash] the optional parameters
|
|
1596
|
+
# @option opts [Integer] :page_number Page number for pagination
|
|
1597
|
+
# @option opts [Integer] :page_size Page size for pagination
|
|
1598
|
+
# @option opts [String] :filter_status Filter by file status
|
|
1599
|
+
# @option opts [String] :sort Sort key with optional descending prefix
|
|
1600
|
+
# @return [Array<(CustomCostsFileListResponse, Integer, Hash)>] CustomCostsFileListResponse data, response status code and response headers
|
|
1601
|
+
def list_custom_costs_files_with_http_info(opts = {})
|
|
1602
|
+
|
|
1603
|
+
if @api_client.config.debugging
|
|
1604
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_custom_costs_files ...'
|
|
1605
|
+
end
|
|
1606
|
+
# resource path
|
|
1607
|
+
local_var_path = '/api/v2/cost/custom_costs'
|
|
1608
|
+
|
|
1609
|
+
# query parameters
|
|
1610
|
+
query_params = opts[:query_params] || {}
|
|
1611
|
+
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
1612
|
+
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
1613
|
+
query_params[:'filter[status]'] = opts[:'filter_status'] if !opts[:'filter_status'].nil?
|
|
1614
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1615
|
+
|
|
1616
|
+
# header parameters
|
|
1617
|
+
header_params = opts[:header_params] || {}
|
|
1618
|
+
# HTTP header 'Accept' (if needed)
|
|
1619
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1620
|
+
|
|
1621
|
+
# form parameters
|
|
1622
|
+
form_params = opts[:form_params] || {}
|
|
1623
|
+
|
|
1624
|
+
# http body (model)
|
|
1625
|
+
post_body = opts[:debug_body]
|
|
1626
|
+
|
|
1627
|
+
# return_type
|
|
1628
|
+
return_type = opts[:debug_return_type] || 'CustomCostsFileListResponse'
|
|
1629
|
+
|
|
1630
|
+
# auth_names
|
|
1631
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1632
|
+
|
|
1633
|
+
new_options = opts.merge(
|
|
1634
|
+
:operation => :list_custom_costs_files,
|
|
1635
|
+
:header_params => header_params,
|
|
1636
|
+
:query_params => query_params,
|
|
1637
|
+
:form_params => form_params,
|
|
1638
|
+
:body => post_body,
|
|
1639
|
+
:auth_names => auth_names,
|
|
1640
|
+
:return_type => return_type,
|
|
1641
|
+
:api_version => "V2"
|
|
1642
|
+
)
|
|
1643
|
+
|
|
1644
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1645
|
+
if @api_client.config.debugging
|
|
1646
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#list_custom_costs_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1647
|
+
end
|
|
1648
|
+
return data, status_code, headers
|
|
1649
|
+
end
|
|
1650
|
+
|
|
1651
|
+
# List tag pipeline rulesets.
|
|
1652
|
+
#
|
|
1653
|
+
# @see #list_tag_pipelines_rulesets_with_http_info
|
|
1654
|
+
def list_tag_pipelines_rulesets(opts = {})
|
|
1655
|
+
data, _status_code, _headers = list_tag_pipelines_rulesets_with_http_info(opts)
|
|
1656
|
+
data
|
|
1657
|
+
end
|
|
1658
|
+
|
|
1659
|
+
# List tag pipeline rulesets.
|
|
1660
|
+
#
|
|
1661
|
+
# List all tag pipeline rulesets - Retrieve a list of all tag pipeline rulesets for the organization
|
|
1662
|
+
#
|
|
1663
|
+
# @param opts [Hash] the optional parameters
|
|
1664
|
+
# @return [Array<(RulesetRespArray, Integer, Hash)>] RulesetRespArray data, response status code and response headers
|
|
1665
|
+
def list_tag_pipelines_rulesets_with_http_info(opts = {})
|
|
1666
|
+
|
|
1667
|
+
if @api_client.config.debugging
|
|
1668
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_tag_pipelines_rulesets ...'
|
|
1669
|
+
end
|
|
1670
|
+
# resource path
|
|
1671
|
+
local_var_path = '/api/v2/tags/enrichment'
|
|
1672
|
+
|
|
1673
|
+
# query parameters
|
|
1674
|
+
query_params = opts[:query_params] || {}
|
|
1675
|
+
|
|
1676
|
+
# header parameters
|
|
1677
|
+
header_params = opts[:header_params] || {}
|
|
1678
|
+
# HTTP header 'Accept' (if needed)
|
|
1679
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1680
|
+
|
|
1681
|
+
# form parameters
|
|
1682
|
+
form_params = opts[:form_params] || {}
|
|
1683
|
+
|
|
1684
|
+
# http body (model)
|
|
1685
|
+
post_body = opts[:debug_body]
|
|
1686
|
+
|
|
1687
|
+
# return_type
|
|
1688
|
+
return_type = opts[:debug_return_type] || 'RulesetRespArray'
|
|
1689
|
+
|
|
1690
|
+
# auth_names
|
|
1691
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1692
|
+
|
|
1693
|
+
new_options = opts.merge(
|
|
1694
|
+
:operation => :list_tag_pipelines_rulesets,
|
|
1695
|
+
:header_params => header_params,
|
|
1696
|
+
:query_params => query_params,
|
|
1697
|
+
:form_params => form_params,
|
|
1698
|
+
:body => post_body,
|
|
1699
|
+
:auth_names => auth_names,
|
|
1700
|
+
:return_type => return_type,
|
|
1701
|
+
:api_version => "V2"
|
|
1702
|
+
)
|
|
1703
|
+
|
|
1704
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1705
|
+
if @api_client.config.debugging
|
|
1706
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#list_tag_pipelines_rulesets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1707
|
+
end
|
|
1708
|
+
return data, status_code, headers
|
|
1709
|
+
end
|
|
1710
|
+
|
|
1711
|
+
# Reorder custom allocation rules.
|
|
1712
|
+
#
|
|
1713
|
+
# @see #reorder_custom_allocation_rules_with_http_info
|
|
1714
|
+
def reorder_custom_allocation_rules(body, opts = {})
|
|
1715
|
+
reorder_custom_allocation_rules_with_http_info(body, opts)
|
|
1716
|
+
nil
|
|
1717
|
+
end
|
|
1718
|
+
|
|
1719
|
+
# Reorder custom allocation rules.
|
|
1720
|
+
#
|
|
1721
|
+
# Reorder custom allocation rules - Change the execution order of custom allocation rules.
|
|
1722
|
+
#
|
|
1723
|
+
# **Important**: You must provide the **complete list** of all rule IDs in the desired execution order. The API will reorder ALL rules according to the provided sequence.
|
|
1724
|
+
#
|
|
1725
|
+
# Rules are executed in the order specified, with lower indices (earlier in the array) having higher priority.
|
|
1726
|
+
#
|
|
1727
|
+
# **Example**: If you have rules with IDs [123, 456, 789] and want to change order from 123→456→789 to 456→123→789, send: [{"id": "456"}, {"id": "123"}, {"id": "789"}]
|
|
1728
|
+
#
|
|
1729
|
+
# @param body [ReorderRuleResourceArray]
|
|
1730
|
+
# @param opts [Hash] the optional parameters
|
|
1731
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1732
|
+
def reorder_custom_allocation_rules_with_http_info(body, opts = {})
|
|
1733
|
+
|
|
1734
|
+
if @api_client.config.debugging
|
|
1735
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.reorder_custom_allocation_rules ...'
|
|
1736
|
+
end
|
|
1737
|
+
# verify the required parameter 'body' is set
|
|
1738
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1739
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.reorder_custom_allocation_rules"
|
|
880
1740
|
end
|
|
881
1741
|
# resource path
|
|
882
|
-
local_var_path = '/api/v2/cost/
|
|
1742
|
+
local_var_path = '/api/v2/cost/arbitrary_rule/reorder'
|
|
883
1743
|
|
|
884
1744
|
# query parameters
|
|
885
1745
|
query_params = opts[:query_params] || {}
|
|
@@ -887,22 +1747,24 @@ module DatadogAPIClient::V2
|
|
|
887
1747
|
# header parameters
|
|
888
1748
|
header_params = opts[:header_params] || {}
|
|
889
1749
|
# HTTP header 'Accept' (if needed)
|
|
890
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
1750
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1751
|
+
# HTTP header 'Content-Type'
|
|
1752
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
891
1753
|
|
|
892
1754
|
# form parameters
|
|
893
1755
|
form_params = opts[:form_params] || {}
|
|
894
1756
|
|
|
895
1757
|
# http body (model)
|
|
896
|
-
post_body = opts[:debug_body]
|
|
1758
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
897
1759
|
|
|
898
1760
|
# return_type
|
|
899
|
-
return_type = opts[:debug_return_type]
|
|
1761
|
+
return_type = opts[:debug_return_type]
|
|
900
1762
|
|
|
901
1763
|
# auth_names
|
|
902
1764
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
903
1765
|
|
|
904
1766
|
new_options = opts.merge(
|
|
905
|
-
:operation => :
|
|
1767
|
+
:operation => :reorder_custom_allocation_rules,
|
|
906
1768
|
:header_params => header_params,
|
|
907
1769
|
:query_params => query_params,
|
|
908
1770
|
:form_params => form_params,
|
|
@@ -912,65 +1774,64 @@ module DatadogAPIClient::V2
|
|
|
912
1774
|
:api_version => "V2"
|
|
913
1775
|
)
|
|
914
1776
|
|
|
915
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::
|
|
1777
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
916
1778
|
if @api_client.config.debugging
|
|
917
|
-
@api_client.config.logger.debug "API called: CloudCostManagementAPI#
|
|
1779
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#reorder_custom_allocation_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
918
1780
|
end
|
|
919
1781
|
return data, status_code, headers
|
|
920
1782
|
end
|
|
921
1783
|
|
|
922
|
-
#
|
|
1784
|
+
# Reorder tag pipeline rulesets.
|
|
923
1785
|
#
|
|
924
|
-
# @see #
|
|
925
|
-
def
|
|
926
|
-
|
|
927
|
-
|
|
1786
|
+
# @see #reorder_tag_pipelines_rulesets_with_http_info
|
|
1787
|
+
def reorder_tag_pipelines_rulesets(body, opts = {})
|
|
1788
|
+
reorder_tag_pipelines_rulesets_with_http_info(body, opts)
|
|
1789
|
+
nil
|
|
928
1790
|
end
|
|
929
1791
|
|
|
930
|
-
#
|
|
1792
|
+
# Reorder tag pipeline rulesets.
|
|
931
1793
|
#
|
|
932
|
-
#
|
|
1794
|
+
# Reorder tag pipeline rulesets - Change the execution order of tag pipeline rulesets
|
|
933
1795
|
#
|
|
1796
|
+
# @param body [ReorderRulesetResourceArray]
|
|
934
1797
|
# @param opts [Hash] the optional parameters
|
|
935
|
-
# @
|
|
936
|
-
|
|
937
|
-
# @option opts [String] :filter_status Filter by file status
|
|
938
|
-
# @option opts [String] :sort Sort key with optional descending prefix
|
|
939
|
-
# @return [Array<(CustomCostsFileListResponse, Integer, Hash)>] CustomCostsFileListResponse data, response status code and response headers
|
|
940
|
-
def list_custom_costs_files_with_http_info(opts = {})
|
|
1798
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1799
|
+
def reorder_tag_pipelines_rulesets_with_http_info(body, opts = {})
|
|
941
1800
|
|
|
942
1801
|
if @api_client.config.debugging
|
|
943
|
-
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.
|
|
1802
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.reorder_tag_pipelines_rulesets ...'
|
|
1803
|
+
end
|
|
1804
|
+
# verify the required parameter 'body' is set
|
|
1805
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1806
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.reorder_tag_pipelines_rulesets"
|
|
944
1807
|
end
|
|
945
1808
|
# resource path
|
|
946
|
-
local_var_path = '/api/v2/
|
|
1809
|
+
local_var_path = '/api/v2/tags/enrichment/reorder'
|
|
947
1810
|
|
|
948
1811
|
# query parameters
|
|
949
1812
|
query_params = opts[:query_params] || {}
|
|
950
|
-
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
951
|
-
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
952
|
-
query_params[:'filter[status]'] = opts[:'filter_status'] if !opts[:'filter_status'].nil?
|
|
953
|
-
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
954
1813
|
|
|
955
1814
|
# header parameters
|
|
956
1815
|
header_params = opts[:header_params] || {}
|
|
957
1816
|
# HTTP header 'Accept' (if needed)
|
|
958
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
1817
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1818
|
+
# HTTP header 'Content-Type'
|
|
1819
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
959
1820
|
|
|
960
1821
|
# form parameters
|
|
961
1822
|
form_params = opts[:form_params] || {}
|
|
962
1823
|
|
|
963
1824
|
# http body (model)
|
|
964
|
-
post_body = opts[:debug_body]
|
|
1825
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
965
1826
|
|
|
966
1827
|
# return_type
|
|
967
|
-
return_type = opts[:debug_return_type]
|
|
1828
|
+
return_type = opts[:debug_return_type]
|
|
968
1829
|
|
|
969
1830
|
# auth_names
|
|
970
1831
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
971
1832
|
|
|
972
1833
|
new_options = opts.merge(
|
|
973
|
-
:operation => :
|
|
1834
|
+
:operation => :reorder_tag_pipelines_rulesets,
|
|
974
1835
|
:header_params => header_params,
|
|
975
1836
|
:query_params => query_params,
|
|
976
1837
|
:form_params => form_params,
|
|
@@ -980,9 +1841,9 @@ module DatadogAPIClient::V2
|
|
|
980
1841
|
:api_version => "V2"
|
|
981
1842
|
)
|
|
982
1843
|
|
|
983
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::
|
|
1844
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
984
1845
|
if @api_client.config.debugging
|
|
985
|
-
@api_client.config.logger.debug "API called: CloudCostManagementAPI#
|
|
1846
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#reorder_tag_pipelines_rulesets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
986
1847
|
end
|
|
987
1848
|
return data, status_code, headers
|
|
988
1849
|
end
|
|
@@ -1131,7 +1992,7 @@ module DatadogAPIClient::V2
|
|
|
1131
1992
|
return data, status_code, headers
|
|
1132
1993
|
end
|
|
1133
1994
|
|
|
1134
|
-
# Update Cloud
|
|
1995
|
+
# Update Google Cloud Usage Cost config.
|
|
1135
1996
|
#
|
|
1136
1997
|
# @see #update_cost_gcp_usage_cost_config_with_http_info
|
|
1137
1998
|
def update_cost_gcp_usage_cost_config(cloud_account_id, body, opts = {})
|
|
@@ -1139,9 +2000,9 @@ module DatadogAPIClient::V2
|
|
|
1139
2000
|
data
|
|
1140
2001
|
end
|
|
1141
2002
|
|
|
1142
|
-
# Update Cloud
|
|
2003
|
+
# Update Google Cloud Usage Cost config.
|
|
1143
2004
|
#
|
|
1144
|
-
# Update the status of an
|
|
2005
|
+
# Update the status of an Google Cloud Usage Cost config (active/archived).
|
|
1145
2006
|
#
|
|
1146
2007
|
# @param cloud_account_id [Integer] Cloud Account id.
|
|
1147
2008
|
# @param body [GCPUsageCostConfigPatchRequest]
|
|
@@ -1203,6 +2064,163 @@ module DatadogAPIClient::V2
|
|
|
1203
2064
|
return data, status_code, headers
|
|
1204
2065
|
end
|
|
1205
2066
|
|
|
2067
|
+
# Update custom allocation rule.
|
|
2068
|
+
#
|
|
2069
|
+
# @see #update_custom_allocation_rule_with_http_info
|
|
2070
|
+
def update_custom_allocation_rule(rule_id, body, opts = {})
|
|
2071
|
+
data, _status_code, _headers = update_custom_allocation_rule_with_http_info(rule_id, body, opts)
|
|
2072
|
+
data
|
|
2073
|
+
end
|
|
2074
|
+
|
|
2075
|
+
# Update custom allocation rule.
|
|
2076
|
+
#
|
|
2077
|
+
# Update an existing custom allocation rule with new filters and allocation strategy.
|
|
2078
|
+
#
|
|
2079
|
+
# **Strategy Methods:**
|
|
2080
|
+
# - **PROPORTIONAL/EVEN**: Allocates costs proportionally/evenly based on existing costs. Requires: granularity, allocated_by_tag_keys. Optional: based_on_costs, allocated_by_filters, evaluate_grouped_by_tag_keys, evaluate_grouped_by_filters.
|
|
2081
|
+
# - **PROPORTIONAL_TIMESERIES/EVEN_TIMESERIES**: Allocates based on timeseries data. Requires: granularity, based_on_timeseries. Optional: evaluate_grouped_by_tag_keys.
|
|
2082
|
+
# - **PERCENT**: Allocates fixed percentages to specific tags. Requires: allocated_by (array of percentage allocations).
|
|
2083
|
+
# - **USAGE_METRIC**: Allocates based on usage metrics (implementation varies).
|
|
2084
|
+
#
|
|
2085
|
+
# **Filter Conditions:**
|
|
2086
|
+
# - Use **value** for single-value conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is all values", "is untagged"
|
|
2087
|
+
# - Use **values** for multi-value conditions: "in", "not in"
|
|
2088
|
+
# - Cannot use both value and values simultaneously.
|
|
2089
|
+
#
|
|
2090
|
+
# **Supported operators**: is, is not, is all values, is untagged, contains, does not contain, in, not in, =, !=, like, not like
|
|
2091
|
+
#
|
|
2092
|
+
# @param rule_id [Integer] The unique identifier of the custom allocation rule
|
|
2093
|
+
# @param body [ArbitraryCostUpsertRequest]
|
|
2094
|
+
# @param opts [Hash] the optional parameters
|
|
2095
|
+
# @return [Array<(ArbitraryRuleResponse, Integer, Hash)>] ArbitraryRuleResponse data, response status code and response headers
|
|
2096
|
+
def update_custom_allocation_rule_with_http_info(rule_id, body, opts = {})
|
|
2097
|
+
|
|
2098
|
+
if @api_client.config.debugging
|
|
2099
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.update_custom_allocation_rule ...'
|
|
2100
|
+
end
|
|
2101
|
+
# verify the required parameter 'rule_id' is set
|
|
2102
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
2103
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling CloudCostManagementAPI.update_custom_allocation_rule"
|
|
2104
|
+
end
|
|
2105
|
+
# verify the required parameter 'body' is set
|
|
2106
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
2107
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.update_custom_allocation_rule"
|
|
2108
|
+
end
|
|
2109
|
+
# resource path
|
|
2110
|
+
local_var_path = '/api/v2/cost/arbitrary_rule/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
2111
|
+
|
|
2112
|
+
# query parameters
|
|
2113
|
+
query_params = opts[:query_params] || {}
|
|
2114
|
+
|
|
2115
|
+
# header parameters
|
|
2116
|
+
header_params = opts[:header_params] || {}
|
|
2117
|
+
# HTTP header 'Accept' (if needed)
|
|
2118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2119
|
+
# HTTP header 'Content-Type'
|
|
2120
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2121
|
+
|
|
2122
|
+
# form parameters
|
|
2123
|
+
form_params = opts[:form_params] || {}
|
|
2124
|
+
|
|
2125
|
+
# http body (model)
|
|
2126
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
2127
|
+
|
|
2128
|
+
# return_type
|
|
2129
|
+
return_type = opts[:debug_return_type] || 'ArbitraryRuleResponse'
|
|
2130
|
+
|
|
2131
|
+
# auth_names
|
|
2132
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
2133
|
+
|
|
2134
|
+
new_options = opts.merge(
|
|
2135
|
+
:operation => :update_custom_allocation_rule,
|
|
2136
|
+
:header_params => header_params,
|
|
2137
|
+
:query_params => query_params,
|
|
2138
|
+
:form_params => form_params,
|
|
2139
|
+
:body => post_body,
|
|
2140
|
+
:auth_names => auth_names,
|
|
2141
|
+
:return_type => return_type,
|
|
2142
|
+
:api_version => "V2"
|
|
2143
|
+
)
|
|
2144
|
+
|
|
2145
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
2146
|
+
if @api_client.config.debugging
|
|
2147
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#update_custom_allocation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2148
|
+
end
|
|
2149
|
+
return data, status_code, headers
|
|
2150
|
+
end
|
|
2151
|
+
|
|
2152
|
+
# Update tag pipeline ruleset.
|
|
2153
|
+
#
|
|
2154
|
+
# @see #update_tag_pipelines_ruleset_with_http_info
|
|
2155
|
+
def update_tag_pipelines_ruleset(ruleset_id, body, opts = {})
|
|
2156
|
+
data, _status_code, _headers = update_tag_pipelines_ruleset_with_http_info(ruleset_id, body, opts)
|
|
2157
|
+
data
|
|
2158
|
+
end
|
|
2159
|
+
|
|
2160
|
+
# Update tag pipeline ruleset.
|
|
2161
|
+
#
|
|
2162
|
+
# Update a tag pipeline ruleset - Update an existing tag pipeline ruleset with new rules and configuration
|
|
2163
|
+
#
|
|
2164
|
+
# @param ruleset_id [String] The unique identifier of the ruleset
|
|
2165
|
+
# @param body [UpdateRulesetRequest]
|
|
2166
|
+
# @param opts [Hash] the optional parameters
|
|
2167
|
+
# @return [Array<(RulesetResp, Integer, Hash)>] RulesetResp data, response status code and response headers
|
|
2168
|
+
def update_tag_pipelines_ruleset_with_http_info(ruleset_id, body, opts = {})
|
|
2169
|
+
|
|
2170
|
+
if @api_client.config.debugging
|
|
2171
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.update_tag_pipelines_ruleset ...'
|
|
2172
|
+
end
|
|
2173
|
+
# verify the required parameter 'ruleset_id' is set
|
|
2174
|
+
if @api_client.config.client_side_validation && ruleset_id.nil?
|
|
2175
|
+
fail ArgumentError, "Missing the required parameter 'ruleset_id' when calling CloudCostManagementAPI.update_tag_pipelines_ruleset"
|
|
2176
|
+
end
|
|
2177
|
+
# verify the required parameter 'body' is set
|
|
2178
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
2179
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.update_tag_pipelines_ruleset"
|
|
2180
|
+
end
|
|
2181
|
+
# resource path
|
|
2182
|
+
local_var_path = '/api/v2/tags/enrichment/{ruleset_id}'.sub('{ruleset_id}', CGI.escape(ruleset_id.to_s).gsub('%2F', '/'))
|
|
2183
|
+
|
|
2184
|
+
# query parameters
|
|
2185
|
+
query_params = opts[:query_params] || {}
|
|
2186
|
+
|
|
2187
|
+
# header parameters
|
|
2188
|
+
header_params = opts[:header_params] || {}
|
|
2189
|
+
# HTTP header 'Accept' (if needed)
|
|
2190
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2191
|
+
# HTTP header 'Content-Type'
|
|
2192
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2193
|
+
|
|
2194
|
+
# form parameters
|
|
2195
|
+
form_params = opts[:form_params] || {}
|
|
2196
|
+
|
|
2197
|
+
# http body (model)
|
|
2198
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
2199
|
+
|
|
2200
|
+
# return_type
|
|
2201
|
+
return_type = opts[:debug_return_type] || 'RulesetResp'
|
|
2202
|
+
|
|
2203
|
+
# auth_names
|
|
2204
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
2205
|
+
|
|
2206
|
+
new_options = opts.merge(
|
|
2207
|
+
:operation => :update_tag_pipelines_ruleset,
|
|
2208
|
+
:header_params => header_params,
|
|
2209
|
+
:query_params => query_params,
|
|
2210
|
+
:form_params => form_params,
|
|
2211
|
+
:body => post_body,
|
|
2212
|
+
:auth_names => auth_names,
|
|
2213
|
+
:return_type => return_type,
|
|
2214
|
+
:api_version => "V2"
|
|
2215
|
+
)
|
|
2216
|
+
|
|
2217
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
2218
|
+
if @api_client.config.debugging
|
|
2219
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#update_tag_pipelines_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2220
|
+
end
|
|
2221
|
+
return data, status_code, headers
|
|
2222
|
+
end
|
|
2223
|
+
|
|
1206
2224
|
# Upload Custom Costs file.
|
|
1207
2225
|
#
|
|
1208
2226
|
# @see #upload_custom_costs_file_with_http_info
|
|
@@ -1336,5 +2354,72 @@ module DatadogAPIClient::V2
|
|
|
1336
2354
|
end
|
|
1337
2355
|
return data, status_code, headers
|
|
1338
2356
|
end
|
|
2357
|
+
|
|
2358
|
+
# Validate query.
|
|
2359
|
+
#
|
|
2360
|
+
# @see #validate_query_with_http_info
|
|
2361
|
+
def validate_query(body, opts = {})
|
|
2362
|
+
data, _status_code, _headers = validate_query_with_http_info(body, opts)
|
|
2363
|
+
data
|
|
2364
|
+
end
|
|
2365
|
+
|
|
2366
|
+
# Validate query.
|
|
2367
|
+
#
|
|
2368
|
+
# Validate a tag pipeline query - Validate the syntax and structure of a tag pipeline query
|
|
2369
|
+
#
|
|
2370
|
+
# @param body [RulesValidateQueryRequest]
|
|
2371
|
+
# @param opts [Hash] the optional parameters
|
|
2372
|
+
# @return [Array<(RulesValidateQueryResponse, Integer, Hash)>] RulesValidateQueryResponse data, response status code and response headers
|
|
2373
|
+
def validate_query_with_http_info(body, opts = {})
|
|
2374
|
+
|
|
2375
|
+
if @api_client.config.debugging
|
|
2376
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.validate_query ...'
|
|
2377
|
+
end
|
|
2378
|
+
# verify the required parameter 'body' is set
|
|
2379
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
2380
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.validate_query"
|
|
2381
|
+
end
|
|
2382
|
+
# resource path
|
|
2383
|
+
local_var_path = '/api/v2/tags/enrichment/validate-query'
|
|
2384
|
+
|
|
2385
|
+
# query parameters
|
|
2386
|
+
query_params = opts[:query_params] || {}
|
|
2387
|
+
|
|
2388
|
+
# header parameters
|
|
2389
|
+
header_params = opts[:header_params] || {}
|
|
2390
|
+
# HTTP header 'Accept' (if needed)
|
|
2391
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2392
|
+
# HTTP header 'Content-Type'
|
|
2393
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2394
|
+
|
|
2395
|
+
# form parameters
|
|
2396
|
+
form_params = opts[:form_params] || {}
|
|
2397
|
+
|
|
2398
|
+
# http body (model)
|
|
2399
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
2400
|
+
|
|
2401
|
+
# return_type
|
|
2402
|
+
return_type = opts[:debug_return_type] || 'RulesValidateQueryResponse'
|
|
2403
|
+
|
|
2404
|
+
# auth_names
|
|
2405
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
2406
|
+
|
|
2407
|
+
new_options = opts.merge(
|
|
2408
|
+
:operation => :validate_query,
|
|
2409
|
+
:header_params => header_params,
|
|
2410
|
+
:query_params => query_params,
|
|
2411
|
+
:form_params => form_params,
|
|
2412
|
+
:body => post_body,
|
|
2413
|
+
:auth_names => auth_names,
|
|
2414
|
+
:return_type => return_type,
|
|
2415
|
+
:api_version => "V2"
|
|
2416
|
+
)
|
|
2417
|
+
|
|
2418
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
2419
|
+
if @api_client.config.debugging
|
|
2420
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#validate_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2421
|
+
end
|
|
2422
|
+
return data, status_code, headers
|
|
2423
|
+
end
|
|
1339
2424
|
end
|
|
1340
2425
|
end
|