Skip to content

Commit

Permalink
Regenerate client from commit 2c91a1d of spec repo (#308)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Apr 19, 2021
1 parent ed1f8e3 commit debfa65
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
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.4.1.dev6",
"regenerated": "2021-04-16 12:34:19.469182",
"spec_repo_commit": "9149cd6"
"regenerated": "2021-04-19 09:21:17.605502",
"spec_repo_commit": "2c91a1d"
},
"v2": {
"apigentools_version": "1.4.1.dev6",
"regenerated": "2021-04-16 12:34:31.518591",
"spec_repo_commit": "9149cd6"
"regenerated": "2021-04-19 09:21:31.380187",
"spec_repo_commit": "2c91a1d"
}
}
}
5 changes: 5 additions & 0 deletions data/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2242,11 +2242,16 @@ components:
your timeboard. Each group has a custom header, can hold one to many graphs,
and is collapsible.
properties:
background_color:
description: Background color of the group title.
type: string
layout_type:
$ref: '#/components/schemas/WidgetLayoutType'
title:
description: Title of the widget.
type: string
title_align:
$ref: '#/components/schemas/WidgetTextAlign'
type:
$ref: '#/components/schemas/GroupWidgetDefinitionType'
widgets:
Expand Down
4 changes: 4 additions & 0 deletions docs/v1/GroupWidgetDefinition.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **background_color** | **String** | Background color of the group title. | [optional] |
| **layout_type** | [**WidgetLayoutType**](WidgetLayoutType.md) | | |
| **title** | **String** | Title of the widget. | [optional] |
| **title_align** | [**WidgetTextAlign**](WidgetTextAlign.md) | | [optional] |
| **type** | [**GroupWidgetDefinitionType**](GroupWidgetDefinitionType.md) | | [default to &#39;group&#39;] |
| **widgets** | [**Array&lt;Widget&gt;**](Widget.md) | List of widget groups. | |

Expand All @@ -15,8 +17,10 @@
require 'datadog_api_client/v1'

instance = DatadogAPIClient::V1::GroupWidgetDefinition.new(
background_color: null,
layout_type: null,
title: null,
title_align: null,
type: null,
widgets: [{&quot;definition&quot;:{&quot;requests&quot;:{&quot;fill&quot;:{&quot;q&quot;:&quot;system.cpu.user&quot;}},&quot;type&quot;:&quot;hostmap&quot;}}]
)
Expand Down
21 changes: 20 additions & 1 deletion lib/datadog_api_client/v1/models/group_widget_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,16 @@
module DatadogAPIClient::V1
# The groups widget allows you to keep similar graphs together on your timeboard. Each group has a custom header, can hold one to many graphs, and is collapsible.
class GroupWidgetDefinition
# Background color of the group title.
attr_accessor :background_color

attr_accessor :layout_type

# Title of the widget.
attr_accessor :title

attr_accessor :title_align

attr_accessor :type

# List of widget groups.
Expand All @@ -32,8 +37,10 @@ class GroupWidgetDefinition
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'background_color' => :'background_color',
:'layout_type' => :'layout_type',
:'title' => :'title',
:'title_align' => :'title_align',
:'type' => :'type',
:'widgets' => :'widgets'
}
Expand All @@ -47,8 +54,10 @@ def self.acceptable_attributes
# Attribute type mapping.
def self.openapi_types
{
:'background_color' => :'String',
:'layout_type' => :'WidgetLayoutType',
:'title' => :'String',
:'title_align' => :'WidgetTextAlign',
:'type' => :'GroupWidgetDefinitionType',
:'widgets' => :'Array<Widget>'
}
Expand All @@ -75,6 +84,10 @@ def initialize(attributes = {})
h[k.to_sym] = v
}

if attributes.key?(:'background_color')
self.background_color = attributes[:'background_color']
end

if attributes.key?(:'layout_type')
self.layout_type = attributes[:'layout_type']
end
Expand All @@ -83,6 +96,10 @@ def initialize(attributes = {})
self.title = attributes[:'title']
end

if attributes.key?(:'title_align')
self.title_align = attributes[:'title_align']
end

if attributes.key?(:'type')
self.type = attributes[:'type']
else
Expand Down Expand Up @@ -129,8 +146,10 @@ def valid?
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
background_color == o.background_color &&
layout_type == o.layout_type &&
title == o.title &&
title_align == o.title_align &&
type == o.type &&
widgets == o.widgets
end
Expand All @@ -144,7 +163,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[layout_type, title, type, widgets].hash
[background_color, layout_type, title, title_align, type, widgets].hash
end

# Builds the object from hash
Expand Down

0 comments on commit debfa65

Please sign in to comment.