datadog_api_client 2.34.0 → 2.35.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.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +59 -3
  4. data/.generator/schemas/v2/openapi.yaml +738 -69
  5. data/.generator/src/generator/formatter.py +2 -2
  6. data/.generator/src/generator/openapi.py +1 -1
  7. data/.github/workflows/release.yml +1 -1
  8. data/CHANGELOG.md +19 -0
  9. data/Gemfile +1 -0
  10. data/examples/v1/monitors/CreateMonitor_1539578087.rb +1 -0
  11. data/examples/v1/monitors/CreateMonitor_440013737.rb +1 -0
  12. data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +142 -0
  13. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +32 -0
  14. data/examples/v2/dora-metrics/CreateDORADeployment.rb +0 -3
  15. data/examples/v2/dora-metrics/CreateDORAFailure.rb +30 -0
  16. data/examples/v2/dora-metrics/CreateDORAIncident.rb +11 -9
  17. data/examples/v2/dora-metrics/CreateDORAIncident_1768887482.rb +25 -0
  18. data/examples/v2/on-call/GetTeamOnCallUsers.rb +11 -0
  19. data/examples/v2/security-monitoring/ListFindings_2932019633.rb +11 -0
  20. data/examples/v2/software-catalog/DeleteCatalogKind.rb +5 -0
  21. data/examples/v2/software-catalog/ListCatalogKind.rb +5 -0
  22. data/examples/v2/software-catalog/ListCatalogKind_3806205775.rb +5 -0
  23. data/examples/v2/software-catalog/UpsertCatalogKind.rb +9 -0
  24. data/lib/datadog_api_client/configuration.rb +0 -2
  25. data/lib/datadog_api_client/inflector.rb +34 -6
  26. data/lib/datadog_api_client/v1/api/snapshots_api.rb +2 -1
  27. data/lib/datadog_api_client/v1/models/monitor.rb +17 -1
  28. data/lib/datadog_api_client/v1/models/monitor_draft_status.rb +32 -0
  29. data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
  30. data/lib/datadog_api_client/v1/models/monitor_update_request.rb +17 -1
  31. data/lib/datadog_api_client/v1/models/synthetics_api_test_step_subtype.rb +6 -0
  32. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +32 -2
  33. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +79 -15
  34. data/lib/datadog_api_client/v2/api/on_call_api.rb +67 -0
  35. data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +5 -3
  36. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +13 -0
  37. data/lib/datadog_api_client/v2/api/software_catalog_api.rb +221 -0
  38. data/lib/datadog_api_client/v2/models/action_query_spec_inputs.rb +1 -1
  39. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +23 -3
  40. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_metadata.rb +125 -0
  41. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +165 -0
  42. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +37 -1
  43. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +57 -1
  44. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +57 -1
  45. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +21 -1
  46. data/lib/datadog_api_client/v2/models/{dora_incident_request.rb → dora_failure_request.rb} +4 -4
  47. data/lib/datadog_api_client/v2/models/{dora_incident_request_attributes.rb → dora_failure_request_attributes.rb} +31 -11
  48. data/lib/datadog_api_client/v2/models/{dora_incident_request_data.rb → dora_failure_request_data.rb} +4 -4
  49. data/lib/datadog_api_client/v2/models/{dora_incident_response.rb → dora_failure_response.rb} +5 -5
  50. data/lib/datadog_api_client/v2/models/{dora_incident_response_data.rb → dora_failure_response_data.rb} +6 -6
  51. data/lib/datadog_api_client/v2/models/{dora_incident_type.rb → dora_failure_type.rb} +3 -3
  52. data/lib/datadog_api_client/v2/models/escalation.rb +143 -0
  53. data/lib/datadog_api_client/v2/models/escalation_relationships.rb +105 -0
  54. data/lib/datadog_api_client/v2/models/escalation_relationships_responders.rb +107 -0
  55. data/lib/datadog_api_client/v2/models/escalation_relationships_responders_data_items.rb +144 -0
  56. data/lib/datadog_api_client/v2/models/escalation_relationships_responders_data_items_type.rb +26 -0
  57. data/lib/datadog_api_client/v2/models/escalation_type.rb +26 -0
  58. data/lib/datadog_api_client/v2/models/finding_attributes.rb +31 -1
  59. data/lib/datadog_api_client/v2/models/kind_attributes.rb +143 -0
  60. data/lib/datadog_api_client/v2/models/kind_data.rb +153 -0
  61. data/lib/datadog_api_client/v2/models/kind_metadata.rb +115 -0
  62. data/lib/datadog_api_client/v2/models/kind_obj.rb +143 -0
  63. data/lib/datadog_api_client/v2/models/kind_response_meta.rb +105 -0
  64. data/lib/datadog_api_client/v2/models/list_kind_catalog_response.rb +117 -0
  65. data/lib/datadog_api_client/v2/models/team_on_call_responders.rb +117 -0
  66. data/lib/datadog_api_client/v2/models/team_on_call_responders_data.rb +143 -0
  67. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships.rb +115 -0
  68. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations.rb +107 -0
  69. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations_data_items.rb +144 -0
  70. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations_data_items_type.rb +26 -0
  71. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders.rb +107 -0
  72. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders_data_items.rb +144 -0
  73. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders_data_items_type.rb +26 -0
  74. data/lib/datadog_api_client/v2/models/team_on_call_responders_data_type.rb +26 -0
  75. data/lib/datadog_api_client/v2/models/team_on_call_responders_included.rb +63 -0
  76. data/lib/datadog_api_client/v2/models/upsert_catalog_kind_request.rb +63 -0
  77. data/lib/datadog_api_client/v2/models/upsert_catalog_kind_response.rb +117 -0
  78. data/lib/datadog_api_client/version.rb +1 -1
  79. data/repository.datadog.yaml +8 -0
  80. metadata +44 -7
