PyPI / google-cloud-aiplatform / 2.6.0
google-cloud-aiplatform 2.6.0
- Source
- https://github.com/googleapis/python-aiplatform
- Artifact scanned
google_cloud_aiplatform-2.6.0-py2.py3-none-any.whl- Compared with
google_cloud_aiplatform-2.5.0-py2.py3-none-any.whl(2 signals introduced since)- Files
- 1705 scanned, 39 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 32 info
- Scan time
- 25.3 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 7 of 7 warn and critical signals; 7 demoted to info.
- Disclude version
- 4.3.0
- Scanned (UTC)
- 2026-10-23 10:39
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
=None, =, ) : = -
: """Optional. If true, schedule the deployment workload on [spot VMs](https://cloud.google.com/kubernetes-engine/docs/concepts/spot-vms).""" : -
= = returnlikely benign A lazy-loading module __getattr__ that resolves prebuilt metric names and caches them in globals.Reasoning
The snippet is a module-level __getattr__ that imports a prebuilt metric lazily by name, caches it in globals(), and raises AttributeError otherwise. This is the standard PEP 562 lazy-loading idiom, with no decoding, execution, or network access.
-
=None, =, ) -
: """Optional. Represents the type of the structured memories associated with the schema. If not set, then `STRUCTURED_PROFILE` will be used.""" -
=None, =, ) -
: """Weaviate DB instance HTTP endpoint. e.g. 34.56.78.90:8080 Vertex RAG only supports HTTP connection to Weaviate. This value cannot be changed after it's set.""" -
=None, =, ) : = -
: """Sets the RAG Engine backend to be RagManagedDb, built on top of Spanner. NOTE: This is the default mode (w/ Basic Tier) if not explicitly chosen.""" : -
=None, =, ) -
: """Optional. If true, schedule the deployment workload on [spot VMs](https://cloud.google.com/kubernetes-engine/docs/concepts/spot-vms).""" -
=None, =, ) : = -
: """Optional. The parent that this model was customized from. E.g., Vision API, Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.""" : -
=None, =, ) : = -
: """Required. The coarse-grained type of feedback provided by the user. Must be set to a value other than `FEEDBACK_TYPE_UNSPECIFIED`.""" : -
=None, =, ) -
: """Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to `PRECISE`.""" -
""" frame = inspect.currentframe() while frame: yield framelikely benign A generator that walks call-stack frames via inspect.currentframe.Reasoning
The code walks the call stack with inspect.currentframe() in a generator. This is typical for locating the calling module or class for telemetry, logging, or default-argument resolution. Nothing in the snippet is exfiltrating or executing anything.
-
import sys, types, os;p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('google',));importlib = __import__('importlib.util');__import__('importlib.machinery');m = sys.modules.setdefault('google', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('google', [os.path.dirname(p)])));m = m or s… (341 bytes total)likely benign A namespace-package bootstrap line in a .pth file that registers the 'google' package.Reasoning
This is the setuptools-generated namespace-package .pth line for 'google'. It locates the sitedir, builds a module spec with PathFinder, and registers the module in sys.modules. It does not decode payloads, spawn processes, or touch the network, so it fits the legitimate namespace-package pattern that the instructions allow for .pth files.
-
; = ; = ;; = ; = orlikely benign Frame introspection inside the google namespace-package .pth bootstrap to obtain sitedir.Reasoning
sys._getframe(1) is used only to read 'sitedir' from the caller's locals, which is how the setuptools nspkg bootstrap finds the site-packages directory. It is part of the same benign namespace-package line.
-
; = ; = ;; = -
import sys, types, os;p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('google', 'cloud'));importlib = __import__('importlib.util');__import__('importlib.machinery');m = sys.modules.setdefault('google.cloud', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('google.cloud', [os.path.dirna… (341 bytes total)likely benign A namespace-package bootstrap .pth line that registers the 'google.cloud' package.Reasoning
This is the same setuptools namespace-package bootstrap, extended to 'google.cloud'. It only builds a module spec and registers it in sys.modules, with no execution or network activity.
-
; = ; = ;; =likely benign Frame introspection in the google.cloud namespace-package .pth bootstrap to obtain sitedir.Reasoning
The sys._getframe(1) call reads 'sitedir' from the caller's frame, the same benign setuptools namespace-package mechanism as the first line.
-
= = returnlikely benign A lazy-loading module __getattr__ that resolves prebuilt metric names and caches them in globals.Reasoning
This is the same module-level __getattr__ lazy-loading idiom with globals caching as the agentplatform finding. It is standard and contains no malicious behavior.
-
=None, =, ) -
: """Optional. Input only. The TTL (Time To Live) for the task. If not set, the task will expire in 24 hours by default. Valid range: (0 seconds, 1000 days]""" -
=None, =, ) -
: """Optional. A field mask indicating which paths in the Struct were changed. If not set, all fields will be updated. go/aip-internal/cloud-standard/2412""" -
=None, =, ) -
: """Optional. Represents the type of the structured memories associated with the schema. If not set, then `STRUCTURED_PROFILE` will be used.""" -
=None, =, ) : = -
: """Output only. The state of the Skill at this revision. TODO(b/503772996) Use a different proto for skill data included in skill revision""" :
Reproduce This Scan
Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
|