Skip to content

Commit ed2ed27

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 216deacc of spec repo
1 parent 49fec1e commit ed2ed27

8 files changed

Lines changed: 66 additions & 16 deletions

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-08-29 20:02:08.736415",
8-
"spec_repo_commit": "518ca9df"
7+
"regenerated": "2024-09-02 13:18:57.399723",
8+
"spec_repo_commit": "216deacc"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-29 20:02:08.754668",
13-
"spec_repo_commit": "518ca9df"
12+
"regenerated": "2024-09-02 13:18:57.417298",
13+
"spec_repo_commit": "216deacc"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15267,17 +15267,18 @@ components:
1526715267
- type
1526815268
type: object
1526915269
SyntheticsGlobalVariableParseTestOptionsType:
15270-
description: Property of the Synthetic Test Response to use for a Synthetic
15271-
global variable.
15270+
description: Type of value to extract from a test for a Synthetic global variable.
1527215271
enum:
1527315272
- http_body
1527415273
- http_header
15274+
- http_status_code
1527515275
- local_variable
1527615276
example: http_body
1527715277
type: string
1527815278
x-enum-varnames:
1527915279
- HTTP_BODY
1528015280
- HTTP_HEADER
15281+
- HTTP_STATUS_CODE
1528115282
- LOCAL_VARIABLE
1528215283
SyntheticsGlobalVariableParserType:
1528315284
description: Type of parser for a Synthetic global variable from a synthetics
@@ -15396,6 +15397,23 @@ components:
1539615397
$ref: '#/components/schemas/SyntheticsTestDetails'
1539715398
type: array
1539815399
type: object
15400+
SyntheticsLocalVariableParsingOptionsType:
15401+
description: Property of the Synthetic Test Response to extract into a local
15402+
variable.
15403+
enum:
15404+
- grpc_message
15405+
- grpc_metadata
15406+
- http_body
15407+
- http_header
15408+
- http_status_code
15409+
example: http_body
15410+
type: string
15411+
x-enum-varnames:
15412+
- GRPC_MESSAGE
15413+
- GRPC_METADATA
15414+
- HTTP_BODY
15415+
- HTTP_HEADER
15416+
- HTTP_STATUS_CODE
1539915417
SyntheticsLocation:
1540015418
description: 'Synthetic location that can be used when creating or editing a
1540115419

@@ -15422,8 +15440,8 @@ components:
1542215440
example: {}
1542315441
properties:
1542415442
field:
15425-
description: When type is `http_header`, name of the header to use to extract
15426-
the value.
15443+
description: When type is `http_header` or `grpc_metadata`, name of the
15444+
header or metadatum to extract.
1542715445
example: content-type
1542815446
type: string
1542915447
name:
@@ -15435,7 +15453,7 @@ components:
1543515453
description: Determines whether or not the extracted value will be obfuscated.
1543615454
type: boolean
1543715455
type:
15438-
$ref: '#/components/schemas/SyntheticsGlobalVariableParseTestOptionsType'
15456+
$ref: '#/components/schemas/SyntheticsLocalVariableParsingOptionsType'
1543915457
type: object
1544015458
SyntheticsPatchTestBody:
1544115459
description: Wrapper around an array of [JSON Patch](https://jsonpatch.com)
@@ -16010,7 +16028,7 @@ components:
1601016028
type: object
1601116029
SyntheticsTestMetadata:
1601216030
additionalProperties:
16013-
description: A single Metadatum.
16031+
description: A single metadatum.
1601416032
type: string
1601516033
description: Metadata to include when performing the gRPC test.
1601616034
type: object

examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
parser: DatadogAPIClient::V1::SyntheticsVariableParser.new({
3131
type: DatadogAPIClient::V1::SyntheticsGlobalVariableParserType::RAW,
3232
}),
33-
type: DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptionsType::HTTP_HEADER,
33+
type: DatadogAPIClient::V1::SyntheticsLocalVariableParsingOptionsType::HTTP_HEADER,
3434
secure: true,
3535
}),
3636
],

