google-cloud-notebooks-v2 0.a → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/README.md +144 -8
- data/lib/google/cloud/notebooks/v2/bindings_override.rb +135 -0
- data/lib/google/cloud/notebooks/v2/diagnostic_config_pb.rb +44 -0
- data/lib/google/cloud/notebooks/v2/event_pb.rb +47 -0
- data/lib/google/cloud/notebooks/v2/gce_setup_pb.rb +57 -0
- data/lib/google/cloud/notebooks/v2/instance_pb.rb +54 -0
- data/lib/google/cloud/notebooks/v2/notebook_service/client.rb +1582 -0
- data/lib/google/cloud/notebooks/v2/notebook_service/credentials.rb +47 -0
- data/lib/google/cloud/notebooks/v2/notebook_service/operations.rb +770 -0
- data/lib/google/cloud/notebooks/v2/notebook_service/paths.rb +69 -0
- data/lib/google/cloud/notebooks/v2/notebook_service/rest/client.rb +1227 -0
- data/lib/google/cloud/notebooks/v2/notebook_service/rest/operations.rb +795 -0
- data/lib/google/cloud/notebooks/v2/notebook_service/rest/service_stub.rb +764 -0
- data/lib/google/cloud/notebooks/v2/notebook_service/rest.rb +54 -0
- data/lib/google/cloud/notebooks/v2/notebook_service.rb +56 -0
- data/lib/google/cloud/notebooks/v2/rest.rb +38 -0
- data/lib/google/cloud/notebooks/v2/service_pb.rb +71 -0
- data/lib/google/cloud/notebooks/v2/service_services_pb.rb +67 -0
- data/lib/google/cloud/notebooks/v2/version.rb +7 -2
- data/lib/google/cloud/notebooks/v2.rb +45 -0
- data/lib/google-cloud-notebooks-v2.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/notebooks/v2/diagnostic_config.rb +63 -0
- data/proto_docs/google/cloud/notebooks/v2/event.rb +79 -0
- data/proto_docs/google/cloud/notebooks/v2/gce_setup.rb +352 -0
- data/proto_docs/google/cloud/notebooks/v2/instance.rb +233 -0
- data/proto_docs/google/cloud/notebooks/v2/service.rb +263 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +144 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +237 -13
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/notebooks/v2/version"
|
24
|
+
require "google/cloud/notebooks/v2/bindings_override"
|
25
|
+
|
26
|
+
require "google/cloud/notebooks/v2/notebook_service/credentials"
|
27
|
+
require "google/cloud/notebooks/v2/notebook_service/paths"
|
28
|
+
require "google/cloud/notebooks/v2/notebook_service/rest/operations"
|
29
|
+
require "google/cloud/notebooks/v2/notebook_service/rest/client"
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module Notebooks
|
34
|
+
module V2
|
35
|
+
##
|
36
|
+
# API v2 service for Workbench Notebooks Instances.
|
37
|
+
#
|
38
|
+
# To load this service and instantiate a REST client:
|
39
|
+
#
|
40
|
+
# require "google/cloud/notebooks/v2/notebook_service/rest"
|
41
|
+
# client = ::Google::Cloud::Notebooks::V2::NotebookService::Rest::Client.new
|
42
|
+
#
|
43
|
+
module NotebookService
|
44
|
+
# Client for the REST transport
|
45
|
+
module Rest
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
54
|
+
require "google/cloud/notebooks/v2/notebook_service/rest/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/notebooks/v2/version"
|
24
|
+
|
25
|
+
require "google/cloud/notebooks/v2/notebook_service/credentials"
|
26
|
+
require "google/cloud/notebooks/v2/notebook_service/paths"
|
27
|
+
require "google/cloud/notebooks/v2/notebook_service/operations"
|
28
|
+
require "google/cloud/notebooks/v2/notebook_service/client"
|
29
|
+
require "google/cloud/notebooks/v2/notebook_service/rest"
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module Notebooks
|
34
|
+
module V2
|
35
|
+
##
|
36
|
+
# API v2 service for Workbench Notebooks Instances.
|
37
|
+
#
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
39
|
+
#
|
40
|
+
# require "google/cloud/notebooks/v2/notebook_service"
|
41
|
+
# client = ::Google::Cloud::Notebooks::V2::NotebookService::Client.new
|
42
|
+
#
|
43
|
+
# @example Load this service and instantiate a REST client
|
44
|
+
#
|
45
|
+
# require "google/cloud/notebooks/v2/notebook_service/rest"
|
46
|
+
# client = ::Google::Cloud::Notebooks::V2::NotebookService::Rest::Client.new
|
47
|
+
#
|
48
|
+
module NotebookService
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
helper_path = ::File.join __dir__, "notebook_service", "helpers.rb"
|
56
|
+
require "google/cloud/notebooks/v2/notebook_service/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/notebooks/v2/notebook_service/rest"
|
20
|
+
require "google/cloud/notebooks/v2/bindings_override"
|
21
|
+
require "google/cloud/notebooks/v2/version"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module Notebooks
|
26
|
+
##
|
27
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
28
|
+
#
|
29
|
+
# @example
|
30
|
+
#
|
31
|
+
# require "google/cloud/notebooks/v2/rest"
|
32
|
+
# client = ::Google::Cloud::Notebooks::V2::NotebookService::Rest::Client.new
|
33
|
+
#
|
34
|
+
module V2
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/notebooks/v2/service.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
11
|
+
require 'google/cloud/notebooks/v2/diagnostic_config_pb'
|
12
|
+
require 'google/cloud/notebooks/v2/instance_pb'
|
13
|
+
require 'google/longrunning/operations_pb'
|
14
|
+
require 'google/protobuf/empty_pb'
|
15
|
+
require 'google/protobuf/field_mask_pb'
|
16
|
+
require 'google/protobuf/timestamp_pb'
|
17
|
+
|
18
|
+
|
19
|
+
descriptor_data = "\n\'google/cloud/notebooks/v2/service.proto\x12\x19google.cloud.notebooks.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x31google/cloud/notebooks/v2/diagnostic_config.proto\x1a(google/cloud/notebooks/v2/instance.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xef\x01\n\x11OperationMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06target\x18\x03 \x01(\t\x12\x0c\n\x04verb\x18\x04 \x01(\t\x12\x16\n\x0estatus_message\x18\x05 \x01(\t\x12\x1e\n\x16requested_cancellation\x18\x06 \x01(\x08\x12\x13\n\x0b\x61pi_version\x18\x07 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x08 \x01(\t\"\xae\x01\n\x14ListInstancesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!notebooks.googleapis.com/Instance\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"}\n\x15ListInstancesResponse\x12\x36\n\tinstances\x18\x01 \x03(\x0b\x32#.google.cloud.notebooks.v2.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"M\n\x12GetInstanceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!notebooks.googleapis.com/Instance\"\xc1\x01\n\x15\x43reateInstanceRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!notebooks.googleapis.com/Instance\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\x08instance\x18\x03 \x01(\x0b\x32#.google.cloud.notebooks.v2.InstanceB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xa2\x01\n\x15UpdateInstanceRequest\x12:\n\x08instance\x18\x01 \x01(\x0b\x32#.google.cloud.notebooks.v2.InstanceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"i\n\x15\x44\x65leteInstanceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!notebooks.googleapis.com/Instance\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\")\n\x14StartInstanceRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"(\n\x13StopInstanceRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\")\n\x14ResetInstanceRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"C\n!CheckInstanceUpgradabilityRequest\x12\x1e\n\x11notebook_instance\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x7f\n\"CheckInstanceUpgradabilityResponse\x12\x13\n\x0bupgradeable\x18\x01 \x01(\x08\x12\x17\n\x0fupgrade_version\x18\x02 \x01(\t\x12\x14\n\x0cupgrade_info\x18\x03 \x01(\t\x12\x15\n\rupgrade_image\x18\x04 \x01(\t\"+\n\x16UpgradeInstanceRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x8d\x01\n\x17RollbackInstanceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!notebooks.googleapis.com/Instance\x12\x1c\n\x0ftarget_snapshot\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0brevision_id\x18\x03 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x02\"\xbd\x01\n\x17\x44iagnoseInstanceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!notebooks.googleapis.com/Instance\x12K\n\x11\x64iagnostic_config\x18\x02 \x01(\x0b\x32+.google.cloud.notebooks.v2.DiagnosticConfigB\x03\xe0\x41\x02\x12\x1c\n\x0ftimeout_minutes\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x32\xfa\x13\n\x0fNotebookService\x12\xb2\x01\n\rListInstances\x12/.google.cloud.notebooks.v2.ListInstancesRequest\x1a\x30.google.cloud.notebooks.v2.ListInstancesResponse\">\x82\xd3\xe4\x93\x02/\x12-/v2/{parent=projects/*/locations/*}/instances\xda\x41\x06parent\x12\x9f\x01\n\x0bGetInstance\x12-.google.cloud.notebooks.v2.GetInstanceRequest\x1a#.google.cloud.notebooks.v2.Instance\"<\x82\xd3\xe4\x93\x02/\x12-/v2/{name=projects/*/locations/*/instances/*}\xda\x41\x04name\x12\xe0\x01\n\x0e\x43reateInstance\x12\x30.google.cloud.notebooks.v2.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"}\x82\xd3\xe4\x93\x02\x39\"-/v2/{parent=projects/*/locations/*}/instances:\x08instance\xda\x41\x1bparent,instance,instance_id\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xe2\x01\n\x0eUpdateInstance\x12\x30.google.cloud.notebooks.v2.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x7f\x82\xd3\xe4\x93\x02\x42\x32\x36/v2/{instance.name=projects/*/locations/*/instances/*}:\x08instance\xda\x41\x14instance,update_mask\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xcc\x01\n\x0e\x44\x65leteInstance\x12\x30.google.cloud.notebooks.v2.DeleteInstanceRequest\x1a\x1d.google.longrunning.Operation\"i\x82\xd3\xe4\x93\x02/*-/v2/{name=projects/*/locations/*/instances/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xbf\x01\n\rStartInstance\x12/.google.cloud.notebooks.v2.StartInstanceRequest\x1a\x1d.google.longrunning.Operation\"^\x82\xd3\xe4\x93\x02\x38\"3/v2/{name=projects/*/locations/*/instances/*}:start:\x01*\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xbc\x01\n\x0cStopInstance\x12..google.cloud.notebooks.v2.StopInstanceRequest\x1a\x1d.google.longrunning.Operation\"]\x82\xd3\xe4\x93\x02\x37\"2/v2/{name=projects/*/locations/*/instances/*}:stop:\x01*\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xbf\x01\n\rResetInstance\x12/.google.cloud.notebooks.v2.ResetInstanceRequest\x1a\x1d.google.longrunning.Operation\"^\x82\xd3\xe4\x93\x02\x38\"3/v2/{name=projects/*/locations/*/instances/*}:reset:\x01*\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xf0\x01\n\x1a\x43heckInstanceUpgradability\x12<.google.cloud.notebooks.v2.CheckInstanceUpgradabilityRequest\x1a=.google.cloud.notebooks.v2.CheckInstanceUpgradabilityResponse\"U\x82\xd3\xe4\x93\x02O\x12M/v2/{notebook_instance=projects/*/locations/*/instances/*}:checkUpgradability\x12\xc5\x01\n\x0fUpgradeInstance\x12\x31.google.cloud.notebooks.v2.UpgradeInstanceRequest\x1a\x1d.google.longrunning.Operation\"`\x82\xd3\xe4\x93\x02:\"5/v2/{name=projects/*/locations/*/instances/*}:upgrade:\x01*\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xc8\x01\n\x10RollbackInstance\x12\x32.google.cloud.notebooks.v2.RollbackInstanceRequest\x1a\x1d.google.longrunning.Operation\"a\x82\xd3\xe4\x93\x02;\"6/v2/{name=projects/*/locations/*/instances/*}:rollback:\x01*\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xe1\x01\n\x10\x44iagnoseInstance\x12\x32.google.cloud.notebooks.v2.DiagnoseInstanceRequest\x1a\x1d.google.longrunning.Operation\"z\x82\xd3\xe4\x93\x02;\"6/v2/{name=projects/*/locations/*/instances/*}:diagnose:\x01*\xda\x41\x16name,diagnostic_config\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x1aL\xca\x41\x18notebooks.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xc3\x01\n\x1d\x63om.google.cloud.notebooks.v2B\x0cServiceProtoP\x01Z;cloud.google.com/go/notebooks/apiv2/notebookspb;notebookspb\xaa\x02\x19Google.Cloud.Notebooks.V2\xca\x02\x19Google\\Cloud\\Notebooks\\V2\xea\x02\x1cGoogle::Cloud::Notebooks::V2b\x06proto3"
|
20
|
+
|
21
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
|
+
|
23
|
+
begin
|
24
|
+
pool.add_serialized_file(descriptor_data)
|
25
|
+
rescue TypeError => e
|
26
|
+
# Compatibility code: will be removed in the next major version.
|
27
|
+
require 'google/protobuf/descriptor_pb'
|
28
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
29
|
+
parsed.clear_dependency
|
30
|
+
serialized = parsed.class.encode(parsed)
|
31
|
+
file = pool.add_serialized_file(serialized)
|
32
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
33
|
+
imports = [
|
34
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
35
|
+
["google.cloud.notebooks.v2.Instance", "google/cloud/notebooks/v2/instance.proto"],
|
36
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
37
|
+
["google.cloud.notebooks.v2.DiagnosticConfig", "google/cloud/notebooks/v2/diagnostic_config.proto"],
|
38
|
+
]
|
39
|
+
imports.each do |type_name, expected_filename|
|
40
|
+
import_file = pool.lookup(type_name).file_descriptor
|
41
|
+
if import_file.name != expected_filename
|
42
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
43
|
+
end
|
44
|
+
end
|
45
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
46
|
+
warn "This will become an error in the next major version."
|
47
|
+
end
|
48
|
+
|
49
|
+
module Google
|
50
|
+
module Cloud
|
51
|
+
module Notebooks
|
52
|
+
module V2
|
53
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v2.OperationMetadata").msgclass
|
54
|
+
ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v2.ListInstancesRequest").msgclass
|
55
|
+
ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v2.ListInstancesResponse").msgclass
|
56
|
+
GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v2.GetInstanceRequest").msgclass
|
57
|
+
CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v2.CreateInstanceRequest").msgclass
|
58
|
+
UpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v2.UpdateInstanceRequest").msgclass
|
59
|
+
DeleteInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v2.DeleteInstanceRequest").msgclass
|
60
|
+
StartInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v2.StartInstanceRequest").msgclass
|
61
|
+
StopInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v2.StopInstanceRequest").msgclass
|
62
|
+
ResetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v2.ResetInstanceRequest").msgclass
|
63
|
+
CheckInstanceUpgradabilityRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v2.CheckInstanceUpgradabilityRequest").msgclass
|
64
|
+
CheckInstanceUpgradabilityResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v2.CheckInstanceUpgradabilityResponse").msgclass
|
65
|
+
UpgradeInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v2.UpgradeInstanceRequest").msgclass
|
66
|
+
RollbackInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v2.RollbackInstanceRequest").msgclass
|
67
|
+
DiagnoseInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v2.DiagnoseInstanceRequest").msgclass
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/notebooks/v2/service.proto for package 'Google.Cloud.Notebooks.V2'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2023 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/notebooks/v2/service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Notebooks
|
25
|
+
module V2
|
26
|
+
module NotebookService
|
27
|
+
# API v2 service for Workbench Notebooks Instances.
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include ::GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.cloud.notebooks.v2.NotebookService'
|
35
|
+
|
36
|
+
# Lists instances in a given project and location.
|
37
|
+
rpc :ListInstances, ::Google::Cloud::Notebooks::V2::ListInstancesRequest, ::Google::Cloud::Notebooks::V2::ListInstancesResponse
|
38
|
+
# Gets details of a single Instance.
|
39
|
+
rpc :GetInstance, ::Google::Cloud::Notebooks::V2::GetInstanceRequest, ::Google::Cloud::Notebooks::V2::Instance
|
40
|
+
# Creates a new Instance in a given project and location.
|
41
|
+
rpc :CreateInstance, ::Google::Cloud::Notebooks::V2::CreateInstanceRequest, ::Google::Longrunning::Operation
|
42
|
+
# UpdateInstance updates an Instance.
|
43
|
+
rpc :UpdateInstance, ::Google::Cloud::Notebooks::V2::UpdateInstanceRequest, ::Google::Longrunning::Operation
|
44
|
+
# Deletes a single Instance.
|
45
|
+
rpc :DeleteInstance, ::Google::Cloud::Notebooks::V2::DeleteInstanceRequest, ::Google::Longrunning::Operation
|
46
|
+
# Starts a notebook instance.
|
47
|
+
rpc :StartInstance, ::Google::Cloud::Notebooks::V2::StartInstanceRequest, ::Google::Longrunning::Operation
|
48
|
+
# Stops a notebook instance.
|
49
|
+
rpc :StopInstance, ::Google::Cloud::Notebooks::V2::StopInstanceRequest, ::Google::Longrunning::Operation
|
50
|
+
# Resets a notebook instance.
|
51
|
+
rpc :ResetInstance, ::Google::Cloud::Notebooks::V2::ResetInstanceRequest, ::Google::Longrunning::Operation
|
52
|
+
# Checks whether a notebook instance is upgradable.
|
53
|
+
rpc :CheckInstanceUpgradability, ::Google::Cloud::Notebooks::V2::CheckInstanceUpgradabilityRequest, ::Google::Cloud::Notebooks::V2::CheckInstanceUpgradabilityResponse
|
54
|
+
# Upgrades a notebook instance to the latest version.
|
55
|
+
rpc :UpgradeInstance, ::Google::Cloud::Notebooks::V2::UpgradeInstanceRequest, ::Google::Longrunning::Operation
|
56
|
+
# Rollbacks a notebook instance to the previous version.
|
57
|
+
rpc :RollbackInstance, ::Google::Cloud::Notebooks::V2::RollbackInstanceRequest, ::Google::Longrunning::Operation
|
58
|
+
# Creates a Diagnostic File and runs Diagnostic Tool given an Instance.
|
59
|
+
rpc :DiagnoseInstance, ::Google::Cloud::Notebooks::V2::DiagnoseInstanceRequest, ::Google::Longrunning::Operation
|
60
|
+
end
|
61
|
+
|
62
|
+
Stub = Service.rpc_stub_class
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -1,10 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Copyright 2023 Google LLC
|
2
4
|
#
|
3
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
6
|
# you may not use this file except in compliance with the License.
|
5
7
|
# You may obtain a copy of the License at
|
6
8
|
#
|
7
|
-
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
10
|
#
|
9
11
|
# Unless required by applicable law or agreed to in writing, software
|
10
12
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
@@ -12,11 +14,14 @@
|
|
12
14
|
# See the License for the specific language governing permissions and
|
13
15
|
# limitations under the License.
|
14
16
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
15
20
|
module Google
|
16
21
|
module Cloud
|
17
22
|
module Notebooks
|
18
23
|
module V2
|
19
|
-
VERSION = "0.
|
24
|
+
VERSION = "0.1.0"
|
20
25
|
end
|
21
26
|
end
|
22
27
|
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/notebooks/v2/notebook_service"
|
20
|
+
require "google/cloud/notebooks/v2/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Notebooks
|
25
|
+
##
|
26
|
+
# API client module.
|
27
|
+
#
|
28
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
29
|
+
#
|
30
|
+
# require "google/cloud/notebooks/v2"
|
31
|
+
# client = ::Google::Cloud::Notebooks::V2::NotebookService::Client.new
|
32
|
+
#
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
34
|
+
#
|
35
|
+
# require "google/cloud/notebooks/v2"
|
36
|
+
# client = ::Google::Cloud::Notebooks::V2::NotebookService::Rest::Client.new
|
37
|
+
#
|
38
|
+
module V2
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
helper_path = ::File.join __dir__, "v2", "_helpers.rb"
|
45
|
+
require "google/cloud/notebooks/v2/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/cloud/notebooks/v2"
|