datadog_api_client 2.21.0 → 2.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +308 -695
  4. data/.generator/schemas/v2/openapi.yaml +664 -185
  5. data/.github/workflows/prepare_release.yml +2 -2
  6. data/.github/workflows/publish.yml +2 -2
  7. data/.github/workflows/release.yml +2 -2
  8. data/.github/workflows/test.yml +1 -1
  9. data/CHANGELOG.md +41 -0
  10. data/Gemfile +1 -1
  11. data/examples/v1/aws-integration/CreateAWSAccount.rb +1 -1
  12. data/examples/v1/aws-integration/CreateNewAWSExternalID.rb +1 -0
  13. data/examples/v1/aws-integration/UpdateAWSAccount.rb +1 -1
  14. data/examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.rb +118 -0
  15. data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +9 -0
  16. data/examples/v1/synthetics/CreateSyntheticsAPITest_960766374.rb +8 -0
  17. data/examples/v1/synthetics/UpdateAPITest.rb +8 -0
  18. data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -0
  19. data/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb +2 -2
  20. data/examples/v2/authn-mappings/CreateAuthNMapping.rb +1 -1
  21. data/examples/v2/authn-mappings/UpdateAuthNMapping.rb +1 -1
  22. data/examples/v2/{cloud-workload-security → csm-threats}/CreateCSMThreatsAgentRule.rb +2 -2
  23. data/examples/v2/{cloud-workload-security → csm-threats}/CreateCloudWorkloadSecurityAgentRule.rb +2 -2
  24. data/examples/v2/{cloud-workload-security → csm-threats}/DeleteCSMThreatsAgentRule.rb +1 -1
  25. data/examples/v2/{cloud-workload-security → csm-threats}/DeleteCloudWorkloadSecurityAgentRule.rb +1 -1
  26. data/examples/v2/{cloud-workload-security → csm-threats}/DownloadCSMThreatsPolicy.rb +1 -1
  27. data/examples/v2/{cloud-workload-security → csm-threats}/DownloadCloudWorkloadPolicyFile.rb +1 -1
  28. data/examples/v2/{cloud-workload-security → csm-threats}/GetCSMThreatsAgentRule.rb +1 -1
  29. data/examples/v2/{cloud-workload-security → csm-threats}/GetCloudWorkloadSecurityAgentRule.rb +1 -1
  30. data/examples/v2/{cloud-workload-security → csm-threats}/ListCSMThreatsAgentRules.rb +1 -1
  31. data/examples/v2/{cloud-workload-security → csm-threats}/ListCloudWorkloadSecurityAgentRules.rb +1 -1
  32. data/examples/v2/{cloud-workload-security → csm-threats}/UpdateCSMThreatsAgentRule.rb +1 -1
  33. data/examples/v2/{cloud-workload-security → csm-threats}/UpdateCloudWorkloadSecurityAgentRule.rb +1 -1
  34. data/examples/v2/gcp-integration/CreateGCPSTSAccount.rb +1 -1
  35. data/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb +1 -1
  36. data/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb +1 -1
  37. data/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.rb +1 -1
  38. data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +1 -1
  39. data/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.rb +1 -1
  40. data/examples/v2/gcp-integration/UpdateGCPSTSAccount.rb +1 -1
  41. data/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.rb +1 -1
  42. data/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.rb +1 -1
  43. data/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.rb +4 -0
  44. data/examples/v2/metrics/QueryScalarData_3112571352.rb +2 -2
  45. data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +3 -3
  46. data/examples/v2/roles/CreateRole.rb +14 -2
  47. data/examples/v2/roles/CreateRole_3862893229.rb +27 -0
  48. data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb +1 -1
  49. data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.rb +19 -0
  50. data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule.rb +42 -0
  51. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +4 -0
  52. data/examples/v2/service-level-objectives/CreateSLOReportJob.rb +20 -0
  53. data/examples/v2/service-level-objectives/GetSLOReport.rb +8 -0
  54. data/examples/v2/service-level-objectives/GetSLOReportJobStatus.rb +11 -0
  55. data/lib/datadog_api_client/configuration.rb +3 -0
  56. data/lib/datadog_api_client/inflector.rb +26 -8
  57. data/lib/datadog_api_client/v1/api/authentication_api.rb +1 -1
  58. data/lib/datadog_api_client/v1/api/aws_integration_api.rb +1 -1
  59. data/lib/datadog_api_client/v1/api/logs_indexes_api.rb +1 -1
  60. data/lib/datadog_api_client/v1/api/logs_pipelines_api.rb +3 -3
  61. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +112 -135
  62. data/lib/datadog_api_client/v1/api/users_api.rb +1 -1
  63. data/lib/datadog_api_client/v1/models/aws_account.rb +12 -2
  64. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +3 -0
  65. data/lib/datadog_api_client/v1/models/monitor_options.rb +4 -1
  66. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +6 -0
  67. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +61 -1
  68. data/lib/datadog_api_client/v1/models/series.rb +1 -1
  69. data/lib/datadog_api_client/v1/models/service_level_objective.rb +2 -1
  70. data/lib/datadog_api_client/v1/models/service_level_objective_request.rb +2 -1
  71. data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +7 -1
  72. data/lib/datadog_api_client/v1/models/slo_history_sli_data.rb +8 -1
  73. data/lib/datadog_api_client/v1/models/slo_overall_statuses.rb +2 -1
  74. data/lib/datadog_api_client/v1/models/slo_response_data.rb +2 -1
  75. data/lib/datadog_api_client/v1/models/slo_threshold.rb +2 -1
  76. data/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb +14 -2
  77. data/lib/datadog_api_client/v1/models/slo_time_slice_interval.rb +29 -0
  78. data/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb +1 -1
  79. data/lib/datadog_api_client/v1/models/slo_timeframe.rb +2 -1
  80. data/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb +14 -4
  81. data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +1 -0
  82. data/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_meta_schema.rb +27 -0
  83. data/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_operator.rb +26 -0
  84. data/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target.rb +129 -0
  85. data/lib/datadog_api_client/v1/models/{usage_attribution_metadata.rb → synthetics_assertion_json_schema_target_target.rb} +19 -21
  86. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +13 -1
  87. data/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb +175 -0
  88. data/lib/datadog_api_client/v1/models/synthetics_test_request_body_type.rb +2 -0
  89. data/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb +11 -1
  90. data/lib/datadog_api_client/v2/api/apm_retention_filters_api.rb +8 -2
  91. data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +2 -2
  92. data/lib/datadog_api_client/v2/api/case_management_api.rb +17 -16
  93. data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +10 -10
  94. data/lib/datadog_api_client/v2/api/{cloud_workload_security_api.rb → csm_threats_api.rb} +35 -35
  95. data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
  96. data/lib/datadog_api_client/v2/api/ip_allowlist_api.rb +2 -2
  97. data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
  98. data/lib/datadog_api_client/v2/api/logs_archives_api.rb +4 -4
  99. data/lib/datadog_api_client/v2/api/logs_metrics_api.rb +2 -2
  100. data/lib/datadog_api_client/v2/api/metrics_api.rb +4 -4
  101. data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +2 -2
  102. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +69 -1
  103. data/lib/datadog_api_client/v2/api/service_level_objectives_api.rb +245 -0
  104. data/lib/datadog_api_client/v2/api/spans_api.rb +3 -3
  105. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +22 -4
  106. data/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb +1 -1
  107. data/lib/datadog_api_client/v2/models/authn_mapping_create_relationships.rb +37 -54
  108. data/lib/datadog_api_client/v2/models/authn_mapping_included.rb +2 -1
  109. data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb +98 -0
  110. data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb +98 -0
  111. data/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb +14 -4
  112. data/lib/datadog_api_client/v2/models/authn_mapping_team.rb +100 -0
  113. data/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb +212 -0
  114. data/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb +1 -1
  115. data/lib/datadog_api_client/v2/models/authn_mapping_update_relationships.rb +37 -54
  116. data/lib/datadog_api_client/v2/models/custom_destination_type.rb +1 -1
  117. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +1 -1
  118. data/lib/datadog_api_client/v2/models/logs_query_filter.rb +1 -1
  119. data/lib/datadog_api_client/v2/models/logs_storage_tier.rb +2 -1
  120. data/lib/datadog_api_client/v2/models/metric_series.rb +1 -1
  121. data/lib/datadog_api_client/v2/models/relationship_to_team.rb +80 -0
  122. data/lib/datadog_api_client/{v1/models/usage_attribution_response.rb → v2/models/relationship_to_team_data.rb} +21 -23
  123. data/lib/datadog_api_client/v2/models/retention_filter_create_response.rb +80 -0
  124. data/lib/datadog_api_client/v2/models/retention_filter_response.rb +1 -1
  125. data/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb +183 -0
  126. data/lib/datadog_api_client/v2/models/retention_filter_update_data.rb +1 -1
  127. data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +1 -1
  128. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +1 -1
  129. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +1 -1
  130. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +1 -1
  131. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +14 -2
  132. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +11 -1
  133. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +13 -14
  134. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +11 -1
  135. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +13 -1
  136. data/lib/datadog_api_client/v2/models/slo_report_create_request.rb +98 -0
  137. data/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb +160 -0
  138. data/lib/datadog_api_client/{v1/models/usage_attribution_pagination.rb → v2/models/slo_report_create_request_data.rb} +29 -51
  139. data/lib/datadog_api_client/v2/models/slo_report_interval.rb +27 -0
  140. data/lib/datadog_api_client/v2/models/slo_report_post_response.rb +80 -0
  141. data/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb +90 -0
  142. data/lib/datadog_api_client/v2/models/slo_report_status.rb +29 -0
  143. data/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb +80 -0
  144. data/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb +80 -0
  145. data/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb +100 -0
  146. data/lib/datadog_api_client/v2/models/timeseries_response_series.rb +8 -0
  147. data/lib/datadog_api_client/v2/models/user_team_included.rb +2 -1
  148. data/lib/datadog_api_client/v2/models/user_teams_response.rb +13 -1
  149. data/lib/datadog_api_client/version.rb +1 -1
  150. metadata +70 -46
  151. data/examples/v1/usage-metering/GetUsageAttribution.rb +0 -9
  152. data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +0 -152
  153. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +0 -63
  154. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +0 -74
  155. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +0 -590
