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
56 changes: 56 additions & 0 deletions google/genai/_gaos/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
CreateTriggerRequest,
CreateTriggerRequestParam,
)
from .createvoice import (
CreateVoiceGlobals,
CreateVoiceGlobalsTypedDict,
CreateVoiceRequest,
CreateVoiceRequestParam,
)
from .createwebhook import (
CreateWebhookGlobals,
CreateWebhookGlobalsTypedDict,
Expand Down Expand Up @@ -98,6 +104,12 @@
DeleteTriggerRequest,
DeleteTriggerRequestParam,
)
from .deletevoice import (
DeleteVoiceGlobals,
DeleteVoiceGlobalsTypedDict,
DeleteVoiceRequest,
DeleteVoiceRequestParam,
)
from .deletewebhook import (
DeleteWebhookGlobals,
DeleteWebhookGlobalsTypedDict,
Expand Down Expand Up @@ -142,6 +154,12 @@
GetTriggerRequest,
GetTriggerRequestParam,
)
from .getvoice import (
GetVoiceGlobals,
GetVoiceGlobalsTypedDict,
GetVoiceRequest,
GetVoiceRequestParam,
)
from .getwebhook import (
GetWebhookGlobals,
GetWebhookGlobalsTypedDict,
Expand Down Expand Up @@ -178,6 +196,12 @@
ListTriggersRequest,
ListTriggersRequestParam,
)
from .listvoices import (
ListVoicesGlobals,
ListVoicesGlobalsTypedDict,
ListVoicesRequest,
ListVoicesRequestParam,
)
from .listwebhooks import (
ListWebhooksGlobals,
ListWebhooksGlobalsTypedDict,
Expand Down Expand Up @@ -259,6 +283,10 @@
"CreateTriggerGlobalsTypedDict",
"CreateTriggerRequest",
"CreateTriggerRequestParam",
"CreateVoiceGlobals",
"CreateVoiceGlobalsTypedDict",
"CreateVoiceRequest",
"CreateVoiceRequestParam",
"CreateWebhookGlobals",
"CreateWebhookGlobalsTypedDict",
"CreateWebhookRequest",
Expand All @@ -283,6 +311,10 @@
"DeleteTriggerGlobalsTypedDict",
"DeleteTriggerRequest",
"DeleteTriggerRequestParam",
"DeleteVoiceGlobals",
"DeleteVoiceGlobalsTypedDict",
"DeleteVoiceRequest",
"DeleteVoiceRequestParam",
"DeleteWebhookGlobals",
"DeleteWebhookGlobalsTypedDict",
"DeleteWebhookRequest",
Expand Down Expand Up @@ -313,6 +345,10 @@
"GetTriggerGlobalsTypedDict",
"GetTriggerRequest",
"GetTriggerRequestParam",
"GetVoiceGlobals",
"GetVoiceGlobalsTypedDict",
"GetVoiceRequest",
"GetVoiceRequestParam",
"GetWebhookGlobals",
"GetWebhookGlobalsTypedDict",
"GetWebhookRequest",
Expand All @@ -337,6 +373,10 @@
"ListTriggersGlobalsTypedDict",
"ListTriggersRequest",
"ListTriggersRequestParam",
"ListVoicesGlobals",
"ListVoicesGlobalsTypedDict",
"ListVoicesRequest",
"ListVoicesRequestParam",
"ListWebhooksGlobals",
"ListWebhooksGlobalsTypedDict",
"ListWebhooksRequest",
Expand Down Expand Up @@ -402,6 +442,10 @@
"CreateTriggerGlobalsTypedDict": ".createtrigger",
"CreateTriggerRequest": ".createtrigger",
"CreateTriggerRequestParam": ".createtrigger",
"CreateVoiceGlobals": ".createvoice",
"CreateVoiceGlobalsTypedDict": ".createvoice",
"CreateVoiceRequest": ".createvoice",
"CreateVoiceRequestParam": ".createvoice",
"CreateWebhookGlobals": ".createwebhook",
"CreateWebhookGlobalsTypedDict": ".createwebhook",
"CreateWebhookRequest": ".createwebhook",
Expand All @@ -426,6 +470,10 @@
"DeleteTriggerGlobalsTypedDict": ".deletetrigger",
"DeleteTriggerRequest": ".deletetrigger",
"DeleteTriggerRequestParam": ".deletetrigger",
"DeleteVoiceGlobals": ".deletevoice",
"DeleteVoiceGlobalsTypedDict": ".deletevoice",
"DeleteVoiceRequest": ".deletevoice",
"DeleteVoiceRequestParam": ".deletevoice",
"DeleteWebhookGlobals": ".deletewebhook",
"DeleteWebhookGlobalsTypedDict": ".deletewebhook",
"DeleteWebhookRequest": ".deletewebhook",
Expand Down Expand Up @@ -456,6 +504,10 @@
"GetTriggerGlobalsTypedDict": ".gettrigger",
"GetTriggerRequest": ".gettrigger",
"GetTriggerRequestParam": ".gettrigger",
"GetVoiceGlobals": ".getvoice",
"GetVoiceGlobalsTypedDict": ".getvoice",
"GetVoiceRequest": ".getvoice",
"GetVoiceRequestParam": ".getvoice",
"GetWebhookGlobals": ".getwebhook",
"GetWebhookGlobalsTypedDict": ".getwebhook",
"GetWebhookRequest": ".getwebhook",
Expand All @@ -480,6 +532,10 @@
"ListTriggersGlobalsTypedDict": ".listtriggers",
"ListTriggersRequest": ".listtriggers",
"ListTriggersRequestParam": ".listtriggers",
"ListVoicesGlobals": ".listvoices",
"ListVoicesGlobalsTypedDict": ".listvoices",
"ListVoicesRequest": ".listvoices",
"ListVoicesRequestParam": ".listvoices",
"ListWebhooksGlobals": ".listwebhooks",
"ListWebhooksGlobalsTypedDict": ".listwebhooks",
"ListWebhooksRequest": ".listwebhooks",
Expand Down
92 changes: 92 additions & 0 deletions google/genai/_gaos/models/createvoice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# pyformat: disable
# pylint: skip-file

"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from ..types import BaseModel, UNSET_SENTINEL
from ..types.voices import createvoicerequest as voices_createvoicerequest
from ..utils import FieldMetadata, PathParamMetadata, RequestMetadata
from pydantic import model_serializer
from typing import Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class CreateVoiceGlobalsTypedDict(TypedDict):
api_version: NotRequired[str]
r"""API version for request routing."""


class CreateVoiceGlobals(BaseModel):
api_version: Annotated[
Optional[str],
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
] = None
r"""API version for request routing."""

@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["api_version"])
serialized = handler(self)
m = {}

