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

Commit 7a84b3b

Browse files
chore: upgrade gapic-generator-python to 0.46.3 (#44)
PiperOrigin-RevId: 373649163 Source-Link: googleapis/googleapis@7e1b14e Source-Link: https://github.com/googleapis/googleapis-gen/commit/0a3c7d272d697796db75857bac73905c68e498c3 fix: add async client to %name_%version/init.py chore: add autogenerated snippets chore: remove auth, policy, and options from the reserved names list feat: support self-signed JWT flow for service accounts chore: enable GAPIC metadata generation chore: sort subpackages in %namespace/%name/init.py
1 parent 0571859 commit 7a84b3b

File tree

22 files changed

+1050
-832
lines changed

22 files changed

+1050
-832
lines changed

docs/notebooks_v1beta1/notebook_service.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ NotebookService
55
:members:
66
:inherited-members:
77

8-
98
.. automodule:: google.cloud.notebooks_v1beta1.services.notebook_service.pagers
109
:members:
1110
:inherited-members:

google/cloud/notebooks/__init__.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,12 +14,13 @@
1514
# limitations under the License.
1615
#
1716

18-
from google.cloud.notebooks_v1beta1.services.notebook_service.async_client import (
19-
NotebookServiceAsyncClient,
20-
)
2117
from google.cloud.notebooks_v1beta1.services.notebook_service.client import (
2218
NotebookServiceClient,
2319
)
20+
from google.cloud.notebooks_v1beta1.services.notebook_service.async_client import (
21+
NotebookServiceAsyncClient,
22+
)
23+
2424
from google.cloud.notebooks_v1beta1.types.environment import ContainerImage
2525
from google.cloud.notebooks_v1beta1.types.environment import Environment
2626
from google.cloud.notebooks_v1beta1.types.environment import VmImage
@@ -50,23 +50,24 @@
5050
from google.cloud.notebooks_v1beta1.types.service import UpgradeInstanceRequest
5151

5252
__all__ = (
53+
"NotebookServiceClient",
54+
"NotebookServiceAsyncClient",
5355
"ContainerImage",
56+
"Environment",
57+
"VmImage",
58+
"Instance",
5459
"CreateEnvironmentRequest",
5560
"CreateInstanceRequest",
5661
"DeleteEnvironmentRequest",
5762
"DeleteInstanceRequest",
58-
"Environment",
5963
"GetEnvironmentRequest",
6064
"GetInstanceRequest",
61-
"Instance",
6265
"IsInstanceUpgradeableRequest",
6366
"IsInstanceUpgradeableResponse",
6467
"ListEnvironmentsRequest",
6568
"ListEnvironmentsResponse",
6669
"ListInstancesRequest",
6770
"ListInstancesResponse",
68-
"NotebookServiceAsyncClient",
69-
"NotebookServiceClient",
7071
"OperationMetadata",
7172
"RegisterInstanceRequest",
7273
"ReportInstanceInfoRequest",
@@ -78,5 +79,4 @@
7879
"StopInstanceRequest",
7980
"UpgradeInstanceInternalRequest",
8081
"UpgradeInstanceRequest",
81-
"VmImage",
8282
)

google/cloud/notebooks_v1beta1/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +15,8 @@
1615
#
1716

1817
from .services.notebook_service import NotebookServiceClient
18+
from .services.notebook_service import NotebookServiceAsyncClient
19+
1920
from .types.environment import ContainerImage
2021
from .types.environment import Environment
2122
from .types.environment import VmImage
@@ -44,8 +45,8 @@
4445
from .types.service import UpgradeInstanceInternalRequest
4546
from .types.service import UpgradeInstanceRequest
4647

47-
4848
__all__ = (
49+
"NotebookServiceAsyncClient",
4950
"ContainerImage",
5051
"CreateEnvironmentRequest",
5152
"CreateInstanceRequest",
@@ -61,6 +62,7 @@
6162
"ListEnvironmentsResponse",
6263
"ListInstancesRequest",
6364
"ListInstancesResponse",
65+
"NotebookServiceClient",
6466
"OperationMetadata",
6567
"RegisterInstanceRequest",
6668
"ReportInstanceInfoRequest",
@@ -73,5 +75,4 @@
7375
"UpgradeInstanceInternalRequest",
7476
"UpgradeInstanceRequest",
7577
"VmImage",
76-
"NotebookServiceClient",
7778
)
Lines changed: 213 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,213 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.cloud.notebooks_v1beta1",
5+
"protoPackage": "google.cloud.notebooks.v1beta1",
6+
"schema": "1.0",
7+
"services": {
8+
"NotebookService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "NotebookServiceClient",
12+
"rpcs": {
13+
"CreateEnvironment": {
14+
"methods": [
15+
"create_environment"
16+
]
17+
},
18+
"CreateInstance": {
19+
"methods": [
20+
"create_instance"
21+
]
22+
},
23+
"DeleteEnvironment": {
24+
"methods": [
25+
"delete_environment"
26+
]
27+
},
28+
"DeleteInstance": {
29+
"methods": [
30+
"delete_instance"
31+
]
32+
},
33+
"GetEnvironment": {
34+
"methods": [
35+
"get_environment"
36+
]
37+
},
38+
"GetInstance": {
39+
"methods": [
40+
"get_instance"
41+
]
42+
},
43+
"IsInstanceUpgradeable": {
44+
"methods": [
45+
"is_instance_upgradeable"
46+
]
47+
},
48+
"ListEnvironments": {
49+
"methods": [
50+
"list_environments"
51+
]
52+
},
53+
"ListInstances": {
54+
"methods": [
55+
"list_instances"
56+
]
57+
},
58+
"RegisterInstance": {
59+
"methods": [
60+
"register_instance"
61+
]
62+
},
63+
"ReportInstanceInfo": {
64+
"methods": [
65+
"report_instance_info"
66+
]
67+
},
68+
"ResetInstance": {
69+
"methods": [
70+
"reset_instance"
71+
]
72+
},
73+
"SetInstanceAccelerator": {
74+
"methods": [
75+
"set_instance_accelerator"
76+
]
77+
},
78+
"SetInstanceLabels": {
79+
"methods": [
80+
"set_instance_labels"
81+
]
82+
},
83+
"SetInstanceMachineType": {
84+
"methods": [
85+
"set_instance_machine_type"
86+
]
87+
},
88+
"StartInstance": {
89+
"methods": [
90+
"start_instance"
91+
]
92+
},
93+
"StopInstance": {
94+
"methods": [
95+
"stop_instance"
96+
]
97+
},
98+
"UpgradeInstance": {
99+
"methods": [
100+
"upgrade_instance"
101+
]
102+
},
103+
"UpgradeInstanceInternal": {
104+
"methods": [
105+
"upgrade_instance_internal"
106+
]
107+
}
108+
}
109+
},
110+
"grpc-async": {
111+
"libraryClient": "NotebookServiceAsyncClient",
112+
"rpcs": {
113+
"CreateEnvironment": {
114+
"methods": [
115+
"create_environment"
116+
]
117+
},
118+
"CreateInstance": {
119+
"methods": [
120+
"create_instance"
121+
]
122+
},
123+
"DeleteEnvironment": {
124+
"methods": [
125+
"delete_environment"
126+
]
127+
},
128+
"DeleteInstance": {
129+
"methods": [
130+
"delete_instance"
131+
]
132+
},
133+
"GetEnvironment": {
134+
"methods": [
135+
"get_environment"
136+
]
137+
},
138+
"GetInstance": {
139+
"methods": [
140+
"get_instance"
141+
]
142+
},
143+
"IsInstanceUpgradeable": {
144+
"methods": [
145+
"is_instance_upgradeable"
146+
]
147+
},
148+
"ListEnvironments": {
149+
"methods": [
150+
"list_environments"
151+
]
152+
},
153+
"ListInstances": {
154+
"methods": [
155+
"list_instances"
156+
]
157+
},
158+
"RegisterInstance": {
159+
"methods": [
160+
"register_instance"
161+
]
162+
},
163+
"ReportInstanceInfo": {
164+
"methods": [
165+
"report_instance_info"
166+
]
167+
},
168+
"ResetInstance": {
169+
"methods": [
170+
"reset_instance"
171+
]
172+
},
173+
"SetInstanceAccelerator": {
174+
"methods": [
175+
"set_instance_accelerator"
176+
]
177+
},
178+
"SetInstanceLabels": {
179+
"methods": [
180+
"set_instance_labels"
181+
]
182+
},
183+
"SetInstanceMachineType": {
184+
"methods": [
185+
"set_instance_machine_type"
186+
]
187+
},
188+
"StartInstance": {
189+
"methods": [
190+
"start_instance"
191+
]
192+
},
193+
"StopInstance": {
194+
"methods": [
195+
"stop_instance"
196+
]
197+
},
198+
"UpgradeInstance": {
199+
"methods": [
200+
"upgrade_instance"
201+
]
202+
},
203+
"UpgradeInstanceInternal": {
204+
"methods": [
205+
"upgrade_instance_internal"
206+
]
207+
}
208+
}
209+
}
210+
}
211+
}
212+
}
213+
}

google/cloud/notebooks_v1beta1/services/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

google/cloud/notebooks_v1beta1/services/notebook_service/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +13,6 @@
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
1615
#
17-
1816
from .client import NotebookServiceClient
1917
from .async_client import NotebookServiceAsyncClient
2018

0 commit comments

Comments
 (0)