@@ -31,10 +31,10 @@ jobs:
31
31
  git config user.name "${GIT_AUTHOR_NAME}"
32
32
  git config user.email "${GIT_AUTHOR_EMAIL}"
33
33
 
34
- - name: Set up Ruby 2.6
34
+ - name: Set up Ruby 2.7
35
35
  uses: ruby/setup-ruby@v1
36
36
  with:
37
- ruby-version: 2.6
37
+ ruby-version: 2.7
38
38
 
39
39
  - name: Calculate version
40
40
  id: get_version
@@ -15,10 +15,10 @@ jobs:
15
15
  with:
16
16
  ref: ${{ github.event.release.tag_name }}
17
17
 
18
- - name: Set up Ruby 2.6
18
+ - name: Set up Ruby 2.7
19
19
  uses: ruby/setup-ruby@v1
20
20
  with:
21
- ruby-version: 2.6
21
+ ruby-version: 2.7
22
22
 
23
23
  - run: bundle install
24
24
 
@@ -54,10 +54,10 @@ jobs:
54
54
  git config user.name "${GIT_AUTHOR_NAME}"
55
55
  git config user.email "${GIT_AUTHOR_EMAIL}"
56
56
 
57
- - name: Set up Ruby 2.6
57
+ - name: Set up Ruby 2.7
58
58
  uses: ruby/setup-ruby@v1
