datadog_api_client 2.26.0 → 2.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +25 -0
- data/.generator/schemas/v2/openapi.yaml +2 -0
- data/.generator/src/generator/templates/inflector.j2 +1 -1
- data/CHANGELOG.md +16 -5
- data/examples/v1/dashboards/CreateDashboard_1213075383.rb +1 -0
- data/examples/v1/dashboards/CreateDashboard_2563642929.rb +1 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +4 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1987645492.rb +4 -0
- data/lib/datadog_api_client/inflector.rb +3 -1
- data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_assertion_javascript.rb +144 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_javascript_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_style.rb +11 -1
- data/lib/datadog_api_client/version.rb +1 -1
- data/spec/zeitwerk_spec.rb +7 -0
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: faa80ae7e03f8e9bccdaa0cd4036646e9983818e06d74eefb0ee4840f2f69215
|
|
4
|
+
data.tar.gz: f80352a5a655f9e76f1c81488a8a55aea7bb54cacb0550fedbf4d30e298dd173
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0a1ce9807f30c71ff2fd5f3225a87c8e15ba71e2e68cba545e53b71442e49c577ed7054aa3d003e92550de66a5835748d39870473d941ad73158b98034d59965
|
|
7
|
+
data.tar.gz: 8afa2654b20b6aa9c52ceabbcaed3e6785f72229968dc6940ac3d1a6fb7c122e85320b7a15ca38dafa32472ddc80fac7a43d5b7db4b3eede2d7d2f6c619d9076
|
data/.apigentools-info
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
"spec_versions": {
|
|
5
5
|
"v1": {
|
|
6
6
|
"apigentools_version": "1.6.6",
|
|
7
|
-
"regenerated": "2024-09-
|
|
8
|
-
"spec_repo_commit": "
|
|
7
|
+
"regenerated": "2024-09-10 15:39:59.557937",
|
|
8
|
+
"spec_repo_commit": "80dc4248"
|
|
9
9
|
},
|
|
10
10
|
"v2": {
|
|
11
11
|
"apigentools_version": "1.6.6",
|
|
12
|
-
"regenerated": "2024-09-
|
|
13
|
-
"spec_repo_commit": "
|
|
12
|
+
"regenerated": "2024-09-10 15:39:59.575646",
|
|
13
|
+
"spec_repo_commit": "80dc4248"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -13873,6 +13873,7 @@ components:
|
|
|
13873
13873
|
- $ref: '#/components/schemas/SyntheticsAssertionJSONPathTarget'
|
|
13874
13874
|
- $ref: '#/components/schemas/SyntheticsAssertionJSONSchemaTarget'
|
|
13875
13875
|
- $ref: '#/components/schemas/SyntheticsAssertionXPathTarget'
|
|
13876
|
+
- $ref: '#/components/schemas/SyntheticsAssertionJavascript'
|
|
13876
13877
|
SyntheticsAssertionBodyHashOperator:
|
|
13877
13878
|
description: Assertion operator to apply.
|
|
13878
13879
|
enum:
|
|
@@ -13989,6 +13990,27 @@ components:
|
|
|
13989
13990
|
metaSchema:
|
|
13990
13991
|
$ref: '#/components/schemas/SyntheticsAssertionJSONSchemaMetaSchema'
|
|
13991
13992
|
type: object
|
|
13993
|
+
SyntheticsAssertionJavascript:
|
|
13994
|
+
description: A JavaScript assertion.
|
|
13995
|
+
properties:
|
|
13996
|
+
code:
|
|
13997
|
+
description: The JavaScript code that performs the assertions.
|
|
13998
|
+
example: dd.expect(dd.response.statusCode).to.equal(200);
|
|
13999
|
+
type: string
|
|
14000
|
+
type:
|
|
14001
|
+
$ref: '#/components/schemas/SyntheticsAssertionJavascriptType'
|
|
14002
|
+
required:
|
|
14003
|
+
- type
|
|
14004
|
+
- code
|
|
14005
|
+
type: object
|
|
14006
|
+
SyntheticsAssertionJavascriptType:
|
|
14007
|
+
description: Type of the assertion.
|
|
14008
|
+
enum:
|
|
14009
|
+
- javascript
|
|
14010
|
+
example: javascript
|
|
14011
|
+
type: string
|
|
14012
|
+
x-enum-varnames:
|
|
14013
|
+
- JAVASCRIPT
|
|
13992
14014
|
SyntheticsAssertionOperator:
|
|
13993
14015
|
description: Assertion operator to apply.
|
|
13994
14016
|
enum:
|
|
@@ -17093,6 +17115,9 @@ components:
|
|
|
17093
17115
|
properties:
|
|
17094
17116
|
display:
|
|
17095
17117
|
$ref: '#/components/schemas/ToplistWidgetDisplay'
|
|
17118
|
+
palette:
|
|
17119
|
+
description: Color palette to apply to the widget.
|
|
17120
|
+
type: string
|
|
17096
17121
|
scaling:
|
|
17097
17122
|
$ref: '#/components/schemas/ToplistWidgetScaling'
|
|
17098
17123
|
type: object
|
|
@@ -25175,6 +25175,8 @@ components:
|
|
|
25175
25175
|
security_monitoring_signals_read: View Security Signals.
|
|
25176
25176
|
security_monitoring_suppressions_read: Read Rule Suppressions.
|
|
25177
25177
|
security_monitoring_suppressions_write: Write Rule Suppressions.
|
|
25178
|
+
security_pipelines_read: View Security Pipelines.
|
|
25179
|
+
security_pipelines_write: Create, edit, and delete CSM Security Pipelines.
|
|
25178
25180
|
slos_corrections: Apply, edit, and delete SLO status corrections. A user
|
|
25179
25181
|
with this permission can make status corrections, even if they do not
|
|
25180
25182
|
have permission to edit those SLOs.
|
|
@@ -3,7 +3,7 @@ require 'zeitwerk'
|
|
|
3
3
|
module {{ module_name }}
|
|
4
4
|
class {{ module_name }}Inflector < Zeitwerk::Inflector
|
|
5
5
|
def camelize(basename, abspath)
|
|
6
|
-
model_name = "#{abspath.
|
|
6
|
+
model_name = "#{abspath.match(/datadog_api_client\/(v[0-9])\//)&.captures&.first}.#{basename}"
|
|
7
7
|
overrides[model_name] || basename.split('_').each(&:capitalize!).join
|
|
8
8
|
end
|
|
9
9
|
|
data/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 2.26.1 / 2024-09-11
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
* Handle models with `v[0-9]` in name when loading them by @skarimo in https://github.com/DataDog/datadog-api-client-ruby/pull/2002
|
|
7
|
+
### Added
|
|
8
|
+
* Add new synthetics HTTP javascript assertion by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1939
|
|
9
|
+
* Dashboards - Toplist widget style - Add palette by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1992
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
**Full Changelog**: https://github.com/DataDog/datadog-api-client-ruby/compare/v2.26.0...v2.26.1
|
|
13
|
+
|
|
3
14
|
## 2.26.0 / 2024-09-04
|
|
4
15
|
|
|
5
16
|
### Fixed
|
|
6
17
|
* Add `is_totp` and `is_fido` to Synthetic global variables by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1910
|
|
7
18
|
### Added
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
19
|
+
* Add `api_key` and `name` to `CloudflareAccountResponseAttributes`. by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1953
|
|
20
|
+
* Add `api_key` and `name` to `FastlyAccountUpdateRequestAttributes`. by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1954
|
|
21
|
+
* Add `opsgenie_api_key` to `OpsgenieServiceResponseAttributes`. by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1955
|
|
22
|
+
* Add `category` and `remote_config_read_enabled` to `APIKeyCreateAttributes`, and add `LeakedKey`. by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1956
|
|
12
23
|
* Allow 4 group-bys for pattern viz by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1963
|
|
13
24
|
* add url attribute to metrics assets v2 api by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1965
|
|
14
25
|
* Add editable field to suppression rule by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1874
|
|
@@ -18,7 +29,7 @@
|
|
|
18
29
|
* enable additionalProperties by default and check when false by @amaskara-dd in https://github.com/DataDog/datadog-api-client-ruby/pull/1959
|
|
19
30
|
* allow variables in port by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1940
|
|
20
31
|
* Fix VFTs and extracted local variables enum types by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1928
|
|
21
|
-
*
|
|
32
|
+
* Changed Widget time schema to add support for new fixed_span and live_span object by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1951
|
|
22
33
|
### Deprecated
|
|
23
34
|
* mark groupby_simple_monitor as deprecated by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/1981
|
|
24
35
|
|
|
@@ -25,6 +25,7 @@ body = DatadogAPIClient::V1::Dashboard.new({
|
|
|
25
25
|
legend: DatadogAPIClient::V1::ToplistWidgetLegend::INLINE,
|
|
26
26
|
}),
|
|
27
27
|
scaling: DatadogAPIClient::V1::ToplistWidgetScaling::RELATIVE,
|
|
28
|
+
palette: "dog_classic",
|
|
28
29
|
}),
|
|
29
30
|
type: DatadogAPIClient::V1::ToplistWidgetDefinitionType::TOPLIST,
|
|
30
31
|
requests: [
|
|
@@ -25,6 +25,7 @@ body = DatadogAPIClient::V1::Dashboard.new({
|
|
|
25
25
|
legend: DatadogAPIClient::V1::ToplistWidgetLegend::INLINE,
|
|
26
26
|
}),
|
|
27
27
|
scaling: DatadogAPIClient::V1::ToplistWidgetScaling::RELATIVE,
|
|
28
|
+
palette: "dog_classic",
|
|
28
29
|
}),
|
|
29
30
|
type: DatadogAPIClient::V1::ToplistWidgetDefinitionType::TOPLIST,
|
|
30
31
|
requests: [
|
|
@@ -59,6 +59,10 @@ body = DatadogAPIClient::V1::SyntheticsAPITest.new({
|
|
|
59
59
|
target: "a",
|
|
60
60
|
type: DatadogAPIClient::V1::SyntheticsAssertionBodyHashType::BODY_HASH,
|
|
61
61
|
}),
|
|
62
|
+
DatadogAPIClient::V1::SyntheticsAssertionJavascript.new({
|
|
63
|
+
code: "const hello = 'world';",
|
|
64
|
+
type: DatadogAPIClient::V1::SyntheticsAssertionJavascriptType::JAVASCRIPT,
|
|
65
|
+
}),
|
|
62
66
|
],
|
|
63
67
|
config_variables: [
|
|
64
68
|
DatadogAPIClient::V1::SyntheticsConfigVariable.new({
|
|
@@ -59,6 +59,10 @@ body = DatadogAPIClient::V1::SyntheticsAPITest.new({
|
|
|
59
59
|
target: "a",
|
|
60
60
|
type: DatadogAPIClient::V1::SyntheticsAssertionBodyHashType::BODY_HASH,
|
|
61
61
|
}),
|
|
62
|
+
DatadogAPIClient::V1::SyntheticsAssertionJavascript.new({
|
|
63
|
+
code: "const hello = 'world';",
|
|
64
|
+
type: DatadogAPIClient::V1::SyntheticsAssertionJavascriptType::JAVASCRIPT,
|
|
65
|
+
}),
|
|
62
66
|
],
|
|
63
67
|
config_variables: [
|
|
64
68
|
DatadogAPIClient::V1::SyntheticsConfigVariable.new({
|
|
@@ -3,7 +3,7 @@ require 'zeitwerk'
|
|
|
3
3
|
module DatadogAPIClient
|
|
4
4
|
class DatadogAPIClientInflector < Zeitwerk::Inflector
|
|
5
5
|
def camelize(basename, abspath)
|
|
6
|
-
model_name = "#{abspath.
|
|
6
|
+
model_name = "#{abspath.match(/datadog_api_client\/(v[0-9])\//)&.captures&.first}.#{basename}"
|
|
7
7
|
overrides[model_name] || basename.split('_').each(&:capitalize!).join
|
|
8
8
|
end
|
|
9
9
|
|
|
@@ -555,6 +555,8 @@ module DatadogAPIClient
|
|
|
555
555
|
"v1.synthetics_assertion_body_hash_operator" => "SyntheticsAssertionBodyHashOperator",
|
|
556
556
|
"v1.synthetics_assertion_body_hash_target" => "SyntheticsAssertionBodyHashTarget",
|
|
557
557
|
"v1.synthetics_assertion_body_hash_type" => "SyntheticsAssertionBodyHashType",
|
|
558
|
+
"v1.synthetics_assertion_javascript" => "SyntheticsAssertionJavascript",
|
|
559
|
+
"v1.synthetics_assertion_javascript_type" => "SyntheticsAssertionJavascriptType",
|
|
558
560
|
"v1.synthetics_assertion_json_path_operator" => "SyntheticsAssertionJSONPathOperator",
|
|
559
561
|
"v1.synthetics_assertion_json_path_target" => "SyntheticsAssertionJSONPathTarget",
|
|
560
562
|
"v1.synthetics_assertion_json_path_target_target" => "SyntheticsAssertionJSONPathTargetTarget",
|
|
@@ -31,7 +31,8 @@ module DatadogAPIClient::V1
|
|
|
31
31
|
:'SyntheticsAssertionBodyHashTarget',
|
|
32
32
|
:'SyntheticsAssertionJSONPathTarget',
|
|
33
33
|
:'SyntheticsAssertionJSONSchemaTarget',
|
|
34
|
-
:'SyntheticsAssertionXPathTarget'
|
|
34
|
+
:'SyntheticsAssertionXPathTarget',
|
|
35
|
+
:'SyntheticsAssertionJavascript'
|
|
35
36
|
]
|
|
36
37
|
end
|
|
37
38
|
# Builds the object
|
|
@@ -0,0 +1,144 @@
|
|
|
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
|
+
# A JavaScript assertion.
|
|
21
|
+
class SyntheticsAssertionJavascript
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The JavaScript code that performs the assertions.
|
|
25
|
+
attr_reader :code
|
|
26
|
+
|
|
27
|
+
# Type of the assertion.
|
|
28
|
+
attr_reader :type
|
|
29
|
+
|
|
30
|
+
attr_accessor :additional_properties
|
|
31
|
+
|
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
|
+
# @!visibility private
|
|
34
|
+
def self.attribute_map
|
|
35
|
+
{
|
|
36
|
+
:'code' => :'code',
|
|
37
|
+
:'type' => :'type'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'code' => :'String',
|
|
46
|
+
:'type' => :'SyntheticsAssertionJavascriptType'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
52
|
+
# @!visibility private
|
|
53
|
+
def initialize(attributes = {})
|
|
54
|
+
if (!attributes.is_a?(Hash))
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAssertionJavascript` initialize method"
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
self.additional_properties = {}
|
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
62
|
+
self.additional_properties[k.to_sym] = v
|
|
63
|
+
else
|
|
64
|
+
h[k.to_sym] = v
|
|
65
|
+
end
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'code')
|
|
69
|
+
self.code = attributes[:'code']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'type')
|
|
73
|
+
self.type = attributes[:'type']
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Check to see if the all the properties in the model are valid
|
|
78
|
+
# @return true if the model is valid
|
|
79
|
+
# @!visibility private
|
|
80
|
+
def valid?
|
|
81
|
+
return false if @code.nil?
|
|
82
|
+
return false if @type.nil?
|
|
83
|
+
true
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Custom attribute writer method with validation
|
|
87
|
+
# @param code [Object] Object to be assigned
|
|
88
|
+
# @!visibility private
|
|
89
|
+
def code=(code)
|
|
90
|
+
if code.nil?
|
|
91
|
+
fail ArgumentError, 'invalid value for "code", code cannot be nil.'
|
|
92
|
+
end
|
|
93
|
+
@code = code
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Custom attribute writer method with validation
|
|
97
|
+
# @param type [Object] Object to be assigned
|
|
98
|
+
# @!visibility private
|
|
99
|
+
def type=(type)
|
|
100
|
+
if type.nil?
|
|
101
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
102
|
+
end
|
|
103
|
+
@type = type
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
107
|
+
# @return [Hash] Returns the object in the form of hash
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def to_hash
|
|
110
|
+
hash = {}
|
|
111
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
112
|
+
value = self.send(attr)
|
|
113
|
+
if value.nil?
|
|
114
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
115
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
hash[param] = _to_hash(value)
|
|
119
|
+
end
|
|
120
|
+
self.additional_properties.each_pair do |attr, value|
|
|
121
|
+
hash[attr] = value
|
|
122
|
+
end
|
|
123
|
+
hash
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Checks equality by comparing each attribute.
|
|
127
|
+
# @param o [Object] Object to be compared
|
|
128
|
+
# @!visibility private
|
|
129
|
+
def ==(o)
|
|
130
|
+
return true if self.equal?(o)
|
|
131
|
+
self.class == o.class &&
|
|
132
|
+
code == o.code &&
|
|
133
|
+
type == o.type
|
|
134
|
+
additional_properties == o.additional_properties
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Calculates hash code according to all attributes.
|
|
138
|
+
# @return [Integer] Hash code
|
|
139
|
+
# @!visibility private
|
|
140
|
+
def hash
|
|
141
|
+
[code, type].hash
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
# Type of the assertion.
|
|
21
|
+
class SyntheticsAssertionJavascriptType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
JAVASCRIPT = "javascript".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -24,6 +24,9 @@ module DatadogAPIClient::V1
|
|
|
24
24
|
# Top list widget display options.
|
|
25
25
|
attr_accessor :display
|
|
26
26
|
|
|
27
|
+
# Color palette to apply to the widget.
|
|
28
|
+
attr_accessor :palette
|
|
29
|
+
|
|
27
30
|
# Top list widget scaling definition.
|
|
28
31
|
attr_accessor :scaling
|
|
29
32
|
|
|
@@ -34,6 +37,7 @@ module DatadogAPIClient::V1
|
|
|
34
37
|
def self.attribute_map
|
|
35
38
|
{
|
|
36
39
|
:'display' => :'display',
|
|
40
|
+
:'palette' => :'palette',
|
|
37
41
|
:'scaling' => :'scaling'
|
|
38
42
|
}
|
|
39
43
|
end
|
|
@@ -43,6 +47,7 @@ module DatadogAPIClient::V1
|
|
|
43
47
|
def self.openapi_types
|
|
44
48
|
{
|
|
45
49
|
:'display' => :'ToplistWidgetDisplay',
|
|
50
|
+
:'palette' => :'String',
|
|
46
51
|
:'scaling' => :'ToplistWidgetScaling'
|
|
47
52
|
}
|
|
48
53
|
end
|
|
@@ -69,6 +74,10 @@ module DatadogAPIClient::V1
|
|
|
69
74
|
self.display = attributes[:'display']
|
|
70
75
|
end
|
|
71
76
|
|
|
77
|
+
if attributes.key?(:'palette')
|
|
78
|
+
self.palette = attributes[:'palette']
|
|
79
|
+
end
|
|
80
|
+
|
|
72
81
|
if attributes.key?(:'scaling')
|
|
73
82
|
self.scaling = attributes[:'scaling']
|
|
74
83
|
end
|
|
@@ -101,6 +110,7 @@ module DatadogAPIClient::V1
|
|
|
101
110
|
return true if self.equal?(o)
|
|
102
111
|
self.class == o.class &&
|
|
103
112
|
display == o.display &&
|
|
113
|
+
palette == o.palette &&
|
|
104
114
|
scaling == o.scaling
|
|
105
115
|
additional_properties == o.additional_properties
|
|
106
116
|
end
|
|
@@ -109,7 +119,7 @@ module DatadogAPIClient::V1
|
|
|
109
119
|
# @return [Integer] Hash code
|
|
110
120
|
# @!visibility private
|
|
111
121
|
def hash
|
|
112
|
-
[display, scaling].hash
|
|
122
|
+
[display, palette, scaling].hash
|
|
113
123
|
end
|
|
114
124
|
end
|
|
115
125
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: datadog_api_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.26.
|
|
4
|
+
version: 2.26.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Datadog, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-09-
|
|
11
|
+
date: 2024-09-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -1559,6 +1559,8 @@ files:
|
|
|
1559
1559
|
- lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_operator.rb
|
|
1560
1560
|
- lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb
|
|
1561
1561
|
- lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_type.rb
|
|
1562
|
+
- lib/datadog_api_client/v1/models/synthetics_assertion_javascript.rb
|
|
1563
|
+
- lib/datadog_api_client/v1/models/synthetics_assertion_javascript_type.rb
|
|
1562
1564
|
- lib/datadog_api_client/v1/models/synthetics_assertion_json_path_operator.rb
|
|
1563
1565
|
- lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb
|
|
1564
1566
|
- lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb
|
|
@@ -3535,6 +3537,7 @@ files:
|
|
|
3535
3537
|
- spec/retry_spec.rb
|
|
3536
3538
|
- spec/spec_helper.rb
|
|
3537
3539
|
- spec/v1/deserialization_spec.rb
|
|
3540
|
+
- spec/zeitwerk_spec.rb
|
|
3538
3541
|
homepage: https://github.com/DataDog/
|
|
3539
3542
|
licenses:
|
|
3540
3543
|
- Apache-2.0
|
|
@@ -3574,3 +3577,4 @@ test_files:
|
|
|
3574
3577
|
- spec/retry_spec.rb
|
|
3575
3578
|
- spec/spec_helper.rb
|
|
3576
3579
|
- spec/v1/deserialization_spec.rb
|
|
3580
|
+
- spec/zeitwerk_spec.rb
|