Skip to content

Commit

Permalink
Copybara import of the project:
Browse files Browse the repository at this point in the history
--
375ff63 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>:

chore: Update gapic-generator-python to v1.20.2

PiperOrigin-RevId: 691540410

Source-Link: googleapis/googleapis@b43cfb1

Source-Link: googleapis/googleapis-gen@40fd27b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDBmZDI3YjA4YWJiMmU4YjhhODRiNTc5NDFlMTIyNjk3MWYzN2E5NyJ9

feat: add code execution tool API

PiperOrigin-RevId: 691287054

Source-Link: googleapis/googleapis@805ed12

Source-Link: googleapis/googleapis-gen@f03c21f
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjAzYzIxZjViNGRlNGE1MGQ5M2EwY2YxMzFiNmU1MGI0OTViOTc0YiJ9

feat: add StopNotebookRuntime method

PiperOrigin-RevId: 691235183

Source-Link: googleapis/googleapis@4160527

Source-Link: googleapis/googleapis-gen@c63dc6d
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzYzZGM2ZDA5YzljY2FiNmI2ODgyMGZiNjZhZGVlM2MzMjAwYmM5ZSJ9

feat: Add GroundedGenerationService API
feat: Add AdvancedCompleteQuery API
feat: Add lite search API to allow public website search with API key
feat: Add Sitemap APIs to preview channel
feat: Support search personalization to preview channel
feat: Support natural language understanding search
feat: Add BillingEstimation in data store
feat: Support Google Workspace search
feat: Support advanced boost search
feat: Add one_box_page_size on search
feat: support query regex in control match rules
docs: deprecate extractive_answers in answer generation
docs: deprecate asynchronous mode in answer generation
docs: keep the API doc up-to-date with recent changes

PiperOrigin-RevId: 691212731

Source-Link: googleapis/googleapis@e6b6ff9

Source-Link: googleapis/googleapis-gen@67144fd
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjcxNDRmZDQzYzVhM2UxNjQ0MTBiMzYxN2U1NzUyZjJlMDY2ZWMyNSJ9

feat: add UpdateEndpointLongRunning API in v1beta1 version

PiperOrigin-RevId: 691203761

Source-Link: googleapis/googleapis@67878b0

Source-Link: googleapis/googleapis-gen@47e8a2d
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDdlOGEyZGVhMGM4OTZjMDhhMTFmZGY4Mjk0Y2RhNjI0OTQzYzM2MiJ9

docs: update documentation
chore: rename to Security Command Center Management API

PiperOrigin-RevId: 691075299

Source-Link: googleapis/googleapis@0841f82

Source-Link: googleapis/googleapis-gen@64cef8c
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjRjZWY4YzI4ZDJmZTE3YmY5NzYzYTZkNTI5ZWUxMjViYzQyZDVlYSJ9

feat: add fast_tryout_enabled to FasterDeploymentConfig message in aiplatform v1beta1 endpoint.proto

PiperOrigin-RevId: 690876368

Source-Link: googleapis/googleapis@845adc2

Source-Link: googleapis/googleapis-gen@f06f4e4
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjA2ZjRlNGQ2ZDRhMzI4NGI2NjRmYzc0ZTBjZTJlMTI0MGViODYyNCJ9

feat: add new PscInterfaceConfig field to custom_job.proto

PiperOrigin-RevId: 689439500

Source-Link: googleapis/googleapis@9e7a2e5

Source-Link: googleapis/googleapis-gen@069e663
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDY5ZTY2M2I1OGJiMDkyZTY0NDdkMjA3MzM3M2JjNTY1MTdhYmM0YyJ9

--
425a589 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>:

🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

--
32011ba by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>:

feat: add StopNotebookRuntime method

PiperOrigin-RevId: 691931542

Source-Link: googleapis/googleapis@c7ce97e

Source-Link: googleapis/googleapis-gen@f004bcc
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjAwNGJjYzBjZTE0OGU3MGI4Y2JiN2MwMzNkYTlmZmQ3OWQ5NTUzNyJ9

--
9628daa by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>:

🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

