Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed May 23, 2024
1 parent 27b4b3d commit 4cc1a84
Show file tree
Hide file tree
Showing 2,355 changed files with 40 additions and 1,655,165 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,40 +216,40 @@ def parse_annotated_dataset_path(path: str) -> Dict[str, str]:
@staticmethod
def dataset_path(
project: str,
location: str,
dataset: str,
) -> str:
"""Returns a fully-qualified dataset string."""
return "projects/{project}/datasets/{dataset}".format(
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
project=project,
location=location,
dataset=dataset,
)

@staticmethod
def parse_dataset_path(path: str) -> Dict[str, str]:
"""Parses a dataset path into its component segments."""
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
m = re.match(
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
path,
)
return m.groupdict() if m else {}

@staticmethod
def dataset_path(
project: str,
location: str,
dataset: str,
) -> str:
"""Returns a fully-qualified dataset string."""
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
return "projects/{project}/datasets/{dataset}".format(
project=project,
location=location,
dataset=dataset,
)

@staticmethod
def parse_dataset_path(path: str) -> Dict[str, str]:
"""Parses a dataset path into its component segments."""
m = re.match(
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
path,
)
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
return m.groupdict() if m else {}

@staticmethod
Expand Down
18 changes: 18 additions & 0 deletions google/cloud/aiplatform_v1beta1/types/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import proto # type: ignore

from google.cloud.aiplatform_v1beta1.types import openapi
from google.cloud.aiplatform_v1beta1.types import tool
from google.protobuf import duration_pb2 # type: ignore
from google.type import date_pb2 # type: ignore
Expand Down Expand Up @@ -309,6 +310,17 @@ class GenerationConfig(proto.Message):
The model needs to be prompted to output the appropriate
response type, otherwise the behavior is undefined. This
is a preview feature.
response_schema (google.cloud.aiplatform_v1beta1.types.Schema):
Optional. The ``Schema`` object allows the definition of
input and output data types. These types can be objects, but
also primitives and arrays. Represents a select subset of an
`OpenAPI 3.0 schema
object <https://spec.openapis.org/oas/v3.0.3#schema>`__. If
set, a compatible response_mime_type must also be set.
Compatible mimetypes: ``application/json``: Schema for JSON
response.
This field is a member of `oneof`_ ``_response_schema``.
"""

temperature: float = proto.Field(
Expand Down Expand Up @@ -354,6 +366,12 @@ class GenerationConfig(proto.Message):
proto.STRING,
number=13,
)
response_schema: openapi.Schema = proto.Field(
proto.MESSAGE,
number=16,
optional=True,
message=openapi.Schema,
)


class SafetySetting(proto.Message):
Expand Down
13 changes: 0 additions & 13 deletions owl-bot-staging/v1/.coveragerc

This file was deleted.

33 changes: 0 additions & 33 deletions owl-bot-staging/v1/.flake8

This file was deleted.

2 changes: 0 additions & 2 deletions owl-bot-staging/v1/MANIFEST.in

This file was deleted.

49 changes: 0 additions & 49 deletions owl-bot-staging/v1/README.rst

This file was deleted.

3 changes: 0 additions & 3 deletions owl-bot-staging/v1/docs/_static/custom.css

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/dataset_service.rst

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/endpoint_service.rst

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/feature_registry_service.rst

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/featurestore_service.rst

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/gen_ai_tuning_service.rst

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/index_endpoint_service.rst

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/index_service.rst

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/job_service.rst

This file was deleted.

6 changes: 0 additions & 6 deletions owl-bot-staging/v1/docs/aiplatform_v1/llm_utility_service.rst

This file was deleted.

6 changes: 0 additions & 6 deletions owl-bot-staging/v1/docs/aiplatform_v1/match_service.rst

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/metadata_service.rst

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/migration_service.rst

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/model_service.rst

This file was deleted.

10 changes: 0 additions & 10 deletions owl-bot-staging/v1/docs/aiplatform_v1/notebook_service.rst

This file was deleted.

This file was deleted.

Loading

0 comments on commit 4cc1a84

Please sign in to comment.