diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 650231401261..f5051733337c 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -14413,6 +14413,11 @@ components: extractedValuesFromScript: description: Generate variables using JavaScript. type: string + id: + description: ID of the step. + example: abc-def-123 + readOnly: true + type: string isCritical: description: 'Determines whether or not to consider the entire test as failed if this step fails. @@ -14469,6 +14474,11 @@ components: SyntheticsAPIWaitStep: description: The Wait step used in a Synthetic multi-step API test. properties: + id: + description: ID of the step. + example: abc-def-123 + readOnly: true + type: string name: description: The name of the step. example: Example step name diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb index 88ecfd97f12a..6af8e16b7f71 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb @@ -36,6 +36,9 @@ class SyntheticsAPITestStep # Generate variables using JavaScript. attr_accessor :extracted_values_from_script + # ID of the step. + attr_accessor :id + # Determines whether or not to consider the entire test as failed if this step fails. # Can be used only if `allowFailure` is `true`. attr_accessor :is_critical @@ -63,6 +66,7 @@ def self.attribute_map :'exit_if_succeed' => :'exitIfSucceed', :'extracted_values' => :'extractedValues', :'extracted_values_from_script' => :'extractedValuesFromScript', + :'id' => :'id', :'is_critical' => :'isCritical', :'name' => :'name', :'request' => :'request', @@ -80,6 +84,7 @@ def self.openapi_types :'exit_if_succeed' => :'Boolean', :'extracted_values' => :'Array', :'extracted_values_from_script' => :'String', + :'id' => :'String', :'is_critical' => :'Boolean', :'name' => :'String', :'request' => :'SyntheticsTestRequest', @@ -130,6 +135,10 @@ def initialize(attributes = {}) self.extracted_values_from_script = attributes[:'extracted_values_from_script'] end + if attributes.key?(:'id') + self.id = attributes[:'id'] + end + if attributes.key?(:'is_critical') self.is_critical = attributes[:'is_critical'] end @@ -233,6 +242,7 @@ def ==(o) exit_if_succeed == o.exit_if_succeed && extracted_values == o.extracted_values && extracted_values_from_script == o.extracted_values_from_script && + id == o.id && is_critical == o.is_critical && name == o.name && request == o.request && @@ -245,7 +255,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [allow_failure, assertions, exit_if_succeed, extracted_values, extracted_values_from_script, is_critical, name, request, _retry, subtype, additional_properties].hash + [allow_failure, assertions, exit_if_succeed, extracted_values, extracted_values_from_script, id, is_critical, name, request, _retry, subtype, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb index d4d2a30014b6..fd82798df81d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb @@ -21,6 +21,9 @@ module DatadogAPIClient::V1 class SyntheticsAPIWaitStep include BaseGenericModel + # ID of the step. + attr_accessor :id + # The name of the step. attr_reader :name @@ -36,6 +39,7 @@ class SyntheticsAPIWaitStep # @!visibility private def self.attribute_map { + :'id' => :'id', :'name' => :'name', :'subtype' => :'subtype', :'value' => :'value' @@ -46,6 +50,7 @@ def self.attribute_map # @!visibility private def self.openapi_types { + :'id' => :'String', :'name' => :'String', :'subtype' => :'SyntheticsAPIWaitStepSubtype', :'value' => :'Integer' @@ -70,6 +75,10 @@ def initialize(attributes = {}) end } + if attributes.key?(:'id') + self.id = attributes[:'id'] + end + if attributes.key?(:'name') self.name = attributes[:'name'] end @@ -157,6 +166,7 @@ def to_hash def ==(o) return true if self.equal?(o) self.class == o.class && + id == o.id && name == o.name && subtype == o.subtype && value == o.value && @@ -167,7 +177,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [name, subtype, value, additional_properties].hash + [id, name, subtype, value, additional_properties].hash end end end