@@ -101,7 +101,7 @@ module DatadogAPIClient::V1
101
101
  # new `cluster` violating the alert conditions by setting `notify_by` to `["cluster"]`. Tags mentioned
102
102
  # in `notify_by` must be a subset of the grouping tags in the query.
103
103
  # For example, a query grouped by `cluster` and `namespace` cannot notify on `region`.
104
- # Setting `notify_by` to `[*]` configures the monitor to notify as a simple-alert.
104
+ # Setting `notify_by` to `["*"]` configures the monitor to notify as a simple-alert.
105
105
  attr_accessor :notify_by
106
106
 
107
107
  # A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to `false`.
@@ -30,6 +30,15 @@ module DatadogAPIClient::V1
30
30
  # Whether or not the monitor is deleted. (Always `null`)
31
31
  attr_accessor :deleted
32
32
 
33
+ # Indicates whether the monitor is in a draft or published state.
34
+ #
35
+ # `draft`: The monitor appears as Draft and does not send notifications.
36
+ # `published`: The monitor is active and evaluates conditions and notify as configured.
37
+ #
38
+ # This field is in preview. The draft value is only available to customers with the feature enabled.
39
+ #
40
+ attr_accessor :draft_status
41
+
33
42
  # ID of this monitor.
34
43
  attr_accessor :id
35
44
 
@@ -78,6 +87,7 @@ module DatadogAPIClient::V1
78
87
  :'created' => :'created',
79
88
  :'creator' => :'creator',
80
89
  :'deleted' => :'deleted',
90
+ :'draft_status' => :'draft_status',
81
91
  :'id' => :'id',
82
92
  :'message' => :'message',
83
93
  :'modified' => :'modified',
@@ -101,6 +111,7 @@ module DatadogAPIClient::V1
101
111
  :'created' => :'Time',
102
112
  :'creator' => :'Creator',
103
113
  :'deleted' => :'Time',
114
+ :'draft_status' => :'MonitorDraftStatus',
104
115
  :'id' => :'Integer',
105
116
  :'message' => :'String',
106
117
  :'modified' => :'Time',
@@ -157,6 +168,10 @@ module DatadogAPIClient::V1
157
168
  self.deleted = attributes[:'deleted']
158
169
  end
159
170
 
171
+ if attributes.key?(:'draft_status')
172
+ self.draft_status = attributes[:'draft_status']
173
+ end
174
+
160
175
  if attributes.key?(:'id')
161
176
  self.id = attributes[:'id']
162
177
  end
@@ -243,6 +258,7 @@ module DatadogAPIClient::V1
243
258
  created == o.created &&
244
259
  creator == o.creator &&
245
260
  deleted == o.deleted &&
