Skip to content

Commit

Permalink
Regenerate client from commit 9dc6b6ea of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jul 24, 2023
1 parent d2641e9 commit d07c2b6
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 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.6.5",
"regenerated": "2023-07-21 15:02:55.156864",
"spec_repo_commit": "1b0797fc"
"regenerated": "2023-07-24 15:27:27.939479",
"spec_repo_commit": "9dc6b6ea"
},
"v2": {
"apigentools_version": "1.6.5",
"regenerated": "2023-07-21 15:02:55.169012",
"spec_repo_commit": "1b0797fc"
"regenerated": "2023-07-24 15:27:27.953761",
"spec_repo_commit": "9dc6b6ea"
}
}
}
6 changes: 5 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1498,6 +1498,10 @@ components:
type: string
tags:
$ref: '#/components/schemas/TagsEventAttribute'
test_level:
description: The event test level.
example: session
type: string
timestamp:
$ref: '#/components/schemas/TimestampEventAttribute'
type: object
Expand Down Expand Up @@ -2500,7 +2504,7 @@ components:
links:
$ref: '#/components/schemas/CIAppResponseLinks'
meta:
$ref: '#/components/schemas/CIAppResponseMetadata'
$ref: '#/components/schemas/CIAppResponseMetadataWithPagination'
type: object
CIAppTestsBucketResponse:
description: Bucket values.
Expand Down
8 changes: 8 additions & 0 deletions src/datadog_api_client/v2/model/ci_app_event_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ def openapi_types(_):
),
"service": (str,),
"tags": (TagsEventAttribute,),
"test_level": (str,),
"timestamp": (datetime,),
}

attribute_map = {
"attributes": "attributes",
"service": "service",
"tags": "tags",
"test_level": "test_level",
"timestamp": "timestamp",
}

Expand All @@ -58,6 +60,7 @@ def __init__(
attributes: Union[Dict[str, Any], UnsetType] = unset,
service: Union[str, UnsetType] = unset,
tags: Union[TagsEventAttribute, UnsetType] = unset,
test_level: Union[str, UnsetType] = unset,
timestamp: Union[datetime, UnsetType] = unset,
**kwargs,
):
Expand All @@ -75,6 +78,9 @@ def __init__(
:param tags: Array of tags associated with your event.
:type tags: TagsEventAttribute, optional
:param test_level: The event test level.
:type test_level: str, optional
:param timestamp: Timestamp of your event.
:type timestamp: datetime, optional
"""
Expand All @@ -84,6 +90,8 @@ def __init__(
kwargs["service"] = service
if tags is not unset:
kwargs["tags"] = tags
if test_level is not unset:
kwargs["test_level"] = test_level
if timestamp is not unset:
kwargs["timestamp"] = timestamp
super().__init__(kwargs)
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
CIAppTestsAggregationBucketsResponse,
)
from datadog_api_client.v2.model.ci_app_response_links import CIAppResponseLinks
from datadog_api_client.v2.model.ci_app_response_metadata import CIAppResponseMetadata
from datadog_api_client.v2.model.ci_app_response_metadata_with_pagination import CIAppResponseMetadataWithPagination


class CIAppTestsAnalyticsAggregateResponse(ModelNormal):
Expand All @@ -28,12 +28,14 @@ def openapi_types(_):
CIAppTestsAggregationBucketsResponse,
)
from datadog_api_client.v2.model.ci_app_response_links import CIAppResponseLinks
from datadog_api_client.v2.model.ci_app_response_metadata import CIAppResponseMetadata
from datadog_api_client.v2.model.ci_app_response_metadata_with_pagination import (
CIAppResponseMetadataWithPagination,
)

return {
"data": (CIAppTestsAggregationBucketsResponse,),
"links": (CIAppResponseLinks,),
"meta": (CIAppResponseMetadata,),
"meta": (CIAppResponseMetadataWithPagination,),
}

attribute_map = {
Expand All @@ -46,7 +48,7 @@ def __init__(
self_,
data: Union[CIAppTestsAggregationBucketsResponse, UnsetType] = unset,
links: Union[CIAppResponseLinks, UnsetType] = unset,
meta: Union[CIAppResponseMetadata, UnsetType] = unset,
meta: Union[CIAppResponseMetadataWithPagination, UnsetType] = unset,
**kwargs,
):
"""
Expand All @@ -59,7 +61,7 @@ def __init__(
:type links: CIAppResponseLinks, optional
:param meta: The metadata associated with a request.
:type meta: CIAppResponseMetadata, optional
:type meta: CIAppResponseMetadataWithPagination, optional
"""
if data is not unset:
kwargs["data"] = data
Expand Down

0 comments on commit d07c2b6

Please sign in to comment.