From 33dd68abe3ae9b555d5c412a577125f8e59b3232 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Fri, 5 Mar 2021 17:22:27 +0100 Subject: [PATCH 1/2] rm old test --- ...variable_parse_test_options_parser_spec.rb | 43 ------------------- 1 file changed, 43 deletions(-) delete mode 100644 spec/v1/models/synthetics_global_variable_parse_test_options_parser_spec.rb diff --git a/spec/v1/models/synthetics_global_variable_parse_test_options_parser_spec.rb b/spec/v1/models/synthetics_global_variable_parse_test_options_parser_spec.rb deleted file mode 100644 index 38b84f7a93c5..000000000000 --- a/spec/v1/models/synthetics_global_variable_parse_test_options_parser_spec.rb +++ /dev/null @@ -1,43 +0,0 @@ -=begin -#Datadog API V1 Collection - -#Collection of all Datadog Public endpoints. - -The version of the OpenAPI document: 1.0 -Contact: support@datadoghq.com -Generated by: https://openapi-generator.tech - - Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - This product includes software developed at Datadog (https://www.datadoghq.com/). - Copyright 2020-Present Datadog, Inc. - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptionsParser -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptionsParser do - let(:instance) { DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptionsParser.new } - - describe 'test an instance of SyntheticsGlobalVariableParseTestOptionsParser' do - it 'should create an instance of SyntheticsGlobalVariableParseTestOptionsParser' do - expect(instance).to be_instance_of(DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptionsParser) - end - end - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end From 6c5e17ee3a31c16c158e2c216d6fe26089804ccd Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 8 Mar 2021 16:50:23 +0000 Subject: [PATCH 2/2] Regenerate client from commit ce24aad of spec repo --- .apigentools-info | 8 +- data/v1/openapi.yaml | 89 ++++-- docs/v1/README.md | 5 +- docs/v1/SyntheticsAPIStep.md | 26 ++ docs/v1/SyntheticsAPIStepSubtype.md | 15 + docs/v1/SyntheticsAPITestConfig.md | 6 +- ...yntheticsGlobalVariableParseTestOptions.md | 2 +- docs/v1/SyntheticsParsingOptions.md | 24 ++ ...sParser.md => SyntheticsVariableParser.md} | 4 +- lib/datadog_api_client/v1.rb | 5 +- .../v1/models/synthetics_api_step.rb | 265 ++++++++++++++++++ .../v1/models/synthetics_api_step_subtype.rb | 39 +++ .../v1/models/synthetics_api_test_config.rb | 25 +- ...tics_global_variable_parse_test_options.rb | 2 +- .../v1/models/synthetics_parsing_options.rb | 251 +++++++++++++++++ .../synthetics_test_details_sub_type.rb | 1 + ...arser.rb => synthetics_variable_parser.rb} | 6 +- spec/v1/models/synthetics_api_step_spec.rb | 61 ++++ .../synthetics_api_step_subtype_spec.rb | 31 ++ .../models/synthetics_parsing_options_spec.rb | 55 ++++ .../models/synthetics_variable_parser_spec.rb | 43 +++ 21 files changed, 922 insertions(+), 41 deletions(-) create mode 100644 docs/v1/SyntheticsAPIStep.md create mode 100644 docs/v1/SyntheticsAPIStepSubtype.md create mode 100644 docs/v1/SyntheticsParsingOptions.md rename docs/v1/{SyntheticsGlobalVariableParseTestOptionsParser.md => SyntheticsVariableParser.md} (71%) create mode 100644 lib/datadog_api_client/v1/models/synthetics_api_step.rb create mode 100644 lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb create mode 100644 lib/datadog_api_client/v1/models/synthetics_parsing_options.rb rename lib/datadog_api_client/v1/models/{synthetics_global_variable_parse_test_options_parser.rb => synthetics_variable_parser.rb} (95%) create mode 100644 spec/v1/models/synthetics_api_step_spec.rb create mode 100644 spec/v1/models/synthetics_api_step_subtype_spec.rb create mode 100644 spec/v1/models/synthetics_parsing_options_spec.rb create mode 100644 spec/v1/models/synthetics_variable_parser_spec.rb diff --git a/.apigentools-info b/.apigentools-info index 478b457fb70e..54f3dd083135 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.4.1.dev8", - "regenerated": "2021-03-08 11:23:25.061959", - "spec_repo_commit": "a75da1e" + "regenerated": "2021-03-08 16:50:06.973164", + "spec_repo_commit": "ce24aad" }, "v2": { "apigentools_version": "1.4.1.dev8", - "regenerated": "2021-03-08 11:23:38.208550", - "spec_repo_commit": "a75da1e" + "regenerated": "2021-03-08 16:50:20.581412", + "spec_repo_commit": "ce24aad" } } } \ No newline at end of file diff --git a/data/v1/openapi.yaml b/data/v1/openapi.yaml index b073398f62ef..91eb96cbe473 100644 --- a/data/v1/openapi.yaml +++ b/data/v1/openapi.yaml @@ -6295,6 +6295,37 @@ components: items: $ref: '#/components/schemas/SlackIntegrationChannel' type: array + SyntheticsAPIStep: + description: The steps used in a Synthetics multistep API test. + properties: + assertions: + default: [] + description: Array of assertions used for the test. + example: [] + items: + $ref: '#/components/schemas/SyntheticsAssertion' + type: array + extractedValues: + description: Array of values to parse and save as variables from the response. + items: + $ref: '#/components/schemas/SyntheticsParsingOptions' + type: array + name: + description: The name of the step. + type: string + request: + $ref: '#/components/schemas/SyntheticsTestRequest' + subtype: + $ref: '#/components/schemas/SyntheticsAPIStepSubtype' + type: object + SyntheticsAPIStepSubtype: + description: The subtype of the Synthetic multistep API test step, currently + only supporting `http`. + enum: + - http + type: string + x-enum-varnames: + - HTTP SyntheticsAPITest: description: Object containing details about a Synthetic API test. properties: @@ -6351,8 +6382,12 @@ components: type: array request: $ref: '#/components/schemas/SyntheticsTestRequest' + steps: + description: When the test subtype is `multi`, the steps of the test. + items: + $ref: '#/components/schemas/SyntheticsAPIStep' + type: array required: - - request - assertions type: object SyntheticsAPITestResultData: @@ -7153,20 +7188,7 @@ components: example: content-type type: string parser: - description: Details of the parser to use for the global variable. - example: - type: regex - value: .* - properties: - type: - $ref: '#/components/schemas/SyntheticsGlobalVariableParserType' - value: - description: Regex or JSON path used for the parser. Not used with - type `raw`. - type: string - required: - - type - type: object + $ref: '#/components/schemas/SyntheticsVariableParser' type: $ref: '#/components/schemas/SyntheticsGlobalVariableParseTestOptionsType' required: @@ -7264,6 +7286,22 @@ components: $ref: '#/components/schemas/SyntheticsLocation' type: array type: object + SyntheticsParsingOptions: + description: Parsing options for variables to extract. + properties: + field: + description: When type is `http_header`, name of the header to use to extract + the value. + example: content-type + type: string + name: + description: Name of the variable to extract. + type: string + parser: + $ref: '#/components/schemas/SyntheticsVariableParser' + type: + $ref: '#/components/schemas/SyntheticsGlobalVariableParseTestOptionsType' + type: object SyntheticsPlayingTab: description: Navigate between different tabs for your browser test. enum: @@ -7666,20 +7704,22 @@ components: $ref: '#/components/schemas/SyntheticsTestDetailsType' type: object SyntheticsTestDetailsSubType: - description: 'The sub-type of the Synthetic API test, `http`, `ssl`, `tcp` or + description: 'The subtype of the Synthetic API test, `http`, `ssl`, `tcp`, - `dns`.' + `dns` or `multi`.' enum: - http - ssl - tcp - dns + - multi type: string x-enum-varnames: - HTTP - SSL - TCP - DNS + - MULTI SyntheticsTestDetailsType: description: Type of the Synthetic test, either `api` or `browser`. enum: @@ -7984,6 +8024,21 @@ components: new_status: $ref: '#/components/schemas/SyntheticsTestPauseStatus' type: object + SyntheticsVariableParser: + description: Details of the parser to use for the global variable. + example: + type: regex + value: .* + properties: + type: + $ref: '#/components/schemas/SyntheticsGlobalVariableParserType' + value: + description: Regex or JSON path used for the parser. Not used with type + `raw`. + type: string + required: + - type + type: object SyntheticsWarningType: description: User locator used. enum: diff --git a/docs/v1/README.md b/docs/v1/README.md index fa313b741f0a..0f092dfbf22f 100644 --- a/docs/v1/README.md +++ b/docs/v1/README.md @@ -538,6 +538,8 @@ Class | Method | HTTP request | Description - [DatadogAPIClient::V1::ServiceSummaryWidgetDefinitionType](ServiceSummaryWidgetDefinitionType.md) - [DatadogAPIClient::V1::SlackIntegrationChannel](SlackIntegrationChannel.md) - [DatadogAPIClient::V1::SlackIntegrationChannelDisplay](SlackIntegrationChannelDisplay.md) + - [DatadogAPIClient::V1::SyntheticsAPIStep](SyntheticsAPIStep.md) + - [DatadogAPIClient::V1::SyntheticsAPIStepSubtype](SyntheticsAPIStepSubtype.md) - [DatadogAPIClient::V1::SyntheticsAPITest](SyntheticsAPITest.md) - [DatadogAPIClient::V1::SyntheticsAPITestConfig](SyntheticsAPITestConfig.md) - [DatadogAPIClient::V1::SyntheticsAPITestResultData](SyntheticsAPITestResultData.md) @@ -585,13 +587,13 @@ Class | Method | HTTP request | Description - [DatadogAPIClient::V1::SyntheticsGetBrowserTestLatestResultsResponse](SyntheticsGetBrowserTestLatestResultsResponse.md) - [DatadogAPIClient::V1::SyntheticsGlobalVariable](SyntheticsGlobalVariable.md) - [DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptions](SyntheticsGlobalVariableParseTestOptions.md) - - [DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptionsParser](SyntheticsGlobalVariableParseTestOptionsParser.md) - [DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptionsType](SyntheticsGlobalVariableParseTestOptionsType.md) - [DatadogAPIClient::V1::SyntheticsGlobalVariableParserType](SyntheticsGlobalVariableParserType.md) - [DatadogAPIClient::V1::SyntheticsGlobalVariableValue](SyntheticsGlobalVariableValue.md) - [DatadogAPIClient::V1::SyntheticsListTestsResponse](SyntheticsListTestsResponse.md) - [DatadogAPIClient::V1::SyntheticsLocation](SyntheticsLocation.md) - [DatadogAPIClient::V1::SyntheticsLocations](SyntheticsLocations.md) + - [DatadogAPIClient::V1::SyntheticsParsingOptions](SyntheticsParsingOptions.md) - [DatadogAPIClient::V1::SyntheticsPlayingTab](SyntheticsPlayingTab.md) - [DatadogAPIClient::V1::SyntheticsPrivateLocation](SyntheticsPrivateLocation.md) - [DatadogAPIClient::V1::SyntheticsPrivateLocationCreationResponse](SyntheticsPrivateLocationCreationResponse.md) @@ -625,6 +627,7 @@ Class | Method | HTTP request | Description - [DatadogAPIClient::V1::SyntheticsTriggerCITestRunResult](SyntheticsTriggerCITestRunResult.md) - [DatadogAPIClient::V1::SyntheticsTriggerCITestsResponse](SyntheticsTriggerCITestsResponse.md) - [DatadogAPIClient::V1::SyntheticsUpdateTestPauseStatusPayload](SyntheticsUpdateTestPauseStatusPayload.md) + - [DatadogAPIClient::V1::SyntheticsVariableParser](SyntheticsVariableParser.md) - [DatadogAPIClient::V1::SyntheticsWarningType](SyntheticsWarningType.md) - [DatadogAPIClient::V1::TableWidgetCellDisplayMode](TableWidgetCellDisplayMode.md) - [DatadogAPIClient::V1::TableWidgetDefinition](TableWidgetDefinition.md) diff --git a/docs/v1/SyntheticsAPIStep.md b/docs/v1/SyntheticsAPIStep.md new file mode 100644 index 000000000000..429cb158a298 --- /dev/null +++ b/docs/v1/SyntheticsAPIStep.md @@ -0,0 +1,26 @@ +# DatadogAPIClient::V1::SyntheticsAPIStep + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **assertions** | [**Array<SyntheticsAssertion>**](SyntheticsAssertion.md) | Array of assertions used for the test. | [optional] | +| **extracted_values** | [**Array<SyntheticsParsingOptions>**](SyntheticsParsingOptions.md) | Array of values to parse and save as variables from the response. | [optional] | +| **name** | **String** | The name of the step. | [optional] | +| **request** | [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | | [optional] | +| **subtype** | [**SyntheticsAPIStepSubtype**](SyntheticsAPIStepSubtype.md) | | [optional] | + +## Example + +```ruby +require 'datadog_api_client/v1' + +instance = DatadogAPIClient::V1::SyntheticsAPIStep.new( + assertions: [], + extracted_values: null, + name: null, + request: null, + subtype: null +) +``` + diff --git a/docs/v1/SyntheticsAPIStepSubtype.md b/docs/v1/SyntheticsAPIStepSubtype.md new file mode 100644 index 000000000000..01f7d256e57e --- /dev/null +++ b/docs/v1/SyntheticsAPIStepSubtype.md @@ -0,0 +1,15 @@ +# DatadogAPIClient::V1::SyntheticsAPIStepSubtype + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | + +## Example + +```ruby +require 'datadog_api_client/v1' + +instance = DatadogAPIClient::V1::SyntheticsAPIStepSubtype.new() +``` + diff --git a/docs/v1/SyntheticsAPITestConfig.md b/docs/v1/SyntheticsAPITestConfig.md index c0f6c6499068..305233a7bfe3 100644 --- a/docs/v1/SyntheticsAPITestConfig.md +++ b/docs/v1/SyntheticsAPITestConfig.md @@ -6,7 +6,8 @@ | ---- | ---- | ----------- | ----- | | **assertions** | [**Array<SyntheticsAssertion>**](SyntheticsAssertion.md) | Array of assertions used for the test. | | | **config_variables** | [**Array<SyntheticsConfigVariable>**](SyntheticsConfigVariable.md) | Array of variables used for the test. | [optional] | -| **request** | [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | | | +| **request** | [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | | [optional] | +| **steps** | [**Array<SyntheticsAPIStep>**](SyntheticsAPIStep.md) | When the test subtype is `multi`, the steps of the test. | [optional] | ## Example @@ -16,7 +17,8 @@ require 'datadog_api_client/v1' instance = DatadogAPIClient::V1::SyntheticsAPITestConfig.new( assertions: [], config_variables: null, - request: null + request: null, + steps: null ) ``` diff --git a/docs/v1/SyntheticsGlobalVariableParseTestOptions.md b/docs/v1/SyntheticsGlobalVariableParseTestOptions.md index c7ad44ab153d..4181d68ee19b 100644 --- a/docs/v1/SyntheticsGlobalVariableParseTestOptions.md +++ b/docs/v1/SyntheticsGlobalVariableParseTestOptions.md @@ -5,7 +5,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **field** | **String** | When type is `http_header`, name of the header to use to extract the value. | [optional] | -| **parser** | [**SyntheticsGlobalVariableParseTestOptionsParser**](SyntheticsGlobalVariableParseTestOptionsParser.md) | | | +| **parser** | [**SyntheticsVariableParser**](SyntheticsVariableParser.md) | | | | **type** | [**SyntheticsGlobalVariableParseTestOptionsType**](SyntheticsGlobalVariableParseTestOptionsType.md) | | | ## Example diff --git a/docs/v1/SyntheticsParsingOptions.md b/docs/v1/SyntheticsParsingOptions.md new file mode 100644 index 000000000000..2d97c2b5f7e6 --- /dev/null +++ b/docs/v1/SyntheticsParsingOptions.md @@ -0,0 +1,24 @@ +# DatadogAPIClient::V1::SyntheticsParsingOptions + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **field** | **String** | When type is `http_header`, name of the header to use to extract the value. | [optional] | +| **name** | **String** | Name of the variable to extract. | [optional] | +| **parser** | [**SyntheticsVariableParser**](SyntheticsVariableParser.md) | | [optional] | +| **type** | [**SyntheticsGlobalVariableParseTestOptionsType**](SyntheticsGlobalVariableParseTestOptionsType.md) | | [optional] | + +## Example + +```ruby +require 'datadog_api_client/v1' + +instance = DatadogAPIClient::V1::SyntheticsParsingOptions.new( + field: content-type, + name: null, + parser: null, + type: null +) +``` + diff --git a/docs/v1/SyntheticsGlobalVariableParseTestOptionsParser.md b/docs/v1/SyntheticsVariableParser.md similarity index 71% rename from docs/v1/SyntheticsGlobalVariableParseTestOptionsParser.md rename to docs/v1/SyntheticsVariableParser.md index 94c1eebd2804..a7bcf8119119 100644 --- a/docs/v1/SyntheticsGlobalVariableParseTestOptionsParser.md +++ b/docs/v1/SyntheticsVariableParser.md @@ -1,4 +1,4 @@ -# DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptionsParser +# DatadogAPIClient::V1::SyntheticsVariableParser ## Properties @@ -12,7 +12,7 @@ ```ruby require 'datadog_api_client/v1' -instance = DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptionsParser.new( +instance = DatadogAPIClient::V1::SyntheticsVariableParser.new( type: null, value: null ) diff --git a/lib/datadog_api_client/v1.rb b/lib/datadog_api_client/v1.rb index 60eb94548219..ea2a5b8add50 100644 --- a/lib/datadog_api_client/v1.rb +++ b/lib/datadog_api_client/v1.rb @@ -292,6 +292,8 @@ require 'datadog_api_client/v1/models/service_summary_widget_definition_type' require 'datadog_api_client/v1/models/slack_integration_channel' require 'datadog_api_client/v1/models/slack_integration_channel_display' +require 'datadog_api_client/v1/models/synthetics_api_step' +require 'datadog_api_client/v1/models/synthetics_api_step_subtype' require 'datadog_api_client/v1/models/synthetics_api_test' require 'datadog_api_client/v1/models/synthetics_api_test_config' require 'datadog_api_client/v1/models/synthetics_api_test_result_data' @@ -339,13 +341,13 @@ require 'datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response' require 'datadog_api_client/v1/models/synthetics_global_variable' require 'datadog_api_client/v1/models/synthetics_global_variable_parse_test_options' -require 'datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_parser' require 'datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type' require 'datadog_api_client/v1/models/synthetics_global_variable_parser_type' require 'datadog_api_client/v1/models/synthetics_global_variable_value' require 'datadog_api_client/v1/models/synthetics_list_tests_response' require 'datadog_api_client/v1/models/synthetics_location' require 'datadog_api_client/v1/models/synthetics_locations' +require 'datadog_api_client/v1/models/synthetics_parsing_options' require 'datadog_api_client/v1/models/synthetics_playing_tab' require 'datadog_api_client/v1/models/synthetics_private_location' require 'datadog_api_client/v1/models/synthetics_private_location_creation_response' @@ -379,6 +381,7 @@ require 'datadog_api_client/v1/models/synthetics_trigger_ci_test_run_result' require 'datadog_api_client/v1/models/synthetics_trigger_ci_tests_response' require 'datadog_api_client/v1/models/synthetics_update_test_pause_status_payload' +require 'datadog_api_client/v1/models/synthetics_variable_parser' require 'datadog_api_client/v1/models/synthetics_warning_type' require 'datadog_api_client/v1/models/table_widget_cell_display_mode' require 'datadog_api_client/v1/models/table_widget_definition' diff --git a/lib/datadog_api_client/v1/models/synthetics_api_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_step.rb new file mode 100644 index 000000000000..1ffa75caeadd --- /dev/null +++ b/lib/datadog_api_client/v1/models/synthetics_api_step.rb @@ -0,0 +1,265 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # The steps used in a Synthetics multistep API test. + class SyntheticsAPIStep + # Array of assertions used for the test. + attr_accessor :assertions + + # Array of values to parse and save as variables from the response. + attr_accessor :extracted_values + + # The name of the step. + attr_accessor :name + + attr_accessor :request + + attr_accessor :subtype + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'assertions' => :'assertions', + :'extracted_values' => :'extractedValues', + :'name' => :'name', + :'request' => :'request', + :'subtype' => :'subtype' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'assertions' => :'Array', + :'extracted_values' => :'Array', + :'name' => :'String', + :'request' => :'SyntheticsTestRequest', + :'subtype' => :'SyntheticsAPIStepSubtype' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPIStep` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAPIStep`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'assertions') + if (value = attributes[:'assertions']).is_a?(Array) + self.assertions = value + end + end + + if attributes.key?(:'extracted_values') + if (value = attributes[:'extracted_values']).is_a?(Array) + self.extracted_values = value + end + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.key?(:'request') + self.request = attributes[:'request'] + end + + if attributes.key?(:'subtype') + self.subtype = attributes[:'subtype'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + assertions == o.assertions && + extracted_values == o.extracted_values && + name == o.name && + request == o.request && + subtype == o.subtype + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [assertions, extracted_values, name, request, subtype].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V1.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb b/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb new file mode 100644 index 000000000000..e2c25183de6c --- /dev/null +++ b/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb @@ -0,0 +1,39 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + class SyntheticsAPIStepSubtype + HTTP = "http".freeze + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + constantValues = SyntheticsAPIStepSubtype.constants.select { |c| SyntheticsAPIStepSubtype::const_get(c) == value } + raise "Invalid ENUM value #{value} for class #SyntheticsAPIStepSubtype" if constantValues.empty? + value + end + end +end diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb index a0aeceda0fe5..bd647fe6217b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb @@ -27,12 +27,16 @@ class SyntheticsAPITestConfig attr_accessor :request + # When the test subtype is `multi`, the steps of the test. + attr_accessor :steps + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'assertions' => :'assertions', :'config_variables' => :'configVariables', - :'request' => :'request' + :'request' => :'request', + :'steps' => :'steps' } end @@ -46,7 +50,8 @@ def self.openapi_types { :'assertions' => :'Array', :'config_variables' => :'Array', - :'request' => :'SyntheticsTestRequest' + :'request' => :'SyntheticsTestRequest', + :'steps' => :'Array' } end @@ -86,6 +91,12 @@ def initialize(attributes = {}) if attributes.key?(:'request') self.request = attributes[:'request'] end + + if attributes.key?(:'steps') + if (value = attributes[:'steps']).is_a?(Array) + self.steps = value + end + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -96,10 +107,6 @@ def list_invalid_properties invalid_properties.push('invalid value for "assertions", assertions cannot be nil.') end - if @request.nil? - invalid_properties.push('invalid value for "request", request cannot be nil.') - end - invalid_properties end @@ -107,7 +114,6 @@ def list_invalid_properties # @return true if the model is valid def valid? return false if @assertions.nil? - return false if @request.nil? true end @@ -118,7 +124,8 @@ def ==(o) self.class == o.class && assertions == o.assertions && config_variables == o.config_variables && - request == o.request + request == o.request && + steps == o.steps end # @see the `==` method @@ -130,7 +137,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [assertions, config_variables, request].hash + [assertions, config_variables, request, steps].hash end # Builds the object from hash diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb index 2522f0fcad70..25d10202fde4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb @@ -44,7 +44,7 @@ def self.acceptable_attributes def self.openapi_types { :'field' => :'String', - :'parser' => :'SyntheticsGlobalVariableParseTestOptionsParser', + :'parser' => :'SyntheticsVariableParser', :'type' => :'SyntheticsGlobalVariableParseTestOptionsType' } end diff --git a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb new file mode 100644 index 000000000000..1fe996e3a94b --- /dev/null +++ b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb @@ -0,0 +1,251 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # Parsing options for variables to extract. + class SyntheticsParsingOptions + # When type is `http_header`, name of the header to use to extract the value. + attr_accessor :field + + # Name of the variable to extract. + attr_accessor :name + + attr_accessor :parser + + attr_accessor :type + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'field' => :'field', + :'name' => :'name', + :'parser' => :'parser', + :'type' => :'type' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'field' => :'String', + :'name' => :'String', + :'parser' => :'SyntheticsVariableParser', + :'type' => :'SyntheticsGlobalVariableParseTestOptionsType' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsParsingOptions` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsParsingOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'field') + self.field = attributes[:'field'] + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.key?(:'parser') + self.parser = attributes[:'parser'] + end + + if attributes.key?(:'type') + self.type = attributes[:'type'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + field == o.field && + name == o.name && + parser == o.parser && + type == o.type + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [field, name, parser, type].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V1.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb b/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb index 806f62cb7dd5..9a5d25955f2c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb @@ -22,6 +22,7 @@ class SyntheticsTestDetailsSubType SSL = "ssl".freeze TCP = "tcp".freeze DNS = "dns".freeze + MULTI = "multi".freeze # Builds the enum from string # @param [String] The enum value in the form of the string diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_parser.rb b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb similarity index 95% rename from lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_parser.rb rename to lib/datadog_api_client/v1/models/synthetics_variable_parser.rb index d1436bdee475..acbcc920aeaa 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_parser.rb +++ b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb @@ -18,7 +18,7 @@ module DatadogAPIClient::V1 # Details of the parser to use for the global variable. - class SyntheticsGlobalVariableParseTestOptionsParser + class SyntheticsVariableParser attr_accessor :type # Regex or JSON path used for the parser. Not used with type `raw`. @@ -55,13 +55,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptionsParser` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsVariableParser` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptionsParser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsVariableParser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/spec/v1/models/synthetics_api_step_spec.rb b/spec/v1/models/synthetics_api_step_spec.rb new file mode 100644 index 000000000000..87ddb8907634 --- /dev/null +++ b/spec/v1/models/synthetics_api_step_spec.rb @@ -0,0 +1,61 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for DatadogAPIClient::V1::SyntheticsAPIStep +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe DatadogAPIClient::V1::SyntheticsAPIStep do + let(:instance) { DatadogAPIClient::V1::SyntheticsAPIStep.new } + + describe 'test an instance of SyntheticsAPIStep' do + it 'should create an instance of SyntheticsAPIStep' do + expect(instance).to be_instance_of(DatadogAPIClient::V1::SyntheticsAPIStep) + end + end + describe 'test attribute "assertions"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extracted_values"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "request"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "subtype"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/v1/models/synthetics_api_step_subtype_spec.rb b/spec/v1/models/synthetics_api_step_subtype_spec.rb new file mode 100644 index 000000000000..d0f32b5d1efc --- /dev/null +++ b/spec/v1/models/synthetics_api_step_subtype_spec.rb @@ -0,0 +1,31 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for DatadogAPIClient::V1::SyntheticsAPIStepSubtype +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe DatadogAPIClient::V1::SyntheticsAPIStepSubtype do + let(:instance) { DatadogAPIClient::V1::SyntheticsAPIStepSubtype.new } + + describe 'test an instance of SyntheticsAPIStepSubtype' do + it 'should create an instance of SyntheticsAPIStepSubtype' do + expect(instance).to be_instance_of(DatadogAPIClient::V1::SyntheticsAPIStepSubtype) + end + end +end diff --git a/spec/v1/models/synthetics_parsing_options_spec.rb b/spec/v1/models/synthetics_parsing_options_spec.rb new file mode 100644 index 000000000000..69f3afa90348 --- /dev/null +++ b/spec/v1/models/synthetics_parsing_options_spec.rb @@ -0,0 +1,55 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for DatadogAPIClient::V1::SyntheticsParsingOptions +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe DatadogAPIClient::V1::SyntheticsParsingOptions do + let(:instance) { DatadogAPIClient::V1::SyntheticsParsingOptions.new } + + describe 'test an instance of SyntheticsParsingOptions' do + it 'should create an instance of SyntheticsParsingOptions' do + expect(instance).to be_instance_of(DatadogAPIClient::V1::SyntheticsParsingOptions) + end + end + describe 'test attribute "field"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "parser"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/v1/models/synthetics_variable_parser_spec.rb b/spec/v1/models/synthetics_variable_parser_spec.rb new file mode 100644 index 000000000000..56119137c475 --- /dev/null +++ b/spec/v1/models/synthetics_variable_parser_spec.rb @@ -0,0 +1,43 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for DatadogAPIClient::V1::SyntheticsVariableParser +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe DatadogAPIClient::V1::SyntheticsVariableParser do + let(:instance) { DatadogAPIClient::V1::SyntheticsVariableParser.new } + + describe 'test an instance of SyntheticsVariableParser' do + it 'should create an instance of SyntheticsVariableParser' do + expect(instance).to be_instance_of(DatadogAPIClient::V1::SyntheticsVariableParser) + end + end + describe 'test attribute "type"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "value"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end