59
59
  with:
60
- ruby-version: 2.6
60
+ ruby-version: 2.7
61
61
 
62
62
  - name: Bump Gem version
63
63
  run: |
@@ -74,7 +74,7 @@ jobs:
74
74
  test:
75
75
  strategy:
76
76
  matrix:
77
- ruby-version: ["2.6", "3.2", "jruby"]
77
+ ruby-version: ["2.7", "3.2", "jruby"]
78
78
  platform: [ubuntu-latest]
79
79
  runs-on: ${{ matrix.platform }}
80
80
  if: (github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'ci/skip') && !contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')) || github.event_name == 'schedule'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,46 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.23.0 / 2024-05-22
4
+
5
+ ### Fixed
6
+ * fix case search documentation by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1805
7
+ ### Added
8
+ * Add support variablesFromScript in Synthetics API test by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1807
9
+ * Add JSONSchema assertion support to API and multistep tests by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1782
10
+ * add 1 day logs to usage api docs by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1811
11
+ * Update UserTeamIncluded to include teams by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1816
12
+ * Security Monitoring - Make Default Tags available in the response by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1823
13
+ * Add flex logs storage tier by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1825
14
+ ### Changed
15
+ * Rename the Cloud Workload Security tag to CSM Threats by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1815
16
+
17
+
18
+ **Full Changelog**: https://github.com/DataDog/datadog-api-client-ruby/compare/v2.22.0...v2.23.0
19
+
20
+ ## 2.22.0 / 2024-04-11
21
+
22
+ ### Fixed
23
+ * Update Cleanup script to use GCP STS endpoint by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1762
24
+ * Add include data to get team memberships response by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1748
25
+ ### Added
26
+ * Add `ci-pipeline-fingerprints` field in v2.2 by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1768
27
+ * Add validation endpoint for Security Monitoring Rules by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1787
28
+ * Add UA documentation for online_archive and incident_management by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1789
29
+ * Mark `unit` as nullable by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1791
30
+ * Add query_interval_seconds to time-slice SLO condition parameters by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1793
31
+ * Support providing files for the file upload feature when creating a Synthetic API test by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1792
32
+ * Adding SLO Reporting API Documentation by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1764
33
+ * Security Monitoring Suppression - Add data_exclusion_query field by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1797
34
+ * aws api adding extended and deprecating old resource collection field by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1795
35
+ ### [**Breaking**] Changed
36
+ * Add Team relationship to AuthNMappings by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1726
37
+ ### Deprecated
38
+ * Remove deprecated /api/v1/usage/attribution by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1778
39
+ * Deprecate legacy hourly usage metering endpoints by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1774
40
+
41
+
42
+ **Full Changelog**: https://github.com/DataDog/datadog-api-client-ruby/compare/v2.21.0...v2.22.0
43
+
3
44
  ## 2.21.0 / 2024-03-13
4
45
 
5
46
  ### Fixed
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ gemspec
6
6
 
7
7
  group :development, :test do
8
8
  gem 'activesupport'
9
- gem 'cucumber'
9
+ gem 'cucumber', '~> 9.1.1'
10
10
  gem 'ddtrace', '>=1.0.0.beta1'
11
11
  gem 'gem-release'
12
12
  gem 'rake', '~> 13.0.1'
@@ -13,6 +13,7 @@ body = DatadogAPIClient::V1::AWSAccount.new({
13
13
  "us-east-1",
14
14
  "us-west-2",
15
15
  ],
16
+ extended_resource_collection_enabled: true,
16
17
  filter_tags: [
17
18
  "$KEY:$VALUE",
18
19
  ],
@@ -20,7 +21,6 @@ body = DatadogAPIClient::V1::AWSAccount.new({
20
21
  "$KEY:$VALUE",
21
22
  ],
22
23
  metrics_collection_enabled: false,
23
- resource_collection_enabled: true,
24
24
  role_name: "DatadogAWSIntegrationRole",
25
25
  })