261
+ draft_status == o.draft_status &&
246
262
  id == o.id &&
247
263
  message == o.message &&
248
264
  modified == o.modified &&
@@ -263,7 +279,7 @@ module DatadogAPIClient::V1
263
279
  # @return [Integer] Hash code
264
280
  # @!visibility private
265
281
  def hash
266
- [created, creator, deleted, id, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type, additional_properties].hash
282
+ [created, creator, deleted, draft_status, id, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type, additional_properties].hash
267
283
  end
268
284
  end
269
285
  end
@@ -23,5 +23,11 @@ module DatadogAPIClient::V1
23
23
 
24
24
  HTTP = "http".freeze
25
25
  GRPC = "grpc".freeze
26
+ SSL = "ssl".freeze
27
+ DNS = "dns".freeze
28
+ TCP = "tcp".freeze
29
+ UDP = "udp".freeze
30
+ ICMP = "icmp".freeze
31
+ WEBSOCKET = "websocket".freeze
26
32
  end
27
33
  end
@@ -42,6 +42,9 @@ module DatadogAPIClient::V1
42
42
  # By default, the client certificate is applied on the domain of the starting URL for browser tests. If you want your client certificate to be applied on other domains instead, add them in `certificateDomains`.
43
43
  attr_accessor :certificate_domains
44
44
 
45
+ # Check for certificate revocation.
46
+ attr_accessor :check_certificate_revocation
47
+
45
48
  # A protobuf JSON descriptor that needs to be gzipped first then base64 encoded.
46
49
  attr_accessor :compressed_json_descriptor
47
50
 
@@ -54,12 +57,15 @@ module DatadogAPIClient::V1
54
57
  # DNS server port to use for DNS tests.
55
58
  attr_accessor :dns_server_port
56
59
 
57
- # Files to be used as part of the request in the test.
60
+ # Files to be used as part of the request in the test. Only valid if `bodyType` is `multipart/form-data`.
58
61
  attr_accessor :files
59
62
 
60
63
  # Specifies whether or not the request follows redirects.
61
64
  attr_accessor :follow_redirects
62
65
 
66
+ # Form to be used as part of the request in the test. Only valid if `bodyType` is `multipart/form-data`.
67
+ attr_accessor :form
68
+
63
69
  # Headers to include when performing the test.
64
70
  attr_accessor :headers
65
71
 
@@ -69,6 +75,9 @@ module DatadogAPIClient::V1
69
75
  # HTTP version to use for a Synthetic test.
70
76
  attr_accessor :http_version
71
77
 
78
+ # Whether the message is base64 encoded.
79
+ attr_accessor :is_message_base64_encoded
80
+
72
81
  # Message to send for UDP or WebSocket tests.
73
82
  attr_accessor :message
74
83
 
@@ -126,15 +135,18 @@ module DatadogAPIClient::V1
126
135
  :'call_type' => :'callType',
127
136
  :'certificate' => :'certificate',
128
137
  :'certificate_domains' => :'certificateDomains',
138
+ :'check_certificate_revocation' => :'checkCertificateRevocation',
129
139
  :'compressed_json_descriptor' => :'compressedJsonDescriptor',
130
140
  :'compressed_proto_file' => :'compressedProtoFile',
131
141
  :'dns_server' => :'dnsServer',
132
142
  :'dns_server_port' => :'dnsServerPort',
133
143
  :'files' => :'files',
134
144
  :'follow_redirects' => :'follow_redirects',
145
+ :'form' => :'form',
135
146
  :'headers' => :'headers',
136
147
  :'host' => :'host',
137
148
  :'http_version' => :'httpVersion',
149
+ :'is_message_base64_encoded' => :'isMessageBase64Encoded',
138
150
  :'message' => :'message',
139
151
  :'metadata' => :'metadata',
140
152
  :'method' => :'method',
@@ -163,15 +175,18 @@ module DatadogAPIClient::V1
163
175
  :'call_type' => :'SyntheticsTestCallType',
164
176
  :'certificate' => :'SyntheticsTestRequestCertificate',
165
177
  :'certificate_domains' => :'Array<String>',
178
+ :'check_certificate_revocation' => :'Boolean',
166
179
  :'compressed_json_descriptor' => :'String',
167
180
  :'compressed_proto_file' => :'String',
