datadog_api_client 2.24.0 → 2.25.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/.apigentools-info +4 -4
- data/.generator/conftest.py +2 -0
- data/.generator/schemas/v1/openapi.yaml +265 -8
- data/.generator/schemas/v2/openapi.yaml +1471 -32
- data/.generator/src/generator/openapi.py +4 -0
- data/CHANGELOG.md +41 -0
- data/examples/v1/azure-integration/CreateAzureIntegration.rb +1 -1
- data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +7 -1
- data/examples/v1/azure-integration/UpdateAzureIntegration.rb +7 -1
- data/examples/v1/dashboards/CreateDashboard_985012506.rb +61 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1717840259.rb +163 -0
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb +2 -0
- data/examples/v2/cloud-cost-management/DeleteCustomCostsFile.rb +5 -0
- data/examples/v2/cloud-cost-management/DeleteCustomCostsFile_372970393.rb +5 -0
- data/examples/v2/cloud-cost-management/GetCustomCostsFile.rb +5 -0
- data/examples/v2/cloud-cost-management/GetCustomCostsFile_1307381576.rb +5 -0
- data/examples/v2/cloud-cost-management/ListCustomCostsFiles.rb +5 -0
- data/examples/v2/cloud-cost-management/ListCustomCostsFiles_1968771127.rb +5 -0
- data/examples/v2/cloud-cost-management/UploadCustomCostsFile.rb +15 -0
- data/examples/v2/cloud-cost-management/UploadCustomCostsFile_4125168396.rb +19 -0
- data/examples/v2/network-device-monitoring/GetDevice.rb +5 -0
- data/examples/v2/network-device-monitoring/GetInterfaces.rb +5 -0
- data/examples/v2/network-device-monitoring/ListDeviceUserTags.rb +5 -0
- data/examples/v2/network-device-monitoring/ListDevices.rb +10 -0
- data/examples/v2/network-device-monitoring/UpdateDeviceUserTags.rb +18 -0
- data/examples/v2/roles/CreateRole.rb +0 -3
- data/examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.rb +8 -0
- data/examples/v2/security-monitoring/ConvertSecurityMonitoringRuleFromJSONToTerraform.rb +36 -0
- data/examples/v2/service-scorecards/UpdateScorecardRule.rb +24 -0
- data/examples/v2/workflow-automation/CancelWorkflowInstance.rb +5 -0
- data/examples/v2/workflow-automation/CreateWorkflowInstance.rb +13 -0
- data/examples/v2/workflow-automation/GetWorkflowInstance.rb +5 -0
- data/examples/v2/workflow-automation/ListWorkflowInstances.rb +5 -0
- data/lib/datadog_api_client/configuration.rb +1 -0
- data/lib/datadog_api_client/inflector.rb +53 -1
- data/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/hosts_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/monitors_api.rb +12 -1
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +7 -3
- data/lib/datadog_api_client/v1/models/azure_account.rb +14 -1
- data/lib/datadog_api_client/v1/models/azure_account_metrics_config.rb +85 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb +24 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb +24 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb +24 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb +24 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb +24 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb +24 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb +24 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_slo_query_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +2 -0
- data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +4 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +41 -1
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb +12 -1
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client.rb +12 -1
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop.rb +12 -1
- data/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb +12 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +61 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +81 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +61 -1
- data/lib/datadog_api_client/v2/api/api_management_api.rb +5 -5
- data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +6 -0
- data/lib/datadog_api_client/v2/api/case_management_api.rb +13 -13
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +260 -0
- data/lib/datadog_api_client/v2/api/network_device_monitoring_api.rb +362 -0
- data/lib/datadog_api_client/v2/api/organizations_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +15 -7
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +134 -0
- data/lib/datadog_api_client/v2/api/service_scorecards_api.rb +79 -1
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +8 -0
- data/lib/datadog_api_client/v2/api/workflow_automation_api.rb +307 -0
- data/lib/datadog_api_client/v2/models/api_key_relationships.rb +9 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_resource_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/custom_cost_get_response_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/custom_cost_list_response_meta.rb +90 -0
- data/lib/datadog_api_client/v2/models/custom_cost_upload_response_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_get_response.rb +90 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_line_item.rb +173 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_list_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_metadata.rb +152 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_metadata_high_level.rb +100 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb +164 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content_high_level.rb +100 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_upload_response.rb +90 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_usage_charge_period.rb +90 -0
- data/lib/datadog_api_client/v2/models/custom_costs_user.rb +100 -0
- data/lib/datadog_api_client/v2/models/device_attributes.rb +272 -0
- data/lib/datadog_api_client/v2/models/device_attributes_interface_statuses.rb +110 -0
- data/lib/datadog_api_client/v2/models/devices_list_data.rb +100 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/get_device_attributes.rb +262 -0
- data/lib/datadog_api_client/v2/models/get_device_data.rb +100 -0
- data/lib/datadog_api_client/v2/models/get_device_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/get_interfaces_data.rb +100 -0
- data/lib/datadog_api_client/v2/models/get_interfaces_response.rb +82 -0
- data/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/interface_attributes.rb +130 -0
- data/lib/datadog_api_client/v2/models/interface_attributes_status.rb +29 -0
- data/lib/datadog_api_client/v2/models/list_devices_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/list_devices_response_metadata.rb +80 -0
- data/lib/datadog_api_client/v2/models/list_devices_response_metadata_page.rb +80 -0
- data/lib/datadog_api_client/v2/models/list_tags_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/list_tags_response_data.rb +100 -0
- data/lib/datadog_api_client/v2/models/list_tags_response_data_attributes.rb +82 -0
- data/lib/datadog_api_client/v2/models/projected_cost_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/role_relationships.rb +4 -14
- data/lib/datadog_api_client/v2/models/role_update_attributes.rb +32 -4
- data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_payload.rb +63 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb +80 -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_evaluation_window.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +2 -2
- data/lib/datadog_api_client/v2/models/update_rule_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/update_rule_request_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/update_rule_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/update_rule_response_data.rb +110 -0
- data/lib/datadog_api_client/v2/models/user_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/workflow_instance_create_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/workflow_instance_create_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/workflow_instance_create_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/workflow_instance_create_response_data.rb +80 -0
- data/lib/datadog_api_client/v2/models/workflow_instance_list_item.rb +80 -0
- data/lib/datadog_api_client/v2/models/workflow_list_instances_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta_page.rb +80 -0
- data/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response_data.rb +80 -0
- data/lib/datadog_api_client/v2/models/worklflow_get_instance_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data.rb +80 -0
- data/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data_attributes.rb +80 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +76 -2
|
@@ -213,6 +213,15 @@ module DatadogAPIClient::V1
|
|
|
213
213
|
# Shows the average number of Flex Logs Compute Extra Small Instances over all hours in the current months for all organizations.
|
|
214
214
|
attr_accessor :flex_logs_compute_xsmall_avg_sum
|
|
215
215
|
|
|
216
|
+
# Shows the average number of Flex Logs Starter Instances over all hours in the current months for all organizations.
|
|
217
|
+
attr_accessor :flex_logs_starter_avg_sum
|
|
218
|
+
|
|
219
|
+
# Shows the average number of Flex Logs Starter Storage Index Instances over all hours in the current months for all organizations.
|
|
220
|
+
attr_accessor :flex_logs_starter_storage_index_avg_sum
|
|
221
|
+
|
|
222
|
+
# Shows the average number of Flex Logs Starter Storage Retention Adjustment Instances over all hours in the current months for all organizations.
|
|
223
|
+
attr_accessor :flex_logs_starter_storage_retention_adjustment_avg_sum
|
|
224
|
+
|
|
216
225
|
# Shows the average of all Flex Stored Logs over all hours in the current months for all organizations.
|
|
217
226
|
attr_accessor :flex_stored_logs_avg_sum
|
|
218
227
|
|
|
@@ -372,6 +381,12 @@ module DatadogAPIClient::V1
|
|
|
372
381
|
# Shows the sum of all browser and mobile RUM units over all hours in the current month for all organizations (To be deprecated on October 1st, 2024).
|
|
373
382
|
attr_accessor :rum_units_agg_sum
|
|
374
383
|
|
|
384
|
+
# Shows the average of all Software Composition Analysis Fargate tasks over all hours in the current months for all organizations.
|
|
385
|
+
attr_accessor :sca_fargate_count_avg_sum
|
|
386
|
+
|
|
387
|
+
# Shows the sum of the high-water marks of all Software Composition Analysis Fargate tasks over all hours in the current months for all organizations.
|
|
388
|
+
attr_accessor :sca_fargate_count_hwm_sum
|
|
389
|
+
|
|
375
390
|
# Sum of all APM bytes scanned with sensitive data scanner in the current month for all organizations.
|
|
376
391
|
attr_accessor :sds_apm_scanned_bytes_sum
|
|
377
392
|
|
|
@@ -396,6 +411,9 @@ module DatadogAPIClient::V1
|
|
|
396
411
|
# Sum of the average number of Serverless Apps for Azure and Google Cloud in the current month for all organizations.
|
|
397
412
|
attr_accessor :serverless_apps_total_count_avg_sum
|
|
398
413
|
|
|
414
|
+
# Shows the sum of all log events analyzed by Cloud SIEM over all hours in the current month for all organizations.
|
|
415
|
+
attr_accessor :siem_analyzed_logs_add_on_count_agg_sum
|
|
416
|
+
|
|
399
417
|
# Shows the first date of usage in the current month for all organizations.
|
|
400
418
|
attr_accessor :start_date
|
|
401
419
|
|
|
@@ -500,6 +518,9 @@ module DatadogAPIClient::V1
|
|
|
500
518
|
:'flex_logs_compute_medium_avg_sum' => :'flex_logs_compute_medium_avg_sum',
|
|
501
519
|
:'flex_logs_compute_small_avg_sum' => :'flex_logs_compute_small_avg_sum',
|
|
502
520
|
:'flex_logs_compute_xsmall_avg_sum' => :'flex_logs_compute_xsmall_avg_sum',
|
|
521
|
+
:'flex_logs_starter_avg_sum' => :'flex_logs_starter_avg_sum',
|
|
522
|
+
:'flex_logs_starter_storage_index_avg_sum' => :'flex_logs_starter_storage_index_avg_sum',
|
|
523
|
+
:'flex_logs_starter_storage_retention_adjustment_avg_sum' => :'flex_logs_starter_storage_retention_adjustment_avg_sum',
|
|
503
524
|
:'flex_stored_logs_avg_sum' => :'flex_stored_logs_avg_sum',
|
|
504
525
|
:'forwarding_events_bytes_agg_sum' => :'forwarding_events_bytes_agg_sum',
|
|
505
526
|
:'gcp_host_top99p_sum' => :'gcp_host_top99p_sum',
|
|
@@ -553,6 +574,8 @@ module DatadogAPIClient::V1
|
|
|
553
574
|
:'rum_session_count_agg_sum' => :'rum_session_count_agg_sum',
|
|
554
575
|
:'rum_total_session_count_agg_sum' => :'rum_total_session_count_agg_sum',
|
|
555
576
|
:'rum_units_agg_sum' => :'rum_units_agg_sum',
|
|
577
|
+
:'sca_fargate_count_avg_sum' => :'sca_fargate_count_avg_sum',
|
|
578
|
+
:'sca_fargate_count_hwm_sum' => :'sca_fargate_count_hwm_sum',
|
|
556
579
|
:'sds_apm_scanned_bytes_sum' => :'sds_apm_scanned_bytes_sum',
|
|
557
580
|
:'sds_events_scanned_bytes_sum' => :'sds_events_scanned_bytes_sum',
|
|
558
581
|
:'sds_logs_scanned_bytes_sum' => :'sds_logs_scanned_bytes_sum',
|
|
@@ -561,6 +584,7 @@ module DatadogAPIClient::V1
|
|
|
561
584
|
:'serverless_apps_azure_count_avg_sum' => :'serverless_apps_azure_count_avg_sum',
|
|
562
585
|
:'serverless_apps_google_count_avg_sum' => :'serverless_apps_google_count_avg_sum',
|
|
563
586
|
:'serverless_apps_total_count_avg_sum' => :'serverless_apps_total_count_avg_sum',
|
|
587
|
+
:'siem_analyzed_logs_add_on_count_agg_sum' => :'siem_analyzed_logs_add_on_count_agg_sum',
|
|
564
588
|
:'start_date' => :'start_date',
|
|
565
589
|
:'synthetics_browser_check_calls_count_agg_sum' => :'synthetics_browser_check_calls_count_agg_sum',
|
|
566
590
|
:'synthetics_check_calls_count_agg_sum' => :'synthetics_check_calls_count_agg_sum',
|
|
@@ -644,6 +668,9 @@ module DatadogAPIClient::V1
|
|
|
644
668
|
:'flex_logs_compute_medium_avg_sum' => :'Integer',
|
|
645
669
|
:'flex_logs_compute_small_avg_sum' => :'Integer',
|
|
646
670
|
:'flex_logs_compute_xsmall_avg_sum' => :'Integer',
|
|
671
|
+
:'flex_logs_starter_avg_sum' => :'Integer',
|
|
672
|
+
:'flex_logs_starter_storage_index_avg_sum' => :'Integer',
|
|
673
|
+
:'flex_logs_starter_storage_retention_adjustment_avg_sum' => :'Integer',
|
|
647
674
|
:'flex_stored_logs_avg_sum' => :'Integer',
|
|
648
675
|
:'forwarding_events_bytes_agg_sum' => :'Integer',
|
|
649
676
|
:'gcp_host_top99p_sum' => :'Integer',
|
|
@@ -697,6 +724,8 @@ module DatadogAPIClient::V1
|
|
|
697
724
|
:'rum_session_count_agg_sum' => :'Integer',
|
|
698
725
|
:'rum_total_session_count_agg_sum' => :'Integer',
|
|
699
726
|
:'rum_units_agg_sum' => :'Integer',
|
|
727
|
+
:'sca_fargate_count_avg_sum' => :'Integer',
|
|
728
|
+
:'sca_fargate_count_hwm_sum' => :'Integer',
|
|
700
729
|
:'sds_apm_scanned_bytes_sum' => :'Integer',
|
|
701
730
|
:'sds_events_scanned_bytes_sum' => :'Integer',
|
|
702
731
|
:'sds_logs_scanned_bytes_sum' => :'Integer',
|
|
@@ -705,6 +734,7 @@ module DatadogAPIClient::V1
|
|
|
705
734
|
:'serverless_apps_azure_count_avg_sum' => :'Integer',
|
|
706
735
|
:'serverless_apps_google_count_avg_sum' => :'Integer',
|
|
707
736
|
:'serverless_apps_total_count_avg_sum' => :'Integer',
|
|
737
|
+
:'siem_analyzed_logs_add_on_count_agg_sum' => :'Integer',
|
|
708
738
|
:'start_date' => :'Time',
|
|
709
739
|
:'synthetics_browser_check_calls_count_agg_sum' => :'Integer',
|
|
710
740
|
:'synthetics_check_calls_count_agg_sum' => :'Integer',
|
|
@@ -992,6 +1022,18 @@ module DatadogAPIClient::V1
|
|
|
992
1022
|
self.flex_logs_compute_xsmall_avg_sum = attributes[:'flex_logs_compute_xsmall_avg_sum']
|
|
993
1023
|
end
|
|
994
1024
|
|
|
1025
|
+
if attributes.key?(:'flex_logs_starter_avg_sum')
|
|
1026
|
+
self.flex_logs_starter_avg_sum = attributes[:'flex_logs_starter_avg_sum']
|
|
1027
|
+
end
|
|
1028
|
+
|
|
1029
|
+
if attributes.key?(:'flex_logs_starter_storage_index_avg_sum')
|
|
1030
|
+
self.flex_logs_starter_storage_index_avg_sum = attributes[:'flex_logs_starter_storage_index_avg_sum']
|
|
1031
|
+
end
|
|
1032
|
+
|
|
1033
|
+
if attributes.key?(:'flex_logs_starter_storage_retention_adjustment_avg_sum')
|
|
1034
|
+
self.flex_logs_starter_storage_retention_adjustment_avg_sum = attributes[:'flex_logs_starter_storage_retention_adjustment_avg_sum']
|
|
1035
|
+
end
|
|
1036
|
+
|
|
995
1037
|
if attributes.key?(:'flex_stored_logs_avg_sum')
|
|
996
1038
|
self.flex_stored_logs_avg_sum = attributes[:'flex_stored_logs_avg_sum']
|
|
997
1039
|
end
|
|
@@ -1204,6 +1246,14 @@ module DatadogAPIClient::V1
|
|
|
1204
1246
|
self.rum_units_agg_sum = attributes[:'rum_units_agg_sum']
|
|
1205
1247
|
end
|
|
1206
1248
|
|
|
1249
|
+
if attributes.key?(:'sca_fargate_count_avg_sum')
|
|
1250
|
+
self.sca_fargate_count_avg_sum = attributes[:'sca_fargate_count_avg_sum']
|
|
1251
|
+
end
|
|
1252
|
+
|
|
1253
|
+
if attributes.key?(:'sca_fargate_count_hwm_sum')
|
|
1254
|
+
self.sca_fargate_count_hwm_sum = attributes[:'sca_fargate_count_hwm_sum']
|
|
1255
|
+
end
|
|
1256
|
+
|
|
1207
1257
|
if attributes.key?(:'sds_apm_scanned_bytes_sum')
|
|
1208
1258
|
self.sds_apm_scanned_bytes_sum = attributes[:'sds_apm_scanned_bytes_sum']
|
|
1209
1259
|
end
|
|
@@ -1236,6 +1286,10 @@ module DatadogAPIClient::V1
|
|
|
1236
1286
|
self.serverless_apps_total_count_avg_sum = attributes[:'serverless_apps_total_count_avg_sum']
|
|
1237
1287
|
end
|
|
1238
1288
|
|
|
1289
|
+
if attributes.key?(:'siem_analyzed_logs_add_on_count_agg_sum')
|
|
1290
|
+
self.siem_analyzed_logs_add_on_count_agg_sum = attributes[:'siem_analyzed_logs_add_on_count_agg_sum']
|
|
1291
|
+
end
|
|
1292
|
+
|
|
1239
1293
|
if attributes.key?(:'start_date')
|
|
1240
1294
|
self.start_date = attributes[:'start_date']
|
|
1241
1295
|
end
|
|
@@ -1357,6 +1411,9 @@ module DatadogAPIClient::V1
|
|
|
1357
1411
|
flex_logs_compute_medium_avg_sum == o.flex_logs_compute_medium_avg_sum &&
|
|
1358
1412
|
flex_logs_compute_small_avg_sum == o.flex_logs_compute_small_avg_sum &&
|
|
1359
1413
|
flex_logs_compute_xsmall_avg_sum == o.flex_logs_compute_xsmall_avg_sum &&
|
|
1414
|
+
flex_logs_starter_avg_sum == o.flex_logs_starter_avg_sum &&
|
|
1415
|
+
flex_logs_starter_storage_index_avg_sum == o.flex_logs_starter_storage_index_avg_sum &&
|
|
1416
|
+
flex_logs_starter_storage_retention_adjustment_avg_sum == o.flex_logs_starter_storage_retention_adjustment_avg_sum &&
|
|
1360
1417
|
flex_stored_logs_avg_sum == o.flex_stored_logs_avg_sum &&
|
|
1361
1418
|
forwarding_events_bytes_agg_sum == o.forwarding_events_bytes_agg_sum &&
|
|
1362
1419
|
gcp_host_top99p_sum == o.gcp_host_top99p_sum &&
|
|
@@ -1410,6 +1467,8 @@ module DatadogAPIClient::V1
|
|
|
1410
1467
|
rum_session_count_agg_sum == o.rum_session_count_agg_sum &&
|
|
1411
1468
|
rum_total_session_count_agg_sum == o.rum_total_session_count_agg_sum &&
|
|
1412
1469
|
rum_units_agg_sum == o.rum_units_agg_sum &&
|
|
1470
|
+
sca_fargate_count_avg_sum == o.sca_fargate_count_avg_sum &&
|
|
1471
|
+
sca_fargate_count_hwm_sum == o.sca_fargate_count_hwm_sum &&
|
|
1413
1472
|
sds_apm_scanned_bytes_sum == o.sds_apm_scanned_bytes_sum &&
|
|
1414
1473
|
sds_events_scanned_bytes_sum == o.sds_events_scanned_bytes_sum &&
|
|
1415
1474
|
sds_logs_scanned_bytes_sum == o.sds_logs_scanned_bytes_sum &&
|
|
@@ -1418,6 +1477,7 @@ module DatadogAPIClient::V1
|
|
|
1418
1477
|
serverless_apps_azure_count_avg_sum == o.serverless_apps_azure_count_avg_sum &&
|
|
1419
1478
|
serverless_apps_google_count_avg_sum == o.serverless_apps_google_count_avg_sum &&
|
|
1420
1479
|
serverless_apps_total_count_avg_sum == o.serverless_apps_total_count_avg_sum &&
|
|
1480
|
+
siem_analyzed_logs_add_on_count_agg_sum == o.siem_analyzed_logs_add_on_count_agg_sum &&
|
|
1421
1481
|
start_date == o.start_date &&
|
|
1422
1482
|
synthetics_browser_check_calls_count_agg_sum == o.synthetics_browser_check_calls_count_agg_sum &&
|
|
1423
1483
|
synthetics_check_calls_count_agg_sum == o.synthetics_check_calls_count_agg_sum &&
|
|
@@ -1436,7 +1496,7 @@ module DatadogAPIClient::V1
|
|
|
1436
1496
|
# @return [Integer] Hash code
|
|
1437
1497
|
# @!visibility private
|
|
1438
1498
|
def hash
|
|
1439
|
-
[agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_devsecops_host_top99p_sum, apm_fargate_count_avg_sum, apm_host_top99p_sum, appsec_fargate_count_avg_sum, asm_serverless_agg_sum, audit_logs_lines_indexed_agg_sum, audit_trail_enabled_hwm_sum, avg_profiled_fargate_tasks_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, ci_pipeline_indexed_spans_agg_sum, ci_test_indexed_spans_agg_sum, ci_visibility_itr_committers_hwm_sum, ci_visibility_pipeline_committers_hwm_sum, ci_visibility_test_committers_hwm_sum, cloud_cost_management_aws_host_count_avg_sum, cloud_cost_management_azure_host_count_avg_sum, cloud_cost_management_gcp_host_count_avg_sum, cloud_cost_management_host_count_avg_sum, cloud_siem_events_agg_sum, container_avg_sum, container_excl_agent_avg_sum, container_hwm_sum, csm_container_enterprise_compliance_count_agg_sum, csm_container_enterprise_cws_count_agg_sum, csm_container_enterprise_total_count_agg_sum, csm_host_enterprise_aas_host_count_top99p_sum, csm_host_enterprise_aws_host_count_top99p_sum, csm_host_enterprise_azure_host_count_top99p_sum, csm_host_enterprise_compliance_host_count_top99p_sum, csm_host_enterprise_cws_host_count_top99p_sum, csm_host_enterprise_gcp_host_count_top99p_sum, csm_host_enterprise_total_host_count_top99p_sum, cspm_aas_host_top99p_sum, cspm_aws_host_top99p_sum, cspm_azure_host_top99p_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_gcp_host_top99p_sum, cspm_host_top99p_sum, custom_historical_ts_sum, custom_live_ts_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, error_tracking_events_agg_sum, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, flex_logs_compute_large_avg_sum, flex_logs_compute_medium_avg_sum, flex_logs_compute_small_avg_sum, flex_logs_compute_xsmall_avg_sum, flex_stored_logs_avg_sum, forwarding_events_bytes_agg_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_flutter_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_session_count_reactnative_agg_sum, mobile_rum_session_count_roku_agg_sum, mobile_rum_units_agg_sum, ndm_netflow_events_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, observability_pipelines_bytes_processed_agg_sum, online_archive_events_count_agg_sum, opentelemetry_apm_host_top99p_sum, opentelemetry_host_top99p_sum, profiling_aas_count_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_browser_and_mobile_session_count, rum_browser_legacy_session_count_agg_sum, rum_browser_lite_session_count_agg_sum, rum_browser_replay_session_count_agg_sum, rum_lite_session_count_agg_sum, rum_mobile_legacy_session_count_android_agg_sum, rum_mobile_legacy_session_count_flutter_agg_sum, rum_mobile_legacy_session_count_ios_agg_sum, rum_mobile_legacy_session_count_reactnative_agg_sum, rum_mobile_legacy_session_count_roku_agg_sum, rum_mobile_lite_session_count_android_agg_sum, rum_mobile_lite_session_count_flutter_agg_sum, rum_mobile_lite_session_count_ios_agg_sum, rum_mobile_lite_session_count_reactnative_agg_sum, rum_mobile_lite_session_count_roku_agg_sum, rum_replay_session_count_agg_sum, rum_session_count_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sds_apm_scanned_bytes_sum, sds_events_scanned_bytes_sum, sds_logs_scanned_bytes_sum, sds_rum_scanned_bytes_sum, sds_total_scanned_bytes_sum, serverless_apps_azure_count_avg_sum, serverless_apps_google_count_avg_sum, serverless_apps_total_count_avg_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, synthetics_mobile_test_runs_agg_sum, synthetics_parallel_testing_max_slots_hwm_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, universal_service_monitoring_host_top99p_sum, usage, vsphere_host_top99p_sum, vuln_management_host_count_top99p_sum, workflow_executions_usage_agg_sum].hash
|
|
1499
|
+
[agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_devsecops_host_top99p_sum, apm_fargate_count_avg_sum, apm_host_top99p_sum, appsec_fargate_count_avg_sum, asm_serverless_agg_sum, audit_logs_lines_indexed_agg_sum, audit_trail_enabled_hwm_sum, avg_profiled_fargate_tasks_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, ci_pipeline_indexed_spans_agg_sum, ci_test_indexed_spans_agg_sum, ci_visibility_itr_committers_hwm_sum, ci_visibility_pipeline_committers_hwm_sum, ci_visibility_test_committers_hwm_sum, cloud_cost_management_aws_host_count_avg_sum, cloud_cost_management_azure_host_count_avg_sum, cloud_cost_management_gcp_host_count_avg_sum, cloud_cost_management_host_count_avg_sum, cloud_siem_events_agg_sum, container_avg_sum, container_excl_agent_avg_sum, container_hwm_sum, csm_container_enterprise_compliance_count_agg_sum, csm_container_enterprise_cws_count_agg_sum, csm_container_enterprise_total_count_agg_sum, csm_host_enterprise_aas_host_count_top99p_sum, csm_host_enterprise_aws_host_count_top99p_sum, csm_host_enterprise_azure_host_count_top99p_sum, csm_host_enterprise_compliance_host_count_top99p_sum, csm_host_enterprise_cws_host_count_top99p_sum, csm_host_enterprise_gcp_host_count_top99p_sum, csm_host_enterprise_total_host_count_top99p_sum, cspm_aas_host_top99p_sum, cspm_aws_host_top99p_sum, cspm_azure_host_top99p_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_gcp_host_top99p_sum, cspm_host_top99p_sum, custom_historical_ts_sum, custom_live_ts_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, error_tracking_events_agg_sum, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, flex_logs_compute_large_avg_sum, flex_logs_compute_medium_avg_sum, flex_logs_compute_small_avg_sum, flex_logs_compute_xsmall_avg_sum, flex_logs_starter_avg_sum, flex_logs_starter_storage_index_avg_sum, flex_logs_starter_storage_retention_adjustment_avg_sum, flex_stored_logs_avg_sum, forwarding_events_bytes_agg_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_flutter_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_session_count_reactnative_agg_sum, mobile_rum_session_count_roku_agg_sum, mobile_rum_units_agg_sum, ndm_netflow_events_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, observability_pipelines_bytes_processed_agg_sum, online_archive_events_count_agg_sum, opentelemetry_apm_host_top99p_sum, opentelemetry_host_top99p_sum, profiling_aas_count_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_browser_and_mobile_session_count, rum_browser_legacy_session_count_agg_sum, rum_browser_lite_session_count_agg_sum, rum_browser_replay_session_count_agg_sum, rum_lite_session_count_agg_sum, rum_mobile_legacy_session_count_android_agg_sum, rum_mobile_legacy_session_count_flutter_agg_sum, rum_mobile_legacy_session_count_ios_agg_sum, rum_mobile_legacy_session_count_reactnative_agg_sum, rum_mobile_legacy_session_count_roku_agg_sum, rum_mobile_lite_session_count_android_agg_sum, rum_mobile_lite_session_count_flutter_agg_sum, rum_mobile_lite_session_count_ios_agg_sum, rum_mobile_lite_session_count_reactnative_agg_sum, rum_mobile_lite_session_count_roku_agg_sum, rum_replay_session_count_agg_sum, rum_session_count_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sca_fargate_count_avg_sum, sca_fargate_count_hwm_sum, sds_apm_scanned_bytes_sum, sds_events_scanned_bytes_sum, sds_logs_scanned_bytes_sum, sds_rum_scanned_bytes_sum, sds_total_scanned_bytes_sum, serverless_apps_azure_count_avg_sum, serverless_apps_google_count_avg_sum, serverless_apps_total_count_avg_sum, siem_analyzed_logs_add_on_count_agg_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, synthetics_mobile_test_runs_agg_sum, synthetics_parallel_testing_max_slots_hwm_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, universal_service_monitoring_host_top99p_sum, usage, vsphere_host_top99p_sum, vuln_management_host_count_top99p_sum, workflow_executions_usage_agg_sum].hash
|
|
1440
1500
|
end
|
|
1441
1501
|
end
|
|
1442
1502
|
end
|
|
@@ -77,7 +77,7 @@ module DatadogAPIClient::V2
|
|
|
77
77
|
return_type = opts[:debug_return_type] || 'CreateOpenAPIResponse'
|
|
78
78
|
|
|
79
79
|
# auth_names
|
|
80
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
80
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
81
81
|
|
|
82
82
|
new_options = opts.merge(
|
|
83
83
|
:operation => :create_open_api,
|
|
@@ -148,7 +148,7 @@ module DatadogAPIClient::V2
|
|
|
148
148
|
return_type = opts[:debug_return_type]
|
|
149
149
|
|
|
150
150
|
# auth_names
|
|
151
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
151
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
152
152
|
|
|
153
153
|
new_options = opts.merge(
|
|
154
154
|
:operation => :delete_open_api,
|
|
@@ -219,7 +219,7 @@ module DatadogAPIClient::V2
|
|
|
219
219
|
return_type = opts[:debug_return_type] || 'File'
|
|
220
220
|
|
|
221
221
|
# auth_names
|
|
222
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
222
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
223
223
|
|
|
224
224
|
new_options = opts.merge(
|
|
225
225
|
:operation => :get_open_api,
|
|
@@ -297,7 +297,7 @@ module DatadogAPIClient::V2
|
|
|
297
297
|
return_type = opts[:debug_return_type] || 'ListAPIsResponse'
|
|
298
298
|
|
|
299
299
|
# auth_names
|
|
300
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
300
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
301
301
|
|
|
302
302
|
new_options = opts.merge(
|
|
303
303
|
:operation => :list_apis,
|
|
@@ -374,7 +374,7 @@ module DatadogAPIClient::V2
|
|
|
374
374
|
return_type = opts[:debug_return_type] || 'UpdateOpenAPIResponse'
|
|
375
375
|
|
|
376
376
|
# auth_names
|
|
377
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
377
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
378
378
|
|
|
379
379
|
new_options = opts.merge(
|
|
380
380
|
:operation => :update_open_api,
|
|
@@ -237,6 +237,7 @@ module DatadogAPIClient::V2
|
|
|
237
237
|
# @option opts [Integer] :page_number Specific page number to return.
|
|
238
238
|
# @option opts [AuthNMappingsSort] :sort Sort AuthN Mappings depending on the given field.
|
|
239
239
|
# @option opts [String] :filter Filter all mappings by the given string.
|
|
240
|
+
# @option opts [AuthNMappingResourceType] :resource_type Filter by mapping resource type. Defaults to "role" if not specified.
|
|
240
241
|
# @return [Array<(AuthNMappingsResponse, Integer, Hash)>] AuthNMappingsResponse data, response status code and response headers
|
|
241
242
|
def list_authn_mappings_with_http_info(opts = {})
|
|
242
243
|
|
|
@@ -247,6 +248,10 @@ module DatadogAPIClient::V2
|
|
|
247
248
|
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
248
249
|
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
249
250
|
end
|
|
251
|
+
allowable_values = ['role', 'team']
|
|
252
|
+
if @api_client.config.client_side_validation && opts[:'resource_type'] && !allowable_values.include?(opts[:'resource_type'])
|
|
253
|
+
fail ArgumentError, "invalid value for \"resource_type\", must be one of #{allowable_values}"
|
|
254
|
+
end
|
|
250
255
|
# resource path
|
|
251
256
|
local_var_path = '/api/v2/authn_mappings'
|
|
252
257
|
|
|
@@ -256,6 +261,7 @@ module DatadogAPIClient::V2
|
|
|
256
261
|
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
257
262
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
258
263
|
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
|
264
|
+
query_params[:'resource_type'] = opts[:'resource_type'] if !opts[:'resource_type'].nil?
|
|
259
265
|
|
|
260
266
|
# header parameters
|
|
261
267
|
header_params = opts[:header_params] || {}
|
|
@@ -75,7 +75,7 @@ module DatadogAPIClient::V2
|
|
|
75
75
|
return_type = opts[:debug_return_type] || 'CaseResponse'
|
|
76
76
|
|
|
77
77
|
# auth_names
|
|
78
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
78
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
79
79
|
|
|
80
80
|
new_options = opts.merge(
|
|
81
81
|
:operation => :archive_case,
|
|
@@ -147,7 +147,7 @@ module DatadogAPIClient::V2
|
|
|
147
147
|
return_type = opts[:debug_return_type] || 'CaseResponse'
|
|
148
148
|
|
|
149
149
|
# auth_names
|
|
150
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
150
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
151
151
|
|
|
152
152
|
new_options = opts.merge(
|
|
153
153
|
:operation => :assign_case,
|
|
@@ -214,7 +214,7 @@ module DatadogAPIClient::V2
|
|
|
214
214
|
return_type = opts[:debug_return_type] || 'CaseResponse'
|
|
215
215
|
|
|
216
216
|
# auth_names
|
|
217
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
217
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
218
218
|
|
|
219
219
|
new_options = opts.merge(
|
|
220
220
|
:operation => :create_case,
|
|
@@ -281,7 +281,7 @@ module DatadogAPIClient::V2
|
|
|
281
281
|
return_type = opts[:debug_return_type] || 'ProjectResponse'
|
|
282
282
|
|
|
283
283
|
# auth_names
|
|
284
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
284
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
285
285
|
|
|
286
286
|
new_options = opts.merge(
|
|
287
287
|
:operation => :create_project,
|
|
@@ -346,7 +346,7 @@ module DatadogAPIClient::V2
|
|
|
346
346
|
return_type = opts[:debug_return_type]
|
|
347
347
|
|
|
348
348
|
# auth_names
|
|
349
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
349
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
350
350
|
|
|
351
351
|
new_options = opts.merge(
|
|
352
352
|
:operation => :delete_project,
|
|
@@ -411,7 +411,7 @@ module DatadogAPIClient::V2
|
|
|
411
411
|
return_type = opts[:debug_return_type] || 'CaseResponse'
|
|
412
412
|
|
|
413
413
|
# auth_names
|
|
414
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
414
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
415
415
|
|
|
416
416
|
new_options = opts.merge(
|
|
417
417
|
:operation => :get_case,
|
|
@@ -476,7 +476,7 @@ module DatadogAPIClient::V2
|
|
|
476
476
|
return_type = opts[:debug_return_type] || 'ProjectResponse'
|
|
477
477
|
|
|
478
478
|
# auth_names
|
|
479
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
479
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
480
480
|
|
|
481
481
|
new_options = opts.merge(
|
|
482
482
|
:operation => :get_project,
|
|
@@ -536,7 +536,7 @@ module DatadogAPIClient::V2
|
|
|
536
536
|
return_type = opts[:debug_return_type] || 'ProjectsResponse'
|
|
537
537
|
|
|
538
538
|
# auth_names
|
|
539
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
539
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
540
540
|
|
|
541
541
|
new_options = opts.merge(
|
|
542
542
|
:operation => :get_projects,
|
|
@@ -610,7 +610,7 @@ module DatadogAPIClient::V2
|
|
|
610
610
|
return_type = opts[:debug_return_type] || 'CasesResponse'
|
|
611
611
|
|
|
612
612
|
# auth_names
|
|
613
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
613
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
614
614
|
|
|
615
615
|
new_options = opts.merge(
|
|
616
616
|
:operation => :search_cases,
|
|
@@ -704,7 +704,7 @@ module DatadogAPIClient::V2
|
|
|
704
704
|
return_type = opts[:debug_return_type] || 'CaseResponse'
|
|
705
705
|
|
|
706
706
|
# auth_names
|
|
707
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
707
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
708
708
|
|
|
709
709
|
new_options = opts.merge(
|
|
710
710
|
:operation => :unarchive_case,
|
|
@@ -776,7 +776,7 @@ module DatadogAPIClient::V2
|
|
|
776
776
|
return_type = opts[:debug_return_type] || 'CaseResponse'
|
|
777
777
|
|
|
778
778
|
# auth_names
|
|
779
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
779
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
780
780
|
|
|
781
781
|
new_options = opts.merge(
|
|
782
782
|
:operation => :unassign_case,
|
|
@@ -848,7 +848,7 @@ module DatadogAPIClient::V2
|
|
|
848
848
|
return_type = opts[:debug_return_type] || 'CaseResponse'
|
|
849
849
|
|
|
850
850
|
# auth_names
|
|
851
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
851
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
852
852
|
|
|
853
853
|
new_options = opts.merge(
|
|
854
854
|
:operation => :update_priority,
|
|
@@ -920,7 +920,7 @@ module DatadogAPIClient::V2
|
|
|
920
920
|
return_type = opts[:debug_return_type] || 'CaseResponse'
|
|
921
921
|
|
|
922
922
|
# auth_names
|
|
923
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
923
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
924
924
|
|
|
925
925
|
new_options = opts.merge(
|
|
926
926
|
:operation => :update_status,
|
|
@@ -287,6 +287,71 @@ module DatadogAPIClient::V2
|
|
|
287
287
|
return data, status_code, headers
|
|
288
288
|
end
|
|
289
289
|
|
|
290
|
+
# Delete Custom Costs file.
|
|
291
|
+
#
|
|
292
|
+
# @see #delete_custom_costs_file_with_http_info
|
|
293
|
+
def delete_custom_costs_file(file_id, opts = {})
|
|
294
|
+
delete_custom_costs_file_with_http_info(file_id, opts)
|
|
295
|
+
nil
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Delete Custom Costs file.
|
|
299
|
+
#
|
|
300
|
+
# Delete the specified Custom Costs file.
|
|
301
|
+
#
|
|
302
|
+
# @param file_id [String] File ID.
|
|
303
|
+
# @param opts [Hash] the optional parameters
|
|
304
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
305
|
+
def delete_custom_costs_file_with_http_info(file_id, opts = {})
|
|
306
|
+
|
|
307
|
+
if @api_client.config.debugging
|
|
308
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.delete_custom_costs_file ...'
|
|
309
|
+
end
|
|
310
|
+
# verify the required parameter 'file_id' is set
|
|
311
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
|
312
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling CloudCostManagementAPI.delete_custom_costs_file"
|
|
313
|
+
end
|
|
314
|
+
# resource path
|
|
315
|
+
local_var_path = '/api/v2/cost/custom_costs/{file_id}'.sub('{file_id}', CGI.escape(file_id.to_s).gsub('%2F', '/'))
|
|
316
|
+
|
|
317
|
+
# query parameters
|
|
318
|
+
query_params = opts[:query_params] || {}
|
|
319
|
+
|
|
320
|
+
# header parameters
|
|
321
|
+
header_params = opts[:header_params] || {}
|
|
322
|
+
# HTTP header 'Accept' (if needed)
|
|
323
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
324
|
+
|
|
325
|
+
# form parameters
|
|
326
|
+
form_params = opts[:form_params] || {}
|
|
327
|
+
|
|
328
|
+
# http body (model)
|
|
329
|
+
post_body = opts[:debug_body]
|
|
330
|
+
|
|
331
|
+
# return_type
|
|
332
|
+
return_type = opts[:debug_return_type]
|
|
333
|
+
|
|
334
|
+
# auth_names
|
|
335
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
336
|
+
|
|
337
|
+
new_options = opts.merge(
|
|
338
|
+
:operation => :delete_custom_costs_file,
|
|
339
|
+
:header_params => header_params,
|
|
340
|
+
:query_params => query_params,
|
|
341
|
+
:form_params => form_params,
|
|
342
|
+
:body => post_body,
|
|
343
|
+
:auth_names => auth_names,
|
|
344
|
+
:return_type => return_type,
|
|
345
|
+
:api_version => "V2"
|
|
346
|
+
)
|
|
347
|
+
|
|
348
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
349
|
+
if @api_client.config.debugging
|
|
350
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#delete_custom_costs_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
351
|
+
end
|
|
352
|
+
return data, status_code, headers
|
|
353
|
+
end
|
|
354
|
+
|
|
290
355
|
# Cloud Cost Enabled.
|
|
291
356
|
#
|
|
292
357
|
# @see #get_cloud_cost_activity_with_http_info
|
|
@@ -347,6 +412,71 @@ module DatadogAPIClient::V2
|
|
|
347
412
|
return data, status_code, headers
|
|
348
413
|
end
|
|
349
414
|
|
|
415
|
+
# Get Custom Costs file.
|
|
416
|
+
#
|
|
417
|
+
# @see #get_custom_costs_file_with_http_info
|
|
418
|
+
def get_custom_costs_file(file_id, opts = {})
|
|
419
|
+
data, _status_code, _headers = get_custom_costs_file_with_http_info(file_id, opts)
|
|
420
|
+
data
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
# Get Custom Costs file.
|
|
424
|
+
#
|
|
425
|
+
# Fetch the specified Custom Costs file.
|
|
426
|
+
#
|
|
427
|
+
# @param file_id [String] File ID.
|
|
428
|
+
# @param opts [Hash] the optional parameters
|
|
429
|
+
# @return [Array<(CustomCostsFileGetResponse, Integer, Hash)>] CustomCostsFileGetResponse data, response status code and response headers
|
|
430
|
+
def get_custom_costs_file_with_http_info(file_id, opts = {})
|
|
431
|
+
|
|
432
|
+
if @api_client.config.debugging
|
|
433
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_custom_costs_file ...'
|
|
434
|
+
end
|
|
435
|
+
# verify the required parameter 'file_id' is set
|
|
436
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
|
437
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling CloudCostManagementAPI.get_custom_costs_file"
|
|
438
|
+
end
|
|
439
|
+
# resource path
|
|
440
|
+
local_var_path = '/api/v2/cost/custom_costs/{file_id}'.sub('{file_id}', CGI.escape(file_id.to_s).gsub('%2F', '/'))
|
|
441
|
+
|
|
442
|
+
# query parameters
|
|
443
|
+
query_params = opts[:query_params] || {}
|
|
444
|
+
|
|
445
|
+
# header parameters
|
|
446
|
+
header_params = opts[:header_params] || {}
|
|
447
|
+
# HTTP header 'Accept' (if needed)
|
|
448
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
449
|
+
|
|
450
|
+
# form parameters
|
|
451
|
+
form_params = opts[:form_params] || {}
|
|
452
|
+
|
|
453
|
+
# http body (model)
|
|
454
|
+
post_body = opts[:debug_body]
|
|
455
|
+
|
|
456
|
+
# return_type
|
|
457
|
+
return_type = opts[:debug_return_type] || 'CustomCostsFileGetResponse'
|
|
458
|
+
|
|
459
|
+
# auth_names
|
|
460
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
461
|
+
|
|
462
|
+
new_options = opts.merge(
|
|
463
|
+
:operation => :get_custom_costs_file,
|
|
464
|
+
:header_params => header_params,
|
|
465
|
+
:query_params => query_params,
|
|
466
|
+
:form_params => form_params,
|
|
467
|
+
:body => post_body,
|
|
468
|
+
:auth_names => auth_names,
|
|
469
|
+
:return_type => return_type,
|
|
470
|
+
:api_version => "V2"
|
|
471
|
+
)
|
|
472
|
+
|
|
473
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
474
|
+
if @api_client.config.debugging
|
|
475
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#get_custom_costs_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
476
|
+
end
|
|
477
|
+
return data, status_code, headers
|
|
478
|
+
end
|
|
479
|
+
|
|
350
480
|
# List related AWS accounts.
|
|
351
481
|
#
|
|
352
482
|
# @see #list_aws_related_accounts_with_http_info
|
|
@@ -359,10 +489,13 @@ module DatadogAPIClient::V2
|
|
|
359
489
|
#
|
|
360
490
|
# List the AWS accounts in an organization by calling 'organizations:ListAccounts' from the specified management account.
|
|
361
491
|
#
|
|
492
|
+
# @deprecated This API is deprecated.
|
|
493
|
+
#
|
|
362
494
|
# @param filter_management_account_id [String] The ID of the management account to filter by.
|
|
363
495
|
# @param opts [Hash] the optional parameters
|
|
364
496
|
# @return [Array<(AWSRelatedAccountsResponse, Integer, Hash)>] AWSRelatedAccountsResponse data, response status code and response headers
|
|
365
497
|
def list_aws_related_accounts_with_http_info(filter_management_account_id, opts = {})
|
|
498
|
+
warn "[DEPRECATION] `ListAWSRelatedAccounts` is deprecated."
|
|
366
499
|
|
|
367
500
|
if @api_client.config.debugging
|
|
368
501
|
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_aws_related_accounts ...'
|
|
@@ -533,6 +666,66 @@ module DatadogAPIClient::V2
|
|
|
533
666
|
return data, status_code, headers
|
|
534
667
|
end
|
|
535
668
|
|
|
669
|
+
# List Custom Costs files.
|
|
670
|
+
#
|
|
671
|
+
# @see #list_custom_costs_files_with_http_info
|
|
672
|
+
def list_custom_costs_files(opts = {})
|
|
673
|
+
data, _status_code, _headers = list_custom_costs_files_with_http_info(opts)
|
|
674
|
+
data
|
|
675
|
+
end
|
|
676
|
+
|
|
677
|
+
# List Custom Costs files.
|
|
678
|
+
#
|
|
679
|
+
# List the Custom Costs files.
|
|
680
|
+
#
|
|
681
|
+
# @param opts [Hash] the optional parameters
|
|
682
|
+
# @return [Array<(CustomCostsFileListResponse, Integer, Hash)>] CustomCostsFileListResponse data, response status code and response headers
|
|
683
|
+
def list_custom_costs_files_with_http_info(opts = {})
|
|
684
|
+
|
|
685
|
+
if @api_client.config.debugging
|
|
686
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_custom_costs_files ...'
|
|
687
|
+
end
|
|
688
|
+
# resource path
|
|
689
|
+
local_var_path = '/api/v2/cost/custom_costs'
|
|
690
|
+
|
|
691
|
+
# query parameters
|
|
692
|
+
query_params = opts[:query_params] || {}
|
|
693
|
+
|
|
694
|
+
# header parameters
|
|
695
|
+
header_params = opts[:header_params] || {}
|
|
696
|
+
# HTTP header 'Accept' (if needed)
|
|
697
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
698
|
+
|
|
699
|
+
# form parameters
|
|
700
|
+
form_params = opts[:form_params] || {}
|
|
701
|
+
|
|
702
|
+
# http body (model)
|
|
703
|
+
post_body = opts[:debug_body]
|
|
704
|
+
|
|
705
|
+
# return_type
|
|
706
|
+
return_type = opts[:debug_return_type] || 'CustomCostsFileListResponse'
|
|
707
|
+
|
|
708
|
+
# auth_names
|
|
709
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
710
|
+
|
|
711
|
+
new_options = opts.merge(
|
|
712
|
+
:operation => :list_custom_costs_files,
|
|
713
|
+
:header_params => header_params,
|
|
714
|
+
:query_params => query_params,
|
|
715
|
+
:form_params => form_params,
|
|
716
|
+
:body => post_body,
|
|
717
|
+
:auth_names => auth_names,
|
|
718
|
+
:return_type => return_type,
|
|
719
|
+
:api_version => "V2"
|
|
720
|
+
)
|
|
721
|
+
|
|
722
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
723
|
+
if @api_client.config.debugging
|
|
724
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#list_custom_costs_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
725
|
+
end
|
|
726
|
+
return data, status_code, headers
|
|
727
|
+
end
|
|
728
|
+
|
|
536
729
|
# Update Cloud Cost Management AWS CUR config.
|
|
537
730
|
#
|
|
538
731
|
# @see #update_cost_awscur_config_with_http_info
|
|
@@ -676,5 +869,72 @@ module DatadogAPIClient::V2
|
|
|
676
869
|
end
|
|
677
870
|
return data, status_code, headers
|
|
678
871
|
end
|
|
872
|
+
|
|
873
|
+
# Upload Custom Costs file.
|
|
874
|
+
#
|
|
875
|
+
# @see #upload_custom_costs_file_with_http_info
|
|
876
|
+
def upload_custom_costs_file(body, opts = {})
|
|
877
|
+
data, _status_code, _headers = upload_custom_costs_file_with_http_info(body, opts)
|
|
878
|
+
data
|
|
879
|
+
end
|
|
880
|
+
|
|
881
|
+
# Upload Custom Costs file.
|
|
882
|
+
#
|
|
883
|
+
# Upload a Custom Costs file.
|
|
884
|
+
#
|
|
885
|
+
# @param body [Array<CustomCostsFileLineItem>]
|
|
886
|
+
# @param opts [Hash] the optional parameters
|
|
887
|
+
# @return [Array<(CustomCostsFileUploadResponse, Integer, Hash)>] CustomCostsFileUploadResponse data, response status code and response headers
|
|
888
|
+
def upload_custom_costs_file_with_http_info(body, opts = {})
|
|
889
|
+
|
|
890
|
+
if @api_client.config.debugging
|
|
891
|
+
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.upload_custom_costs_file ...'
|
|
892
|
+
end
|
|
893
|
+
# verify the required parameter 'body' is set
|
|
894
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
895
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CloudCostManagementAPI.upload_custom_costs_file"
|
|
896
|
+
end
|
|
897
|
+
# resource path
|
|
898
|
+
local_var_path = '/api/v2/cost/custom_costs'
|
|
899
|
+
|
|
900
|
+
# query parameters
|
|
901
|
+
query_params = opts[:query_params] || {}
|
|
902
|
+
|
|
903
|
+
# header parameters
|
|
904
|
+
header_params = opts[:header_params] || {}
|
|
905
|
+
# HTTP header 'Accept' (if needed)
|
|
906
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
907
|
+
# HTTP header 'Content-Type'
|
|
908
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
909
|
+
|
|
910
|
+
# form parameters
|
|
911
|
+
form_params = opts[:form_params] || {}
|
|
912
|
+
|
|
913
|
+
# http body (model)
|
|
914
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
915
|
+
|
|
916
|
+
# return_type
|
|
917
|
+
return_type = opts[:debug_return_type] || 'CustomCostsFileUploadResponse'
|
|
918
|
+
|
|
919
|
+
# auth_names
|
|
920
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
921
|
+
|
|
922
|
+
new_options = opts.merge(
|
|
923
|
+
:operation => :upload_custom_costs_file,
|
|
924
|
+
:header_params => header_params,
|
|
925
|
+
:query_params => query_params,
|
|
926
|
+
:form_params => form_params,
|
|
927
|
+
:body => post_body,
|
|
928
|
+
:auth_names => auth_names,
|
|
929
|
+
:return_type => return_type,
|
|
930
|
+
:api_version => "V2"
|
|
931
|
+
)
|
|
932
|
+
|
|
933
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
|
|
934
|
+
if @api_client.config.debugging
|
|
935
|
+
@api_client.config.logger.debug "API called: CloudCostManagementAPI#upload_custom_costs_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
936
|
+
end
|
|
937
|
+
return data, status_code, headers
|
|
938
|
+
end
|
|
679
939
|
end
|
|
680
940
|
end
|