diff --git a/.apigentools-info b/.apigentools-info index 7ff301a95e73..5b43944cf95a 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-08-29 20:02:08.736415", - "spec_repo_commit": "518ca9df" + "regenerated": "2024-09-03 13:58:44.991652", + "spec_repo_commit": "ff772101" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-08-29 20:02:08.754668", - "spec_repo_commit": "518ca9df" + "regenerated": "2024-09-03 13:58:45.009693", + "spec_repo_commit": "ff772101" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 092f56ac6a6d..92975e5d0926 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -15267,17 +15267,18 @@ components: - type type: object SyntheticsGlobalVariableParseTestOptionsType: - description: Property of the Synthetic Test Response to use for a Synthetic - global variable. + description: Type of value to extract from a test for a Synthetic global variable. enum: - http_body - http_header + - http_status_code - local_variable example: http_body type: string x-enum-varnames: - HTTP_BODY - HTTP_HEADER + - HTTP_STATUS_CODE - LOCAL_VARIABLE SyntheticsGlobalVariableParserType: description: Type of parser for a Synthetic global variable from a synthetics @@ -15396,6 +15397,23 @@ components: $ref: '#/components/schemas/SyntheticsTestDetails' type: array type: object + SyntheticsLocalVariableParsingOptionsType: + description: Property of the Synthetic Test Response to extract into a local + variable. + enum: + - grpc_message + - grpc_metadata + - http_body + - http_header + - http_status_code + example: http_body + type: string + x-enum-varnames: + - GRPC_MESSAGE + - GRPC_METADATA + - HTTP_BODY + - HTTP_HEADER + - HTTP_STATUS_CODE SyntheticsLocation: description: 'Synthetic location that can be used when creating or editing a @@ -15422,8 +15440,8 @@ components: example: {} properties: field: - description: When type is `http_header`, name of the header to use to extract - the value. + description: When type is `http_header` or `grpc_metadata`, name of the + header or metadatum to extract. example: content-type type: string name: @@ -15435,7 +15453,7 @@ components: description: Determines whether or not the extracted value will be obfuscated. type: boolean type: - $ref: '#/components/schemas/SyntheticsGlobalVariableParseTestOptionsType' + $ref: '#/components/schemas/SyntheticsLocalVariableParsingOptionsType' type: object SyntheticsPatchTestBody: description: Wrapper around an array of [JSON Patch](https://jsonpatch.com) @@ -16010,7 +16028,7 @@ components: type: object SyntheticsTestMetadata: additionalProperties: - description: A single Metadatum. + description: A single metadatum. type: string description: Metadata to include when performing the gRPC test. type: object diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb b/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb index 4f8b7a77541d..d30051993b0b 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb @@ -30,7 +30,7 @@ parser: DatadogAPIClient::V1::SyntheticsVariableParser.new({ type: DatadogAPIClient::V1::SyntheticsGlobalVariableParserType::RAW, }), - type: DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptionsType::HTTP_HEADER, + type: DatadogAPIClient::V1::SyntheticsLocalVariableParsingOptionsType::HTTP_HEADER, secure: true, }), ], diff --git a/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index ef633a023899..95991d905118 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -630,6 +630,7 @@ def overrides "v1.synthetics_global_variable_value" => "SyntheticsGlobalVariableValue", "v1.synthetics_list_global_variables_response" => "SyntheticsListGlobalVariablesResponse", "v1.synthetics_list_tests_response" => "SyntheticsListTestsResponse", + "v1.synthetics_local_variable_parsing_options_type" => "SyntheticsLocalVariableParsingOptionsType", "v1.synthetics_location" => "SyntheticsLocation", "v1.synthetics_locations" => "SyntheticsLocations", "v1.synthetics_parsing_options" => "SyntheticsParsingOptions", 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 1342ca59bd8e..0af7680f0470 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 @@ -30,7 +30,7 @@ class SyntheticsGlobalVariableParseTestOptions # Details of the parser to use for the global variable. attr_accessor :parser - # Property of the Synthetic Test Response to use for a Synthetic global variable. + # Type of value to extract from a test for a Synthetic global variable. attr_reader :type attr_accessor :additional_properties diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb index 49e9333b8d72..94a91debb925 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb @@ -17,12 +17,13 @@ require 'time' module DatadogAPIClient::V1 - # Property of the Synthetic Test Response to use for a Synthetic global variable. + # Type of value to extract from a test for a Synthetic global variable. class SyntheticsGlobalVariableParseTestOptionsType include BaseEnumModel HTTP_BODY = "http_body".freeze HTTP_HEADER = "http_header".freeze + HTTP_STATUS_CODE = "http_status_code".freeze LOCAL_VARIABLE = "local_variable".freeze end end diff --git a/lib/datadog_api_client/v1/models/synthetics_local_variable_parsing_options_type.rb b/lib/datadog_api_client/v1/models/synthetics_local_variable_parsing_options_type.rb new file mode 100644 index 000000000000..db036430fc23 --- /dev/null +++ b/lib/datadog_api_client/v1/models/synthetics_local_variable_parsing_options_type.rb @@ -0,0 +1,30 @@ +=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://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + 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 + # Property of the Synthetic Test Response to extract into a local variable. + class SyntheticsLocalVariableParsingOptionsType + include BaseEnumModel + + GRPC_MESSAGE = "grpc_message".freeze + GRPC_METADATA = "grpc_metadata".freeze + HTTP_BODY = "http_body".freeze + HTTP_HEADER = "http_header".freeze + HTTP_STATUS_CODE = "http_status_code".freeze + end +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 index 84e5ef5bc575..1acea9d735bf 100644 --- a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V1 class SyntheticsParsingOptions include BaseGenericModel - # When type is `http_header`, name of the header to use to extract the value. + # When type is `http_header` or `grpc_metadata`, name of the header or metadatum to extract. attr_accessor :field # Name of the variable to extract. @@ -33,7 +33,7 @@ class SyntheticsParsingOptions # Determines whether or not the extracted value will be obfuscated. attr_accessor :secure - # Property of the Synthetic Test Response to use for a Synthetic global variable. + # Property of the Synthetic Test Response to extract into a local variable. attr_accessor :type attr_accessor :additional_properties @@ -58,7 +58,7 @@ def self.openapi_types :'name' => :'String', :'parser' => :'SyntheticsVariableParser', :'secure' => :'Boolean', - :'type' => :'SyntheticsGlobalVariableParseTestOptionsType' + :'type' => :'SyntheticsLocalVariableParsingOptionsType' } end