Skip to content

Commit 169dd44

Browse files
gcf-owl-bot[bot]copybara-github
authored andcommitted
Copybara import of the project:
-- 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
1 parent 7dff586 commit 169dd44

File tree

95 files changed

+4764
-3662
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+4764
-3662
lines changed

google/cloud/aiplatform_v1/__init__.py

+6
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,9 @@
705705
from .types.notebook_service import StartNotebookRuntimeOperationMetadata
706706
from .types.notebook_service import StartNotebookRuntimeRequest
707707
from .types.notebook_service import StartNotebookRuntimeResponse
708+
from .types.notebook_service import StopNotebookRuntimeOperationMetadata
709+
from .types.notebook_service import StopNotebookRuntimeRequest
710+
from .types.notebook_service import StopNotebookRuntimeResponse
708711
from .types.notebook_service import UpdateNotebookRuntimeTemplateRequest
709712
from .types.notebook_service import UpgradeNotebookRuntimeOperationMetadata
710713
from .types.notebook_service import UpgradeNotebookRuntimeRequest
@@ -1640,6 +1643,9 @@
16401643
"StartNotebookRuntimeOperationMetadata",
16411644
"StartNotebookRuntimeRequest",
16421645
"StartNotebookRuntimeResponse",
1646+
"StopNotebookRuntimeOperationMetadata",
1647+
"StopNotebookRuntimeRequest",
1648+
"StopNotebookRuntimeResponse",
16431649
"StopTrialRequest",
16441650
"StratifiedSplit",
16451651
"StreamDirectPredictRequest",

google/cloud/aiplatform_v1/gapic_metadata.json

