Skip to content

Commit ad329f8

Browse files
Google APIscopybara-github
authored andcommitted
feat: clients for Notebooks API V2
docs: supports Workbench Instances https://cloud.google.com/vertex-ai/docs/workbench/reference/rest PiperOrigin-RevId: 558178233
1 parent 2937457 commit ad329f8

7 files changed

Lines changed: 77 additions & 23 deletions

File tree

google/cloud/notebooks/logging/v1/BUILD.bazel

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,22 @@ proto_library(
2323
##############################################################################
2424
load(
2525
"@com_google_googleapis_imports//:imports.bzl",
26-
"java_grpc_library",
2726
"java_proto_library",
27+
"java_gapic_assembly_gradle_pkg",
2828
)
2929

3030
java_proto_library(
3131
name = "logging_java_proto",
3232
deps = [":logging_proto"],
3333
)
3434

35-
java_grpc_library(
36-
name = "logging_java_grpc",
37-
srcs = [":logging_proto"],
38-
deps = [":logging_java_proto"],
35+
# Open Source Packages
36+
java_gapic_assembly_gradle_pkg(
37+
name = "google-cloud-notebooks-logging-v1-java",
38+
deps = [
39+
":logging_proto",
40+
":logging_java_proto",
41+
],
3942
)
4043

4144
##############################################################################
@@ -58,7 +61,7 @@ go_proto_library(
5861
)
5962

6063
go_gapic_assembly_pkg(
61-
name = "logging-v1-go",
64+
name = "google-cloud-notebooks-logging-v1-go",
6265
deps = [
6366
":logging_go_proto",
6467
],
@@ -108,7 +111,7 @@ php_proto_library(
108111
)
109112

110113
php_gapic_assembly_pkg(
111-
name = "logging-v1-php",
114+
name = "google-cloud-notebooks-logging-v1-php",
112115
deps = [
113116
":logging_php_proto",
114117
],
@@ -139,7 +142,7 @@ ruby_grpc_library(
139142
##############################################################################
140143
load(
141144
"@com_google_googleapis_imports//:imports.bzl",
142-
"csharp_grpc_library",
145+
"csharp_gapic_assembly_pkg",
143146
"csharp_proto_library",
144147
)
145148

@@ -148,10 +151,14 @@ csharp_proto_library(
148151
deps = [":logging_proto"],
149152
)
150153

151-
csharp_grpc_library(
152-
name = "logging_csharp_grpc",
153-
srcs = [":logging_proto"],
154-
deps = [":logging_csharp_proto"],
154+
# Open Source Packages
155+
csharp_gapic_assembly_pkg(
156+
name = "google-cloud-notebooks-logging-v1-csharp",
157+
package_name = "Google.Cloud.Notebooks.Logging.V1",
158+
generate_nongapic_package = True,
159+
deps = [
160+
":logging_csharp_proto",
161+
],
155162
)
156163

157164
##############################################################################

google/cloud/notebooks/logging/v1/runtime_log.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package google.cloud.notebooks.logging.v1;
1818

1919
import "google/api/field_behavior.proto";
2020

21+
option csharp_namespace = "Google.Cloud.Notebooks.Logging.V1";
2122
option go_package = "cloud.google.com/go/notebooks/logging/apiv1/loggingpb;loggingpb";
2223
option java_multiple_files = true;
2324
option java_outer_classname = "RuntimeLogProto";

google/cloud/notebooks/v1/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,6 @@ load(
346346

347347
csharp_proto_library(
348348
name = "notebooks_csharp_proto",
349-
extra_opts = [],
350349
deps = [":notebooks_proto"],
351350
)
352351

google/cloud/notebooks/v1beta1/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ load(
337337

338338
csharp_proto_library(
339339
name = "notebooks_csharp_proto",
340-
extra_opts = [],
341340
deps = [":notebooks_proto"],
342341
)
343342

google/cloud/notebooks/v2/BUILD.bazel

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ proto_library_with_info(
4343
name = "notebooks_proto_with_info",
4444
deps = [
4545
":notebooks_proto",
46-
"//google/cloud/location:location_proto",
4746
"//google/cloud:common_resources_proto",
47+
"//google/cloud/location:location_proto",
4848
"//google/iam/v1:iam_policy_proto",
4949
],
5050
)
@@ -105,14 +105,14 @@ java_gapic_test(
105105
# Open Source Packages
106106
java_gapic_assembly_gradle_pkg(
107107
name = "google-cloud-notebooks-v2-java",
108+
include_samples = True,
108109
transport = "grpc+rest",
109110
deps = [
110111
":notebooks_java_gapic",
111112
":notebooks_java_grpc",
112113
":notebooks_java_proto",
113114
":notebooks_proto",
114115
],
115-
include_samples = True,
116116
)
117117

118118
##############################################################################
@@ -161,9 +161,9 @@ go_gapic_assembly_pkg(
161161
name = "gapi-cloud-notebooks-v2-go",
162162
deps = [
163163
":notebooks_go_gapic",
164-
":notebooks_go_gapic_srcjar-test.srcjar",
165164
":notebooks_go_gapic_srcjar-metadata.srcjar",
166165
":notebooks_go_gapic_srcjar-snippets.srcjar",
166+
":notebooks_go_gapic_srcjar-test.srcjar",
167167
":notebooks_go_proto",
168168
],
169169
)
@@ -227,8 +227,8 @@ php_gapic_library(
227227
name = "notebooks_php_gapic",
228228
srcs = [":notebooks_proto_with_info"],
229229
grpc_service_config = "notebooks_grpc_service_config.json",
230-
rest_numeric_enums = True,
231230
migration_mode = "NEW_SURFACE_ONLY",
231+
rest_numeric_enums = True,
232232
service_yaml = "notebooks_v2.yaml",
233233
transport = "grpc+rest",
234234
deps = [
@@ -280,8 +280,8 @@ nodejs_gapic_assembly_pkg(
280280
##############################################################################
281281
load(
282282
"@com_google_googleapis_imports//:imports.bzl",
283-
"ruby_gapic_assembly_pkg",
284283
"ruby_cloud_gapic_library",
284+
"ruby_gapic_assembly_pkg",
285285
"ruby_grpc_library",
286286
"ruby_proto_library",
287287
)
@@ -300,9 +300,7 @@ ruby_grpc_library(
300300
ruby_cloud_gapic_library(
301301
name = "notebooks_ruby_gapic",
302302
srcs = [":notebooks_proto_with_info"],
303-
extra_protoc_parameters = [
304-
"ruby-cloud-gem-name=google-cloud-notebooks-v2",
305-
],
303+
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-notebooks-v2"],
306304
grpc_service_config = "notebooks_grpc_service_config.json",
307305
rest_numeric_enums = True,
308306
service_yaml = "notebooks_v2.yaml",
@@ -336,7 +334,6 @@ load(
336334

337335
csharp_proto_library(
338336
name = "notebooks_csharp_proto",
339-
extra_opts = [],
340337
deps = [":notebooks_proto"],
341338
)
342339

google/cloud/notebooks/v2/notebooks_v2.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,47 @@ authentication:
105105
oauth:
106106
canonical_scopes: |-
107107
https://www.googleapis.com/auth/cloud-platform
108+
109+
publishing:
110+
new_issue_uri: https://issuetracker.google.com/issues/new?component=1392625
111+
documentation_uri: https://cloud.google.com/vertex-ai/docs/workbench/instances/introduction
112+
api_short_name: notebooks
113+
github_label: 'api: notebooks'
114+
doc_tag_prefix: notebooks
115+
organization: CLOUD
116+
library_settings:
117+
- version: google.cloud.notebooks.v2
118+
launch_stage: GA
119+
java_settings:
120+
common:
121+
destinations:
122+
- PACKAGE_MANAGER
123+
cpp_settings:
124+
common:
125+
destinations:
126+
- PACKAGE_MANAGER
127+
php_settings:
128+
common:
129+
destinations:
130+
- PACKAGE_MANAGER
131+
python_settings:
132+
common:
133+
destinations:
134+
- PACKAGE_MANAGER
135+
node_settings:
136+
common:
137+
destinations:
138+
- PACKAGE_MANAGER
139+
dotnet_settings:
140+
common:
141+
destinations:
142+
- PACKAGE_MANAGER
143+
ruby_settings:
144+
common:
145+
destinations:
146+
- PACKAGE_MANAGER
147+
go_settings:
148+
common:
149+
destinations:
150+
- PACKAGE_MANAGER
151+
proto_reference_documentation_uri: https://cloud.google.com/vertex-ai/docs/workbench/reference/rest

google/cloud/notebooks/v2/service.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,13 @@ message ListInstancesRequest {
233233
// Optional. A previous returned page token that can be used to continue
234234
// listing from the last result.
235235
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
236+
237+
// Optional. Sort results. Supported values are "name", "name desc" or ""
238+
// (unsorted).
239+
string order_by = 4 [(google.api.field_behavior) = OPTIONAL];
240+
241+
// Optional. List filter.
242+
string filter = 5 [(google.api.field_behavior) = OPTIONAL];
236243
}
237244

238245
// Response for listing notebook instances.

0 commit comments

Comments
 (0)