for n, f in type(self).model_fields.items():
k = f.alias or n
val = serialized.get(k, serialized.get(n))

if val != UNSET_SENTINEL:
if val is not None or k not in optional_fields:
m[k] = val

return m


class CreateVoiceRequestParam(TypedDict):
body: voices_createvoicerequest.CreateVoiceRequestParam
r"""The request body."""
api_version: NotRequired[str]
r"""API version for request routing."""


class CreateVoiceRequest(BaseModel):
body: Annotated[
voices_createvoicerequest.CreateVoiceRequest,
FieldMetadata(request=RequestMetadata(media_type="application/json")),
]
r"""The request body."""

api_version: Annotated[
Optional[str],
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
] = None
r"""API version for request routing."""

@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["api_version"])
serialized = handler(self)
m = {}

for n, f in type(self).model_fields.items():
k = f.alias or n
val = serialized.get(k, serialized.get(n))

if val != UNSET_SENTINEL:
if val is not None or k not in optional_fields:
m[k] = val

return m
97 changes: 97 additions & 0 deletions google/genai/_gaos/models/deletevoice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# pyformat: disable
# pylint: skip-file

"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from ..types import BaseModel, UNSET_SENTINEL
from ..utils import FieldMetadata, PathParamMetadata
import pydantic
from pydantic import model_serializer
from typing import Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class DeleteVoiceGlobalsTypedDict(TypedDict):
api_version: NotRequired[str]
r"""API version for request routing."""


class DeleteVoiceGlobals(BaseModel):
api_version: Annotated[
Optional[str],
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
] = None
r"""API version for request routing."""

@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["api_version"])
serialized = handler(self)
m = {}

for n, f in type(self).model_fields.items():
k = f.alias or n
val = serialized.get(k, serialized.get(n))

if val != UNSET_SENTINEL:
if val is not None or k not in optional_fields:
m[k] = val

return m


class DeleteVoiceRequestParam(TypedDict):
id: str
r"""Required. The resource name of the custom stored voice to delete
(for example, `voices/voice_abc123def456`).
"""
api_version: NotRequired[str]
r"""API version for request routing."""


class DeleteVoiceRequest(BaseModel):
id: Annotated[
str,
pydantic.Field(alias="voicesId"),
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
]
r"""Required. The resource name of the custom stored voice to delete
(for example, `voices/voice_abc123def456`).
"""

api_version: Annotated[
Optional[str],
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
] = None
r"""API version for request routing."""

@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["api_version"])
serialized = handler(self)
m = {}

for n, f in type(self).model_fields.items():
k = f.alias or n
val = serialized.get(k, serialized.get(n))

if val != UNSET_SENTINEL:
if val is not None or k not in optional_fields:
m[k] = val

return m
Loading
Loading