Skip to content

Commit 7f240cd

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add readonly ID of synthetics test steps (#2646)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent acefe0a commit 7f240cd

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14413,6 +14413,11 @@ components:
1441314413
extractedValuesFromScript:
1441414414
description: Generate variables using JavaScript.
1441514415
type: string
14416+
id:
14417+
description: ID of the step.
14418+
example: abc-def-123
14419+
readOnly: true
14420+
type: string
1441614421
isCritical:
1441714422
description: 'Determines whether or not to consider the entire test as failed
1441814423
if this step fails.
@@ -14469,6 +14474,11 @@ components:
1446914474
SyntheticsAPIWaitStep:
1447014475
description: The Wait step used in a Synthetic multi-step API test.
1447114476
properties:
14477+
id:
14478+
description: ID of the step.
14479+
example: abc-def-123
14480+
readOnly: true
14481+
type: string
1447214482
name:
1447314483
description: The name of the step.
1447414484
example: Example step name

lib/datadog_api_client/v1/models/synthetics_api_test_step.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ class SyntheticsAPITestStep
3636
# Generate variables using JavaScript.
3737
attr_accessor :extracted_values_from_script
3838

39+
# ID of the step.
40+
attr_accessor :id
41+
3942
# Determines whether or not to consider the entire test as failed if this step fails.
4043
# Can be used only if `allowFailure` is `true`.
4144
attr_accessor :is_critical
@@ -63,6 +66,7 @@ def self.attribute_map
6366
:'exit_if_succeed' => :'exitIfSucceed',
6467
:'extracted_values' => :'extractedValues',
6568
:'extracted_values_from_script' => :'extractedValuesFromScript',
69+
:'id' => :'id',
6670
:'is_critical' => :'isCritical',
6771
:'name' => :'name',
6872
:'request' => :'request',
@@ -80,6 +84,7 @@ def self.openapi_types
8084
:'exit_if_succeed' => :'Boolean',
8185
:'extracted_values' => :'Array<SyntheticsParsingOptions>',
8286
:'extracted_values_from_script' => :'String',
87+
:'id' => :'String',
8388
:'is_critical' => :'Boolean',
8489
:'name' => :'String',
8590
:'request' => :'SyntheticsTestRequest',
@@ -130,6 +135,10 @@ def initialize(attributes = {})
130135
self.extracted_values_from_script = attributes[:'extracted_values_from_script']
131136
end
132137

138+
if attributes.key?(:'id')
139+
self.id = attributes[:'id']
140+
end
141+
133142
if attributes.key?(:'is_critical')
134143
self.is_critical = attributes[:'is_critical']
135144
end
@@ -233,6 +242,7 @@ def ==(o)
233242
exit_if_succeed == o.exit_if_succeed &&
234243
extracted_values == o.extracted_values &&
235244
extracted_values_from_script == o.extracted_values_from_script &&
245+
id == o.id &&
236246
is_critical == o.is_critical &&
237247
name == o.name &&
238248
request == o.request &&
@@ -245,7 +255,7 @@ def ==(o)
245255
# @return [Integer] Hash code
246256
# @!visibility private
247257
def hash
248-
[allow_failure, assertions, exit_if_succeed, extracted_values, extracted_values_from_script, is_critical, name, request, _retry, subtype, additional_properties].hash
258+
[allow_failure, assertions, exit_if_succeed, extracted_values, extracted_values_from_script, id, is_critical, name, request, _retry, subtype, additional_properties].hash
249259
end
250260
end
251261
end

lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module DatadogAPIClient::V1
2121
class SyntheticsAPIWaitStep
2222
include BaseGenericModel
2323

24+
# ID of the step.
25+
attr_accessor :id
26+
2427
# The name of the step.
2528
attr_reader :name
2629

@@ -36,6 +39,7 @@ class SyntheticsAPIWaitStep
3639
# @!visibility private
3740
def self.attribute_map
3841
{
42+
:'id' => :'id',
3943
:'name' => :'name',
4044
:'subtype' => :'subtype',
4145
:'value' => :'value'
@@ -46,6 +50,7 @@ def self.attribute_map
4650
# @!visibility private
4751
def self.openapi_types
4852
{
53+
:'id' => :'String',
4954
:'name' => :'String',
5055
:'subtype' => :'SyntheticsAPIWaitStepSubtype',
5156
:'value' => :'Integer'
@@ -70,6 +75,10 @@ def initialize(attributes = {})
7075
end
7176
}
7277

78+
if attributes.key?(:'id')
79+
self.id = attributes[:'id']
80+
end
81+
7382
if attributes.key?(:'name')
7483
self.name = attributes[:'name']
7584
end
@@ -157,6 +166,7 @@ def to_hash
157166
def ==(o)
158167
return true if self.equal?(o)
159168
self.class == o.class &&
169+
id == o.id &&
160170
name == o.name &&
161171
subtype == o.subtype &&
162172
value == o.value &&
@@ -167,7 +177,7 @@ def ==(o)
167177
# @return [Integer] Hash code
168178
# @!visibility private
169179
def hash
170-
[name, subtype, value, additional_properties].hash
180+
[id, name, subtype, value, additional_properties].hash
171181
end
172182
end
173183
end

0 commit comments

Comments
 (0)