26
26
  p api_instance.create_aws_account(body)
@@ -13,6 +13,7 @@ body = DatadogAPIClient::V1::AWSAccount.new({
13
13
  "us-east-1",
14
14
  "us-west-2",
15
15
  ],
16
+ extended_resource_collection_enabled: true,
16
17
  filter_tags: [
17
18
  "$KEY:$VALUE",
18
19
  ],
@@ -13,6 +13,7 @@ body = DatadogAPIClient::V1::AWSAccount.new({
13
13
  "us-east-1",
14
14
  "us-west-2",
15
15
  ],
16
+ extended_resource_collection_enabled: true,
16
17
  filter_tags: [
17
18
  "$KEY:$VALUE",
18
19
  ],
@@ -20,7 +21,6 @@ body = DatadogAPIClient::V1::AWSAccount.new({
20
21
  "$KEY:$VALUE",
21
22
  ],
22
23
  metrics_collection_enabled: true,
23
- resource_collection_enabled: true,
24
24
  role_name: "DatadogAWSIntegrationRole",
25
25
  })
26
26
  opts = {
@@ -0,0 +1,118 @@
1
+ # Create an API test with a file payload returns "OK - Returns the created test details." response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V1::SyntheticsAPI.new
5
+
6
+ body = DatadogAPIClient::V1::SyntheticsAPITest.new({
7
+ config: DatadogAPIClient::V1::SyntheticsAPITestConfig.new({
8
+ assertions: [
9
+ DatadogAPIClient::V1::SyntheticsAssertionTarget.new({
10
+ operator: DatadogAPIClient::V1::SyntheticsAssertionOperator::IS,
11
+ property: "{{ PROPERTY }}",
12
+ target: "text/html",
13
+ type: DatadogAPIClient::V1::SyntheticsAssertionType::HEADER,
14
+ }),
15
+ DatadogAPIClient::V1::SyntheticsAssertionTarget.new({
16
+ operator: DatadogAPIClient::V1::SyntheticsAssertionOperator::LESS_THAN,
17
+ target: 2000,
18
+ type: DatadogAPIClient::V1::SyntheticsAssertionType::RESPONSE_TIME,
19
+ timings_scope: DatadogAPIClient::V1::SyntheticsAssertionTimingsScope::WITHOUT_DNS,
20
+ }),
21
+ DatadogAPIClient::V1::SyntheticsAssertionJSONPathTarget.new({
22
+ operator: DatadogAPIClient::V1::SyntheticsAssertionJSONPathOperator::VALIDATES_JSON_PATH,
23
+ target: DatadogAPIClient::V1::SyntheticsAssertionJSONPathTargetTarget.new({
24
+ json_path: "topKey",
25
+ operator: "isNot",
26
+ target_value: "0",
27
+ }),
28
+ type: DatadogAPIClient::V1::SyntheticsAssertionType::BODY,
29
+ }),
30
+ DatadogAPIClient::V1::SyntheticsAssertionXPathTarget.new({
31
+ operator: DatadogAPIClient::V1::SyntheticsAssertionXPathOperator::VALIDATES_X_PATH,
32
+ target: DatadogAPIClient::V1::SyntheticsAssertionXPathTargetTarget.new({
33
+ x_path: "target-xpath",
34
+ target_value: "0",
35
+ operator: "contains",
36
+ }),
37
+ type: DatadogAPIClient::V1::SyntheticsAssertionType::BODY,
38
+ }),
39
+ ],
40
+ config_variables: [
41
+ DatadogAPIClient::V1::SyntheticsConfigVariable.new({
42
+ example: "content-type",
43
+ name: "PROPERTY",
44
+ pattern: "content-type",
45
+ type: DatadogAPIClient::V1::SyntheticsConfigVariableType::TEXT,
46
+ }),
47
+ ],
48
+ request: DatadogAPIClient::V1::SyntheticsTestRequest.new({
49
+ certificate: DatadogAPIClient::V1::SyntheticsTestRequestCertificate.new({
50
+ cert: DatadogAPIClient::V1::SyntheticsTestRequestCertificateItem.new({
51
+ content: "cert-content",
52
+ filename: "cert-filename",
53
+ updated_at: "2020-10-16T09:23:24.857Z",
54
+ }),
55
+ key: DatadogAPIClient::V1::SyntheticsTestRequestCertificateItem.new({
56
+ content: "key-content",
57
+ filename: "key-filename",
58
+ updated_at: "2020-10-16T09:23:24.857Z",
59
+ }),
60
+ }),
61
+ headers: {
62
+ unique: "examplesynthetic",
63
+ },
64
+ method: "GET",
65
+ timeout: 10,
66
+ url: "https://datadoghq.com",
67
+ proxy: DatadogAPIClient::V1::SyntheticsTestRequestProxy.new({
68
+ url: "https://datadoghq.com",
69
+ headers: {},
70
+ }),
71
+ body_type: DatadogAPIClient::V1::SyntheticsTestRequestBodyType::APPLICATION_OCTET_STREAM,
72
+ files: [
73
+ DatadogAPIClient::V1::SyntheticsTestRequestBodyFile.new({
74
+ name: "file name",
75
+ content: "file content",
76
+ type: "file type",
77
+ }),
78
+ ],
79
+ basic_auth: DatadogAPIClient::V1::SyntheticsBasicAuthOauthClient.new({
80
+ access_token_url: "https://datadog-token.com",
81
+ audience: "audience",
82
+ client_id: "client-id",
83
+ client_secret: "client-secret",
84
+ resource: "resource",
85
+ scope: "yoyo",
86
+ token_api_authentication: DatadogAPIClient::V1::SyntheticsBasicAuthOauthTokenApiAuthentication::HEADER,
87
+ type: DatadogAPIClient::V1::SyntheticsBasicAuthOauthClientType::OAUTH_CLIENT,
88
+ }),
89
+ persist_cookies: true,
90
+ }),
91
+ }),
92
+ locations: [
93
+ "aws:us-east-2",
94
+ ],
95
+ message: "BDD test payload: synthetics_api_http_test_payload.json",
96
+ name: "Example-Synthetic",
97
+ options: DatadogAPIClient::V1::SyntheticsTestOptions.new({
98
+ accept_self_signed: false,
99
+ allow_insecure: true,
100
+ follow_redirects: true,
101
+ min_failure_duration: 10,
102
+ min_location_failed: 1,
103
+ monitor_name: "Example-Synthetic",
104
+ monitor_priority: 5,
105
+ _retry: DatadogAPIClient::V1::SyntheticsTestOptionsRetry.new({
106
+ count: 3,
107
+ interval: 10,
108
+ }),
109
+ tick_every: 60,
110
+ http_version: DatadogAPIClient::V1::SyntheticsTestOptionsHTTPVersion::HTTP2,
111
+ }),
112
+ subtype: DatadogAPIClient::V1::SyntheticsTestDetailsSubType::HTTP,
113
+ tags: [
114
+ "testing:api",
115
+ ],
116
+ type: DatadogAPIClient::V1::SyntheticsAPITestType::API,
117
+ })
118
+ p api_instance.create_synthetics_api_test(body)
@@ -27,6 +27,14 @@ body = DatadogAPIClient::V1::SyntheticsAPITest.new({
27
27
  }),
28
28
  type: DatadogAPIClient::V1::SyntheticsAssertionType::BODY,
29
29
  }),
