Skip to content
Open
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
16 changes: 14 additions & 2 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3506,8 +3506,9 @@ components:
focus: WORLD
properties:
focus:
description: The 2-letter ISO code of a country to focus the map on. Or
`WORLD`.
description: The 2-letter ISO code of a country to focus the map on, or
`WORLD` for global view, or a region (`EMEA`, `APAC`, `LATAM`), or a continent
(`NORTH_AMERICA`, `SOUTH_AMERICA`, `EUROPE`, `AFRICA`, `ASIA`, `OCEANIA`).
example: WORLD
type: string
required:
Expand All @@ -3526,6 +3527,12 @@ components:
items:
$ref: '#/components/schemas/ListStreamColumn'
type: array
conditional_formats:
description: Threshold (numeric) conditional formatting rules may be used
by the regions layer.
items:
$ref: '#/components/schemas/WidgetConditionalFormat'
type: array
formulas:
description: List of formulas that operate on queries.
items:
Expand All @@ -3551,6 +3558,11 @@ components:
$ref: '#/components/schemas/LogQueryDefinition'
sort:
$ref: '#/components/schemas/WidgetSortBy'
text_formats:
description: Text formatting rules may be used by the points layer.
items:
$ref: '#/components/schemas/TableWidgetTextFormatRule'
type: array
type: object
GraphSnapshot:
description: Object representing a graph snapshot.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module DatadogAPIClient::V1
class GeomapWidgetDefinitionView
include BaseGenericModel

# The 2-letter ISO code of a country to focus the map on. Or `WORLD`.
# The 2-letter ISO code of a country to focus the map on, or `WORLD` for global view, or a region (`EMEA`, `APAC`, `LATAM`), or a continent (`NORTH_AMERICA`, `SOUTH_AMERICA`, `EUROPE`, `AFRICA`, `ASIA`, `OCEANIA`).
attr_reader :focus

attr_accessor :additional_properties
Expand Down
30 changes: 27 additions & 3 deletions lib/datadog_api_client/v1/models/geomap_widget_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class GeomapWidgetRequest
# Widget columns.
attr_accessor :columns

# Threshold (numeric) conditional formatting rules may be used by the regions layer.
attr_accessor :conditional_formats

# List of formulas that operate on queries.
attr_accessor :formulas

Expand Down Expand Up @@ -51,13 +54,17 @@ class GeomapWidgetRequest
# The controls for sorting the widget.
attr_accessor :sort

# Text formatting rules may be used by the points layer.
attr_accessor :text_formats

attr_accessor :additional_properties

# Attribute mapping from ruby-style variable name to JSON key.
# @!visibility private
def self.attribute_map
{
:'columns' => :'columns',
:'conditional_formats' => :'conditional_formats',
:'formulas' => :'formulas',
:'log_query' => :'log_query',
:'q' => :'q',
Expand All @@ -66,7 +73,8 @@ def self.attribute_map
:'response_format' => :'response_format',
:'rum_query' => :'rum_query',
:'security_query' => :'security_query',
:'sort' => :'sort'
:'sort' => :'sort',
:'text_formats' => :'text_formats'
}
end

Expand All @@ -75,6 +83,7 @@ def self.attribute_map
def self.openapi_types
{
:'columns' => :'Array<ListStreamColumn>',
:'conditional_formats' => :'Array<WidgetConditionalFormat>',
:'formulas' => :'Array<WidgetFormula>',
:'log_query' => :'LogQueryDefinition',
:'q' => :'String',
Expand All @@ -83,7 +92,8 @@ def self.openapi_types
:'response_format' => :'FormulaAndFunctionResponseFormat',
:'rum_query' => :'LogQueryDefinition',
:'security_query' => :'LogQueryDefinition',
:'sort' => :'WidgetSortBy'
:'sort' => :'WidgetSortBy',
:'text_formats' => :'Array<TableWidgetTextFormatRule>'
}
end

Expand Down Expand Up @@ -111,6 +121,12 @@ def initialize(attributes = {})
end
end

if attributes.key?(:'conditional_formats')
if (value = attributes[:'conditional_formats']).is_a?(Array)
self.conditional_formats = value
end
end

if attributes.key?(:'formulas')
if (value = attributes[:'formulas']).is_a?(Array)
self.formulas = value
Expand Down Expand Up @@ -150,6 +166,12 @@ def initialize(attributes = {})
if attributes.key?(:'sort')
self.sort = attributes[:'sort']
end

if attributes.key?(:'text_formats')
if (value = attributes[:'text_formats']).is_a?(Array)
self.text_formats = value
end
end
end

# Returns the object in the form of hash, with additionalProperties support.
Expand Down Expand Up @@ -179,6 +201,7 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
columns == o.columns &&
conditional_formats == o.conditional_formats &&
formulas == o.formulas &&
log_query == o.log_query &&
q == o.q &&
Expand All @@ -188,14 +211,15 @@ def ==(o)
rum_query == o.rum_query &&
security_query == o.security_query &&
sort == o.sort &&
text_formats == o.text_formats &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[columns, formulas, log_query, q, queries, query, response_format, rum_query, security_query, sort, additional_properties].hash
[columns, conditional_formats, formulas, log_query, q, queries, query, response_format, rum_query, security_query, sort, text_formats, additional_properties].hash
end
end
end
Loading