168
181
  :'dns_server' => :'String',
169
182
  :'dns_server_port' => :'String',
170
183
  :'files' => :'Array<SyntheticsTestRequestBodyFile>',
171
184
  :'follow_redirects' => :'Boolean',
185
+ :'form' => :'Hash<String, String>',
172
186
  :'headers' => :'Hash<String, String>',
173
187
  :'host' => :'String',
174
188
  :'http_version' => :'SyntheticsTestOptionsHTTPVersion',
189
+ :'is_message_base64_encoded' => :'Boolean',
175
190
  :'message' => :'String',
176
191
  :'metadata' => :'Hash<String, String>',
177
192
  :'method' => :'String',
@@ -237,6 +252,10 @@ module DatadogAPIClient::V1
237
252
  end
238
253
  end
239
254
 
255
+ if attributes.key?(:'check_certificate_revocation')
256
+ self.check_certificate_revocation = attributes[:'check_certificate_revocation']
257
+ end
258
+
240
259
  if attributes.key?(:'compressed_json_descriptor')
241
260
  self.compressed_json_descriptor = attributes[:'compressed_json_descriptor']
242
261
  end
@@ -263,6 +282,10 @@ module DatadogAPIClient::V1
263
282
  self.follow_redirects = attributes[:'follow_redirects']
264
283
  end
265
284
 
285
+ if attributes.key?(:'form')
286
+ self.form = attributes[:'form']
287
+ end
288
+
266
289
  if attributes.key?(:'headers')
267
290
  self.headers = attributes[:'headers']
268
291
  end
@@ -275,6 +298,10 @@ module DatadogAPIClient::V1
275
298
  self.http_version = attributes[:'http_version']
276
299
  end
277
300
 
301
+ if attributes.key?(:'is_message_base64_encoded')
302
+ self.is_message_base64_encoded = attributes[:'is_message_base64_encoded']
303
+ end
304
+
278
305
  if attributes.key?(:'message')
279
306
  self.message = attributes[:'message']
280
307
  end
@@ -387,15 +414,18 @@ module DatadogAPIClient::V1
387
414
  call_type == o.call_type &&
388
415
  certificate == o.certificate &&
389
416
  certificate_domains == o.certificate_domains &&
417
+ check_certificate_revocation == o.check_certificate_revocation &&
390
418
  compressed_json_descriptor == o.compressed_json_descriptor &&
391
419
  compressed_proto_file == o.compressed_proto_file &&
392
420
  dns_server == o.dns_server &&
393
421
  dns_server_port == o.dns_server_port &&
394
422
  files == o.files &&
395
423
  follow_redirects == o.follow_redirects &&
424
+ form == o.form &&
396
425
  headers == o.headers &&
397
426
  host == o.host &&
398
427
  http_version == o.http_version &&
428
+ is_message_base64_encoded == o.is_message_base64_encoded &&
399
429
  message == o.message &&
400
430
  metadata == o.metadata &&
401
431
  method == o.method &&
@@ -417,7 +447,7 @@ module DatadogAPIClient::V1
417
447
  # @return [Integer] Hash code
418
448
  # @!visibility private
419
449
  def hash
420
- [allow_insecure, basic_auth, body, body_type, call_type, certificate, certificate_domains, compressed_json_descriptor, compressed_proto_file, dns_server, dns_server_port, files, follow_redirects, headers, host, http_version, message, metadata, method, no_saving_response_body, number_of_packets, persist_cookies, port, proxy, query, servername, service, should_track_hops, timeout, url, additional_properties].hash
450
+ [allow_insecure, basic_auth, body, body_type, call_type, certificate, certificate_domains, check_certificate_revocation, compressed_json_descriptor, compressed_proto_file, dns_server, dns_server_port, files, follow_redirects, form, headers, host, http_version, is_message_base64_encoded, message, metadata, method, no_saving_response_body, number_of_packets, persist_cookies, port, proxy, query, servername, service, should_track_hops, timeout, url, additional_properties].hash
421
451
  end
422
452
  end
423
453
  end
@@ -44,12 +44,6 @@ module DatadogAPIClient::V2
44
44
  # @param opts [Hash] the optional parameters
45
45
  # @return [Array<(DORADeploymentResponse, Integer, Hash)>] DORADeploymentResponse data, response status code and response headers
