Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
30 changes: 24 additions & 6 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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:
Expand All @@ -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)
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
],
Expand Down
1 change: 1 addition & 0 deletions lib/datadog_api_client/inflector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -58,7 +58,7 @@ def self.openapi_types
:'name' => :'String',
:'parser' => :'SyntheticsVariableParser',
:'secure' => :'Boolean',
:'type' => :'SyntheticsGlobalVariableParseTestOptionsType'
:'type' => :'SyntheticsLocalVariableParsingOptionsType'
}
end

Expand Down