blob: 0c8c5ce76fd266e4f76513f8447894526334f43f [file] [log] [blame] [edit]
{
"name": "notebooks",
"resources": {
"projects": {
"resources": {
"locations": {
"methods": {
"get": {
"parameterOrder": [
"name"
],
"path": "v1/{+name}",
"parameters": {
"name": {
"description": "Resource name for the location.",
"required": true,
"location": "path",
"type": "string",
"pattern": "^projects/[^/]+/locations/[^/]+$"
}
},
"httpMethod": "GET",
"id": "notebooks.projects.locations.get",
"description": "Gets information about a location.",
"response": {
"$ref": "Location"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}"
},
"list": {
"response": {
"$ref": "ListLocationsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"path": "v1/{+name}/locations",
"parameterOrder": [
"name"
],
"description": "Lists information about the supported locations for this service.",
"flatPath": "v1/projects/{projectsId}/locations",
"id": "notebooks.projects.locations.list",
"parameters": {
"pageSize": {
"type": "integer",
"format": "int32",
"location": "query",
"description": "The standard list page size."
},
"filter": {
"location": "query",
"description": "The standard list filter.",
"type": "string"
},
"name": {
"description": "The resource that owns the locations collection, if applicable.",
"location": "path",
"required": true,
"pattern": "^projects/[^/]+$",
"type": "string"
},
"pageToken": {
"type": "string",
"description": "The standard list page token.",
"location": "query"
}
},
"httpMethod": "GET"
}
},
"resources": {
"instances": {
"methods": {
"report": {
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameterOrder": [
"name"
],
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:report",
"parameters": {
"name": {
"location": "path",
"description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`",
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
"required": true,
"type": "string"
}
},
"httpMethod": "POST",
"description": "Allows notebook instances to report their latest instance information to the Notebooks API server. The server will merge the reported information to the instance metadata store. Do not use this method directly.",
"request": {
"$ref": "ReportInstanceInfoRequest"
},
"id": "notebooks.projects.locations.instances.report",
"response": {
"$ref": "Operation"
},
"path": "v1/{+name}:report"
},
"isUpgradeable": {
"path": "v1/{+notebookInstance}:isUpgradeable",
"parameters": {
"notebookInstance": {
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
"location": "path",
"type": "string",
"description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`",
"required": true
}
},
"httpMethod": "GET",
"response": {
"$ref": "IsInstanceUpgradeableResponse"
},
"description": "Check if a notebook instance is upgradable.",
"id": "notebooks.projects.locations.instances.isUpgradeable",
"parameterOrder": [
"notebookInstance"
],
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:isUpgradeable"
},
"get": {
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"response": {
"$ref": "Instance"
},
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}",
"id": "notebooks.projects.locations.instances.get",
"description": "Gets details of a single Instance.",
"httpMethod": "GET",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
"description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`",
"type": "string",
"location": "path",
"required": true
}
},
"path": "v1/{+name}"
},
"upgradeInternal": {
"id": "notebooks.projects.locations.instances.upgradeInternal",
"parameterOrder": [
"name"
],
"request": {
"$ref": "UpgradeInstanceInternalRequest"
},
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:upgradeInternal",
"httpMethod": "POST",
"response": {
"$ref": "Operation"
},
"parameters": {
"name": {
"type": "string",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
"description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`",
"required": true
}
},
"path": "v1/{+name}:upgradeInternal",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"description": "Allows notebook instances to call this endpoint to upgrade themselves. Do not use this method directly."
},
"list": {
"description": "Lists instances in a given project and location.",
"id": "notebooks.projects.locations.instances.list",
"response": {
"$ref": "ListInstancesResponse"
},
"httpMethod": "GET",
"parameters": {
"pageToken": {
"description": "A previous returned page token that can be used to continue listing from the last result.",
"type": "string",
"location": "query"
},
"parent": {
"type": "string",
"required": true,
"location": "path",
"description": "Required. Format: `parent=projects/{project_id}/locations/{location}`",
"pattern": "^projects/[^/]+/locations/[^/]+$"
},
"pageSize": {
"format": "int32",
"description": "Maximum return size of the list call.",
"type": "integer",
"location": "query"
}
},
"parameterOrder": [
"parent"
],
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"path": "v1/{+parent}/instances",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances"
},
"start": {
"parameters": {
"name": {
"type": "string",
"location": "path",
"required": true,
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
"description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`"
}
},
"path": "v1/{+name}:start",
"response": {
"$ref": "Operation"
},
"request": {
"$ref": "StartInstanceRequest"
},
"id": "notebooks.projects.locations.instances.start",
"parameterOrder": [
"name"
],
"description": "Starts a notebook instance.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:start",
"httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"setAccelerator": {
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:setAccelerator",
"request": {
"$ref": "SetInstanceAcceleratorRequest"
},
"description": "Updates the guest accelerators of a single Instance.",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameterOrder": [
"name"
],
"httpMethod": "PATCH",
"response": {
"$ref": "Operation"
},
"path": "v1/{+name}:setAccelerator",
"id": "notebooks.projects.locations.instances.setAccelerator",
"parameters": {
"name": {
"description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`",
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
"type": "string",
"location": "path",
"required": true
}
}
},
"setLabels": {
"parameters": {
"name": {
"location": "path",
"required": true,
"type": "string",
"description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`",
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"
}
},
"path": "v1/{+name}:setLabels",
"id": "notebooks.projects.locations.instances.setLabels",
"description": "Replaces all the labels of an Instance.",
"request": {
"$ref": "SetInstanceLabelsRequest"
},
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:setLabels",
"parameterOrder": [
"name"
],
"httpMethod": "PATCH",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"response": {
"$ref": "Operation"
}
},
"setIamPolicy": {
"description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.",
"parameterOrder": [
"resource"
],
"id": "notebooks.projects.locations.instances.setIamPolicy",
"path": "v1/{+resource}:setIamPolicy",
"request": {
"$ref": "SetIamPolicyRequest"
},
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:setIamPolicy",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"httpMethod": "POST",
"parameters": {
"resource": {
"type": "string",
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
"required": true,
"location": "path",
"description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field."
}
},
"response": {
"$ref": "Policy"
}
},
"register": {
"id": "notebooks.projects.locations.instances.register",
"description": "Registers an existing legacy notebook instance to the Notebooks API server. Legacy instances are instances created with the legacy Compute Engine calls. They are not manageable by the Notebooks API out of the box. This call makes these instances manageable by the Notebooks API.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances:register",
"parameterOrder": [
"parent"
],
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"request": {
"$ref": "RegisterInstanceRequest"
},
"response": {
"$ref": "Operation"
},
"parameters": {
"parent": {
"required": true,
"pattern": "^projects/[^/]+/locations/[^/]+$",
"location": "path",
"description": "Required. Format: `parent=projects/{project_id}/locations/{location}`",
"type": "string"
}
},
"path": "v1/{+parent}/instances:register",
"httpMethod": "POST"
},
"create": {
"httpMethod": "POST",
"request": {
"$ref": "Instance"
},
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances",
"response": {
"$ref": "Operation"
},
"parameterOrder": [
"parent"
],
"description": "Creates a new Instance in a given project and location.",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"path": "v1/{+parent}/instances",
"parameters": {
"instanceId": {
"description": "Required. User-defined unique ID of this instance.",
"type": "string",
"location": "query"
},
"parent": {
"required": true,
"type": "string",
"description": "Required. Format: `parent=projects/{project_id}/locations/{location}`",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"location": "path"
}
},
"id": "notebooks.projects.locations.instances.create"
},
"delete": {
"response": {
"$ref": "Operation"
},
"parameterOrder": [
"name"
],
"description": "Deletes a single Instance.",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"id": "notebooks.projects.locations.instances.delete",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}",
"httpMethod": "DELETE",
"path": "v1/{+name}",
"parameters": {
"name": {
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
"type": "string",
"required": true,
"location": "path",
"description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`"
}
}
},
"upgrade": {
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"httpMethod": "POST",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:upgrade",
"id": "notebooks.projects.locations.instances.upgrade",
"request": {
"$ref": "UpgradeInstanceRequest"
},
"path": "v1/{+name}:upgrade",
"response": {
"$ref": "Operation"
},
"parameters": {
"name": {
"type": "string",
"description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`",
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"name"
],
"description": "Upgrades a notebook instance to the latest version."
},
"reset": {
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"id": "notebooks.projects.locations.instances.reset",
"parameterOrder": [
"name"
],
"httpMethod": "POST",
"response": {
"$ref": "Operation"
},
"description": "Resets a notebook instance.",
"request": {
"$ref": "ResetInstanceRequest"
},
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:reset",
"parameters": {
"name": {
"location": "path",
"required": true,
"type": "string",
"description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`",
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"
}
},
"path": "v1/{+name}:reset"
},
"getIamPolicy": {
"httpMethod": "GET",
"parameters": {
"options.requestedPolicyVersion": {
"type": "integer",
"location": "query",
"description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).",
"format": "int32"
},
"resource": {
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
"description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.",
"location": "path",
"required": true,
"type": "string"
}
},
"response": {
"$ref": "Policy"
},
"parameterOrder": [
"resource"
],
"id": "notebooks.projects.locations.instances.getIamPolicy",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"path": "v1/{+resource}:getIamPolicy",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:getIamPolicy",
"description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set."
},
"testIamPermissions": {
"parameterOrder": [
"resource"
],
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"response": {
"$ref": "TestIamPermissionsResponse"
},
"path": "v1/{+resource}:testIamPermissions",
"id": "notebooks.projects.locations.instances.testIamPermissions",
"httpMethod": "POST",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:testIamPermissions",
"description": "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.",
"parameters": {
"resource": {
"location": "path",
"description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.",
"type": "string",
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
"required": true
}
},
"request": {
"$ref": "TestIamPermissionsRequest"
}
},
"setMachineType": {
"parameters": {
"name": {
"required": true,
"description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
"type": "string"
}
},
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:setMachineType",
"id": "notebooks.projects.locations.instances.setMachineType",
"response": {
"$ref": "Operation"
},
"parameterOrder": [
"name"
],
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"description": "Updates the machine type of a single Instance.",
"httpMethod": "PATCH",
"request": {
"$ref": "SetInstanceMachineTypeRequest"
},
"path": "v1/{+name}:setMachineType"
},
"stop": {
"description": "Stops a notebook instance.",
"request": {
"$ref": "StopInstanceRequest"
},
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:stop",
"parameterOrder": [
"name"
],
"response": {
"$ref": "Operation"
},
"httpMethod": "POST",
"path": "v1/{+name}:stop",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameters": {
"name": {
"type": "string",
"description": "Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
"required": true
}
},
"id": "notebooks.projects.locations.instances.stop"
}
}
},
"operations": {
"methods": {
"get": {
"response": {
"$ref": "Operation"
},
"description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameterOrder": [
"name"
],
"httpMethod": "GET",
"id": "notebooks.projects.locations.operations.get",
"path": "v1/{+name}",
"parameters": {
"name": {
"pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
"required": true,
"description": "The name of the operation resource.",
"type": "string",
"location": "path"
}
},
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}"
},
"list": {
"description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
"parameterOrder": [
"name"
],
"httpMethod": "GET",
"parameters": {
"pageToken": {
"type": "string",
"description": "The standard list page token.",
"location": "query"
},
"filter": {
"type": "string",
"location": "query",
"description": "The standard list filter."
},
"name": {
"type": "string",
"location": "path",
"description": "The name of the operation's parent resource.",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true
},
"pageSize": {
"type": "integer",
"location": "query",
"description": "The standard list page size.",
"format": "int32"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"path": "v1/{+name}/operations",
"id": "notebooks.projects.locations.operations.list",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations",
"response": {
"$ref": "ListOperationsResponse"
}
},
"cancel": {
"parameterOrder": [
"name"
],
"id": "notebooks.projects.locations.operations.cancel",
"description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
"path": "v1/{+name}:cancel",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"response": {
"$ref": "Empty"
},
"request": {
"$ref": "CancelOperationRequest"
},
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
"parameters": {
"name": {
"required": true,
"location": "path",
"type": "string",
"description": "The name of the operation resource to be cancelled.",
"pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"
}
},
"httpMethod": "POST"
},
"delete": {
"path": "v1/{+name}",
"httpMethod": "DELETE",
"id": "notebooks.projects.locations.operations.delete",
"parameters": {
"name": {
"pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
"description": "The name of the operation resource to be deleted.",
"type": "string",
"location": "path",
"required": true
}
},
"parameterOrder": [
"name"
],
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"response": {
"$ref": "Empty"
},
"description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`."
}
}
},
"environments": {
"methods": {
"create": {
"request": {
"$ref": "Environment"
},
"path": "v1/{+parent}/environments",
"httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"id": "notebooks.projects.locations.environments.create",
"parameters": {
"environmentId": {
"description": "Required. User-defined unique ID of this environment. The `environment_id` must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.",
"location": "query",
"type": "string"
},
"parent": {
"type": "string",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"description": "Required. Format: `projects/{project_id}/locations/{location}`",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"parent"
],
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/environments",
"response": {
"$ref": "Operation"
},
"description": "Creates a new Environment."
},
"get": {
"parameters": {
"name": {
"location": "path",
"required": true,
"pattern": "^projects/[^/]+/locations/[^/]+/environments/[^/]+$",
"type": "string",
"description": "Required. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`"
}
},
"parameterOrder": [
"name"
],
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/environments/{environmentsId}",
"description": "Gets details of a single Environment.",
"path": "v1/{+name}",
"httpMethod": "GET",
"response": {
"$ref": "Environment"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"id": "notebooks.projects.locations.environments.get"
},
"list": {
"httpMethod": "GET",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/environments",
"description": "Lists environments in a project.",
"response": {
"$ref": "ListEnvironmentsResponse"
},
"parameterOrder": [
"parent"
],
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"parameters": {
"pageSize": {
"format": "int32",
"description": "Maximum return size of the list call.",
"type": "integer",
"location": "query"
},
"pageToken": {
"type": "string",
"description": "A previous returned page token that can be used to continue listing from the last result.",
"location": "query"
},
"parent": {
"pattern": "^projects/[^/]+/locations/[^/]+$",
"location": "path",
"type": "string",
"required": true,
"description": "Required. Format: `projects/{project_id}/locations/{location}`"
}
},
"id": "notebooks.projects.locations.environments.list",
"path": "v1/{+parent}/environments"
},
"delete": {
"parameterOrder": [
"name"
],
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"id": "notebooks.projects.locations.environments.delete",
"parameters": {
"name": {
"description": "Required. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`",
"required": true,
"type": "string",
"pattern": "^projects/[^/]+/locations/[^/]+/environments/[^/]+$",
"location": "path"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "Operation"
},
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/environments/{environmentsId}",
"httpMethod": "DELETE",
"description": "Deletes a single Environment."
}
}
}
}
}
}
}
},
"mtlsRootUrl": "https://notebooks.mtls.googleapis.com/",
"version_module": true,
"basePath": "",
"canonicalName": "AI Platform Notebooks",
"schemas": {
"UpgradeInstanceInternalRequest": {
"type": "object",
"description": "Request for upgrading a notebook instance from within the VM",
"id": "UpgradeInstanceInternalRequest",
"properties": {
"vmId": {
"description": "Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity",
"type": "string"
}
}
},
"GuestOsFeature": {
"description": "Guest OS features for boot disk.",
"id": "GuestOsFeature",
"properties": {
"type": {
"description": "The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. Valid values: FEATURE_TYPE_UNSPECIFIED MULTI_IP_SUBNET SECURE_BOOT UEFI_COMPATIBLE VIRTIO_SCSI_MULTIQUEUE WINDOWS",
"type": "string"
}
},
"type": "object"
},
"Binding": {
"properties": {
"condition": {
"description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).",
"$ref": "Expr"
},
"members": {
"items": {
"type": "string"
},
"type": "array",
"description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. "
},
"role": {
"description": "Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.",
"type": "string"
}
},
"type": "object",
"id": "Binding",
"description": "Associates `members` with a `role`."
},
"Instance": {
"description": "The definition of a notebook instance.",
"id": "Instance",
"properties": {
"bootDiskType": {
"description": "Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).",
"type": "string",
"enumDescriptions": [
"Disk type not set.",
"Standard persistent disk type.",
"SSD persistent disk type.",
"Balanced persistent disk type."
],
"enum": [
"DISK_TYPE_UNSPECIFIED",
"PD_STANDARD",
"PD_SSD",
"PD_BALANCED"
]
},
"network": {
"type": "string",
"description": "The name of the VPC that this instance is in. Format: `projects/{project_id}/global/networks/{network_id}`"
},
"customGpuDriverPath": {
"description": "Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.",
"type": "string"
},
"proxyUri": {
"readOnly": true,
"type": "string",
"description": "Output only. The proxy endpoint that is used to access the Jupyter notebook."
},
"instanceOwners": {
"items": {
"type": "string"
},
"description": "Input only. The owner of this instance after creation. Format: `[email protected]` Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.",
"type": "array"
},
"machineType": {
"type": "string",
"description": "Required. The [Compute Engine machine type](/compute/docs/machine-types) of this instance."
},
"updateTime": {
"description": "Output only. Instance update time.",
"readOnly": true,
"format": "google-datetime",
"type": "string"
},
"installGpuDriver": {
"type": "boolean",
"description": "Whether the end user authorizes Google Cloud to install GPU driver on this instance. If this field is empty or set to false, the GPU driver won't be installed. Only applicable to instances with GPUs."
},
"postStartupScript": {
"description": "Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).",
"type": "string"
},
"serviceAccount": {
"description": "The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the [Compute Engine default service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.",
"type": "string"
},
"containerImage": {
"description": "Use a container image to start the notebook instance.",
"$ref": "ContainerImage"
},
"diskEncryption": {
"enumDescriptions": [
"Disk encryption is not specified.",
"Use Google managed encryption keys to encrypt the boot disk.",
"Use customer managed encryption keys to encrypt the boot disk."
],
"enum": [
"DISK_ENCRYPTION_UNSPECIFIED",
"GMEK",
"CMEK"
],
"description": "Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.",
"type": "string"
},
"vmImage": {
"$ref": "VmImage",
"description": "Use a Compute Engine VM image to start the notebook instance."
},
"metadata": {
"type": "object",
"description": "Custom metadata to apply to this instance.",
"additionalProperties": {
"type": "string"
}
},
"upgradeHistory": {
"items": {
"$ref": "UpgradeHistoryEntry"
},
"description": "The upgrade history of this instance.",
"type": "array"
},
"noProxyAccess": {
"description": "If true, the notebook instance will not register with the proxy.",
"type": "boolean"
},
"noRemoveDataDisk": {
"description": "Input only. If true, the data disk will not be auto deleted when deleting the instance.",
"type": "boolean"
},
"createTime": {
"format": "google-datetime",
"description": "Output only. Instance creation time.",
"type": "string",
"readOnly": true
},
"dataDiskType": {
"type": "string",
"enum": [
"DISK_TYPE_UNSPECIFIED",
"PD_STANDARD",
"PD_SSD",
"PD_BALANCED"
],
"description": "Input only. The type of the data disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).",
"enumDescriptions": [
"Disk type not set.",
"Standard persistent disk type.",
"SSD persistent disk type.",
"Balanced persistent disk type."
]
},
"state": {
"description": "Output only. The state of this instance.",
"enumDescriptions": [
"State is not specified.",
"The control logic is starting the instance.",
"The control logic is installing required frameworks and registering the instance with notebook proxy",
"The instance is running.",
"The control logic is stopping the instance.",
"The instance is stopped.",
"The instance is deleted.",
"The instance is upgrading.",
"The instance is being created.",
"The instance is getting registered."
],
"readOnly": true,
"type": "string",
"enum": [
"STATE_UNSPECIFIED",
"STARTING",
"PROVISIONING",
"ACTIVE",
"STOPPING",
"STOPPED",
"DELETED",
"UPGRADING",
"INITIALIZING",
"REGISTERING"
]
},
"subnet": {
"description": "The name of the subnet that this instance is in. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`",
"type": "string"
},
"noPublicIp": {
"description": "If true, no public IP will be assigned to this instance.",
"type": "boolean"
},
"bootDiskSizeGb": {
"description": "Input only. The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.",
"format": "int64",
"type": "string"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Labels to apply to this instance. These can be later modified by the setLabels method."
},
"disks": {
"description": "Output only. Attached disks to notebook instance.",
"readOnly": true,
"type": "array",
"items": {
"$ref": "Disk"
}
},
"kmsKey": {
"type": "string",
"description": "Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}` Learn more about [using your own encryption keys](/kms/docs/quickstart)."
},
"dataDiskSizeGb": {
"description": "Input only. The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.",
"type": "string",
"format": "int64"
},
"acceleratorConfig": {
"$ref": "AcceleratorConfig",
"description": "The hardware accelerator used on this instance. If you use accelerators, make sure that your configuration has [enough vCPUs and memory to support the `machine_type` you have selected](/compute/docs/gpus/#gpus-list)."
},
"name": {
"description": "Output only. The name of this notebook instance. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`",
"type": "string",
"readOnly": true
}
},
"type": "object"
},
"Environment": {
"properties": {
"name": {
"type": "string",
"description": "Output only. Name of this environment. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`",
"readOnly": true
},
"displayName": {
"description": "Display name of this environment for the UI.",
"type": "string"
},
"createTime": {
"type": "string",
"description": "Output only. The time at which this environment was created.",
"format": "google-datetime",
"readOnly": true
},
"postStartupScript": {
"description": "Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path. Example: `\"gs://path-to-file/file-name\"`",
"type": "string"
},
"description": {
"type": "string",
"description": "A brief description of this environment."
},
"vmImage": {
"$ref": "VmImage",
"description": "Use a Compute Engine VM image to start the notebook instance."
},
"containerImage": {
"$ref": "ContainerImage",
"description": "Use a container image to start the notebook instance."
}
},
"description": "Definition of a software environment that is used to start a notebook instance.",
"id": "Environment",
"type": "object"
},
"TestIamPermissionsRequest": {
"type": "object",
"description": "Request message for `TestIamPermissions` method.",
"id": "TestIamPermissionsRequest",
"properties": {
"permissions": {
"type": "array",
"description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).",
"items": {
"type": "string"
}
}
}
},
"UpgradeHistoryEntry": {
"id": "UpgradeHistoryEntry",
"properties": {
"vmImage": {
"description": "The VM image before this instance upgrade.",
"type": "string"
},
"snapshot": {
"type": "string",
"description": "The snapshot of the boot disk of this notebook instance before upgrade."
},
"containerImage": {
"type": "string",
"description": "The container image before this instance upgrade."
},
"state": {
"type": "string",
"enum": [
"STATE_UNSPECIFIED",
"STARTED",
"SUCCEEDED",
"FAILED"
],
"description": "The state of this instance upgrade history entry.",
"enumDescriptions": [
"State is not specified.",
"The instance upgrade is started.",
"The instance upgrade is succeeded.",
"The instance upgrade is failed."
]
},
"version": {
"type": "string",
"description": "The version of the notebook instance before this upgrade."
},
"framework": {
"type": "string",
"description": "The framework of this notebook instance."
},
"createTime": {
"description": "The time that this instance upgrade history entry is created.",
"type": "string",
"format": "google-datetime"
}
},
"type": "object"
},
"ListOperationsResponse": {
"id": "ListOperationsResponse",
"type": "object",
"properties": {
"nextPageToken": {
"type": "string",
"description": "The standard List next-page token."
},
"operations": {
"items": {
"$ref": "Operation"
},
"type": "array",
"description": "A list of operations that matches the specified filter in the request."
}
},
"description": "The response message for Operations.ListOperations."
},
"ResetInstanceRequest": {
"description": "Request for reseting a notebook instance",
"id": "ResetInstanceRequest",
"type": "object",
"properties": {}
},
"ListInstancesResponse": {
"id": "ListInstancesResponse",
"properties": {
"unreachable": {
"items": {
"type": "string"
},
"type": "array",
"description": "Locations that could not be reached. For example, ['us-west1-a', 'us-central1-b']. A ListInstancesResponse will only contain either instances or unreachables,"
},
"instances": {
"type": "array",
"items": {
"$ref": "Instance"
},
"description": "A list of returned instances."
},
"nextPageToken": {
"description": "Page token that can be used to continue listing from the last result in the next list call.",
"type": "string"
}
},
"description": "Response for listing notebook instances.",
"type": "object"
},
"CancelOperationRequest": {
"id": "CancelOperationRequest",
"type": "object",
"description": "The request message for Operations.CancelOperation.",
"properties": {}
},
"OperationMetadata": {
"id": "OperationMetadata",
"type": "object",
"description": "Represents the metadata of the long-running operation.",
"properties": {
"endpoint": {
"type": "string",
"description": "API endpoint name of this operation."
},
"requestedCancellation": {
"type": "boolean",
"description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`."
},
"statusMessage": {
"type": "string",
"description": "Human-readable status of the operation, if any."
},
"verb": {
"type": "string",
"description": "Name of the verb executed by the operation."
},
"createTime": {
"format": "google-datetime",
"description": "The time the operation was created.",
"type": "string"
},
"endTime": {
"description": "The time the operation finished running.",
"format": "google-datetime",
"type": "string"
},
"target": {
"type": "string",
"description": "Server-defined resource path for the target of the operation."
},
"apiVersion": {
"description": "API version used to start the operation.",
"type": "string"
}
}
},
"Policy": {
"type": "object",
"properties": {
"bindings": {
"items": {
"$ref": "Binding"
},
"type": "array",
"description": "Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member."
},
"etag": {
"format": "byte",
"description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.",
"type": "string"
},
"version": {
"description": "Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).",
"format": "int32",
"type": "integer"
}
},
"description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:[email protected]\", \"group:[email protected]\", \"domain:google.com\", \"serviceAccount:[email protected]\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:[email protected]\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).",
"id": "Policy"
},
"AcceleratorConfig": {
"properties": {
"coreCount": {
"description": "Count of cores of this accelerator.",
"type": "string",
"format": "int64"
},
"type": {
"type": "string",
"enumDescriptions": [
"Accelerator type is not specified.",
"Accelerator type is Nvidia Tesla K80.",
"Accelerator type is Nvidia Tesla P100.",
"Accelerator type is Nvidia Tesla V100.",
"Accelerator type is Nvidia Tesla P4.",
"Accelerator type is Nvidia Tesla T4.",
"Accelerator type is Nvidia Tesla A100.",
"Accelerator type is NVIDIA Tesla T4 Virtual Workstations.",
"Accelerator type is NVIDIA Tesla P100 Virtual Workstations.",
"Accelerator type is NVIDIA Tesla P4 Virtual Workstations.",
"(Coming soon) Accelerator type is TPU V2.",
"(Coming soon) Accelerator type is TPU V3."
],
"description": "Type of this accelerator.",
"enum": [
"ACCELERATOR_TYPE_UNSPECIFIED",
"NVIDIA_TESLA_K80",
"NVIDIA_TESLA_P100",
"NVIDIA_TESLA_V100",
"NVIDIA_TESLA_P4",
"NVIDIA_TESLA_T4",
"NVIDIA_TESLA_A100",
"NVIDIA_TESLA_T4_VWS",
"NVIDIA_TESLA_P100_VWS",
"NVIDIA_TESLA_P4_VWS",
"TPU_V2",
"TPU_V3"
]
}
},
"description": "Definition of a hardware accelerator. Note that not all combinations of `type` and `core_count` are valid. Check [GPUs on Compute Engine](/compute/docs/gpus/#gpus-list) to find a valid combination. TPUs are not supported.",
"type": "object",
"id": "AcceleratorConfig"
},
"StopInstanceRequest": {
"description": "Request for stopping a notebook instance",
"type": "object",
"properties": {},
"id": "StopInstanceRequest"
},
"Operation": {
"properties": {
"metadata": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.",
"type": "object"
},
"name": {
"type": "string",
"description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`."
},
"response": {
"description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.",
"type": "object",
"additionalProperties": {
"type": "any",
"description": "Properties of the object. Contains field @type with type URL."
}
},
"error": {
"description": "The error result of the operation in case of failure or cancellation.",
"$ref": "Status"
},
"done": {
"description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.",
"type": "boolean"
}
},
"type": "object",
"description": "This resource represents a long-running operation that is the result of a network API call.",
"id": "Operation"
},
"SetInstanceAcceleratorRequest": {
"type": "object",
"id": "SetInstanceAcceleratorRequest",
"description": "Request for setting instance accelerator.",
"properties": {
"coreCount": {
"type": "string",
"description": "Required. Count of cores of this accelerator. Note that not all combinations of `type` and `core_count` are valid. Check [GPUs on Compute Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to find a valid combination. TPUs are not supported.",
"format": "int64"
},
"type": {
"enumDescriptions": [
"Accelerator type is not specified.",
"Accelerator type is Nvidia Tesla K80.",
"Accelerator type is Nvidia Tesla P100.",
"Accelerator type is Nvidia Tesla V100.",
"Accelerator type is Nvidia Tesla P4.",
"Accelerator type is Nvidia Tesla T4.",
"Accelerator type is Nvidia Tesla A100.",
"Accelerator type is NVIDIA Tesla T4 Virtual Workstations.",
"Accelerator type is NVIDIA Tesla P100 Virtual Workstations.",
"Accelerator type is NVIDIA Tesla P4 Virtual Workstations.",
"(Coming soon) Accelerator type is TPU V2.",
"(Coming soon) Accelerator type is TPU V3."
],
"enum": [
"ACCELERATOR_TYPE_UNSPECIFIED",
"NVIDIA_TESLA_K80",
"NVIDIA_TESLA_P100",
"NVIDIA_TESLA_V100",
"NVIDIA_TESLA_P4",
"NVIDIA_TESLA_T4",
"NVIDIA_TESLA_A100",
"NVIDIA_TESLA_T4_VWS",
"NVIDIA_TESLA_P100_VWS",
"NVIDIA_TESLA_P4_VWS",
"TPU_V2",
"TPU_V3"
],
"description": "Required. Type of this accelerator.",
"type": "string"
}
}
},
"SetIamPolicyRequest": {
"type": "object",
"properties": {
"policy": {
"$ref": "Policy",
"description": "REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them."
}
},
"description": "Request message for `SetIamPolicy` method.",
"id": "SetIamPolicyRequest"
},
"TestIamPermissionsResponse": {
"type": "object",
"id": "TestIamPermissionsResponse",
"description": "Response message for `TestIamPermissions` method.",
"properties": {
"permissions": {
"description": "A subset of `TestPermissionsRequest.permissions` that the caller is allowed.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"VmImage": {
"description": "Definition of a custom Compute Engine virtual machine image for starting a notebook instance with the environment installed directly on the VM.",
"properties": {
"project": {
"description": "Required. The name of the Google Cloud project that this VM image belongs to. Format: `projects/{project_id}`",
"type": "string"
},
"imageName": {
"type": "string",
"description": "Use VM image name to find the image."
},
"imageFamily": {
"description": "Use this VM image family to find the image; the newest image in this family will be used.",
"type": "string"
}
},
"type": "object",
"id": "VmImage"
},
"SetInstanceLabelsRequest": {
"type": "object",
"properties": {
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Labels to apply to this instance. These can be later modified by the setLabels method"
}
},
"description": "Request for setting instance labels.",
"id": "SetInstanceLabelsRequest"
},
"SetInstanceMachineTypeRequest": {
"properties": {
"machineType": {
"type": "string",
"description": "Required. The [Compute Engine machine type](https://cloud.google.com/compute/docs/machine-types)."
}
},
"type": "object",
"description": "Request for setting instance machine type.",
"id": "SetInstanceMachineTypeRequest"
},
"ReportInstanceInfoRequest": {
"id": "ReportInstanceInfoRequest",
"type": "object",
"description": "Request for notebook instances to report information to Notebooks API.",
"properties": {
"vmId": {
"type": "string",
"description": "Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"description": "The metadata reported to Notebooks API. This will be merged to the instance metadata store",
"type": "object"
}
}
},
"Location": {
"id": "Location",
"type": "object",
"description": "A resource that represents Google Cloud Platform location.",
"properties": {
"locationId": {
"type": "string",
"description": "The canonical id for this location. For example: `\"us-east1\"`."
},
"labels": {
"description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"displayName": {
"type": "string",
"description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\"."
},
"metadata": {
"additionalProperties": {
"type": "any",
"description": "Properties of the object. Contains field @type with type URL."
},
"type": "object",
"description": "Service-specific metadata. For example the available capacity at the given location."
},
"name": {
"type": "string",
"description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`"
}
}
},
"ListEnvironmentsResponse": {
"description": "Response for listing environments.",
"id": "ListEnvironmentsResponse",
"properties": {
"environments": {
"description": "A list of returned environments.",
"type": "array",
"items": {
"$ref": "Environment"
}
},
"unreachable": {
"description": "Locations that could not be reached.",
"type": "array",
"items": {
"type": "string"
}
},
"nextPageToken": {
"type": "string",
"description": "A page token that can be used to continue listing from the last result in the next list call."
}
},
"type": "object"
},
"StartInstanceRequest": {
"description": "Request for starting a notebook instance",
"properties": {},
"type": "object",
"id": "StartInstanceRequest"
},
"RegisterInstanceRequest": {
"type": "object",
"id": "RegisterInstanceRequest",
"description": "Request for registering a notebook instance.",
"properties": {
"instanceId": {
"description": "Required. User defined unique ID of this instance. The `instance_id` must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.",
"type": "string"
}
}
},
"ListLocationsResponse": {
"id": "ListLocationsResponse",
"description": "The response message for Locations.ListLocations.",
"properties": {
"locations": {
"type": "array",
"items": {
"$ref": "Location"
},
"description": "A list of locations that matches the specified filter in the request."
},
"nextPageToken": {
"type": "string",
"description": "The standard List next-page token."
}
},
"type": "object"
},
"Disk": {
"description": "An instance-attached disk resource.",
"type": "object",
"properties": {
"kind": {
"type": "string",
"description": "Type of the resource. Always compute#attachedDisk for attached disks."
},
"source": {
"description": "Indicates a valid partial or full URL to an existing Persistent Disk resource.",
"type": "string"
},
"licenses": {
"description": "A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images.",
"items": {
"type": "string"
},
"type": "array"
},
"index": {
"format": "int64",
"type": "string",
"description": "A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number."
},
"boot": {
"description": "Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.",
"type": "boolean"
},
"autoDelete": {
"type": "boolean",
"description": "Indicates whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance)."
},
"mode": {
"description": "The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Valid values: READ_ONLY READ_WRITE",
"type": "string"
},
"interface": {
"description": "Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values: NVME SCSI",
"type": "string"
},
"diskSizeGb": {
"format": "int64",
"type": "string",
"description": "Indicates the size of the disk in base-2 GB."
},
"deviceName": {
"description": "Indicates a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine.This field is only applicable for persistent disks.",
"type": "string"
},
"guestOsFeatures": {
"type": "array",
"items": {
"$ref": "GuestOsFeature"
},
"description": "Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options."
},
"type": {
"type": "string",
"description": "Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values: PERSISTENT SCRATCH"
}
},
"id": "Disk"
},
"UpgradeInstanceRequest": {
"properties": {},
"description": "Request for upgrading a notebook instance",
"id": "UpgradeInstanceRequest",
"type": "object"
},
"Empty": {
"id": "Empty",
"type": "object",
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.",
"properties": {}
},
"Status": {
"id": "Status",
"type": "object",
"properties": {
"details": {
"description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
"items": {
"additionalProperties": {
"type": "any",
"description": "Properties of the object. Contains field @type with type URL."
},
"type": "object"
},
"type": "array"
},
"message": {
"description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
"type": "string"
},
"code": {
"description": "The status code, which should be an enum value of google.rpc.Code.",
"format": "int32",
"type": "integer"
}
},
"description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors)."
},
"IsInstanceUpgradeableResponse": {
"properties": {
"upgradeInfo": {
"type": "string",
"description": "Additional information about upgrade."
},
"upgradeable": {
"type": "boolean",
"description": "If an instance is upgradeable."
},
"upgradeVersion": {
"description": "The version this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.",
"type": "string"
}
},
"description": "Response for checking if a notebook instance is upgradeable.",
"id": "IsInstanceUpgradeableResponse",
"type": "object"
},
"ContainerImage": {
"id": "ContainerImage",
"properties": {
"repository": {
"description": "Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`",
"type": "string"
},
"tag": {
"description": "The tag of the container image. If not specified, this defaults to the latest tag.",
"type": "string"
}
},
"description": "Definition of a container image for starting a notebook instance with the environment installed in a container.",
"type": "object"
},
"Expr": {
"type": "object",
"description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' && document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.",
"id": "Expr",
"properties": {
"description": {
"description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.",
"type": "string"
},
"location": {
"type": "string",
"description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file."
},
"title": {
"description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.",
"type": "string"
},
"expression": {
"type": "string",
"description": "Textual representation of an expression in Common Expression Language syntax."
}
}
}
},
"servicePath": "",
"description": "AI Platform Notebooks API is used to manage notebook resources in Google Cloud.",
"documentationLink": "https://cloud.google.com/ai-platform/notebooks/docs/",
"id": "notebooks:v1",
"version": "v1",
"baseUrl": "https://notebooks.googleapis.com/",
"batchPath": "batch",
"revision": "20201110",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"parameters": {
"$.xgafv": {
"description": "V1 error format.",
"enum": [
"1",
"2"
],
"type": "string",
"location": "query",
"enumDescriptions": [
"v1 error format",
"v2 error format"
]
},
"uploadType": {
"type": "string",
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
},
"upload_protocol": {
"location": "query",
"type": "string",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
},
"prettyPrint": {
"location": "query",
"type": "boolean",
"default": "true",
"description": "Returns response with indentations and line breaks."
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
},
"access_token": {
"location": "query",
"type": "string",
"description": "OAuth access token."
},
"key": {
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string"
},
"quotaUser": {
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"location": "query",
"type": "string"
},
"alt": {
"location": "query",
"description": "Data format for response.",
"enum": [
"json",
"media",
"proto"
],
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"type": "string",
"default": "json"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
}
},
"fullyEncodeReservedExpansion": true,
"title": "Notebooks API",
"discoveryVersion": "v1",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
}
}
}
},
"ownerName": "Google",
"kind": "discovery#restDescription",
"protocol": "rest",
"rootUrl": "https://notebooks.googleapis.com/",
"ownerDomain": "google.com"
}