46
46
  def create_dora_deployment_with_http_info(body, opts = {})
47
- unstable_enabled = @api_client.config.unstable_operations["v2.create_dora_deployment".to_sym]
48
- if unstable_enabled
49
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_dora_deployment")
50
- else
51
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_dora_deployment"))
52
- end
53
47
 
54
48
  if @api_client.config.debugging
55
49
  @api_client.config.logger.debug 'Calling API: DORAMetricsAPI.create_dora_deployment ...'
@@ -101,6 +95,77 @@ module DatadogAPIClient::V2
101
95
  return data, status_code, headers
102
96
  end
103
97
 
98
+ # Send a failure event for DORA Metrics.
99
+ #
100
+ # @see #create_dora_failure_with_http_info
101
+ def create_dora_failure(body, opts = {})
102
+ data, _status_code, _headers = create_dora_failure_with_http_info(body, opts)
103
+ data
104
+ end
105
+
106
+ # Send a failure event for DORA Metrics.
107
+ #
108
+ # Use this API endpoint to provide failure data for DORA metrics.
109
+ #
110
+ # This is necessary for:
111
+ # - Change Failure Rate
112
+ # - Time to Restore
113
+ #
114
+ # @param body [DORAFailureRequest]
115
+ # @param opts [Hash] the optional parameters
116
+ # @return [Array<(DORAFailureResponse, Integer, Hash)>] DORAFailureResponse data, response status code and response headers
117
+ def create_dora_failure_with_http_info(body, opts = {})
118
+
119
+ if @api_client.config.debugging
120
+ @api_client.config.logger.debug 'Calling API: DORAMetricsAPI.create_dora_failure ...'
121
+ end
122
+ # verify the required parameter 'body' is set
123
+ if @api_client.config.client_side_validation && body.nil?
124
+ fail ArgumentError, "Missing the required parameter 'body' when calling DORAMetricsAPI.create_dora_failure"
125
+ end
126
+ # resource path
127
+ local_var_path = '/api/v2/dora/failure'
128
+
129
+ # query parameters
130
+ query_params = opts[:query_params] || {}
131
+
132
+ # header parameters
133
+ header_params = opts[:header_params] || {}
134
+ # HTTP header 'Accept' (if needed)
135
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
136
+ # HTTP header 'Content-Type'
137
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
138
+
139
+ # form parameters
140
+ form_params = opts[:form_params] || {}
141
+
142
+ # http body (model)
143
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
144
+
145
+ # return_type
146
+ return_type = opts[:debug_return_type] || 'DORAFailureResponse'
147
+
148
+ # auth_names
149
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth]
150
+
151
+ new_options = opts.merge(
152
+ :operation => :create_dora_failure,
153
+ :header_params => header_params,
154
+ :query_params => query_params,
155
+ :form_params => form_params,
156
+ :body => post_body,
157
+ :auth_names => auth_names,
158
+ :return_type => return_type,
159
+ :api_version => "V2"
160
+ )
161
+
162
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
163
+ if @api_client.config.debugging
164
+ @api_client.config.logger.debug "API called: DORAMetricsAPI#create_dora_failure\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
165
+ end
166
+ return data, status_code, headers
167
+ end
168
+
104
169
  # Send an incident event for DORA Metrics.
105
170
  #
106
171
  # @see #create_dora_incident_with_http_info
@@ -111,22 +176,21 @@ module DatadogAPIClient::V2
111
176
 
112
177
  # Send an incident event for DORA Metrics.
113
178
  #
179
+ # **Note**: This endpoint is deprecated. Please use `/api/v2/dora/failure` instead.
180
+ #
114
181
  # Use this API endpoint to provide failure data for DORA metrics.
115
182
  #
116
183
  # This is necessary for:
117
184
  # - Change Failure Rate
118
185
  # - Time to Restore
119
186
  #
120
- # @param body [DORAIncidentRequest]
187
+ # @deprecated This API is deprecated.
188
+ #
189
+ # @param body [DORAFailureRequest]
121
190
  # @param opts [Hash] the optional parameters
122
- # @return [Array<(DORAIncidentResponse, Integer, Hash)>] DORAIncidentResponse data, response status code and response headers
191
+ # @return [Array<(DORAFailureResponse, Integer, Hash)>] DORAFailureResponse data, response status code and response headers
123
192
  def create_dora_incident_with_http_info(body, opts = {})