+15
Original file line numberDiff line numberDiff line change
@@ -3361,6 +3361,11 @@
33613361
"start_notebook_runtime"
33623362
]
33633363
},
3364+
"StopNotebookRuntime": {
3365+
"methods": [
3366+
"stop_notebook_runtime"
3367+
]
3368+
},
33643369
"UpdateNotebookRuntimeTemplate": {
33653370
"methods": [
33663371
"update_notebook_runtime_template"
@@ -3441,6 +3446,11 @@
34413446
"start_notebook_runtime"
34423447
]
34433448
},
3449+
"StopNotebookRuntime": {
3450+
"methods": [
3451+
"stop_notebook_runtime"
3452+
]
3453+
},
34443454
"UpdateNotebookRuntimeTemplate": {
34453455
"methods": [
34463456
"update_notebook_runtime_template"
@@ -3521,6 +3531,11 @@
35213531
"start_notebook_runtime"
35223532
]
35233533
},
3534+
"StopNotebookRuntime": {
3535+
"methods": [
3536+
"stop_notebook_runtime"
3537+
]
3538+
},
35243539
"UpdateNotebookRuntimeTemplate": {
35253540
"methods": [
35263541
"update_notebook_runtime_template"

google/cloud/aiplatform_v1/services/dataset_service/client.py

+3-37
Original file line numberDiff line numberDiff line change
@@ -618,36 +618,6 @@ def _get_universe_domain(
618618
raise ValueError("Universe Domain cannot be an empty string.")
619619
return universe_domain
620620

621-
@staticmethod
622-
def _compare_universes(
623-
client_universe: str, credentials: ga_credentials.Credentials
624-
) -> bool:
625-
"""Returns True iff the universe domains used by the client and credentials match.
626-
627-
Args:
628-
client_universe (str): The universe domain configured via the client options.
629-
credentials (ga_credentials.Credentials): The credentials being used in the client.
630-
631-
Returns:
632-
bool: True iff client_universe matches the universe in credentials.
633-
634-
Raises:
635-
ValueError: when client_universe does not match the universe in credentials.
636-
"""
637-
638-
default_universe = DatasetServiceClient._DEFAULT_UNIVERSE
639-
credentials_universe = getattr(credentials, "universe_domain", default_universe)
640-
641-
if client_universe != credentials_universe:
642-
raise ValueError(
643-
"The configured universe domain "
644-
f"({client_universe}) does not match the universe domain "
645-
f"found in the credentials ({credentials_universe}). "
646-
"If you haven't configured the universe domain explicitly, "
647-
f"`{default_universe}` is the default."
648-
)
649-
return True
650-
651621
def _validate_universe_domain(self):
652622
"""Validates client's and credentials' universe domains are consistent.
653623
@@ -657,13 +627,9 @@ def _validate_universe_domain(self):
657627
Raises:
658628
ValueError: If the configured universe domain is not valid.
659629
"""
660-
self._is_universe_domain_valid = (
661-
self._is_universe_domain_valid
662-
or DatasetServiceClient._compare_universes(
663-
self.universe_domain, self.transport._credentials
664-
)
665-
)
666-
return self._is_universe_domain_valid
630+
631+
# NOTE (b/349488459): universe validation is disabled until further notice.
632+
return True
667633

668634
@property
669635
def api_endpoint(self):

google/cloud/aiplatform_v1/services/deployment_resource_pool_service/client.py

+3-37
Original file line numberDiff line numberDiff line change
@@ -565,36 +565,6 @@ def _get_universe_domain(
565565
raise ValueError("Universe Domain cannot be an empty string.")
566566
return universe_domain
567567

568-
@staticmethod
569-
def _compare_universes(
570-
client_universe: str, credentials: ga_credentials.Credentials
571-
) -> bool:
572-
"""Returns True iff the universe domains used by the client and credentials match.
573-
574-
Args:
575-
client_universe (str): The universe domain configured via the client options.
576-
credentials (ga_credentials.Credentials): The credentials being used in the client.
577-
578-
Returns:
579-
bool: True iff client_universe matches the universe in credentials.
580-
581-
Raises:
582-
ValueError: when client_universe does not match the universe in credentials.
583-
"""
584-
585-
default_universe = DeploymentResourcePoolServiceClient._DEFAULT_UNIVERSE
586-
credentials_universe = getattr(credentials, "universe_domain", default_universe)
587-
588-
if client_universe != credentials_universe:
589-
raise ValueError(
590-
"The configured universe domain "
591-
f"({client_universe}) does not match the universe domain "
592-
f"found in the credentials ({credentials_universe}). "
593-
"If you haven't configured the universe domain explicitly, "
594-
f"`{default_universe}` is the default."
595-
)
596-
return True
597-
598568
def _validate_universe_domain(self):
599569
"""Validates client's and credentials' universe domains are consistent.
600570
@@ -604,13 +574,9 @@ def _validate_universe_domain(self):
604574
Raises:
605575
ValueError: If the configured universe domain is not valid.
606576
"""
607-
self._is_universe_domain_valid = (
608-
self._is_universe_domain_valid
609-
or DeploymentResourcePoolServiceClient._compare_universes(
610-
self.universe_domain, self.transport._credentials
611-
)
612-
)
613-
return self._is_universe_domain_valid
577+
578+
# NOTE (b/349488459): universe validation is disabled until further notice.
579+
return True
614580

615581
@property
616582
def api_endpoint(self):

google/cloud/aiplatform_v1/services/endpoint_service/client.py

+3-37
Original file line numberDiff line numberDiff line change
@@ -595,36 +595,6 @@ def _get_universe_domain(
595595
raise ValueError("Universe Domain cannot be an empty string.")
596596
return universe_domain
597597

598-
@staticmethod
599-
def _compare_universes(
600-
client_universe: str, credentials: ga_credentials.Credentials
601-
) -> bool:
602-
"""Returns True iff the universe domains used by the client and credentials match.
603-
604-
Args:
605-
client_universe (str): The universe domain configured via the client options.
606-
credentials (ga_credentials.Credentials): The credentials being used in the client.
607-
608-
Returns:
609-
bool: True iff client_universe matches the universe in credentials.
610-
611-
Raises:
612-
ValueError: when client_universe does not match the universe in credentials.
613-
"""
614-
615-
default_universe = EndpointServiceClient._DEFAULT_UNIVERSE
616-
credentials_universe = getattr(credentials, "universe_domain", default_universe)
617-
618-
if client_universe != credentials_universe:
619-
raise ValueError(
620-
"The configured universe domain "
621-
f"({client_universe}) does not match the universe domain "
622-
f"found in the credentials ({credentials_universe}). "
623-
"If you haven't configured the universe domain explicitly, "
624-
f"`{default_universe}` is the default."
625-
)
626-
return True
627-
628598
def _validate_universe_domain(self):
629599
"""Validates client's and credentials' universe domains are consistent.
630600
@@ -634,13 +604,9 @@ def _validate_universe_domain(self):
634604
Raises:
635605
ValueError: If the configured universe domain is not valid.
636606
"""
637-
self._is_universe_domain_valid = (
638-
self._is_universe_domain_valid
639-
or EndpointServiceClient._compare_universes(
640-
self.universe_domain, self.transport._credentials
641-
)
642-
)
643-
return self._is_universe_domain_valid
607+
608+
# NOTE (b/349488459): universe validation is disabled until further notice.
609+
return True
644610

645611
@property
646612
def api_endpoint(self):

google/cloud/aiplatform_v1/services/evaluation_service/client.py

+3-37
Original file line numberDiff line numberDiff line change
@@ -455,36 +455,6 @@ def _get_universe_domain(
455455
raise ValueError("Universe Domain cannot be an empty string.")
456456
return universe_domain
457457

458-
@staticmethod
459-
def _compare_universes(
460-
client_universe: str, credentials: ga_credentials.Credentials
461-
) -> bool:
462-
"""Returns True iff the universe domains used by the client and credentials match.
463-
464-
Args:
465-
client_universe (str): The universe domain configured via the client options.
466-
credentials (ga_credentials.Credentials): The credentials being used in the client.
467-
468-
Returns:
469-
bool: True iff client_universe matches the universe in credentials.
470-
471-
Raises:
472-
ValueError: when client_universe does not match the universe in credentials.
473-
"""
474-
475-
default_universe = EvaluationServiceClient._DEFAULT_UNIVERSE
476-
credentials_universe = getattr(credentials, "universe_domain", default_universe)
477-
478-
if client_universe != credentials_universe:
479-
raise ValueError(
480-
"The configured universe domain "
481-
f"({client_universe}) does not match the universe domain "
482-
f"found in the credentials ({credentials_universe}). "
483-
"If you haven't configured the universe domain explicitly, "
484-
f"`{default_universe}` is the default."
485-
)
486-
return True
487-
488458
def _validate_universe_domain(self):
489459
"""Validates client's and credentials' universe domains are consistent.
490460
@@ -494,13 +464,9 @@ def _validate_universe_domain(self):
494464
Raises:
495465
ValueError: If the configured universe domain is not valid.
496466
"""
497-
self._is_universe_domain_valid = (
498-
self._is_universe_domain_valid
499-
or EvaluationServiceClient._compare_universes(
500-
self.universe_domain, self.transport._credentials
501-
)
502-
)
503-
return self._is_universe_domain_valid
467+
468+
# NOTE (b/349488459): universe validation is disabled until further notice.
469+
return True
504470

505471
@property
506472
def api_endpoint(self):

google/cloud/aiplatform_v1/services/feature_online_store_admin_service/client.py

+3-37
Original file line numberDiff line numberDiff line change
@@ -559,36 +559,6 @@ def _get_universe_domain(
559559
raise ValueError("Universe Domain cannot be an empty string.")
560560
return universe_domain
561561

562-
@staticmethod
563-
def _compare_universes(
564-
client_universe: str, credentials: ga_credentials.Credentials
565-
) -> bool:
566-
"""Returns True iff the universe domains used by the client and credentials match.
567-
568-
Args:
569-
client_universe (str): The universe domain configured via the client options.
570-
credentials (ga_credentials.Credentials): The credentials being used in the client.
571-
572-
Returns:
573-
bool: True iff client_universe matches the universe in credentials.
574-
575-
Raises:
576-
ValueError: when client_universe does not match the universe in credentials.
577-
"""
578-
579-
default_universe = FeatureOnlineStoreAdminServiceClient._DEFAULT_UNIVERSE
580-
credentials_universe = getattr(credentials, "universe_domain", default_universe)
581-
582-
if client_universe != credentials_universe:
583-
raise ValueError(
584-
"The configured universe domain "
585-
f"({client_universe}) does not match the universe domain "
586-
f"found in the credentials ({credentials_universe}). "
587-
"If you haven't configured the universe domain explicitly, "
588-
f"`{default_universe}` is the default."
589-
)
590-
return True
591-
592562
def _validate_universe_domain(self):
593563
"""Validates client's and credentials' universe domains are consistent.
594564
@@ -598,13 +568,9 @@ def _validate_universe_domain(self):
598568
Raises:
599569
ValueError: If the configured universe domain is not valid.
600570
"""
601-
self._is_universe_domain_valid = (
602-
self._is_universe_domain_valid
603-
or FeatureOnlineStoreAdminServiceClient._compare_universes(
604-
self.universe_domain, self.transport._credentials
605-
)
606-
)
607-
return self._is_universe_domain_valid
571+
572+
# NOTE (b/349488459): universe validation is disabled until further notice.
573+
return True
608574

609575
@property
610576
def api_endpoint(self):

google/cloud/aiplatform_v1/services/feature_online_store_service/client.py

+3-37
Original file line numberDiff line numberDiff line change
@@ -484,36 +484,6 @@ def _get_universe_domain(
484484
raise ValueError("Universe Domain cannot be an empty string.")
485485
return universe_domain
486486

487-
@staticmethod
488-
def _compare_universes(
489-
client_universe: str, credentials: ga_credentials.Credentials
490-
) -> bool:
491-
"""Returns True iff the universe domains used by the client and credentials match.
492-
493-
Args:
494-
client_universe (str): The universe domain configured via the client options.
495-
credentials (ga_credentials.Credentials): The credentials being used in the client.
496-
497-
Returns:
498-
bool: True iff client_universe matches the universe in credentials.
499-
500-
Raises:
501-
ValueError: when client_universe does not match the universe in credentials.
502-
"""
503-
504-
default_universe = FeatureOnlineStoreServiceClient._DEFAULT_UNIVERSE
505-
credentials_universe = getattr(credentials, "universe_domain", default_universe)
506-
507-
if client_universe != credentials_universe:
508-
raise ValueError(
509-
"The configured universe domain "
510-
f"({client_universe}) does not match the universe domain "
511-
f"found in the credentials ({credentials_universe}). "
512-
"If you haven't configured the universe domain explicitly, "
513-
f"`{default_universe}` is the default."
514-
)
515-
return True
516-
517487
def _validate_universe_domain(self):
518488
"""Validates client's and credentials' universe domains are consistent.
519489
@@ -523,13 +493,9 @@ def _validate_universe_domain(self):
523493
Raises:
524494
ValueError: If the configured universe domain is not valid.
525495
"""
526-
self._is_universe_domain_valid = (
527-
self._is_universe_domain_valid
528-
or FeatureOnlineStoreServiceClient._compare_universes(
529-
self.universe_domain, self.transport._credentials
530-
)
531-
)
532-
return self._is_universe_domain_valid
496+
497+
# NOTE (b/349488459): universe validation is disabled until further notice.
498+
return True
533499

534500
@property
535501
def api_endpoint(self):

0 commit comments

Comments
 (0)