google-cloud-notebooks-v2 0.3.0 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/notebooks/v2/diagnostic_config_pb.rb +2 -2
- data/lib/google/cloud/notebooks/v2/event_pb.rb +2 -2
- data/lib/google/cloud/notebooks/v2/gce_setup_pb.rb +2 -2
- data/lib/google/cloud/notebooks/v2/instance_pb.rb +2 -2
- data/lib/google/cloud/notebooks/v2/notebook_service/client.rb +14 -14
- data/lib/google/cloud/notebooks/v2/notebook_service/rest/client.rb +11 -11
- data/lib/google/cloud/notebooks/v2/notebook_service/rest/service_stub.rb +9 -0
- data/lib/google/cloud/notebooks/v2/service_pb.rb +2 -2
- data/lib/google/cloud/notebooks/v2/version.rb +1 -1
- data/proto_docs/google/protobuf/any.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18f3791327d9c0e23a13bf5d90a50503029f7736d220e3ab4097703b575502e2
|
4
|
+
data.tar.gz: 133da59dc4cd830fd8d8e8c323942d4f5a7a98c09a7f221bfd7aca5c30e5e1e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0533a5d92c67cde0f4abbf00bc67cec3141c45117373f7b3ccce34229593d16871094322e9120e240c1b191f8ff3804fae0fcf8f21d404da050f77b7079e0887
|
7
|
+
data.tar.gz: 38beb238bc45eeccf5de5e134ece2283a6787811111956482f877ba8fcd8ccd8acb62124e870e0e099a1f50bfb2c0e6ef7b9e9c3efb1f2324fb81cdf76be50a7
|
@@ -7,13 +7,13 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
8
8
|
|
9
9
|
|
10
|
-
descriptor_data = "\n1google/cloud/notebooks/v2/diagnostic_config.proto\x12\x19google.cloud.notebooks.v2\x1a\x1fgoogle/api/field_behavior.proto\"\
|
10
|
+
descriptor_data = "\n1google/cloud/notebooks/v2/diagnostic_config.proto\x12\x19google.cloud.notebooks.v2\x1a\x1fgoogle/api/field_behavior.proto\"\xc0\x01\n\x10\x44iagnosticConfig\x12\x18\n\ngcs_bucket\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x1b\n\rrelative_path\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12 \n\x12\x65nable_repair_flag\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12(\n\x1a\x65nable_packet_capture_flag\x18\x04 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12)\n\x1b\x65nable_copy_home_files_flag\x18\x05 \x01(\x08\x42\x04\xe2\x41\x01\x01\x42\xcc\x01\n\x1d\x63om.google.cloud.notebooks.v2B\x15\x44iagnosticConfigProtoP\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"
|
11
11
|
|
12
12
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
13
|
|
14
14
|
begin
|
15
15
|
pool.add_serialized_file(descriptor_data)
|
16
|
-
rescue TypeError
|
16
|
+
rescue TypeError
|
17
17
|
# Compatibility code: will be removed in the next major version.
|
18
18
|
require 'google/protobuf/descriptor_pb'
|
19
19
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -8,13 +8,13 @@ require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/protobuf/timestamp_pb'
|
9
9
|
|
10
10
|
|
11
|
-
descriptor_data = "\n%google/cloud/notebooks/v2/event.proto\x12\x19google.cloud.notebooks.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
11
|
+
descriptor_data = "\n%google/cloud/notebooks/v2/event.proto\x12\x19google.cloud.notebooks.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe8\x02\n\x05\x45vent\x12\x35\n\x0breport_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x01\x12>\n\x04type\x18\x02 \x01(\x0e\x32*.google.cloud.notebooks.v2.Event.EventTypeB\x04\xe2\x41\x01\x01\x12\x44\n\x07\x64\x65tails\x18\x03 \x03(\x0b\x32-.google.cloud.notebooks.v2.Event.DetailsEntryB\x04\xe2\x41\x01\x01\x1a.\n\x0c\x44\x65tailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"r\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04IDLE\x10\x01\x12\r\n\tHEARTBEAT\x10\x02\x12\n\n\x06HEALTH\x10\x03\x12\x0f\n\x0bMAINTENANCE\x10\x04\x12\x13\n\x0fMETADATA_CHANGE\x10\x05\x42\xc1\x01\n\x1d\x63om.google.cloud.notebooks.v2B\nEventProtoP\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"
|
12
12
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -7,13 +7,13 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
8
8
|
|
9
9
|
|
10
|
-
descriptor_data = "\n)google/cloud/notebooks/v2/gce_setup.proto\x12\x19google.cloud.notebooks.v2\x1a\x1fgoogle/api/field_behavior.proto\"\
|
10
|
+
descriptor_data = "\n)google/cloud/notebooks/v2/gce_setup.proto\x12\x19google.cloud.notebooks.v2\x1a\x1fgoogle/api/field_behavior.proto\"\xcc\x01\n\x10NetworkInterface\x12\x15\n\x07network\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12\x14\n\x06subnet\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12K\n\x08nic_type\x18\x03 \x01(\x0e\x32\x33.google.cloud.notebooks.v2.NetworkInterface.NicTypeB\x04\xe2\x41\x01\x01\">\n\x07NicType\x12\x18\n\x14NIC_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nVIRTIO_NET\x10\x01\x12\t\n\x05GVNIC\x10\x02\"W\n\x07VmImage\x12\x15\n\x07project\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x14\n\x04name\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01H\x00\x12\x16\n\x06\x66\x61mily\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01H\x00\x42\x07\n\x05image\"=\n\x0e\x43ontainerImage\x12\x18\n\nrepository\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x11\n\x03tag\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\"\x96\x03\n\x11\x41\x63\x63\x65leratorConfig\x12P\n\x04type\x18\x01 \x01(\x0e\x32<.google.cloud.notebooks.v2.AcceleratorConfig.AcceleratorTypeB\x04\xe2\x41\x01\x01\x12\x18\n\ncore_count\x18\x02 \x01(\x03\x42\x04\xe2\x41\x01\x01\"\x94\x02\n\x0f\x41\x63\x63\x65leratorType\x12 \n\x1c\x41\x43\x43\x45LERATOR_TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11NVIDIA_TESLA_P100\x10\x02\x12\x15\n\x11NVIDIA_TESLA_V100\x10\x03\x12\x13\n\x0fNVIDIA_TESLA_P4\x10\x04\x12\x13\n\x0fNVIDIA_TESLA_T4\x10\x05\x12\x15\n\x11NVIDIA_TESLA_A100\x10\x0b\x12\x14\n\x10NVIDIA_A100_80GB\x10\x0c\x12\r\n\tNVIDIA_L4\x10\r\x12\x17\n\x13NVIDIA_TESLA_T4_VWS\x10\x08\x12\x19\n\x15NVIDIA_TESLA_P100_VWS\x10\t\x12\x17\n\x13NVIDIA_TESLA_P4_VWS\x10\n\"\x80\x01\n\x16ShieldedInstanceConfig\x12 \n\x12\x65nable_secure_boot\x18\x01 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x19\n\x0b\x65nable_vtpm\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12)\n\x1b\x65nable_integrity_monitoring\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01\"X\n\x0fGPUDriverConfig\x12\x1f\n\x11\x65nable_gpu_driver\x18\x01 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12$\n\x16\x63ustom_gpu_driver_path\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\"\xc8\x01\n\x08\x44\x61taDisk\x12\x1a\n\x0c\x64isk_size_gb\x18\x01 \x01(\x03\x42\x04\xe2\x41\x01\x01\x12=\n\tdisk_type\x18\x02 \x01(\x0e\x32#.google.cloud.notebooks.v2.DiskTypeB\x05\xe2\x41\x02\x04\x01\x12I\n\x0f\x64isk_encryption\x18\x05 \x01(\x0e\x32).google.cloud.notebooks.v2.DiskEncryptionB\x05\xe2\x41\x02\x04\x01\x12\x16\n\x07kms_key\x18\x06 \x01(\tB\x05\xe2\x41\x02\x04\x01\"\xc7\x01\n\x08\x42ootDisk\x12\x1a\n\x0c\x64isk_size_gb\x18\x01 \x01(\x03\x42\x04\xe2\x41\x01\x01\x12<\n\tdisk_type\x18\x02 \x01(\x0e\x32#.google.cloud.notebooks.v2.DiskTypeB\x04\xe2\x41\x01\x01\x12I\n\x0f\x64isk_encryption\x18\x03 \x01(\x0e\x32).google.cloud.notebooks.v2.DiskEncryptionB\x05\xe2\x41\x02\x04\x01\x12\x16\n\x07kms_key\x18\x04 \x01(\tB\x05\xe2\x41\x02\x04\x01\";\n\x0eServiceAccount\x12\x13\n\x05\x65mail\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12\x14\n\x06scopes\x18\x02 \x03(\tB\x04\xe2\x41\x01\x03\"\x9e\x07\n\x08GceSetup\x12\x1a\n\x0cmachine_type\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12O\n\x13\x61\x63\x63\x65lerator_configs\x18\x02 \x03(\x0b\x32,.google.cloud.notebooks.v2.AcceleratorConfigB\x04\xe2\x41\x01\x01\x12I\n\x10service_accounts\x18\x03 \x03(\x0b\x32).google.cloud.notebooks.v2.ServiceAccountB\x04\xe2\x41\x01\x01\x12<\n\x08vm_image\x18\x04 \x01(\x0b\x32\".google.cloud.notebooks.v2.VmImageB\x04\xe2\x41\x01\x01H\x00\x12J\n\x0f\x63ontainer_image\x18\x05 \x01(\x0b\x32).google.cloud.notebooks.v2.ContainerImageB\x04\xe2\x41\x01\x01H\x00\x12<\n\tboot_disk\x18\x06 \x01(\x0b\x32#.google.cloud.notebooks.v2.BootDiskB\x04\xe2\x41\x01\x01\x12=\n\ndata_disks\x18\x07 \x03(\x0b\x32#.google.cloud.notebooks.v2.DataDiskB\x04\xe2\x41\x01\x01\x12Y\n\x18shielded_instance_config\x18\x08 \x01(\x0b\x32\x31.google.cloud.notebooks.v2.ShieldedInstanceConfigB\x04\xe2\x41\x01\x01\x12M\n\x12network_interfaces\x18\t \x03(\x0b\x32+.google.cloud.notebooks.v2.NetworkInterfaceB\x04\xe2\x41\x01\x01\x12\x1f\n\x11\x64isable_public_ip\x18\n \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x12\n\x04tags\x18\x0b \x03(\tB\x04\xe2\x41\x01\x01\x12I\n\x08metadata\x18\x0c \x03(\x0b\x32\x31.google.cloud.notebooks.v2.GceSetup.MetadataEntryB\x04\xe2\x41\x01\x01\x12\"\n\x14\x65nable_ip_forwarding\x18\r \x01(\x08\x42\x04\xe2\x41\x01\x01\x12K\n\x11gpu_driver_config\x18\x0e \x01(\x0b\x32*.google.cloud.notebooks.v2.GPUDriverConfigB\x04\xe2\x41\x01\x01\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x07\n\x05image*E\n\x0e\x44iskEncryption\x12\x1f\n\x1b\x44ISK_ENCRYPTION_UNSPECIFIED\x10\x00\x12\x08\n\x04GMEK\x10\x01\x12\x08\n\x04\x43MEK\x10\x02*c\n\x08\x44iskType\x12\x19\n\x15\x44ISK_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPD_STANDARD\x10\x01\x12\n\n\x06PD_SSD\x10\x02\x12\x0f\n\x0bPD_BALANCED\x10\x03\x12\x0e\n\nPD_EXTREME\x10\x04\x42\xc4\x01\n\x1d\x63om.google.cloud.notebooks.v2B\rGceSetupProtoP\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"
|
11
11
|
|
12
12
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
13
|
|
14
14
|
begin
|
15
15
|
pool.add_serialized_file(descriptor_data)
|
16
|
-
rescue TypeError
|
16
|
+
rescue TypeError
|
17
17
|
# Compatibility code: will be removed in the next major version.
|
18
18
|
require 'google/protobuf/descriptor_pb'
|
19
19
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -10,13 +10,13 @@ require 'google/cloud/notebooks/v2/gce_setup_pb'
|
|
10
10
|
require 'google/protobuf/timestamp_pb'
|
11
11
|
|
12
12
|
|
13
|
-
descriptor_data = "\n(google/cloud/notebooks/v2/instance.proto\x12\x19google.cloud.notebooks.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/notebooks/v2/gce_setup.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
13
|
+
descriptor_data = "\n(google/cloud/notebooks/v2/instance.proto\x12\x19google.cloud.notebooks.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/notebooks/v2/gce_setup.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x86\x04\n\x13UpgradeHistoryEntry\x12\x16\n\x08snapshot\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12\x16\n\x08vm_image\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1d\n\x0f\x63ontainer_image\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x17\n\tframework\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\x12\x15\n\x07version\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\x12I\n\x05state\x18\x06 \x01(\x0e\x32\x34.google.cloud.notebooks.v2.UpgradeHistoryEntry.StateB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x05\x12K\n\x06\x61\x63tion\x18\x08 \x01(\x0e\x32\x35.google.cloud.notebooks.v2.UpgradeHistoryEntry.ActionB\x04\xe2\x41\x01\x01\x12\x1c\n\x0etarget_version\x18\t \x01(\tB\x04\xe2\x41\x01\x01\"F\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07STARTED\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\";\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_UNSPECIFIED\x10\x00\x12\x0b\n\x07UPGRADE\x10\x01\x12\x0c\n\x08ROLLBACK\x10\x02\"\xa2\x07\n\x08Instance\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12>\n\tgce_setup\x18\x02 \x01(\x0b\x32#.google.cloud.notebooks.v2.GceSetupB\x04\xe2\x41\x01\x01H\x00\x12\x17\n\tproxy_uri\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03\x12\x1e\n\x0finstance_owners\x18\x04 \x03(\tB\x05\xe2\x41\x02\x04\x01\x12\x15\n\x07\x63reator\x18\x05 \x01(\tB\x04\xe2\x41\x01\x03\x12\x35\n\x05state\x18\x06 \x01(\x0e\x32 .google.cloud.notebooks.v2.StateB\x04\xe2\x41\x01\x03\x12M\n\x0fupgrade_history\x18\x07 \x03(\x0b\x32..google.cloud.notebooks.v2.UpgradeHistoryEntryB\x04\xe2\x41\x01\x03\x12\x10\n\x02id\x18\x08 \x01(\tB\x04\xe2\x41\x01\x03\x12\x42\n\x0chealth_state\x18\t \x01(\x0e\x32&.google.cloud.notebooks.v2.HealthStateB\x04\xe2\x41\x01\x03\x12N\n\x0bhealth_info\x18\n \x03(\x0b\x32\x33.google.cloud.notebooks.v2.Instance.HealthInfoEntryB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x35\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\"\n\x14\x64isable_proxy_access\x18\r \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x45\n\x06labels\x18\x0e \x03(\x0b\x32/.google.cloud.notebooks.v2.Instance.LabelsEntryB\x04\xe2\x41\x01\x01\x1a\x31\n\x0fHealthInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:y\xea\x41v\n!notebooks.googleapis.com/Instance\x12<projects/{project}/locations/{location}/instances/{instance}*\tinstances2\x08instanceB\x10\n\x0einfrastructure*\xb2\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08STARTING\x10\x01\x12\x10\n\x0cPROVISIONING\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x12\x0c\n\x08STOPPING\x10\x04\x12\x0b\n\x07STOPPED\x10\x05\x12\x0b\n\x07\x44\x45LETED\x10\x06\x12\r\n\tUPGRADING\x10\x07\x12\x10\n\x0cINITIALIZING\x10\x08\x12\x0e\n\nSUSPENDING\x10\t\x12\r\n\tSUSPENDED\x10\n*w\n\x0bHealthState\x12\x1c\n\x18HEALTH_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07HEALTHY\x10\x01\x12\r\n\tUNHEALTHY\x10\x02\x12\x17\n\x13\x41GENT_NOT_INSTALLED\x10\x03\x12\x15\n\x11\x41GENT_NOT_RUNNING\x10\x04\x42\xc4\x01\n\x1d\x63om.google.cloud.notebooks.v2B\rInstanceProtoP\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"
|
14
14
|
|
15
15
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
16
|
|
17
17
|
begin
|
18
18
|
pool.add_serialized_file(descriptor_data)
|
19
|
-
rescue TypeError
|
19
|
+
rescue TypeError
|
20
20
|
# Compatibility code: will be removed in the next major version.
|
21
21
|
require 'google/protobuf/descriptor_pb'
|
22
22
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -178,20 +178,6 @@ module Google
|
|
178
178
|
config.universe_domain = @config.universe_domain
|
179
179
|
end
|
180
180
|
|
181
|
-
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
182
|
-
config.credentials = credentials
|
183
|
-
config.quota_project = @quota_project_id
|
184
|
-
config.endpoint = @config.endpoint
|
185
|
-
config.universe_domain = @config.universe_domain
|
186
|
-
end
|
187
|
-
|
188
|
-
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
189
|
-
config.credentials = credentials
|
190
|
-
config.quota_project = @quota_project_id
|
191
|
-
config.endpoint = @config.endpoint
|
192
|
-
config.universe_domain = @config.universe_domain
|
193
|
-
end
|
194
|
-
|
195
181
|
@notebook_service_stub = ::Gapic::ServiceStub.new(
|
196
182
|
::Google::Cloud::Notebooks::V2::NotebookService::Stub,
|
197
183
|
credentials: credentials,
|
@@ -202,6 +188,20 @@ module Google
|
|
202
188
|
interceptors: @config.interceptors,
|
203
189
|
channel_pool_config: @config.channel_pool
|
204
190
|
)
|
191
|
+
|
192
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
193
|
+
config.credentials = credentials
|
194
|
+
config.quota_project = @quota_project_id
|
195
|
+
config.endpoint = @notebook_service_stub.endpoint
|
196
|
+
config.universe_domain = @notebook_service_stub.universe_domain
|
197
|
+
end
|
198
|
+
|
199
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
200
|
+
config.credentials = credentials
|
201
|
+
config.quota_project = @quota_project_id
|
202
|
+
config.endpoint = @notebook_service_stub.endpoint
|
203
|
+
config.universe_domain = @notebook_service_stub.universe_domain
|
204
|
+
end
|
205
205
|
end
|
206
206
|
|
207
207
|
##
|
@@ -175,28 +175,28 @@ module Google
|
|
175
175
|
config.universe_domain = @config.universe_domain
|
176
176
|
end
|
177
177
|
|
178
|
+
@notebook_service_stub = ::Google::Cloud::Notebooks::V2::NotebookService::Rest::ServiceStub.new(
|
179
|
+
endpoint: @config.endpoint,
|
180
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
181
|
+
universe_domain: @config.universe_domain,
|
182
|
+
credentials: credentials
|
183
|
+
)
|
184
|
+
|
178
185
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
179
186
|
config.credentials = credentials
|
180
187
|
config.quota_project = @quota_project_id
|
181
|
-
config.endpoint = @
|
182
|
-
config.universe_domain = @
|
188
|
+
config.endpoint = @notebook_service_stub.endpoint
|
189
|
+
config.universe_domain = @notebook_service_stub.universe_domain
|
183
190
|
config.bindings_override = @config.bindings_override
|
184
191
|
end
|
185
192
|
|
186
193
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
187
194
|
config.credentials = credentials
|
188
195
|
config.quota_project = @quota_project_id
|
189
|
-
config.endpoint = @
|
190
|
-
config.universe_domain = @
|
196
|
+
config.endpoint = @notebook_service_stub.endpoint
|
197
|
+
config.universe_domain = @notebook_service_stub.universe_domain
|
191
198
|
config.bindings_override = @config.bindings_override
|
192
199
|
end
|
193
|
-
|
194
|
-
@notebook_service_stub = ::Google::Cloud::Notebooks::V2::NotebookService::Rest::ServiceStub.new(
|
195
|
-
endpoint: @config.endpoint,
|
196
|
-
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
197
|
-
universe_domain: @config.universe_domain,
|
198
|
-
credentials: credentials
|
199
|
-
)
|
200
200
|
end
|
201
201
|
|
202
202
|
##
|
@@ -52,6 +52,15 @@ module Google
|
|
52
52
|
@client_stub.universe_domain
|
53
53
|
end
|
54
54
|
|
55
|
+
##
|
56
|
+
# The effective endpoint
|
57
|
+
#
|
58
|
+
# @return [String]
|
59
|
+
#
|
60
|
+
def endpoint
|
61
|
+
@client_stub.endpoint
|
62
|
+
end
|
63
|
+
|
55
64
|
##
|
56
65
|
# Baseline implementation for the list_instances REST call
|
57
66
|
#
|
@@ -16,13 +16,13 @@ require 'google/protobuf/field_mask_pb'
|
|
16
16
|
require 'google/protobuf/timestamp_pb'
|
17
17
|
|
18
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\"\
|
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\"\xb3\x01\n\x14ListInstancesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\x12!notebooks.googleapis.com/Instance\x12\x17\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x16\n\x08order_by\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\x12\x14\n\x06\x66ilter\x18\x05 \x01(\tB\x04\xe2\x41\x01\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\"N\n\x12GetInstanceRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!notebooks.googleapis.com/Instance\"\xc5\x01\n\x15\x43reateInstanceRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\x12!notebooks.googleapis.com/Instance\x12\x19\n\x0binstance_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12;\n\x08instance\x18\x03 \x01(\x0b\x32#.google.cloud.notebooks.v2.InstanceB\x04\xe2\x41\x01\x02\x12\x18\n\nrequest_id\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\"\xa5\x01\n\x15UpdateInstanceRequest\x12;\n\x08instance\x18\x01 \x01(\x0b\x32#.google.cloud.notebooks.v2.InstanceB\x04\xe2\x41\x01\x02\x12\x35\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x02\x12\x18\n\nrequest_id\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\"k\n\x15\x44\x65leteInstanceRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!notebooks.googleapis.com/Instance\x12\x18\n\nrequest_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\"*\n\x14StartInstanceRequest\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\")\n\x13StopInstanceRequest\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\"*\n\x14ResetInstanceRequest\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\"D\n!CheckInstanceUpgradabilityRequest\x12\x1f\n\x11notebook_instance\x18\x01 \x01(\tB\x04\xe2\x41\x01\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\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\"\x8e\x01\n\x17RollbackInstanceRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!notebooks.googleapis.com/Instance\x12\x1d\n\x0ftarget_snapshot\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x1a\n\x0brevision_id\x18\x03 \x01(\tB\x05\xe2\x41\x02\x03\x02\"\xc0\x01\n\x17\x44iagnoseInstanceRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!notebooks.googleapis.com/Instance\x12L\n\x11\x64iagnostic_config\x18\x02 \x01(\x0b\x32+.google.cloud.notebooks.v2.DiagnosticConfigB\x04\xe2\x41\x01\x02\x12\x1d\n\x0ftimeout_minutes\x18\x03 \x01(\x05\x42\x04\xe2\x41\x01\x01\x32\xfa\x13\n\x0fNotebookService\x12\xb2\x01\n\rListInstances\x12/.google.cloud.notebooks.v2.ListInstancesRequest\x1a\x30.google.cloud.notebooks.v2.ListInstancesResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v2/{parent=projects/*/locations/*}/instances\x12\x9f\x01\n\x0bGetInstance\x12-.google.cloud.notebooks.v2.GetInstanceRequest\x1a#.google.cloud.notebooks.v2.Instance\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v2/{name=projects/*/locations/*/instances/*}\x12\xe0\x01\n\x0e\x43reateInstance\x12\x30.google.cloud.notebooks.v2.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"}\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\xda\x41\x1bparent,instance,instance_id\x82\xd3\xe4\x93\x02\x39\"-/v2/{parent=projects/*/locations/*}/instances:\x08instance\x12\xe2\x01\n\x0eUpdateInstance\x12\x30.google.cloud.notebooks.v2.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x7f\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\xda\x41\x14instance,update_mask\x82\xd3\xe4\x93\x02\x42\x32\x36/v2/{instance.name=projects/*/locations/*/instances/*}:\x08instance\x12\xcc\x01\n\x0e\x44\x65leteInstance\x12\x30.google.cloud.notebooks.v2.DeleteInstanceRequest\x1a\x1d.google.longrunning.Operation\"i\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v2/{name=projects/*/locations/*/instances/*}\x12\xbf\x01\n\rStartInstance\x12/.google.cloud.notebooks.v2.StartInstanceRequest\x1a\x1d.google.longrunning.Operation\"^\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02\x38\"3/v2/{name=projects/*/locations/*/instances/*}:start:\x01*\x12\xbc\x01\n\x0cStopInstance\x12..google.cloud.notebooks.v2.StopInstanceRequest\x1a\x1d.google.longrunning.Operation\"]\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02\x37\"2/v2/{name=projects/*/locations/*/instances/*}:stop:\x01*\x12\xbf\x01\n\rResetInstance\x12/.google.cloud.notebooks.v2.ResetInstanceRequest\x1a\x1d.google.longrunning.Operation\"^\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02\x38\"3/v2/{name=projects/*/locations/*/instances/*}:reset:\x01*\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\"`\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02:\"5/v2/{name=projects/*/locations/*/instances/*}:upgrade:\x01*\x12\xc8\x01\n\x10RollbackInstance\x12\x32.google.cloud.notebooks.v2.RollbackInstanceRequest\x1a\x1d.google.longrunning.Operation\"a\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02;\"6/v2/{name=projects/*/locations/*/instances/*}:rollback:\x01*\x12\xe1\x01\n\x10\x44iagnoseInstance\x12\x32.google.cloud.notebooks.v2.DiagnoseInstanceRequest\x1a\x1d.google.longrunning.Operation\"z\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\xda\x41\x16name,diagnostic_config\x82\xd3\xe4\x93\x02;\"6/v2/{name=projects/*/locations/*/instances/*}:diagnose:\x01*\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
20
|
|
21
21
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
22
|
|
23
23
|
begin
|
24
24
|
pool.add_serialized_file(descriptor_data)
|
25
|
-
rescue TypeError
|
25
|
+
rescue TypeError
|
26
26
|
# Compatibility code: will be removed in the next major version.
|
27
27
|
require 'google/protobuf/descriptor_pb'
|
28
28
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -129,7 +129,8 @@ module Google
|
|
129
129
|
#
|
130
130
|
# Note: this functionality is not currently available in the official
|
131
131
|
# protobuf release, and it is not used for type URLs beginning with
|
132
|
-
# type.googleapis.com.
|
132
|
+
# type.googleapis.com. As of May 2023, there are no widely used type server
|
133
|
+
# implementations and no plans to implement one.
|
133
134
|
#
|
134
135
|
# Schemes other than `http`, `https` (or the empty scheme) might be
|
135
136
|
# used with implementation specific semantics.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-notebooks-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01
|
11
|
+
date: 2024-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|