124
- unstable_enabled = @api_client.config.unstable_operations["v2.create_dora_incident".to_sym]
125
- if unstable_enabled
126
- @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_dora_incident")
127
- else
128
- raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_dora_incident"))
129
- end
193
+ warn "[DEPRECATION] `CreateDORAIncident` is deprecated."
130
194
 
131
195
  if @api_client.config.debugging
132
196
  @api_client.config.logger.debug 'Calling API: DORAMetricsAPI.create_dora_incident ...'
@@ -155,7 +219,7 @@ module DatadogAPIClient::V2
155
219
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
156
220
 
157
221
  # return_type
158
- return_type = opts[:debug_return_type] || 'DORAIncidentResponse'
222
+ return_type = opts[:debug_return_type] || 'DORAFailureResponse'
159
223
 
160
224
  # auth_names
161
225
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth]
@@ -561,6 +561,73 @@ module DatadogAPIClient::V2
561
561
  return data, status_code, headers
562
562
  end
563
563
 
564
+ # Get team on-call users.
565
+ #
566
+ # @see #get_team_on_call_users_with_http_info
567
+ def get_team_on_call_users(team_id, opts = {})
568
+ data, _status_code, _headers = get_team_on_call_users_with_http_info(team_id, opts)
569
+ data
570
+ end
571
+
572
+ # Get team on-call users.
573
+ #
574
+ # Get a team's on-call users at a given time
575
+ #
576
+ # @param team_id [String] The team ID
577
+ # @param opts [Hash] the optional parameters
578
+ # @option opts [String] :include Comma-separated list of included relationships to be returned. Allowed values: `responders`, `escalations`, `escalations.responders`.
579
+ # @return [Array<(TeamOnCallResponders, Integer, Hash)>] TeamOnCallResponders data, response status code and response headers
580
+ def get_team_on_call_users_with_http_info(team_id, opts = {})
581
+
582
+ if @api_client.config.debugging
583
+ @api_client.config.logger.debug 'Calling API: OnCallAPI.get_team_on_call_users ...'
584
+ end
585
+ # verify the required parameter 'team_id' is set
586
+ if @api_client.config.client_side_validation && team_id.nil?
587
+ fail ArgumentError, "Missing the required parameter 'team_id' when calling OnCallAPI.get_team_on_call_users"
588
+ end
589
+ # resource path
590
+ local_var_path = '/api/v2/on-call/teams/{team_id}/on-call'.sub('{team_id}', CGI.escape(team_id.to_s).gsub('%2F', '/'))
591
+
592
+ # query parameters
593
+ query_params = opts[:query_params] || {}
594
+ query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
595
+
596
+ # header parameters
597
+ header_params = opts[:header_params] || {}
598
+ # HTTP header 'Accept' (if needed)
599
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
600
+
601
+ # form parameters
602
+ form_params = opts[:form_params] || {}
603
+
604
+ # http body (model)
605
+ post_body = opts[:debug_body]
606
+
607
+ # return_type
608
+ return_type = opts[:debug_return_type] || 'TeamOnCallResponders'
609
+
610
+ # auth_names
611
+ auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
612
+
613
+ new_options = opts.merge(
614
+ :operation => :get_team_on_call_users,
615
+ :header_params => header_params,
616
+ :query_params => query_params,
617
+ :form_params => form_params,
618
+ :body => post_body,
619
+ :auth_names => auth_names,
620
+ :return_type => return_type,
621
+ :api_version => "V2"
622
+ )
623
+
624
+ data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
625
+ if @api_client.config.debugging
626
+ @api_client.config.logger.debug "API called: OnCallAPI#get_team_on_call_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
627
+ end
628
+ return data, status_code, headers
629
+ end
630
+
564
631
  # Set On-Call team routing rules.
565
632
  #
566
633
  # @see #set_on_call_team_routing_rules_with_http_info
@@ -35,7 +35,7 @@ module DatadogAPIClient::V2
35
35
  #
36
36
  # Deletes the restriction policy associated with a specified resource.
37
37
  #
38
- # @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`.
38
+ # @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`.
39
39
  # @param opts [Hash] the optional parameters