COPYBARA_INTEGRATE_REVIEW=#4572 from googleapis:owl-bot-copy d9778a6
PiperOrigin-RevId: 692217642
  • Loading branch information
gcf-owl-bot[bot] authored and copybara-github committed Nov 1, 2024
1 parent 7dff586 commit 169dd44
Show file tree
Hide file tree
Showing 95 changed files with 4,764 additions and 3,662 deletions.
6 changes: 6 additions & 0 deletions google/cloud/aiplatform_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,9 @@
from .types.notebook_service import StartNotebookRuntimeOperationMetadata
from .types.notebook_service import StartNotebookRuntimeRequest
from .types.notebook_service import StartNotebookRuntimeResponse
from .types.notebook_service import StopNotebookRuntimeOperationMetadata
from .types.notebook_service import StopNotebookRuntimeRequest
from .types.notebook_service import StopNotebookRuntimeResponse
from .types.notebook_service import UpdateNotebookRuntimeTemplateRequest
from .types.notebook_service import UpgradeNotebookRuntimeOperationMetadata
from .types.notebook_service import UpgradeNotebookRuntimeRequest
Expand Down Expand Up @@ -1640,6 +1643,9 @@
"StartNotebookRuntimeOperationMetadata",
"StartNotebookRuntimeRequest",
"StartNotebookRuntimeResponse",
"StopNotebookRuntimeOperationMetadata",
"StopNotebookRuntimeRequest",
"StopNotebookRuntimeResponse",
"StopTrialRequest",
"StratifiedSplit",
"StreamDirectPredictRequest",
Expand Down
15 changes: 15 additions & 0 deletions google/cloud/aiplatform_v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3361,6 +3361,11 @@
"start_notebook_runtime"
]
},
"StopNotebookRuntime": {
"methods": [
"stop_notebook_runtime"
]
},
"UpdateNotebookRuntimeTemplate": {
"methods": [
"update_notebook_runtime_template"
Expand Down Expand Up @@ -3441,6 +3446,11 @@
"start_notebook_runtime"
]
},
"StopNotebookRuntime": {
"methods": [
"stop_notebook_runtime"
]
},
"UpdateNotebookRuntimeTemplate": {
"methods": [
"update_notebook_runtime_template"
Expand Down Expand Up @@ -3521,6 +3531,11 @@
"start_notebook_runtime"
]
},
"StopNotebookRuntime": {
"methods": [
"stop_notebook_runtime"
]
},
"UpdateNotebookRuntimeTemplate": {
"methods": [
"update_notebook_runtime_template"
Expand Down
40 changes: 3 additions & 37 deletions google/cloud/aiplatform_v1/services/dataset_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,36 +618,6 @@ def _get_universe_domain(
raise ValueError("Universe Domain cannot be an empty string.")
return universe_domain

@staticmethod
def _compare_universes(
client_universe: str, credentials: ga_credentials.Credentials
) -> bool:
"""Returns True iff the universe domains used by the client and credentials match.
Args:
client_universe (str): The universe domain configured via the client options.
credentials (ga_credentials.Credentials): The credentials being used in the client.
Returns:
bool: True iff client_universe matches the universe in credentials.
Raises:
ValueError: when client_universe does not match the universe in credentials.
"""

default_universe = DatasetServiceClient._DEFAULT_UNIVERSE
credentials_universe = getattr(credentials, "universe_domain", default_universe)

if client_universe != credentials_universe:
raise ValueError(
"The configured universe domain "
f"({client_universe}) does not match the universe domain "
f"found in the credentials ({credentials_universe}). "
"If you haven't configured the universe domain explicitly, "
f"`{default_universe}` is the default."
)
return True

def _validate_universe_domain(self):
"""Validates client's and credentials' universe domains are consistent.
Expand All @@ -657,13 +627,9 @@ def _validate_universe_domain(self):
Raises:
ValueError: If the configured universe domain is not valid.
"""
self._is_universe_domain_valid = (
self._is_universe_domain_valid
or DatasetServiceClient._compare_universes(
self.universe_domain, self.transport._credentials
)
)
return self._is_universe_domain_valid

# NOTE (b/349488459): universe validation is disabled until further notice.
return True

@property
def api_endpoint(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -565,36 +565,6 @@ def _get_universe_domain(
raise ValueError("Universe Domain cannot be an empty string.")
return universe_domain

@staticmethod
def _compare_universes(
client_universe: str, credentials: ga_credentials.Credentials
) -> bool:
"""Returns True iff the universe domains used by the client and credentials match.
Args:
client_universe (str): The universe domain configured via the client options.
credentials (ga_credentials.Credentials): The credentials being used in the client.
Returns:
bool: True iff client_universe matches the universe in credentials.
Raises:
ValueError: when client_universe does not match the universe in credentials.
"""

default_universe = DeploymentResourcePoolServiceClient._DEFAULT_UNIVERSE
credentials_universe = getattr(credentials, "universe_domain", default_universe)

if client_universe != credentials_universe:
raise ValueError(
"The configured universe domain "
f"({client_universe}) does not match the universe domain "
f"found in the credentials ({credentials_universe}). "
"If you haven't configured the universe domain explicitly, "
f"`{default_universe}` is the default."
)
return True

def _validate_universe_domain(self):
"""Validates client's and credentials' universe domains are consistent.
Expand All @@ -604,13 +574,9 @@ def _validate_universe_domain(self):
Raises:
ValueError: If the configured universe domain is not valid.
"""
self._is_universe_domain_valid = (
self._is_universe_domain_valid
or DeploymentResourcePoolServiceClient._compare_universes(
self.universe_domain, self.transport._credentials
)
)
return self._is_universe_domain_valid

# NOTE (b/349488459): universe validation is disabled until further notice.
return True

@property
def api_endpoint(self):
Expand Down
40 changes: 3 additions & 37 deletions google/cloud/aiplatform_v1/services/endpoint_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,36 +595,6 @@ def _get_universe_domain(
raise ValueError("Universe Domain cannot be an empty string.")
return universe_domain

@staticmethod
def _compare_universes(
client_universe: str, credentials: ga_credentials.Credentials
) -> bool:
"""Returns True iff the universe domains used by the client and credentials match.
Args:
client_universe (str): The universe domain configured via the client options.
credentials (ga_credentials.Credentials): The credentials being used in the client.
Returns:
bool: True iff client_universe matches the universe in credentials.
Raises:
ValueError: when client_universe does not match the universe in credentials.
"""

default_universe = EndpointServiceClient._DEFAULT_UNIVERSE
credentials_universe = getattr(credentials, "universe_domain", default_universe)

if client_universe != credentials_universe:
raise ValueError(
"The configured universe domain "
f"({client_universe}) does not match the universe domain "
f"found in the credentials ({credentials_universe}). "
"If you haven't configured the universe domain explicitly, "
f"`{default_universe}` is the default."
)
return True

def _validate_universe_domain(self):
"""Validates client's and credentials' universe domains are consistent.
Expand All @@ -634,13 +604,9 @@ def _validate_universe_domain(self):
Raises:
ValueError: If the configured universe domain is not valid.
"""
self._is_universe_domain_valid = (
self._is_universe_domain_valid
or EndpointServiceClient._compare_universes(
self.universe_domain, self.transport._credentials
)
)
return self._is_universe_domain_valid

# NOTE (b/349488459): universe validation is disabled until further notice.
return True

@property
def api_endpoint(self):
Expand Down
40 changes: 3 additions & 37 deletions google/cloud/aiplatform_v1/services/evaluation_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,36 +455,6 @@ def _get_universe_domain(
raise ValueError("Universe Domain cannot be an empty string.")
return universe_domain

@staticmethod
def _compare_universes(
client_universe: str, credentials: ga_credentials.Credentials
) -> bool:
"""Returns True iff the universe domains used by the client and credentials match.
Args:
client_universe (str): The universe domain configured via the client options.
credentials (ga_credentials.Credentials): The credentials being used in the client.
Returns:
bool: True iff client_universe matches the universe in credentials.
Raises:
ValueError: when client_universe does not match the universe in credentials.
"""

default_universe = EvaluationServiceClient._DEFAULT_UNIVERSE
credentials_universe = getattr(credentials, "universe_domain", default_universe)

if client_universe != credentials_universe:
raise ValueError(
"The configured universe domain "
f"({client_universe}) does not match the universe domain "
f"found in the credentials ({credentials_universe}). "
"If you haven't configured the universe domain explicitly, "
f"`{default_universe}` is the default."
)
return True

def _validate_universe_domain(self):
"""Validates client's and credentials' universe domains are consistent.
Expand All @@ -494,13 +464,9 @@ def _validate_universe_domain(self):
Raises:
ValueError: If the configured universe domain is not valid.
"""
self._is_universe_domain_valid = (
self._is_universe_domain_valid
or EvaluationServiceClient._compare_universes(
self.universe_domain, self.transport._credentials
)
)
return self._is_universe_domain_valid

# NOTE (b/349488459): universe validation is disabled until further notice.
return True

@property
def api_endpoint(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,36 +559,6 @@ def _get_universe_domain(
raise ValueError("Universe Domain cannot be an empty string.")
return universe_domain

@staticmethod
def _compare_universes(
client_universe: str, credentials: ga_credentials.Credentials
) -> bool:
"""Returns True iff the universe domains used by the client and credentials match.
Args:
client_universe (str): The universe domain configured via the client options.
credentials (ga_credentials.Credentials): The credentials being used in the client.
Returns:
bool: True iff client_universe matches the universe in credentials.
Raises:
ValueError: when client_universe does not match the universe in credentials.
"""

default_universe = FeatureOnlineStoreAdminServiceClient._DEFAULT_UNIVERSE
credentials_universe = getattr(credentials, "universe_domain", default_universe)

if client_universe != credentials_universe:
raise ValueError(
"The configured universe domain "
f"({client_universe}) does not match the universe domain "
f"found in the credentials ({credentials_universe}). "
"If you haven't configured the universe domain explicitly, "
f"`{default_universe}` is the default."
)
return True

def _validate_universe_domain(self):
"""Validates client's and credentials' universe domains are consistent.
Expand All @@ -598,13 +568,9 @@ def _validate_universe_domain(self):
Raises:
ValueError: If the configured universe domain is not valid.
"""
self._is_universe_domain_valid = (
self._is_universe_domain_valid
or FeatureOnlineStoreAdminServiceClient._compare_universes(
self.universe_domain, self.transport._credentials
)
)
return self._is_universe_domain_valid

# NOTE (b/349488459): universe validation is disabled until further notice.
return True

@property
def api_endpoint(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,36 +484,6 @@ def _get_universe_domain(
raise ValueError("Universe Domain cannot be an empty string.")
return universe_domain

@staticmethod
def _compare_universes(
client_universe: str, credentials: ga_credentials.Credentials
) -> bool:
"""Returns True iff the universe domains used by the client and credentials match.
Args:
client_universe (str): The universe domain configured via the client options.
credentials (ga_credentials.Credentials): The credentials being used in the client.
Returns:
bool: True iff client_universe matches the universe in credentials.
Raises:
ValueError: when client_universe does not match the universe in credentials.
"""

default_universe = FeatureOnlineStoreServiceClient._DEFAULT_UNIVERSE
credentials_universe = getattr(credentials, "universe_domain", default_universe)

if client_universe != credentials_universe:
raise ValueError(
"The configured universe domain "
f"({client_universe}) does not match the universe domain "
f"found in the credentials ({credentials_universe}). "
"If you haven't configured the universe domain explicitly, "
f"`{default_universe}` is the default."
)
return True

def _validate_universe_domain(self):
"""Validates client's and credentials' universe domains are consistent.
Expand All @@ -523,13 +493,9 @@ def _validate_universe_domain(self):
Raises:
ValueError: If the configured universe domain is not valid.
"""
self._is_universe_domain_valid = (
self._is_universe_domain_valid
or FeatureOnlineStoreServiceClient._compare_universes(
self.universe_domain, self.transport._credentials
)
)
return self._is_universe_domain_valid

# NOTE (b/349488459): universe validation is disabled until further notice.
return True

@property
def api_endpoint(self):
Expand Down
Loading

0 comments on commit 169dd44

Please sign in to comment.