30
+ DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaTarget.new({
31
+ operator: DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaOperator::VALIDATES_JSON_SCHEMA,
32
+ target: DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaTargetTarget.new({
33
+ meta_schema: DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaMetaSchema::DRAFT_07,
34
+ json_schema: '{"type": "object", "properties":{"slideshow":{"type":"object"}}}',
35
+ }),
36
+ type: DatadogAPIClient::V1::SyntheticsAssertionType::BODY,
37
+ }),
30
38
  DatadogAPIClient::V1::SyntheticsAssertionXPathTarget.new({
31
39
  operator: DatadogAPIClient::V1::SyntheticsAssertionXPathOperator::VALIDATES_X_PATH,
32
40
  target: DatadogAPIClient::V1::SyntheticsAssertionXPathTargetTarget.new({
@@ -45,6 +53,7 @@ body = DatadogAPIClient::V1::SyntheticsAPITest.new({
45
53
  type: DatadogAPIClient::V1::SyntheticsConfigVariableType::TEXT,
46
54
  }),
47
55
  ],
56
+ variables_from_script: 'dd.variable.set("FOO", "foo")',
48
57
  request: DatadogAPIClient::V1::SyntheticsTestRequest.new({
49
58
  certificate: DatadogAPIClient::V1::SyntheticsTestRequestCertificate.new({
50
59
  cert: DatadogAPIClient::V1::SyntheticsTestRequestCertificateItem.new({
@@ -26,6 +26,14 @@ body = DatadogAPIClient::V1::SyntheticsAPITest.new({
26
26
  }),
27
27
  type: DatadogAPIClient::V1::SyntheticsAssertionType::BODY,
28
28
  }),
29
+ DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaTarget.new({
30
+ operator: DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaOperator::VALIDATES_JSON_SCHEMA,
31
+ target: DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaTargetTarget.new({
32
+ meta_schema: DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaMetaSchema::DRAFT_07,
33
+ json_schema: '{"type": "object", "properties":{"slideshow":{"type":"object"}}}',
34
+ }),
35
+ type: DatadogAPIClient::V1::SyntheticsAssertionType::BODY,
36
+ }),
29
37
  DatadogAPIClient::V1::SyntheticsAssertionXPathTarget.new({
30
38
  operator: DatadogAPIClient::V1::SyntheticsAssertionXPathOperator::VALIDATES_X_PATH,
31
39
  target: DatadogAPIClient::V1::SyntheticsAssertionXPathTargetTarget.new({
@@ -29,6 +29,14 @@ body = DatadogAPIClient::V1::SyntheticsAPITest.new({
29
29
  }),
30
30
  type: DatadogAPIClient::V1::SyntheticsAssertionType::BODY,
31
31
  }),
32
+ DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaTarget.new({
33
+ operator: DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaOperator::VALIDATES_JSON_SCHEMA,
34
+ target: DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaTargetTarget.new({
35
+ meta_schema: DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaMetaSchema::DRAFT_07,
36
+ json_schema: '{"type": "object", "properties":{"slideshow":{"type":"object"}}}',
37
+ }),
38
+ type: DatadogAPIClient::V1::SyntheticsAssertionType::BODY,
39
+ }),
32
40
  ],
33
41
  config_variables: [
34
42
  DatadogAPIClient::V1::SyntheticsConfigVariable.new({
@@ -26,6 +26,9 @@ body = DatadogAPIClient::V1::SyntheticsBrowserTest.new({
26
26
  key: DatadogAPIClient::V1::SyntheticsTestRequestCertificateItem.new({}),
27
27
  }),
28
28
  certificate_domains: [],
29
+ files: [
30
+ DatadogAPIClient::V1::SyntheticsTestRequestBodyFile.new({}),
31
+ ],
29
32
  http_version: DatadogAPIClient::V1::SyntheticsTestOptionsHTTPVersion::HTTP1,
30
33
  proxy: DatadogAPIClient::V1::SyntheticsTestRequestProxy.new({
31
34
  url: "https://example.com",
@@ -8,14 +8,14 @@ RETENTION_FILTER_DATA_ID = ENV["RETENTION_FILTER_DATA_ID"]
8
8
 
9
9
  body = DatadogAPIClient::V2::RetentionFilterUpdateRequest.new({
10
10
  data: DatadogAPIClient::V2::RetentionFilterUpdateData.new({
11
- attributes: DatadogAPIClient::V2::RetentionFilterCreateAttributes.new({
11
+ attributes: DatadogAPIClient::V2::RetentionFilterUpdateAttributes.new({
12
12
  name: "test",
13
13
  rate: 0.9,
14
14
  filter: DatadogAPIClient::V2::SpansFilterCreate.new({
15
15
  query: "@_top_level:1 test:service-demo",
16
16
  }),
17
17
  enabled: true,
18
- filter_type: DatadogAPIClient::V2::RetentionFilterType::SPANS_SAMPLING_PROCESSOR,
18
+ filter_type: DatadogAPIClient::V2::RetentionFilterAllType::SPANS_SAMPLING_PROCESSOR,
19
19
  }),
20
20
  id: "test-id",
21
21
  type: DatadogAPIClient::V2::ApmRetentionFilterType::APM_RETENTION_FILTER,
@@ -12,7 +12,7 @@ body = DatadogAPIClient::V2::AuthNMappingCreateRequest.new({
12
12
  attribute_key: "exampleauthnmapping",
13
13
  attribute_value: "Example-AuthN-Mapping",
14
14
  }),
15
- relationships: DatadogAPIClient::V2::AuthNMappingCreateRelationships.new({
15
+ relationships: DatadogAPIClient::V2::AuthNMappingRelationshipToRole.new({
16
16
  role: DatadogAPIClient::V2::RelationshipToRole.new({
17
17
  data: DatadogAPIClient::V2::RelationshipToRoleData.new({
18
18
  id: ROLE_DATA_ID,
@@ -16,7 +16,7 @@ body = DatadogAPIClient::V2::AuthNMappingUpdateRequest.new({
16
16
  attribute_value: "Development",
17
17
  }),
18
18
  id: AUTHN_MAPPING_DATA_ID,
19
- relationships: DatadogAPIClient::V2::AuthNMappingUpdateRelationships.new({
19
+ relationships: DatadogAPIClient::V2::AuthNMappingRelationshipToRole.new({
20
20
  role: DatadogAPIClient::V2::RelationshipToRole.new({
21
21
  data: DatadogAPIClient::V2::RelationshipToRoleData.new({
22
22
  id: ROLE_DATA_ID,
@@ -1,7 +1,7 @@
1
1
  # Create a CSM Threats Agent rule returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new
4
+ api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new
5
5
 
6
6
  body = DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateRequest.new({
7
7
  data: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateData.new({
@@ -9,7 +9,7 @@ body = DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateRequest.new({
9
9
  description: "My Agent rule",
10
10
  enabled: true,
11
11
  expression: 'exec.file.name == "sh"',
12
- name: "my_agent_rule",
12
+ name: "examplecsmthreat",
13
13
  }),
14
14
  type: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleType::AGENT_RULE,
15
15
  }),
@@ -1,7 +1,7 @@
1
1
  # Create a Cloud Workload Security Agent rule returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new
4
+ api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new
5
5
 
6
6
  body = DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateRequest.new({
7
7
  data: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateData.new({
@@ -9,7 +9,7 @@ body = DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateRequest.new({
9
9
  description: "Test Agent rule",
10
10
  enabled: true,
11
11
  expression: 'exec.file.name == "sh"',
12
- name: "examplecloudworkloadsecurity",
12
+ name: "examplecsmthreat",
13
13
  }),
14
14
  type: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleType::AGENT_RULE,
15
15
  }),
@@ -1,7 +1,7 @@
1
1
  # Delete a CSM Threats Agent rule returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new
4
+ api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new
5
5
 
6
6
  # there is a valid "agent_rule_rc" in the system
7
7
  AGENT_RULE_DATA_ID = ENV["AGENT_RULE_DATA_ID"]
@@ -1,7 +1,7 @@
1
1
  # Delete a Cloud Workload Security Agent rule returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new
4
+ api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new
5
5
 
6
6
  # there is a valid "agent_rule" in the system
7
7
  AGENT_RULE_DATA_ID = ENV["AGENT_RULE_DATA_ID"]
@@ -1,5 +1,5 @@
1
1
  # Get the latest CSM Threats policy returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new
4
+ api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new
5
5
  p api_instance.download_csm_threats_policy()
@@ -1,5 +1,5 @@
1
1
  # Get the latest Cloud Workload Security policy returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new
4
+ api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new
5
5
  p api_instance.download_cloud_workload_policy_file()
@@ -1,7 +1,7 @@
1
1
  # Get a CSM Threats Agent rule returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new
4
+ api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new
5
5
 
6
6
  # there is a valid "agent_rule_rc" in the system
7
7
  AGENT_RULE_DATA_ID = ENV["AGENT_RULE_DATA_ID"]
@@ -1,7 +1,7 @@
1
1
  # Get a Cloud Workload Security Agent rule returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new
4
+ api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new
5
5
 
6
6
  # there is a valid "agent_rule" in the system
7
7
  AGENT_RULE_DATA_ID = ENV["AGENT_RULE_DATA_ID"]
@@ -1,5 +1,5 @@
1
1
  # Get all CSM Threats Agent rules returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new
4
+ api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new
5
5
  p api_instance.list_csm_threats_agent_rules()
@@ -1,5 +1,5 @@
1
1
  # Get all Cloud Workload Security Agent rules returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new
4
+ api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new
5
5
  p api_instance.list_cloud_workload_security_agent_rules()
@@ -1,7 +1,7 @@
1
1
  # Update a CSM Threats Agent rule returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new
4
+ api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new
5
5
 
6
6
  # there is a valid "agent_rule_rc" in the system
7
7
  AGENT_RULE_DATA_ID = ENV["AGENT_RULE_DATA_ID"]
@@ -1,7 +1,7 @@
1
1
  # Update a Cloud Workload Security Agent rule returns "OK" response
2
2
 
3
3
  require "datadog_api_client"
4
- api_instance = DatadogAPIClient::V2::CloudWorkloadSecurityAPI.new
4
+ api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new
5
5
 
6
6
  # there is a valid "agent_rule" in the system
7
7
  AGENT_RULE_DATA_ID = ENV["AGENT_RULE_DATA_ID"]
@@ -6,7 +6,7 @@ api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new
6
6
  body = DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest.new({
7
7
  data: DatadogAPIClient::V2::GCPSTSServiceAccountData.new({
8
8
  attributes: DatadogAPIClient::V2::GCPSTSServiceAccountAttributes.new({
9
- client_email: "252bf553ef04b351@test-project.iam.gserviceaccount.com",
9
+ client_email: "Test-252bf553ef04b351@test-project.iam.gserviceaccount.com",
10
10
  host_filters: [],
11
11
  }),
12
12
  type: DatadogAPIClient::V2::GCPServiceAccountType::GCP_SERVICE_ACCOUNT,
@@ -10,7 +10,7 @@ body = DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest.new({
10
10
  "lorem",
11
11
  "ipsum",
12
12
  ],
13
- client_email: "252bf553ef04b351@test-project.iam.gserviceaccount.com",
13
+ client_email: "Test-252bf553ef04b351@test-project.iam.gserviceaccount.com",
14
14
  host_filters: [],
15
15
  }),
16
16
  type: DatadogAPIClient::V2::GCPServiceAccountType::GCP_SERVICE_ACCOUNT,
@@ -7,7 +7,7 @@ body = DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest.new({
7
7
  data: DatadogAPIClient::V2::GCPSTSServiceAccountData.new({
8
8
  attributes: DatadogAPIClient::V2::GCPSTSServiceAccountAttributes.new({
9
9
  resource_collection_enabled: true,
10
- client_email: "252bf553ef04b351@test-project.iam.gserviceaccount.com",
10
+ client_email: "Test-252bf553ef04b351@test-project.iam.gserviceaccount.com",
11
11
  host_filters: [],
12
12
  }),
13
13
  type: DatadogAPIClient::V2::GCPServiceAccountType::GCP_SERVICE_ACCOUNT,
@@ -9,7 +9,7 @@ body = DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest.new({
9
9
  cloud_run_revision_filters: [
10
10
  "meh:bleh",
11
11
  ],
12
- client_email: "252bf553ef04b351@test-project.iam.gserviceaccount.com",
12
+ client_email: "Test-252bf553ef04b351@test-project.iam.gserviceaccount.com",
13
13
  host_filters: [],
14
14
  }),
15
15
  type: DatadogAPIClient::V2::GCPServiceAccountType::GCP_SERVICE_ACCOUNT,
@@ -7,7 +7,7 @@ body = DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest.new({
7
7
  data: DatadogAPIClient::V2::GCPSTSServiceAccountData.new({
8
8
  attributes: DatadogAPIClient::V2::GCPSTSServiceAccountAttributes.new({
9
9
  is_security_command_center_enabled: true,
10
- client_email: "252bf553ef04b351@test-project.iam.gserviceaccount.com",
10
+ client_email: "Test-252bf553ef04b351@test-project.iam.gserviceaccount.com",
11
11
  host_filters: [],
12
12
  }),
13
13
  type: DatadogAPIClient::V2::GCPServiceAccountType::GCP_SERVICE_ACCOUNT,
@@ -8,7 +8,7 @@ body = DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest.new({
8
8
  attributes: DatadogAPIClient::V2::GCPSTSServiceAccountAttributes.new({
9
9
  is_cspm_enabled: true,
10
10
  resource_collection_enabled: true,
11
- client_email: "252bf553ef04b351@test-project.iam.gserviceaccount.com",
11
+ client_email: "Test-252bf553ef04b351@test-project.iam.gserviceaccount.com",
12
12
  host_filters: [],
13
13
  }),
14
14
  type: DatadogAPIClient::V2::GCPServiceAccountType::GCP_SERVICE_ACCOUNT,
@@ -9,7 +9,7 @@ GCP_STS_ACCOUNT_DATA_ID = ENV["GCP_STS_ACCOUNT_DATA_ID"]
9
9
  body = DatadogAPIClient::V2::GCPSTSServiceAccountUpdateRequest.new({
10
10
  data: DatadogAPIClient::V2::GCPSTSServiceAccountUpdateRequestData.new({
11
11
  attributes: DatadogAPIClient::V2::GCPSTSServiceAccountAttributes.new({
12
- client_email: "252bf553ef04b351@example.com",
12
+ client_email: "Test-252bf553ef04b351@example.com",
13
13
  host_filters: [
14
14
  "foo:bar",
15
15
  ],
@@ -9,7 +9,7 @@ GCP_STS_ACCOUNT_DATA_ID = ENV["GCP_STS_ACCOUNT_DATA_ID"]
9
9
  body = DatadogAPIClient::V2::GCPSTSServiceAccountUpdateRequest.new({
10
10
  data: DatadogAPIClient::V2::GCPSTSServiceAccountUpdateRequestData.new({
11
11
  attributes: DatadogAPIClient::V2::GCPSTSServiceAccountAttributes.new({
12
- client_email: "252bf553ef04b351@example.com",
12
+ client_email: "Test-252bf553ef04b351@example.com",
13
13
  cloud_run_revision_filters: [
14
14
  "merp:derp",
15
15
  ],
@@ -9,7 +9,7 @@ GCP_STS_ACCOUNT_DATA_ID = ENV["GCP_STS_ACCOUNT_DATA_ID"]
9
9
  body = DatadogAPIClient::V2::GCPSTSServiceAccountUpdateRequest.new({
10
10
  data: DatadogAPIClient::V2::GCPSTSServiceAccountUpdateRequestData.new({
11
11
  attributes: DatadogAPIClient::V2::GCPSTSServiceAccountAttributes.new({
12
- client_email: "252bf553ef04b351@example.com",
12
+ client_email: "Test-252bf553ef04b351@example.com",
13
13
  resource_collection_enabled: true,
14
14
  }),
15
15
  id: GCP_STS_ACCOUNT_DATA_ID,
@@ -10,6 +10,10 @@ body = DatadogAPIClient::V2::CustomDestinationUpdateRequest.new({
10
10
  data: DatadogAPIClient::V2::CustomDestinationUpdateRequestDefinition.new({
11
11
  attributes: DatadogAPIClient::V2::CustomDestinationUpdateRequestAttributes.new({
12
12
  name: "Nginx logs (Updated)",
13
+ query: "source:nginx",
14
+ enabled: false,
15
+ forward_tags: false,
16
+ forward_tags_restriction_list_type: DatadogAPIClient::V2::CustomDestinationAttributeTagsRestrictionListType::BLOCK_LIST,
13
17
  }),
14
18
  type: DatadogAPIClient::V2::CustomDestinationType::CUSTOM_DESTINATION,
15
19
  id: CUSTOM_DESTINATION_DATA_ID,
@@ -18,7 +18,7 @@ body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({
18
18
  }),
19
19
  }),
20
20
  ],
21
- from: 1671612804000,
21
+ from: 1636625471000,
22
22
  queries: [
23
23
  DatadogAPIClient::V2::MetricsScalarQuery.new({
24
24
  aggregator: DatadogAPIClient::V2::MetricsAggregator::AVG,
@@ -27,7 +27,7 @@ body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({
27
27
  name: "a",
28
28
  }),
29
29
  ],
30
- to: 1671620004000,
30
+ to: 1636629071000,
31
31
  }),
32
32
  type: DatadogAPIClient::V2::ScalarFormulaRequestType::SCALAR_REQUEST,
33
33
  }),