40
40
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
41
41
  def delete_restriction_policy_with_http_info(resource_id, opts = {})
@@ -100,7 +100,7 @@ module DatadogAPIClient::V2
100
100
  #
101
101
  # Retrieves the restriction policy associated with a specified resource.
102
102
  #
103
- # @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`.
103
+ # @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`.
104
104
  # @param opts [Hash] the optional parameters
105
105
  # @return [Array<(RestrictionPolicyResponse, Integer, Hash)>] RestrictionPolicyResponse data, response status code and response headers
106
106
  def get_restriction_policy_with_http_info(resource_id, opts = {})
@@ -184,6 +184,7 @@ module DatadogAPIClient::V2
184
184
  # - App Builder Apps: `app-builder-app`
185
185
  # - Connections: `connection`
186
186
  # - Connection Groups: `connection-group`
187
+ # - RUM Applications: `rum-application`
187
188
  #
188
189
  # #### Supported relations for resources
189
190
  # Resource Type | Supported Relations
@@ -205,8 +206,9 @@ module DatadogAPIClient::V2
205
206
  # App Builder Apps | `viewer`, `editor`
206
207
  # Connections | `viewer`, `resolver`, `editor`
207
208
  # Connection Groups | `viewer`, `editor`
209
+ # RUM Application | `viewer`, `editor`
208
210
  #
209
- # @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`.
211
+ # @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`.
210
212
  # @param body [RestrictionPolicyUpdateRequest] Restriction policy payload
211
213
  # @param opts [Hash] the optional parameters
212
214
  # @option opts [Boolean] :allow_self_lockout Allows admins (users with the `user_access_manage` permission) to remove their own access from the resource if set to `true`. By default, this is set to `false`, preventing admins from locking themselves out.
@@ -2376,6 +2376,17 @@ module DatadogAPIClient::V2
2376
2376
  #
2377
2377
  # Query parameters must be only among the documented ones and with values of correct types. Duplicated query parameters (e.g. `filter[status]=low&filter[status]=info`) are not allowed.
2378
2378
  #
2379
+ # ### Additional extension fields
2380
+ #
2381
+ # Additional extension fields are available for some findings.
2382
+ #
2383
+ # The data is available when you include the query parameter `?detailed_findings=true` in the request.
2384
+ #
2385
+ # The following fields are available for findings:
2386
+ # - `external_id`: The resource external ID related to the finding.
2387
+ # - `description`: The description and remediation steps for the finding.
2388
+ # - `datadog_link`: The Datadog relative link for the finding.
2389
+ #
2379
2390
  # ### Response
2380
2391
  #
2381
2392
  # The response includes an array of finding objects, pagination metadata, and a count of items that match the query.
@@ -2402,6 +2413,7 @@ module DatadogAPIClient::V2
2402
2413
  # @option opts [FindingEvaluation] :filter_evaluation Return only `pass` or `fail` findings.
2403
2414
  # @option opts [FindingStatus] :filter_status Return only findings with the specified status.
2404
2415
  # @option opts [Array<FindingVulnerabilityType>] :filter_vulnerability_type Return findings that match the selected vulnerability types (repeatable).
2416
+ # @option opts [Boolean] :detailed_findings Return additional fields for some findings.
2405
2417
  # @return [Array<(ListFindingsResponse, Integer, Hash)>] ListFindingsResponse data, response status code and response headers
2406
2418
  def list_findings_with_http_info(opts = {})
2407
2419
  unstable_enabled = @api_client.config.unstable_operations["v2.list_findings".to_sym]
@@ -2449,6 +2461,7 @@ module DatadogAPIClient::V2
2449
2461
  query_params[:'filter[evaluation]'] = opts[:'filter_evaluation'] if !opts[:'filter_evaluation'].nil?
2450
2462
  query_params[:'filter[status]'] = opts[:'filter_status'] if !opts[:'filter_status'].nil?
2451
2463
  query_params[:'filter[vulnerability_type]'] = @api_client.build_collection_param(opts[:'filter_vulnerability_type'], :multi) if !opts[:'filter_vulnerability_type'].nil?
2464
+ query_params[:'detailed_findings'] = opts[:'detailed_findings'] if !opts[:'detailed_findings'].nil?
2452
2465
 
2453
2466
  # header parameters
2454
2467
  header_params = opts[:header_params] || {}