Skip to content

Commit 56dc173

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit a1af0e0 of spec repo (#438)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 2565c1e commit 56dc173

File tree

4 files changed

+25
-16
lines changed

4 files changed

+25
-16
lines changed

.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.4.1.dev6",
7-
"regenerated": "2021-05-14 12:55:54.385081",
8-
"spec_repo_commit": "8dce4be"
7+
"regenerated": "2021-05-14 17:14:35.845229",
8+
"spec_repo_commit": "a1af0e0"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev6",
12-
"regenerated": "2021-05-14 12:56:19.479126",
13-
"spec_repo_commit": "8dce4be"
12+
"regenerated": "2021-05-14 17:15:04.904012",
13+
"spec_repo_commit": "a1af0e0"
1414
}
1515
}
1616
}

docs/v1/WidgetCustomLink.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ Custom links help you connect a data value to a URL, like a Datadog page or your
55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**label** | **str** | The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. |
9-
**link** | **str** | The URL of the custom link. URL must include &#x60;http&#x60; or &#x60;https&#x60;. A relative URL must start with &#x60;/&#x60;. |
8+
**is_hidden** | **bool** | The flag for toggling context menu link visibility. | [optional]
9+
**label** | **str** | The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. | [optional]
10+
**link** | **str** | The URL of the custom link. URL must include &#x60;http&#x60; or &#x60;https&#x60;. A relative URL must start with &#x60;/&#x60;. | [optional]
11+
**override_label** | **str** | The label ID that refers to a context menu link. Can be &#x60;logs&#x60;, &#x60;hosts&#x60;, &#x60;traces&#x60;, &#x60;profiles&#x60;, &#x60;processes&#x60;, &#x60;containers&#x60;, or &#x60;rum&#x60;. | [optional]
1012

1113
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
1214

src/datadog_api_client/v1/model/widget_custom_link.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,21 @@ def openapi_types():
6565
and the value is attribute type.
6666
"""
6767
return {
68+
"is_hidden": (bool,), # noqa: E501
6869
"label": (str,), # noqa: E501
6970
"link": (str,), # noqa: E501
71+
"override_label": (str,), # noqa: E501
7072
}
7173

7274
@cached_property
7375
def discriminator():
7476
return None
7577

7678
attribute_map = {
79+
"is_hidden": "is_hidden", # noqa: E501
7780
"label": "label", # noqa: E501
7881
"link": "link", # noqa: E501
82+
"override_label": "override_label", # noqa: E501
7983
}
8084

8185
_composed_schemas = {}
@@ -92,13 +96,9 @@ def discriminator():
9296
)
9397

9498
@convert_js_args_to_python_args
95-
def __init__(self, label, link, *args, **kwargs): # noqa: E501
99+
def __init__(self, *args, **kwargs): # noqa: E501
96100
"""WidgetCustomLink - a model defined in OpenAPI
97101
98-
Args:
99-
label (str): The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables.
100-
link (str): The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`.
101-
102102
Keyword Args:
103103
_check_type (bool): if True, values for parameters in openapi_types
104104
will be type checked and a TypeError will be
@@ -130,6 +130,10 @@ def __init__(self, label, link, *args, **kwargs): # noqa: E501
130130
Animal class but this time we won't travel
131131
through its discriminator because we passed in
132132
_visited_composed_classes = (Animal,)
133+
is_hidden (bool): The flag for toggling context menu link visibility.. [optional] # noqa: E501
134+
label (str): The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables.. [optional] # noqa: E501
135+
link (str): The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`.. [optional] # noqa: E501
136+
override_label (str): The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`.. [optional] # noqa: E501
133137
"""
134138

135139
_check_type = kwargs.pop("_check_type", True)
@@ -156,8 +160,6 @@ def __init__(self, label, link, *args, **kwargs): # noqa: E501
156160
self._configuration = _configuration
157161
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
158162

159-
self.label = label
160-
self.link = link
161163
for var_name, var_value in kwargs.items():
162164
if (
163165
var_name not in self.attribute_map

src/datadog_api_client/v1/openapi.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12251,6 +12251,9 @@ components:
1225112251
description: Custom links help you connect a data value to a URL, like a Datadog
1225212252
page or your AWS console.
1225312253
properties:
12254+
is_hidden:
12255+
description: The flag for toggling context menu link visibility.
12256+
type: boolean
1225412257
label:
1225512258
description: The label for the custom link URL. Keep the label short and
1225612259
descriptive. Use metrics and tags as variables.
@@ -12261,9 +12264,11 @@ components:
1226112264
A relative URL must start with `/`.
1226212265
example: https://app.datadoghq.com/logs?query={{host}}
1226312266
type: string
12264-
required:
12265-
- label
12266-
- link
12267+
override_label:
12268+
description: The label ID that refers to a context menu link. Can be `logs`,
12269+
`hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`.
12270+
example: logs
12271+
type: string
1226712272
type: object
1226812273
WidgetDefinition:
1226912274
description: '[Definition of the widget](https://docs.datadoghq.com/dashboards/widgets/).'

0 commit comments

Comments
 (0)