GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Copybara import of the project: · smbale/python-aiplatform@169dd44

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • google/cloud
    • aiplatform_v1beta1
      • __init__.py
      • gapic_metadata.json
      • services
        • endpoint_service
          • async_client.py
          • client.py
          • transports
            • base.py
            • grpc.py
            • grpc_asyncio.py
            • rest.py
            • rest_asyncio.py
            • rest_base.py
        • job_service
          • async_client.py
          • client.py
      • types
        • __init__.py
        • content.py
        • custom_job.py
        • endpoint.py
        • endpoint_service.py
        • tool.py
    • aiplatform_v1
      • __init__.py
      • gapic_metadata.json
      • services
        • dataset_service
          • client.py
        • deployment_resource_pool_service
          • client.py
        • endpoint_service
          • client.py
        • evaluation_service
          • client.py
        • feature_online_store_admin_service
          • client.py
        • feature_online_store_service
          • client.py
        • feature_registry_service
          • client.py
        • featurestore_online_serving_service
          • client.py
        • featurestore_service
          • client.py
        • gen_ai_tuning_service
          • client.py
        • index_endpoint_service
          • client.py
        • index_service
          • client.py
        • job_service
          • client.py
        • llm_utility_service
          • client.py
        • match_service
          • client.py
        • metadata_service
          • client.py
        • migration_service
          • client.py
        • model_garden_service
          • client.py
        • model_service
          • client.py
        • notebook_service
          • async_client.py
          • client.py
          • transports
            • base.py
            • grpc.py
            • grpc_asyncio.py
            • rest.py
            • rest_asyncio.py
            • rest_base.py
        • persistent_resource_service
          • client.py
        • pipeline_service
          • client.py
        • prediction_service
          • client.py
        • schedule_service
          • client.py
        • specialist_pool_service
          • client.py
        • tensorboard_service
          • client.py
        • vizier_service
          • client.py
      • types
        • __init__.py
        • notebook_service.py
  • samples/generated_samples
    • aiplatform_v1_generated_notebook_service_stop_notebook_runtime_async.py
    • aiplatform_v1_generated_notebook_service_stop_notebook_runtime_sync.py
    • aiplatform_v1beta1_generated_endpoint_service_update_endpoint_long_running_async.py
    • aiplatform_v1beta1_generated_endpoint_service_update_endpoint_long_running_sync.py
    • aiplatform_v1beta1_generated_notebook_service_stop_notebook_runtime_async.py
    • aiplatform_v1beta1_generated_notebook_service_stop_notebook_runtime_sync.py
    • snippet_metadata_google.cloud.aiplatform.v1.json
    • snippet_metadata_google.cloud.aiplatform.v1beta1.json
  • tests/unit/gapic
    • aiplatform_v1beta1
      • test_endpoint_service.py
      • test_gen_ai_cache_service.py
      • test_gen_ai_tuning_service.py
      • test_job_service.py
    • aiplatform_v1
      • test_dataset_service.py
      • test_deployment_resource_pool_service.py
      • test_endpoint_service.py
      • test_evaluation_service.py
      • test_feature_online_store_admin_service.py
      • test_feature_online_store_service.py
      • test_feature_registry_service.py
      • test_featurestore_online_serving_service.py
      • test_featurestore_service.py
      • test_gen_ai_tuning_service.py
      • test_index_endpoint_service.py
      • test_index_service.py
      • test_job_service.py
      • test_llm_utility_service.py
      • test_match_service.py
      • test_metadata_service.py
      • test_migration_service.py
      • test_model_garden_service.py
      • test_model_service.py
      • test_notebook_service.py
      • test_persistent_resource_service.py
      • test_pipeline_service.py
      • test_prediction_service.py
      • test_schedule_service.py
      • test_specialist_pool_service.py
      • test_tensorboard_service.py
      • test_vizier_service.py

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎google/cloud/aiplatform_v1/__init__.py‎

Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/__init__.py
+6Lines changed: 6 additions & 0 deletions
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",
Collapse file

‎google/cloud/aiplatform_v1/gapic_metadata.json‎

Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/gapic_metadata.json
+15Lines changed: 15 additions & 0 deletions
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"
Collapse file

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

Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/services/dataset_service/client.py
+3-37Lines changed: 3 additions & 37 deletions
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):
Collapse file

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

Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/services/deployment_resource_pool_service/client.py
+3-37Lines changed: 3 additions & 37 deletions
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):
Collapse file

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

Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/services/endpoint_service/client.py
+3-37Lines changed: 3 additions & 37 deletions
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):
Collapse file

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

Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/services/evaluation_service/client.py
+3-37Lines changed: 3 additions & 37 deletions
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):
Collapse file

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

Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/services/feature_online_store_admin_service/client.py
+3-37Lines changed: 3 additions & 37 deletions
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):
Collapse file

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

Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/services/feature_online_store_service/client.py
+3-37Lines changed: 3 additions & 37 deletions
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 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.