lib/datadog_api_client/inflector.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,7 @@ def overrides
630630
"v1.synthetics_global_variable_value" => "SyntheticsGlobalVariableValue",
631631
"v1.synthetics_list_global_variables_response" => "SyntheticsListGlobalVariablesResponse",
632632
"v1.synthetics_list_tests_response" => "SyntheticsListTestsResponse",
633+
"v1.synthetics_local_variable_parsing_options_type" => "SyntheticsLocalVariableParsingOptionsType",
633634
"v1.synthetics_location" => "SyntheticsLocation",
634635
"v1.synthetics_locations" => "SyntheticsLocations",
635636
"v1.synthetics_parsing_options" => "SyntheticsParsingOptions",

lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class SyntheticsGlobalVariableParseTestOptions
3030
# Details of the parser to use for the global variable.
3131
attr_accessor :parser
3232

33-
# Property of the Synthetic Test Response to use for a Synthetic global variable.
33+
# Type of value to extract from a test for a Synthetic global variable.
3434
attr_reader :type
3535

3636
attr_accessor :additional_properties

lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V1
20-
# Property of the Synthetic Test Response to use for a Synthetic global variable.
20+
# Type of value to extract from a test for a Synthetic global variable.
2121
class SyntheticsGlobalVariableParseTestOptionsType
2222
include BaseEnumModel
2323

2424
HTTP_BODY = "http_body".freeze
2525
HTTP_HEADER = "http_header".freeze
26+
HTTP_STATUS_CODE = "http_status_code".freeze
2627
LOCAL_VARIABLE = "local_variable".freeze
2728
end
2829
end
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
=begin
2+
#Datadog API V1 Collection
3+
4+
#Collection of all Datadog Public endpoints.
5+
6+
The version of the OpenAPI document: 1.0
7+
Contact: support@datadoghq.com
8+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9+
10+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11+
This product includes software developed at Datadog (https://www.datadoghq.com/).
12+
Copyright 2020-Present Datadog, Inc.
13+
14+
=end
15+
16+
require 'date'
17+
require 'time'
18+
19+
module DatadogAPIClient::V1
20+
# Property of the Synthetic Test Response to extract into a local variable.
21+
class SyntheticsLocalVariableParsingOptionsType
22+
include BaseEnumModel
23+
24+
GRPC_MESSAGE = "grpc_message".freeze
25+
GRPC_METADATA = "grpc_metadata".freeze
26+
HTTP_BODY = "http_body".freeze
27+
HTTP_HEADER = "http_header".freeze
28+
HTTP_STATUS_CODE = "http_status_code".freeze
29+
end
30+
end

lib/datadog_api_client/v1/models/synthetics_parsing_options.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module DatadogAPIClient::V1
2121
class SyntheticsParsingOptions
2222
include BaseGenericModel
2323

24-
# When type is `http_header`, name of the header to use to extract the value.
24+
# When type is `http_header` or `grpc_metadata`, name of the header or metadatum to extract.
2525
attr_accessor :field
2626

2727
# Name of the variable to extract.
@@ -33,7 +33,7 @@ class SyntheticsParsingOptions
3333
# Determines whether or not the extracted value will be obfuscated.
3434
attr_accessor :secure
3535

36-
# Property of the Synthetic Test Response to use for a Synthetic global variable.
36+
# Property of the Synthetic Test Response to extract into a local variable.
3737
attr_accessor :type
3838

3939
attr_accessor :additional_properties
@@ -58,7 +58,7 @@ def self.openapi_types
5858
:'name' => :'String',
5959
:'parser' => :'SyntheticsVariableParser',
6060
:'secure' => :'Boolean',
61-
:'type' => :'SyntheticsGlobalVariableParseTestOptionsType'
61+
:'type' => :'SyntheticsLocalVariableParsingOptionsType'
6262
}
6363
end
6464

0 commit comments

Comments
 (0)