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
2,868 changes: 2,868 additions & 0 deletions google/genai/_gaos/credentials.py

Large diffs are not rendered by default.

70 changes: 70 additions & 0 deletions google/genai/_gaos/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
CreateAgentRequest,
CreateAgentRequestParam,
)
from .createcredential import (
CreateCredentialGlobals,
CreateCredentialGlobalsTypedDict,
CreateCredentialRequest,
CreateCredentialRequestParam,
)
from .createenvironment import (
CreateEnvironmentGlobals,
CreateEnvironmentGlobalsTypedDict,
Expand Down Expand Up @@ -68,6 +74,12 @@
DeleteAgentRequest,
DeleteAgentRequestParam,
)
from .deletecredential import (
DeleteCredentialGlobals,
DeleteCredentialGlobalsTypedDict,
DeleteCredentialRequest,
DeleteCredentialRequestParam,
)
from .deleteenvironment import (
DeleteEnvironmentGlobals,
DeleteEnvironmentGlobalsTypedDict,
Expand Down Expand Up @@ -98,6 +110,12 @@
GetAgentRequest,
GetAgentRequestParam,
)
from .getcredential import (
GetCredentialGlobals,
GetCredentialGlobalsTypedDict,
GetCredentialRequest,
GetCredentialRequestParam,
)
from .getenvironment import (
GetEnvironmentGlobals,
GetEnvironmentGlobalsTypedDict,
Expand Down Expand Up @@ -136,6 +154,12 @@
ListAgentsRequest,
ListAgentsRequestParam,
)
from .listcredentials import (
ListCredentialsGlobals,
ListCredentialsGlobalsTypedDict,
ListCredentialsRequest,
ListCredentialsRequestParam,
)
from .listenvironments import (
ListEnvironmentsGlobals,
ListEnvironmentsGlobalsTypedDict,
Expand Down Expand Up @@ -178,6 +202,12 @@
RunTriggerRequest,
RunTriggerRequestParam,
)
from .updatecredential import (
UpdateCredentialGlobals,
UpdateCredentialGlobalsTypedDict,
UpdateCredentialRequest,
UpdateCredentialRequestParam,
)
from .updatetrigger import (
UpdateTriggerGlobals,
UpdateTriggerGlobalsTypedDict,
Expand All @@ -201,6 +231,10 @@
"CreateAgentGlobalsTypedDict",
"CreateAgentRequest",
"CreateAgentRequestParam",
"CreateCredentialGlobals",
"CreateCredentialGlobalsTypedDict",
"CreateCredentialRequest",
"CreateCredentialRequestParam",
"CreateEnvironmentGlobals",
"CreateEnvironmentGlobalsTypedDict",
"CreateEnvironmentRequest",
Expand All @@ -225,6 +259,10 @@
"DeleteAgentGlobalsTypedDict",
"DeleteAgentRequest",
"DeleteAgentRequestParam",
"DeleteCredentialGlobals",
"DeleteCredentialGlobalsTypedDict",
"DeleteCredentialRequest",
"DeleteCredentialRequestParam",
"DeleteEnvironmentGlobals",
"DeleteEnvironmentGlobalsTypedDict",
"DeleteEnvironmentRequest",
Expand All @@ -245,6 +283,10 @@
"GetAgentGlobalsTypedDict",
"GetAgentRequest",
"GetAgentRequestParam",
"GetCredentialGlobals",
"GetCredentialGlobalsTypedDict",
"GetCredentialRequest",
"GetCredentialRequestParam",
"GetEnvironmentFilesGlobals",
"GetEnvironmentFilesGlobalsTypedDict",
"GetEnvironmentFilesRequest",
Expand All @@ -271,6 +313,10 @@
"ListAgentsGlobalsTypedDict",
"ListAgentsRequest",
"ListAgentsRequestParam",
"ListCredentialsGlobals",
"ListCredentialsGlobalsTypedDict",
"ListCredentialsRequest",
"ListCredentialsRequestParam",
"ListEnvironmentsGlobals",
"ListEnvironmentsGlobalsTypedDict",
"ListEnvironmentsRequest",
Expand Down Expand Up @@ -299,6 +345,10 @@
"RunTriggerGlobalsTypedDict",
"RunTriggerRequest",
"RunTriggerRequestParam",
"UpdateCredentialGlobals",
"UpdateCredentialGlobalsTypedDict",
"UpdateCredentialRequest",
"UpdateCredentialRequestParam",
"UpdateTriggerGlobals",
"UpdateTriggerGlobalsTypedDict",
"UpdateTriggerRequest",
Expand All @@ -318,6 +368,10 @@
"CreateAgentGlobalsTypedDict": ".createagent",
"CreateAgentRequest": ".createagent",
"CreateAgentRequestParam": ".createagent",
"CreateCredentialGlobals": ".createcredential",
"CreateCredentialGlobalsTypedDict": ".createcredential",
"CreateCredentialRequest": ".createcredential",
"CreateCredentialRequestParam": ".createcredential",
"CreateEnvironmentGlobals": ".createenvironment",
"CreateEnvironmentGlobalsTypedDict": ".createenvironment",
"CreateEnvironmentRequest": ".createenvironment",
Expand All @@ -342,6 +396,10 @@
"DeleteAgentGlobalsTypedDict": ".deleteagent",
"DeleteAgentRequest": ".deleteagent",
"DeleteAgentRequestParam": ".deleteagent",
"DeleteCredentialGlobals": ".deletecredential",
"DeleteCredentialGlobalsTypedDict": ".deletecredential",
"DeleteCredentialRequest": ".deletecredential",
"DeleteCredentialRequestParam": ".deletecredential",
"DeleteEnvironmentGlobals": ".deleteenvironment",
"DeleteEnvironmentGlobalsTypedDict": ".deleteenvironment",
"DeleteEnvironmentRequest": ".deleteenvironment",
Expand All @@ -362,6 +420,10 @@
"GetAgentGlobalsTypedDict": ".getagent",
"GetAgentRequest": ".getagent",
"GetAgentRequestParam": ".getagent",
"GetCredentialGlobals": ".getcredential",
"GetCredentialGlobalsTypedDict": ".getcredential",
"GetCredentialRequest": ".getcredential",
"GetCredentialRequestParam": ".getcredential",
"GetEnvironmentGlobals": ".getenvironment",
"GetEnvironmentGlobalsTypedDict": ".getenvironment",
"GetEnvironmentRequest": ".getenvironment",
Expand All @@ -388,6 +450,10 @@
"ListAgentsGlobalsTypedDict": ".listagents",
"ListAgentsRequest": ".listagents",
"ListAgentsRequestParam": ".listagents",
"ListCredentialsGlobals": ".listcredentials",
"ListCredentialsGlobalsTypedDict": ".listcredentials",
"ListCredentialsRequest": ".listcredentials",
"ListCredentialsRequestParam": ".listcredentials",
"ListEnvironmentsGlobals": ".listenvironments",
"ListEnvironmentsGlobalsTypedDict": ".listenvironments",
"ListEnvironmentsRequest": ".listenvironments",
Expand Down Expand Up @@ -416,6 +482,10 @@
"RunTriggerGlobalsTypedDict": ".runtrigger",
"RunTriggerRequest": ".runtrigger",
"RunTriggerRequestParam": ".runtrigger",
"UpdateCredentialGlobals": ".updatecredential",
"UpdateCredentialGlobalsTypedDict": ".updatecredential",
"UpdateCredentialRequest": ".updatecredential",
"UpdateCredentialRequestParam": ".updatecredential",
"UpdateTriggerGlobals": ".updatetrigger",
"UpdateTriggerGlobalsTypedDict": ".updatetrigger",
"UpdateTriggerRequest": ".updatetrigger",
Expand Down
92 changes: 92 additions & 0 deletions google/genai/_gaos/models/createcredential.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.credentials import (
credentialcreateparams as credentials_credentialcreateparams,
)
from ..utils import FieldMetadata, PathParamMetadata, RequestMetadata
from pydantic import model_serializer
from typing import Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class CreateCredentialGlobalsTypedDict(TypedDict):
api_version: NotRequired[str]
r"""Which version of the API to use."""


class CreateCredentialGlobals(BaseModel):
api_version: Annotated[
Optional[str],
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
] = None
r"""Which version of the API to use."""

@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 CreateCredentialRequestParam(TypedDict):
body: credentials_credentialcreateparams.CredentialCreateParamsParam
api_version: NotRequired[str]
r"""Which version of the API to use."""


class CreateCredentialRequest(BaseModel):
body: Annotated[
credentials_credentialcreateparams.CredentialCreateParams,
FieldMetadata(request=RequestMetadata(media_type="application/json")),
]

api_version: Annotated[
Optional[str],
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
] = None
r"""Which version of the API to use."""

@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
90 changes: 90 additions & 0 deletions google/genai/_gaos/models/deletecredential.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# 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
from pydantic import model_serializer
from typing import Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class DeleteCredentialGlobalsTypedDict(TypedDict):
api_version: NotRequired[str]
r"""Which version of the API to use."""


class DeleteCredentialGlobals(BaseModel):
api_version: Annotated[
Optional[str],
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
] = None
r"""Which version of the API to use."""

@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 DeleteCredentialRequestParam(TypedDict):
id: str
r"""Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122."""
api_version: NotRequired[str]
r"""Which version of the API to use."""


class DeleteCredentialRequest(BaseModel):
id: Annotated[
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
]
r"""Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122."""

api_version: Annotated[
Optional[str],
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
] = None
r"""Which version of the API to use."""

@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