Skip to content

Enable automerging for Fastly routes. #2106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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.6.6",
"regenerated": "2024-08-14 20:10:54.348512",
"spec_repo_commit": "fafdefa8"
"regenerated": "2024-08-14 20:56:46.442629",
"spec_repo_commit": "dcc3176b"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-14 20:10:54.365784",
"spec_repo_commit": "fafdefa8"
"regenerated": "2024-08-14 20:56:46.460123",
"spec_repo_commit": "dcc3176b"
}
}
}
7 changes: 7 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8061,6 +8061,10 @@ components:
FastlyAccounResponseAttributes:
description: Attributes object of a Fastly account.
properties:
api_key:
description: The FastlyAccounResponseAttributes api_key.
type: string
writeOnly: true
name:
description: The name of the Fastly account.
example: test-name
Expand Down Expand Up @@ -8158,6 +8162,9 @@ components:
description: The API key of the Fastly account.
example: ABCDEFG123
type: string
name:
description: The FastlyAccountUpdateRequestAttributes name.
type: string
type: object
FastlyAccountUpdateRequestData:
description: Data object for updating a Fastly account.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,38 @@ def openapi_types(_):
from datadog_api_client.v2.model.fastly_service import FastlyService

return {
"api_key": (str,),
"name": (str,),
"services": ([FastlyService],),
}

attribute_map = {
"api_key": "api_key",
"name": "name",
"services": "services",
}

def __init__(self_, name: str, services: Union[List[FastlyService], UnsetType] = unset, **kwargs):
def __init__(
self_,
name: str,
api_key: Union[str, UnsetType] = unset,
services: Union[List[FastlyService], UnsetType] = unset,
**kwargs,
):
"""
Attributes object of a Fastly account.

:param api_key: The FastlyAccounResponseAttributes api_key.
:type api_key: str, optional

:param name: The name of the Fastly account.
:type name: str

:param services: A list of services belonging to the parent account.
:type services: [FastlyService], optional
"""
if api_key is not unset:
kwargs["api_key"] = api_key
if services is not unset:
kwargs["services"] = services
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,26 @@ class FastlyAccountUpdateRequestAttributes(ModelNormal):
def openapi_types(_):
return {
"api_key": (str,),
"name": (str,),
}

attribute_map = {
"api_key": "api_key",
"name": "name",
}

def __init__(self_, api_key: Union[str, UnsetType] = unset, **kwargs):
def __init__(self_, api_key: Union[str, UnsetType] = unset, name: Union[str, UnsetType] = unset, **kwargs):
"""
Attributes object for updating a Fastly account.

:param api_key: The API key of the Fastly account.
:type api_key: str, optional

:param name: The FastlyAccountUpdateRequestAttributes name.
:type name: str, optional
"""
if api_key is not unset:
kwargs["api_key"] = api_key
if name is not unset:
kwargs["name"] = name
super().__init__(kwargs)
Loading