Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- main

env:
SPEAKEASY_VERSION: v2.952.4
SPEAKEASY_VERSION: v2.955.0

jobs:
mypy:
Expand Down
40 changes: 20 additions & 20 deletions google/genai/_gaos/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def create(
:param refresh_token: Required. Input only. OAuth2 refresh token. Write-only; never returned in responses.
:param scopes: Optional. List of OAuth2 scopes.
:param token_url: Required. OAuth2 token endpoint URL for refreshing access tokens.
:param type:
:param type_:
:param extra_headers: Additional headers to set or replace on requests.
:param extra_query: Additional query parameters to append to requests.
:param extra_body: Additional JSON object fields to merge into request bodies.
Expand Down Expand Up @@ -268,7 +268,7 @@ def create(
Accepts either a single location (e.g. \"header\") or an array of locations.
:param trusted_domains: Optional. List of domains allowed to receive this environment variable
value in HTTP requests.
:param type:
:param type_:
:param value: Required. Input only. Secret value of the environment variable. Write-only; never
returned in responses.
:param extra_headers: Additional headers to set or replace on requests.
Expand Down Expand Up @@ -301,7 +301,7 @@ def create(
:param prefix: Optional. Prefix to prepend to the token. Defaults to 'Bearer'. Set to ''
for no prefix.
:param token: Required. Input only. The static bearer token. Write-only; never returned in responses.
:param type:
:param type_:
:param extra_headers: Additional headers to set or replace on requests.
:param extra_query: Additional query parameters to append to requests.
:param extra_body: Additional JSON object fields to merge into request bodies.
Expand Down Expand Up @@ -331,7 +331,7 @@ def create(
:param refresh_token: Required. Input only. OAuth2 refresh token. Write-only; never returned in responses.
:param scopes: Optional. List of OAuth2 scopes.
:param token_url: Required. OAuth2 token endpoint URL for refreshing access tokens.
:param type:
:param type_:
:param injection_location: Required. Locations where the environment variable can be injected in
outgoing HTTP requests. Must contain at least one location.
Accepts either a single location (e.g. \"header\") or an array of locations.
Expand Down Expand Up @@ -372,7 +372,7 @@ def create(
:param refresh_token: Required. Input only. OAuth2 refresh token. Write-only; never returned in responses.
:param scopes: Optional. List of OAuth2 scopes.
:param token_url: Required. OAuth2 token endpoint URL for refreshing access tokens.
:param type:
:param type_:
:param injection_location: Required. Locations where the environment variable can be injected in
outgoing HTTP requests. Must contain at least one location.
Accepts either a single location (e.g. \"header\") or an array of locations.
Expand Down Expand Up @@ -991,7 +991,7 @@ def update(
:param refresh_token: Optional. Input only. OAuth2 refresh token. Write-only; never returned in responses.
:param scopes: Optional. List of OAuth2 scopes.
:param token_url: Optional. OAuth2 token endpoint URL for refreshing access tokens.
:param type:
:param type_:
:param extra_headers: Additional headers to set or replace on requests.
:param extra_query: Additional query parameters to append to requests.
:param extra_body: Additional JSON object fields to merge into request bodies.
Expand Down Expand Up @@ -1023,7 +1023,7 @@ def update(
Accepts either a single location (e.g. \"header\") or an array of locations.
:param trusted_domains: Optional. List of domains allowed to receive this environment variable
value in HTTP requests.
:param type:
:param type_:
:param value: Optional. Input only. Secret value of the environment variable. Write-only; never
returned in responses.
:param extra_headers: Additional headers to set or replace on requests.
Expand Down Expand Up @@ -1057,7 +1057,7 @@ def update(
:param prefix: Optional. Prefix to prepend to the token. Defaults to 'Bearer'. Set to ''
for no prefix.
:param token: Optional. Input only. The static bearer token. Write-only; never returned in responses.
:param type:
:param type_:
:param extra_headers: Additional headers to set or replace on requests.
:param extra_query: Additional query parameters to append to requests.
:param extra_body: Additional JSON object fields to merge into request bodies.
Expand Down Expand Up @@ -1089,7 +1089,7 @@ def update(
:param refresh_token: Optional. Input only. OAuth2 refresh token. Write-only; never returned in responses.
:param scopes: Optional. List of OAuth2 scopes.
:param token_url: Optional. OAuth2 token endpoint URL for refreshing access tokens.
:param type:
:param type_:
:param injection_location: Optional. Locations where the environment variable can be injected in
outgoing HTTP requests.
Accepts either a single location (e.g. \"header\") or an array of locations.
Expand Down Expand Up @@ -1132,7 +1132,7 @@ def update(
:param refresh_token: Optional. Input only. OAuth2 refresh token. Write-only; never returned in responses.
:param scopes: Optional. List of OAuth2 scopes.
:param token_url: Optional. OAuth2 token endpoint URL for refreshing access tokens.
:param type:
:param type_:
:param injection_location: Optional. Locations where the environment variable can be injected in
outgoing HTTP requests.
Accepts either a single location (e.g. \"header\") or an array of locations.
Expand Down Expand Up @@ -1650,7 +1650,7 @@ async def create(
:param refresh_token: Required. Input only. OAuth2 refresh token. Write-only; never returned in responses.
:param scopes: Optional. List of OAuth2 scopes.
:param token_url: Required. OAuth2 token endpoint URL for refreshing access tokens.
:param type:
:param type_:
:param extra_headers: Additional headers to set or replace on requests.
:param extra_query: Additional query parameters to append to requests.
:param extra_body: Additional JSON object fields to merge into request bodies.
Expand Down Expand Up @@ -1681,7 +1681,7 @@ async def create(
Accepts either a single location (e.g. \"header\") or an array of locations.
:param trusted_domains: Optional. List of domains allowed to receive this environment variable
value in HTTP requests.
:param type:
:param type_:
:param value: Required. Input only. Secret value of the environment variable. Write-only; never
returned in responses.
:param extra_headers: Additional headers to set or replace on requests.
Expand Down Expand Up @@ -1714,7 +1714,7 @@ async def create(
:param prefix: Optional. Prefix to prepend to the token. Defaults to 'Bearer'. Set to ''
for no prefix.
:param token: Required. Input only. The static bearer token. Write-only; never returned in responses.
:param type:
:param type_:
:param extra_headers: Additional headers to set or replace on requests.
:param extra_query: Additional query parameters to append to requests.
:param extra_body: Additional JSON object fields to merge into request bodies.
Expand Down Expand Up @@ -1744,7 +1744,7 @@ async def create(
:param refresh_token: Required. Input only. OAuth2 refresh token. Write-only; never returned in responses.
:param scopes: Optional. List of OAuth2 scopes.
:param token_url: Required. OAuth2 token endpoint URL for refreshing access tokens.
:param type:
:param type_:
:param injection_location: Required. Locations where the environment variable can be injected in
outgoing HTTP requests. Must contain at least one location.
Accepts either a single location (e.g. \"header\") or an array of locations.
Expand Down Expand Up @@ -1785,7 +1785,7 @@ async def create(
:param refresh_token: Required. Input only. OAuth2 refresh token. Write-only; never returned in responses.
:param scopes: Optional. List of OAuth2 scopes.
:param token_url: Required. OAuth2 token endpoint URL for refreshing access tokens.
:param type:
:param type_:
:param injection_location: Required. Locations where the environment variable can be injected in
outgoing HTTP requests. Must contain at least one location.
Accepts either a single location (e.g. \"header\") or an array of locations.
Expand Down Expand Up @@ -2413,7 +2413,7 @@ async def update(
:param refresh_token: Optional. Input only. OAuth2 refresh token. Write-only; never returned in responses.
:param scopes: Optional. List of OAuth2 scopes.
:param token_url: Optional. OAuth2 token endpoint URL for refreshing access tokens.
:param type:
:param type_:
:param extra_headers: Additional headers to set or replace on requests.
:param extra_query: Additional query parameters to append to requests.
:param extra_body: Additional JSON object fields to merge into request bodies.
Expand Down Expand Up @@ -2445,7 +2445,7 @@ async def update(
Accepts either a single location (e.g. \"header\") or an array of locations.
:param trusted_domains: Optional. List of domains allowed to receive this environment variable
value in HTTP requests.
:param type:
:param type_:
:param value: Optional. Input only. Secret value of the environment variable. Write-only; never
returned in responses.
:param extra_headers: Additional headers to set or replace on requests.
Expand Down Expand Up @@ -2479,7 +2479,7 @@ async def update(
:param prefix: Optional. Prefix to prepend to the token. Defaults to 'Bearer'. Set to ''
for no prefix.
:param token: Optional. Input only. The static bearer token. Write-only; never returned in responses.
:param type:
:param type_:
:param extra_headers: Additional headers to set or replace on requests.
:param extra_query: Additional query parameters to append to requests.
:param extra_body: Additional JSON object fields to merge into request bodies.
Expand Down Expand Up @@ -2511,7 +2511,7 @@ async def update(
:param refresh_token: Optional. Input only. OAuth2 refresh token. Write-only; never returned in responses.
:param scopes: Optional. List of OAuth2 scopes.
:param token_url: Optional. OAuth2 token endpoint URL for refreshing access tokens.
:param type:
:param type_:
:param injection_location: Optional. Locations where the environment variable can be injected in
outgoing HTTP requests.
Accepts either a single location (e.g. \"header\") or an array of locations.
Expand Down Expand Up @@ -2554,7 +2554,7 @@ async def update(
:param refresh_token: Optional. Input only. OAuth2 refresh token. Write-only; never returned in responses.
:param scopes: Optional. List of OAuth2 scopes.
:param token_url: Optional. OAuth2 token endpoint URL for refreshing access tokens.
:param type:
:param type_:
:param injection_location: Optional. Locations where the environment variable can be injected in
outgoing HTTP requests.
Accepts either a single location (e.g. \"header\") or an array of locations.
Expand Down
21 changes: 18 additions & 3 deletions google/genai/_gaos/models/cancelinteractionbyid.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from ..types import BaseModel, UNSET_SENTINEL
from ..types import BaseModel, UNSET_SENTINEL, current_exclude_none, serialize_with_info
from ..types.basemodel import current_filtered_dump
from ..utils import FieldMetadata, PathParamMetadata
import pydantic
from pydantic import model_serializer
Expand All @@ -39,13 +40,20 @@ class CancelInteractionByIDGlobals(BaseModel):
r"""API version for request routing."""

@model_serializer(mode="wrap")
def _serialize_model_with_info(self, handler, info):
return serialize_with_info(self.serialize_model, handler, info)

def serialize_model(self, handler):
optional_fields = set(["api_version"])
exclude_none = current_exclude_none()
skip_filtered = exclude_none is False or current_filtered_dump()
serialized = handler(self)
m = {}

for n, f in type(self).model_fields.items():
k = f.alias or n
k = f.alias if f.alias is not None else n
if k not in serialized and n not in serialized and skip_filtered:
continue
val = serialized.get(k, serialized.get(n))

if val != UNSET_SENTINEL:
Expand Down Expand Up @@ -77,13 +85,20 @@ class CancelInteractionByIDRequest(BaseModel):
r"""API version for request routing."""

@model_serializer(mode="wrap")
def _serialize_model_with_info(self, handler, info):
return serialize_with_info(self.serialize_model, handler, info)

def serialize_model(self, handler):
optional_fields = set(["api_version"])
exclude_none = current_exclude_none()
skip_filtered = exclude_none is False or current_filtered_dump()
serialized = handler(self)
m = {}

for n, f in type(self).model_fields.items():
k = f.alias or n
k = f.alias if f.alias is not None else n
if k not in serialized and n not in serialized and skip_filtered:
continue
val = serialized.get(k, serialized.get(n))

if val != UNSET_SENTINEL:
Expand Down
21 changes: 18 additions & 3 deletions google/genai/_gaos/models/createagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from ..types import BaseModel, UNSET_SENTINEL
from ..types import BaseModel, UNSET_SENTINEL, current_exclude_none, serialize_with_info
from ..types.agents import agent as agents_agent
from ..types.basemodel import current_filtered_dump
from ..utils import FieldMetadata, PathParamMetadata, RequestMetadata
from pydantic import model_serializer
from typing import Optional
Expand All @@ -39,13 +40,20 @@ class CreateAgentGlobals(BaseModel):
r"""API version for request routing."""

@model_serializer(mode="wrap")
def _serialize_model_with_info(self, handler, info):
return serialize_with_info(self.serialize_model, handler, info)

def serialize_model(self, handler):
optional_fields = set(["api_version"])
exclude_none = current_exclude_none()
skip_filtered = exclude_none is False or current_filtered_dump()
serialized = handler(self)
m = {}

for n, f in type(self).model_fields.items():
k = f.alias or n
k = f.alias if f.alias is not None else n
if k not in serialized and n not in serialized and skip_filtered:
continue
val = serialized.get(k, serialized.get(n))

if val != UNSET_SENTINEL:
Expand Down Expand Up @@ -76,13 +84,20 @@ class CreateAgentRequest(BaseModel):
r"""API version for request routing."""

@model_serializer(mode="wrap")
def _serialize_model_with_info(self, handler, info):
return serialize_with_info(self.serialize_model, handler, info)

def serialize_model(self, handler):
optional_fields = set(["api_version"])
exclude_none = current_exclude_none()
skip_filtered = exclude_none is False or current_filtered_dump()
serialized = handler(self)
m = {}

for n, f in type(self).model_fields.items():
k = f.alias or n
k = f.alias if f.alias is not None else n
if k not in serialized and n not in serialized and skip_filtered:
continue
val = serialized.get(k, serialized.get(n))

if val != UNSET_SENTINEL:
Expand Down
21 changes: 18 additions & 3 deletions google/genai/_gaos/models/createcredential.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from ..types import BaseModel, UNSET_SENTINEL
from ..types import BaseModel, UNSET_SENTINEL, current_exclude_none, serialize_with_info
from ..types.basemodel import current_filtered_dump
from ..types.credentials import (
credentialcreateparams as credentials_credentialcreateparams,
)
Expand All @@ -41,13 +42,20 @@ class CreateCredentialGlobals(BaseModel):
r"""API version for request routing."""

@model_serializer(mode="wrap")
def _serialize_model_with_info(self, handler, info):
return serialize_with_info(self.serialize_model, handler, info)

def serialize_model(self, handler):
optional_fields = set(["api_version"])
exclude_none = current_exclude_none()
skip_filtered = exclude_none is False or current_filtered_dump()
serialized = handler(self)
m = {}

for n, f in type(self).model_fields.items():
k = f.alias or n
k = f.alias if f.alias is not None else n
if k not in serialized and n not in serialized and skip_filtered:
continue
val = serialized.get(k, serialized.get(n))

if val != UNSET_SENTINEL:
Expand Down Expand Up @@ -78,13 +86,20 @@ class CreateCredentialRequest(BaseModel):
r"""API version for request routing."""

@model_serializer(mode="wrap")
def _serialize_model_with_info(self, handler, info):
return serialize_with_info(self.serialize_model, handler, info)

def serialize_model(self, handler):
optional_fields = set(["api_version"])
exclude_none = current_exclude_none()
skip_filtered = exclude_none is False or current_filtered_dump()
serialized = handler(self)
m = {}

for n, f in type(self).model_fields.items():
k = f.alias or n
k = f.alias if f.alias is not None else n
if k not in serialized and n not in serialized and skip_filtered:
continue
val = serialized.get(k, serialized.get(n))

if val != UNSET_SENTINEL:
Expand Down
Loading
Loading