Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit bc92c07

Browse files
feat: add Notebooks v1 (#76)
Fixes #24 - [ ] Regenerate this pull request now. Committer: @gogasca PiperOrigin-RevId: 393792683 Source-Link: googleapis/googleapis@03ce2eb Source-Link: https://github.com/googleapis/googleapis-gen/commit/faf1b9ce43cc020c9a2dbffd5212bcfa2fd11b80 feat: set the default import to notebooks_v1
1 parent e77ac43 commit bc92c07

Some content is hidden

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

41 files changed

+26879
-30
lines changed

docs/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
.. include:: multiprocessing.rst
44

5+
This package includes clients for multiple versions of the Notebooks
6+
API. By default, you will get ``v1``, the latest version.
7+
8+
API Reference
9+
-------------
10+
.. toctree::
11+
:maxdepth: 2
12+
13+
notebooks_v1/services
14+
notebooks_v1/types
15+
516
API Reference
617
-------------
718
.. toctree::
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ManagedNotebookService
2+
----------------------------------------
3+
4+
.. automodule:: google.cloud.notebooks_v1.services.managed_notebook_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.notebooks_v1.services.managed_notebook_service.pagers
9+
:members:
10+
:inherited-members:
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
NotebookService
2+
---------------------------------
3+
4+
.. automodule:: google.cloud.notebooks_v1.services.notebook_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.notebooks_v1.services.notebook_service.pagers
9+
:members:
10+
:inherited-members:

docs/notebooks_v1/services.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Services for Google Cloud Notebooks v1 API
2+
==========================================
3+
.. toctree::
4+
:maxdepth: 2
5+
6+
managed_notebook_service
7+
notebook_service

docs/notebooks_v1/types.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Types for Google Cloud Notebooks v1 API
2+
=======================================
3+
4+
.. automodule:: google.cloud.notebooks_v1.types
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

google/cloud/notebooks/__init__.py

Lines changed: 123 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,69 +14,163 @@
1414
# limitations under the License.
1515
#
1616

17-
from google.cloud.notebooks_v1beta1.services.notebook_service.client import (
17+
from google.cloud.notebooks_v1.services.managed_notebook_service.client import (
18+
ManagedNotebookServiceClient,
19+
)
20+
from google.cloud.notebooks_v1.services.managed_notebook_service.async_client import (
21+
ManagedNotebookServiceAsyncClient,
22+
)
23+
from google.cloud.notebooks_v1.services.notebook_service.client import (
1824
NotebookServiceClient,
1925
)
20-
from google.cloud.notebooks_v1beta1.services.notebook_service.async_client import (
26+
from google.cloud.notebooks_v1.services.notebook_service.async_client import (
2127
NotebookServiceAsyncClient,
2228
)
2329

24-
from google.cloud.notebooks_v1beta1.types.environment import ContainerImage
25-
from google.cloud.notebooks_v1beta1.types.environment import Environment
26-
from google.cloud.notebooks_v1beta1.types.environment import VmImage
27-
from google.cloud.notebooks_v1beta1.types.instance import Instance
28-
from google.cloud.notebooks_v1beta1.types.service import CreateEnvironmentRequest
29-
from google.cloud.notebooks_v1beta1.types.service import CreateInstanceRequest
30-
from google.cloud.notebooks_v1beta1.types.service import DeleteEnvironmentRequest
31-
from google.cloud.notebooks_v1beta1.types.service import DeleteInstanceRequest
32-
from google.cloud.notebooks_v1beta1.types.service import GetEnvironmentRequest
33-
from google.cloud.notebooks_v1beta1.types.service import GetInstanceRequest
34-
from google.cloud.notebooks_v1beta1.types.service import IsInstanceUpgradeableRequest
35-
from google.cloud.notebooks_v1beta1.types.service import IsInstanceUpgradeableResponse
36-
from google.cloud.notebooks_v1beta1.types.service import ListEnvironmentsRequest
37-
from google.cloud.notebooks_v1beta1.types.service import ListEnvironmentsResponse
38-
from google.cloud.notebooks_v1beta1.types.service import ListInstancesRequest
39-
from google.cloud.notebooks_v1beta1.types.service import ListInstancesResponse
40-
from google.cloud.notebooks_v1beta1.types.service import OperationMetadata
41-
from google.cloud.notebooks_v1beta1.types.service import RegisterInstanceRequest
42-
from google.cloud.notebooks_v1beta1.types.service import ReportInstanceInfoRequest
43-
from google.cloud.notebooks_v1beta1.types.service import ResetInstanceRequest
44-
from google.cloud.notebooks_v1beta1.types.service import SetInstanceAcceleratorRequest
45-
from google.cloud.notebooks_v1beta1.types.service import SetInstanceLabelsRequest
46-
from google.cloud.notebooks_v1beta1.types.service import SetInstanceMachineTypeRequest
47-
from google.cloud.notebooks_v1beta1.types.service import StartInstanceRequest
48-
from google.cloud.notebooks_v1beta1.types.service import StopInstanceRequest
49-
from google.cloud.notebooks_v1beta1.types.service import UpgradeInstanceInternalRequest
50-
from google.cloud.notebooks_v1beta1.types.service import UpgradeInstanceRequest
30+
from google.cloud.notebooks_v1.types.environment import ContainerImage
31+
from google.cloud.notebooks_v1.types.environment import Environment
32+
from google.cloud.notebooks_v1.types.environment import VmImage
33+
from google.cloud.notebooks_v1.types.event import Event
34+
from google.cloud.notebooks_v1.types.execution import Execution
35+
from google.cloud.notebooks_v1.types.execution import ExecutionTemplate
36+
from google.cloud.notebooks_v1.types.instance import Instance
37+
from google.cloud.notebooks_v1.types.instance import ReservationAffinity
38+
from google.cloud.notebooks_v1.types.instance_config import InstanceConfig
39+
from google.cloud.notebooks_v1.types.managed_service import CreateRuntimeRequest
40+
from google.cloud.notebooks_v1.types.managed_service import DeleteRuntimeRequest
41+
from google.cloud.notebooks_v1.types.managed_service import GetRuntimeRequest
42+
from google.cloud.notebooks_v1.types.managed_service import ListRuntimesRequest
43+
from google.cloud.notebooks_v1.types.managed_service import ListRuntimesResponse
44+
from google.cloud.notebooks_v1.types.managed_service import ReportRuntimeEventRequest
45+
from google.cloud.notebooks_v1.types.managed_service import ResetRuntimeRequest
46+
from google.cloud.notebooks_v1.types.managed_service import StartRuntimeRequest
47+
from google.cloud.notebooks_v1.types.managed_service import StopRuntimeRequest
48+
from google.cloud.notebooks_v1.types.managed_service import SwitchRuntimeRequest
49+
from google.cloud.notebooks_v1.types.runtime import EncryptionConfig
50+
from google.cloud.notebooks_v1.types.runtime import LocalDisk
51+
from google.cloud.notebooks_v1.types.runtime import LocalDiskInitializeParams
52+
from google.cloud.notebooks_v1.types.runtime import Runtime
53+
from google.cloud.notebooks_v1.types.runtime import RuntimeAcceleratorConfig
54+
from google.cloud.notebooks_v1.types.runtime import RuntimeAccessConfig
55+
from google.cloud.notebooks_v1.types.runtime import RuntimeMetrics
56+
from google.cloud.notebooks_v1.types.runtime import RuntimeShieldedInstanceConfig
57+
from google.cloud.notebooks_v1.types.runtime import RuntimeSoftwareConfig
58+
from google.cloud.notebooks_v1.types.runtime import VirtualMachine
59+
from google.cloud.notebooks_v1.types.runtime import VirtualMachineConfig
60+
from google.cloud.notebooks_v1.types.schedule import Schedule
61+
from google.cloud.notebooks_v1.types.service import CreateEnvironmentRequest
62+
from google.cloud.notebooks_v1.types.service import CreateExecutionRequest
63+
from google.cloud.notebooks_v1.types.service import CreateInstanceRequest
64+
from google.cloud.notebooks_v1.types.service import CreateScheduleRequest
65+
from google.cloud.notebooks_v1.types.service import DeleteEnvironmentRequest
66+
from google.cloud.notebooks_v1.types.service import DeleteExecutionRequest
67+
from google.cloud.notebooks_v1.types.service import DeleteInstanceRequest
68+
from google.cloud.notebooks_v1.types.service import DeleteScheduleRequest
69+
from google.cloud.notebooks_v1.types.service import GetEnvironmentRequest
70+
from google.cloud.notebooks_v1.types.service import GetExecutionRequest
71+
from google.cloud.notebooks_v1.types.service import GetInstanceHealthRequest
72+
from google.cloud.notebooks_v1.types.service import GetInstanceHealthResponse
73+
from google.cloud.notebooks_v1.types.service import GetInstanceRequest
74+
from google.cloud.notebooks_v1.types.service import GetScheduleRequest
75+
from google.cloud.notebooks_v1.types.service import IsInstanceUpgradeableRequest
76+
from google.cloud.notebooks_v1.types.service import IsInstanceUpgradeableResponse
77+
from google.cloud.notebooks_v1.types.service import ListEnvironmentsRequest
78+
from google.cloud.notebooks_v1.types.service import ListEnvironmentsResponse
79+
from google.cloud.notebooks_v1.types.service import ListExecutionsRequest
80+
from google.cloud.notebooks_v1.types.service import ListExecutionsResponse
81+
from google.cloud.notebooks_v1.types.service import ListInstancesRequest
82+
from google.cloud.notebooks_v1.types.service import ListInstancesResponse
83+
from google.cloud.notebooks_v1.types.service import ListSchedulesRequest
84+
from google.cloud.notebooks_v1.types.service import ListSchedulesResponse
85+
from google.cloud.notebooks_v1.types.service import OperationMetadata
86+
from google.cloud.notebooks_v1.types.service import RegisterInstanceRequest
87+
from google.cloud.notebooks_v1.types.service import ReportInstanceInfoRequest
88+
from google.cloud.notebooks_v1.types.service import ResetInstanceRequest
89+
from google.cloud.notebooks_v1.types.service import RollbackInstanceRequest
90+
from google.cloud.notebooks_v1.types.service import SetInstanceAcceleratorRequest
91+
from google.cloud.notebooks_v1.types.service import SetInstanceLabelsRequest
92+
from google.cloud.notebooks_v1.types.service import SetInstanceMachineTypeRequest
93+
from google.cloud.notebooks_v1.types.service import StartInstanceRequest
94+
from google.cloud.notebooks_v1.types.service import StopInstanceRequest
95+
from google.cloud.notebooks_v1.types.service import TriggerScheduleRequest
96+
from google.cloud.notebooks_v1.types.service import UpdateInstanceConfigRequest
97+
from google.cloud.notebooks_v1.types.service import UpdateShieldedInstanceConfigRequest
98+
from google.cloud.notebooks_v1.types.service import UpgradeInstanceInternalRequest
99+
from google.cloud.notebooks_v1.types.service import UpgradeInstanceRequest
51100

52101
__all__ = (
102+
"ManagedNotebookServiceClient",
103+
"ManagedNotebookServiceAsyncClient",
53104
"NotebookServiceClient",
54105
"NotebookServiceAsyncClient",
55106
"ContainerImage",
56107
"Environment",
57108
"VmImage",
109+
"Event",
110+
"Execution",
111+
"ExecutionTemplate",
58112
"Instance",
113+
"ReservationAffinity",
114+
"InstanceConfig",
115+
"CreateRuntimeRequest",
116+
"DeleteRuntimeRequest",
117+
"GetRuntimeRequest",
118+
"ListRuntimesRequest",
119+
"ListRuntimesResponse",
120+
"ReportRuntimeEventRequest",
121+
"ResetRuntimeRequest",
122+
"StartRuntimeRequest",
123+
"StopRuntimeRequest",
124+
"SwitchRuntimeRequest",
125+
"EncryptionConfig",
126+
"LocalDisk",
127+
"LocalDiskInitializeParams",
128+
"Runtime",
129+
"RuntimeAcceleratorConfig",
130+
"RuntimeAccessConfig",
131+
"RuntimeMetrics",
132+
"RuntimeShieldedInstanceConfig",
133+
"RuntimeSoftwareConfig",
134+
"VirtualMachine",
135+
"VirtualMachineConfig",
136+
"Schedule",
59137
"CreateEnvironmentRequest",
138+
"CreateExecutionRequest",
60139
"CreateInstanceRequest",
140+
"CreateScheduleRequest",
61141
"DeleteEnvironmentRequest",
142+
"DeleteExecutionRequest",
62143
"DeleteInstanceRequest",
144+
"DeleteScheduleRequest",
63145
"GetEnvironmentRequest",
146+
"GetExecutionRequest",
147+
"GetInstanceHealthRequest",
148+
"GetInstanceHealthResponse",
64149
"GetInstanceRequest",
150+
"GetScheduleRequest",
65151
"IsInstanceUpgradeableRequest",
66152
"IsInstanceUpgradeableResponse",
67153
"ListEnvironmentsRequest",
68154
"ListEnvironmentsResponse",
155+
"ListExecutionsRequest",
156+
"ListExecutionsResponse",
69157
"ListInstancesRequest",
70158
"ListInstancesResponse",
159+
"ListSchedulesRequest",
160+
"ListSchedulesResponse",
71161
"OperationMetadata",
72162
"RegisterInstanceRequest",
73163
"ReportInstanceInfoRequest",
74164
"ResetInstanceRequest",
165+
"RollbackInstanceRequest",
75166
"SetInstanceAcceleratorRequest",
76167
"SetInstanceLabelsRequest",
77168
"SetInstanceMachineTypeRequest",
78169
"StartInstanceRequest",
79170
"StopInstanceRequest",
171+
"TriggerScheduleRequest",
172+
"UpdateInstanceConfigRequest",
173+
"UpdateShieldedInstanceConfigRequest",
80174
"UpgradeInstanceInternalRequest",
81175
"UpgradeInstanceRequest",
82176
)

0 commit comments

Comments
 (0)