Skip to content

Commit 41e9e5e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Regenerate client from commit edb67b7 of spec repo (#167)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent bcbd68d commit 41e9e5e

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
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.3.0",
7-
"regenerated": "2020-11-24 10:21:04.823364",
8-
"spec_repo_commit": "605e8f8"
7+
"regenerated": "2020-11-24 11:32:41.427732",
8+
"spec_repo_commit": "edb67b7"
99
},
1010
"v2": {
1111
"apigentools_version": "1.3.0",
12-
"regenerated": "2020-11-24 10:21:18.659367",
13-
"spec_repo_commit": "605e8f8"
12+
"regenerated": "2020-11-24 11:32:52.753559",
13+
"spec_repo_commit": "edb67b7"
1414
}
1515
}
1616
}

docs/v1/OrganizationCreateBody.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Object describing an organization to create.
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**billing** | [**OrganizationBilling**](OrganizationBilling.md) | |
87
**name** | **str** | The name of the new child-organization, limited to 32 characters. |
9-
**subscription** | [**OrganizationSubscription**](OrganizationSubscription.md) | |
8+
**billing** | [**OrganizationBilling**](OrganizationBilling.md) | | [optional]
9+
**subscription** | [**OrganizationSubscription**](OrganizationSubscription.md) | | [optional]
1010

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

src/datadog_api_client/v1/model/organization_create_body.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ def openapi_types():
7878
"""
7979
lazy_import()
8080
return {
81-
'billing': (OrganizationBilling,), # noqa: E501
8281
'name': (str,), # noqa: E501
82+
'billing': (OrganizationBilling,), # noqa: E501
8383
'subscription': (OrganizationSubscription,), # noqa: E501
8484
}
8585

@@ -89,8 +89,8 @@ def discriminator():
8989

9090

9191
attribute_map = {
92-
'billing': 'billing', # noqa: E501
9392
'name': 'name', # noqa: E501
93+
'billing': 'billing', # noqa: E501
9494
'subscription': 'subscription', # noqa: E501
9595
}
9696

@@ -106,13 +106,11 @@ def discriminator():
106106
])
107107

108108
@convert_js_args_to_python_args
109-
def __init__(self, billing, name, subscription, *args, **kwargs): # noqa: E501
109+
def __init__(self, name, *args, **kwargs): # noqa: E501
110110
"""OrganizationCreateBody - a model defined in OpenAPI
111111
112112
Args:
113-
billing (OrganizationBilling):
114113
name (str): The name of the new child-organization, limited to 32 characters.
115-
subscription (OrganizationSubscription):
116114
117115
Keyword Args:
118116
_check_type (bool): if True, values for parameters in openapi_types
@@ -145,6 +143,8 @@ def __init__(self, billing, name, subscription, *args, **kwargs): # noqa: E501
145143
Animal class but this time we won't travel
146144
through its discriminator because we passed in
147145
_visited_composed_classes = (Animal,)
146+
billing (OrganizationBilling): [optional] # noqa: E501
147+
subscription (OrganizationSubscription): [optional] # noqa: E501
148148
"""
149149

150150
_check_type = kwargs.pop('_check_type', True)
@@ -170,9 +170,7 @@ def __init__(self, billing, name, subscription, *args, **kwargs): # noqa: E501
170170
self._configuration = _configuration
171171
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
172172

173-
self.billing = billing
174173
self.name = name
175-
self.subscription = subscription
176174
for var_name, var_value in kwargs.items():
177175
if var_name not in self.attribute_map and \
178176
self._configuration is not None and \

src/datadog_api_client/v1/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4424,6 +4424,7 @@ components:
44244424
$ref: '#/components/schemas/OrganizationSubscription'
44254425
type: object
44264426
OrganizationBilling:
4427+
deprecated: true
44274428
description: A JSON array of billing type.
44284429
example:
44294430
type: parent_billing
@@ -4446,8 +4447,6 @@ components:
44464447
$ref: '#/components/schemas/OrganizationSubscription'
44474448
required:
44484449
- name
4449-
- subscription
4450-
- billing
44514450
type: object
44524451
OrganizationCreateResponse:
44534452
description: Response object for an organization creation.
@@ -4477,6 +4476,7 @@ components:
44774476
$ref: '#/components/schemas/Organization'
44784477
type: object
44794478
OrganizationSubscription:
4479+
deprecated: true
44804480
description: Subscription definition.
44814481
example:
44824482
type: pro

0 commit comments

Comments
 (0)