ProjectsLocationsRuntimes
class ProjectsLocationsRuntimes extends Resource (View source)
The "runtimes" collection of methods.
Typical usage is:
$notebooksService = new Google\Service\AIPlatformNotebooks(...);
$runtimes = $notebooksService->projects_locations_runtimes;
Methods
Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
Gets details of a single Runtime. The location must be a regional endpoint rather than zonal. (runtimes.get)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (runtimes.getIamPolicy)
Lists Runtimes in a given project and location.
Gets an access token for the consumer service account that the customer attached to the runtime. Only accessible from the tenant instance.
Report and process a runtime event. (runtimes.reportEvent)
Resets a Managed Notebook Runtime. (runtimes.reset)
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (runtimes.setIamPolicy)
Starts a Managed Notebook Runtime. Perform "Start" on GPU instances; "Resume" on CPU instances See: https://cloud.google.com/compute/docs/instances/stop- start-instance https://cloud.google.com/compute/docs/instances/suspend- resume-instance (runtimes.start)
Stops a Managed Notebook Runtime. Perform "Stop" on GPU instances; "Suspend" on CPU instances See: https://cloud.google.com/compute/docs/instances/stop- start-instance https://cloud.google.com/compute/docs/instances/suspend- resume-instance (runtimes.stop)
Switch a Managed Notebook Runtime. (runtimes.switchProjectsLocationsRuntimes)
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
Upgrades a Managed Notebook Runtime to the latest version. (runtimes.upgrade)
Details
Operation
create(string $parent, Runtime $postBody, array $optParams = [])
Creates a new Runtime in a given project and location. (runtimes.create)
Operation
delete(string $name, array $optParams = [])
Deletes a single Runtime. (runtimes.delete)
Operation
diagnose(string $name, DiagnoseRuntimeRequest $postBody, array $optParams = [])
Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
(runtimes.diagnose)
Runtime
get(string $name, array $optParams = [])
Gets details of a single Runtime. The location must be a regional endpoint rather than zonal. (runtimes.get)
Policy
getIamPolicy(string $resource, array $optParams = [])
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (runtimes.getIamPolicy)
ListRuntimesResponse
listProjectsLocationsRuntimes(string $parent, array $optParams = [])
Lists Runtimes in a given project and location.
(runtimes.listProjectsLocationsRuntimes)
Operation
patch(string $name, Runtime $postBody, array $optParams = [])
Update Notebook Runtime configuration. (runtimes.patch)
RefreshRuntimeTokenInternalResponse
refreshRuntimeTokenInternal(string $name, RefreshRuntimeTokenInternalRequest $postBody, array $optParams = [])
Gets an access token for the consumer service account that the customer attached to the runtime. Only accessible from the tenant instance.
(runtimes.refreshRuntimeTokenInternal)
Operation
reportEvent(string $name, ReportRuntimeEventRequest $postBody, array $optParams = [])
Report and process a runtime event. (runtimes.reportEvent)
Operation
reset(string $name, ResetRuntimeRequest $postBody, array $optParams = [])
Resets a Managed Notebook Runtime. (runtimes.reset)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (runtimes.setIamPolicy)
Operation
start(string $name, StartRuntimeRequest $postBody, array $optParams = [])
Starts a Managed Notebook Runtime. Perform "Start" on GPU instances; "Resume" on CPU instances See: https://cloud.google.com/compute/docs/instances/stop- start-instance https://cloud.google.com/compute/docs/instances/suspend- resume-instance (runtimes.start)
Operation
stop(string $name, StopRuntimeRequest $postBody, array $optParams = [])
Stops a Managed Notebook Runtime. Perform "Stop" on GPU instances; "Suspend" on CPU instances See: https://cloud.google.com/compute/docs/instances/stop- start-instance https://cloud.google.com/compute/docs/instances/suspend- resume-instance (runtimes.stop)
Operation
switchProjectsLocationsRuntimes(string $name, SwitchRuntimeRequest $postBody, array $optParams = [])
Switch a Managed Notebook Runtime. (runtimes.switchProjectsLocationsRuntimes)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning. (runtimes.testIamPermissions)
Operation
upgrade(string $name, UpgradeRuntimeRequest $postBody, array $optParams = [])
Upgrades a Managed Notebook Runtime to the latest version. (runtimes.upgrade)