Skip to content
Merged
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
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.5.1.dev2",
"regenerated": "2021-10-07 18:58:43.068576",
"spec_repo_commit": "0e7768c"
"regenerated": "2021-10-08 15:42:11.371937",
"spec_repo_commit": "9a4b94d"
},
"v2": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-10-07 18:59:13.692877",
"spec_repo_commit": "0e7768c"
"regenerated": "2021-10-08 15:42:51.123956",
"spec_repo_commit": "9a4b94d"
}
}
}
2 changes: 1 addition & 1 deletion .generator/templates/model_simple.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func (o *{{{classname}}}) UnmarshalJSON(bytes []byte) (err error) {
}
{{#vars}}
{{#allowableValues}}
if v := all.{{name}}; {{^required}}{{^isNullable}}v != nil && {{/isNullable}}{{/required}}!v.IsValid() {
if v := all.{{name}}; {{^required}}{{^isNullable}}v != nil && {{/isNullable}}{{/required}}!v{{#isNullable}}.Get(){{/isNullable}}.IsValid() {
err = json.Unmarshal(bytes, &raw)
if err != nil {
return err
Expand Down
4 changes: 4 additions & 0 deletions api/v1/datadog/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ docs/NotebookLogStreamCellAttributes.md
docs/NotebookMarkdownCellAttributes.md
docs/NotebookMarkdownCellDefinition.md
docs/NotebookMarkdownCellDefinitionType.md
docs/NotebookMetadata.md
docs/NotebookMetadataType.md
docs/NotebookRelativeTime.md
docs/NotebookResourceType.md
docs/NotebookResponse.md
Expand Down Expand Up @@ -973,6 +975,8 @@ model_notebook_log_stream_cell_attributes.go
model_notebook_markdown_cell_attributes.go
model_notebook_markdown_cell_definition.go
model_notebook_markdown_cell_definition_type.go
model_notebook_metadata.go
model_notebook_metadata_type.go
model_notebook_relative_time.go
model_notebook_resource_type.go
model_notebook_response.go
Expand Down
2 changes: 2 additions & 0 deletions api/v1/datadog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,8 @@ Class | Method | HTTP request | Description
- [NotebookMarkdownCellAttributes](docs/NotebookMarkdownCellAttributes.md)
- [NotebookMarkdownCellDefinition](docs/NotebookMarkdownCellDefinition.md)
- [NotebookMarkdownCellDefinitionType](docs/NotebookMarkdownCellDefinitionType.md)
- [NotebookMetadata](docs/NotebookMetadata.md)
- [NotebookMetadataType](docs/NotebookMetadataType.md)
- [NotebookRelativeTime](docs/NotebookRelativeTime.md)
- [NotebookResourceType](docs/NotebookResourceType.md)
- [NotebookResponse](docs/NotebookResponse.md)
Expand Down
124 changes: 122 additions & 2 deletions api/v1/datadog/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5704,7 +5704,7 @@ paths:
format: int64
type: integer
style: form
- description: Sort by field `modified` or `name`.
- description: Sort by field `modified`, `name`, or `created`.
explode: true
in: query
name: sort_field
Expand Down Expand Up @@ -5745,6 +5745,27 @@ paths:
example: false
type: boolean
style: form
- description: True value returns only template notebooks. Default is false
(returns only non-template notebooks).
explode: true
in: query
name: is_template
required: false
schema:
default: false
example: false
type: boolean
style: form
- description: If type is provided, returns only notebooks with that metadata
type. Default does not have type filtering.
explode: true
in: query
name: type
required: false
schema:
example: investigation
type: string
style: form
responses:
"200":
content:
Expand Down Expand Up @@ -17958,6 +17979,10 @@ components:
description: The data for a notebook create request.
example:
attributes:
metadata:
is_template: false
take_snapshots: false
type: investigation
cells:
- attributes:
definition:
Expand Down Expand Up @@ -18005,6 +18030,10 @@ components:
NotebookCreateDataAttributes:
description: The data attributes of a notebook.
example:
metadata:
is_template: false
take_snapshots: false
type: investigation
cells:
- attributes:
definition:
Expand Down Expand Up @@ -18077,6 +18106,8 @@ components:
items:
$ref: '#/components/schemas/NotebookCellCreateRequest'
type: array
metadata:
$ref: '#/components/schemas/NotebookMetadata'
name:
description: The name of the notebook.
example: Example Notebook
Expand All @@ -18097,6 +18128,10 @@ components:
example:
data:
attributes:
metadata:
is_template: false
take_snapshots: false
type: investigation
cells:
- attributes:
definition:
Expand Down Expand Up @@ -18232,6 +18267,45 @@ components:
type: string
x-enum-varnames:
- MARKDOWN
NotebookMetadata:
description: Metadata associated with the notebook.
example:
is_template: false
take_snapshots: false
type: investigation
properties:
is_template:
default: false
description: Whether or not the notebook is a template.
example: false
type: boolean
take_snapshots:
default: false
description: Whether or not the notebook takes snapshot image backups of
the notebook's fixed-time graphs.
example: false
type: boolean
type:
$ref: '#/components/schemas/NotebookMetadataType'
type: object
NotebookMetadataType:
default: "null"
description: Metadata type of the notebook.
enum:
- postmortem
- runbook
- investigation
- documentation
- report
example: investigation
nullable: true
type: string
x-enum-varnames:
- POSTMORTEM
- RUNBOOK
- INVESTIGATION
- DOCUMENTATION
- REPORT
NotebookRelativeTime:
description: Relative timeframe.
example:
Expand All @@ -18257,6 +18331,10 @@ components:
example:
data:
attributes:
metadata:
is_template: false
take_snapshots: false
type: investigation
cells:
- attributes:
definition:
Expand Down Expand Up @@ -18315,6 +18393,10 @@ components:
description: The data for a notebook.
example:
attributes:
metadata:
is_template: false
take_snapshots: false
type: investigation
cells:
- attributes:
definition:
Expand Down Expand Up @@ -18384,6 +18466,10 @@ components:
NotebookResponseDataAttributes:
description: The attributes of a notebook.
example:
metadata:
is_template: false
take_snapshots: false
type: investigation
cells:
- attributes:
definition:
Expand Down Expand Up @@ -18480,6 +18566,8 @@ components:
format: date-time
readOnly: true
type: string
metadata:
$ref: '#/components/schemas/NotebookMetadata'
modified:
description: UTC time stamp for when the notebook was last modified.
example: 2021-02-24T23:15:23.274966Z
Expand Down Expand Up @@ -18575,6 +18663,10 @@ components:
description: The data for a notebook update request.
example:
attributes:
metadata:
is_template: false
take_snapshots: false
type: investigation
cells:
- attributes:
definition:
Expand Down Expand Up @@ -18624,6 +18716,10 @@ components:
NotebookUpdateDataAttributes:
description: The data attributes of a notebook.
example:
metadata:
is_template: false
take_snapshots: false
type: investigation
cells:
- attributes:
definition:
Expand Down Expand Up @@ -18700,6 +18796,8 @@ components:
items:
$ref: '#/components/schemas/NotebookUpdateCell'
type: array
metadata:
$ref: '#/components/schemas/NotebookMetadata'
name:
description: The name of the notebook.
example: Example Notebook
Expand All @@ -18720,6 +18818,10 @@ components:
example:
data:
attributes:
metadata:
is_template: false
take_snapshots: false
type: investigation
cells:
- attributes:
definition:
Expand Down Expand Up @@ -18768,6 +18870,10 @@ components:
example:
data:
- attributes:
metadata:
is_template: false
take_snapshots: false
type: investigation
cells:
- id: abcd1234
type: notebook_cells
Expand All @@ -18790,6 +18896,10 @@ components:
id: 123456
type: notebooks
- attributes:
metadata:
is_template: false
take_snapshots: false
type: investigation
cells:
- id: abcd1234
type: notebook_cells
Expand Down Expand Up @@ -18828,6 +18938,10 @@ components:
description: The data for a notebook in get all response.
example:
attributes:
metadata:
is_template: false
take_snapshots: false
type: investigation
cells:
- id: abcd1234
type: notebook_cells
Expand Down Expand Up @@ -18868,6 +18982,10 @@ components:
NotebooksResponseDataAttributes:
description: The attributes of a notebook in get all response.
example:
metadata:
is_template: false
take_snapshots: false
type: investigation
cells:
- id: abcd1234
type: notebook_cells
Expand Down Expand Up @@ -18901,6 +19019,8 @@ components:
format: date-time
readOnly: true
type: string
metadata:
$ref: '#/components/schemas/NotebookMetadata'
modified:
description: UTC time stamp for when the notebook was last modified.
example: 2021-02-24T23:15:23.274966Z
Expand Down Expand Up @@ -30910,7 +31030,7 @@ components:
readOnly: true
type: object
NotebooksResponse_meta:
description: Metadata returned by the API.
description: Searches metadata returned by the API.
example:
page:
total_count: 0
Expand Down
20 changes: 20 additions & 0 deletions api/v1/datadog/api_notebooks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading