google-cloud-notebooks-v2 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 892a2f313a31f3352589979f36af1520cf9607302ee31724c044023749ab2c0f
4
- data.tar.gz: 4f3af3540bacf198211bd7eadd64b086daf64b3cf42957a33e1f5d0663ca7d85
3
+ metadata.gz: ec36836186ff0034b989ea9f357ae3eb7b340c0732cf989764a0ad0350cd032c
4
+ data.tar.gz: aa47721aa78c066ec4951ce74c95daee2a614e5be72d337bc78d1e3115d2e06f
5
5
  SHA512:
6
- metadata.gz: fc1b390be363a1e466feabce24320aa6263078e99dd064195c7b7d4dd64bd3a589ac169b96e3e90f2126ad0d4d59fd34707c862a7298b1f2f7c0f2c72a03f7f0
7
- data.tar.gz: e055e9e9492b8af34f7c4960f242ae832c6d9027c1114f99f9eb069b75643294dc108b55c69b3e3c38c18c0eb4b2e2ec77b0c0ad280e4f62881bbc3536b681b5
6
+ metadata.gz: 1e63a8377703e674899401d2099f45e4da31a5b5fb694034d41fdd9a101a420f8d1ab877aa240e6596c56c3e194ca8756bb1890494a0723d7a7cfd18c5237b37
7
+ data.tar.gz: 4624822c6c3374ab3a72a7683ebe3315957458b89570b7d722d81e02642a3bef1ba21cb9bac69040abe2da033ce20af590b7cbdab4ac5ed69ed7f22411ab93c9
@@ -9,29 +9,8 @@ require 'google/api/field_behavior_pb'
9
9
 
10
10
  descriptor_data = "\n1google/cloud/notebooks/v2/diagnostic_config.proto\x12\x19google.cloud.notebooks.v2\x1a\x1fgoogle/api/field_behavior.proto\"\xbb\x01\n\x10\x44iagnosticConfig\x12\x17\n\ngcs_bucket\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rrelative_path\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12\x65nable_repair_flag\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\'\n\x1a\x65nable_packet_capture_flag\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12(\n\x1b\x65nable_copy_home_files_flag\x18\x05 \x01(\x08\x42\x03\xe0\x41\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
- pool = Google::Protobuf::DescriptorPool.generated_pool
13
-
14
- begin
15
- pool.add_serialized_file(descriptor_data)
16
- rescue TypeError
17
- # Compatibility code: will be removed in the next major version.
18
- require 'google/protobuf/descriptor_pb'
19
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
- parsed.clear_dependency
21
- serialized = parsed.class.encode(parsed)
22
- file = pool.add_serialized_file(serialized)
23
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
- imports = [
25
- ]
26
- imports.each do |type_name, expected_filename|
27
- import_file = pool.lookup(type_name).file_descriptor
28
- if import_file.name != expected_filename
29
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
30
- end
31
- end
32
- warn "Each proto file must use a consistent fully-qualified name."
33
- warn "This will become an error in the next major version."
34
- end
12
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
35
14
 
36
15
  module Google
37
16
  module Cloud
@@ -10,30 +10,8 @@ require 'google/protobuf/timestamp_pb'
10
10
 
11
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\"\xe5\x02\n\x05\x45vent\x12\x34\n\x0breport_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12=\n\x04type\x18\x02 \x01(\x0e\x32*.google.cloud.notebooks.v2.Event.EventTypeB\x03\xe0\x41\x01\x12\x43\n\x07\x64\x65tails\x18\x03 \x03(\x0b\x32-.google.cloud.notebooks.v2.Event.DetailsEntryB\x03\xe0\x41\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
- pool = Google::Protobuf::DescriptorPool.generated_pool
14
-
15
- begin
16
- pool.add_serialized_file(descriptor_data)
17
- rescue TypeError
18
- # Compatibility code: will be removed in the next major version.
19
- require 'google/protobuf/descriptor_pb'
20
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
- parsed.clear_dependency
22
- serialized = parsed.class.encode(parsed)
23
- file = pool.add_serialized_file(serialized)
24
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
- imports = [
26
- ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
27
- ]
28
- imports.each do |type_name, expected_filename|
29
- import_file = pool.lookup(type_name).file_descriptor
30
- if import_file.name != expected_filename
31
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
32
- end
33
- end
34
- warn "Each proto file must use a consistent fully-qualified name."
35
- warn "This will become an error in the next major version."
36
- end
13
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
37
15
 
38
16
  module Google
39
17
  module Cloud
@@ -9,29 +9,8 @@ require 'google/api/field_behavior_pb'
9
9
 
10
10
  descriptor_data = "\n)google/cloud/notebooks/v2/gce_setup.proto\x12\x19google.cloud.notebooks.v2\x1a\x1fgoogle/api/field_behavior.proto\"\xc9\x01\n\x10NetworkInterface\x12\x14\n\x07network\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06subnet\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12J\n\x08nic_type\x18\x03 \x01(\x0e\x32\x33.google.cloud.notebooks.v2.NetworkInterface.NicTypeB\x03\xe0\x41\x01\">\n\x07NicType\x12\x18\n\x14NIC_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nVIRTIO_NET\x10\x01\x12\t\n\x05GVNIC\x10\x02\"T\n\x07VmImage\x12\x14\n\x07project\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x15\n\x06\x66\x61mily\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x00\x42\x07\n\x05image\";\n\x0e\x43ontainerImage\x12\x17\n\nrepository\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x03tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x94\x03\n\x11\x41\x63\x63\x65leratorConfig\x12O\n\x04type\x18\x01 \x01(\x0e\x32<.google.cloud.notebooks.v2.AcceleratorConfig.AcceleratorTypeB\x03\xe0\x41\x01\x12\x17\n\ncore_count\x18\x02 \x01(\x03\x42\x03\xe0\x41\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\"}\n\x16ShieldedInstanceConfig\x12\x1f\n\x12\x65nable_secure_boot\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x18\n\x0b\x65nable_vtpm\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12(\n\x1b\x65nable_integrity_monitoring\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"V\n\x0fGPUDriverConfig\x12\x1e\n\x11\x65nable_gpu_driver\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12#\n\x16\x63ustom_gpu_driver_path\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xca\x01\n\x08\x44\x61taDisk\x12\x19\n\x0c\x64isk_size_gb\x18\x01 \x01(\x03\x42\x03\xe0\x41\x01\x12>\n\tdisk_type\x18\x02 \x01(\x0e\x32#.google.cloud.notebooks.v2.DiskTypeB\x06\xe0\x41\x04\xe0\x41\x01\x12J\n\x0f\x64isk_encryption\x18\x05 \x01(\x0e\x32).google.cloud.notebooks.v2.DiskEncryptionB\x06\xe0\x41\x04\xe0\x41\x01\x12\x17\n\x07kms_key\x18\x06 \x01(\tB\x06\xe0\x41\x04\xe0\x41\x01\"\xc7\x01\n\x08\x42ootDisk\x12\x19\n\x0c\x64isk_size_gb\x18\x01 \x01(\x03\x42\x03\xe0\x41\x01\x12;\n\tdisk_type\x18\x02 \x01(\x0e\x32#.google.cloud.notebooks.v2.DiskTypeB\x03\xe0\x41\x01\x12J\n\x0f\x64isk_encryption\x18\x03 \x01(\x0e\x32).google.cloud.notebooks.v2.DiskEncryptionB\x06\xe0\x41\x04\xe0\x41\x01\x12\x17\n\x07kms_key\x18\x04 \x01(\tB\x06\xe0\x41\x04\xe0\x41\x01\"9\n\x0eServiceAccount\x12\x12\n\x05\x65mail\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06scopes\x18\x02 \x03(\tB\x03\xe0\x41\x03\"\x90\x07\n\x08GceSetup\x12\x19\n\x0cmachine_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12N\n\x13\x61\x63\x63\x65lerator_configs\x18\x02 \x03(\x0b\x32,.google.cloud.notebooks.v2.AcceleratorConfigB\x03\xe0\x41\x01\x12H\n\x10service_accounts\x18\x03 \x03(\x0b\x32).google.cloud.notebooks.v2.ServiceAccountB\x03\xe0\x41\x01\x12;\n\x08vm_image\x18\x04 \x01(\x0b\x32\".google.cloud.notebooks.v2.VmImageB\x03\xe0\x41\x01H\x00\x12I\n\x0f\x63ontainer_image\x18\x05 \x01(\x0b\x32).google.cloud.notebooks.v2.ContainerImageB\x03\xe0\x41\x01H\x00\x12;\n\tboot_disk\x18\x06 \x01(\x0b\x32#.google.cloud.notebooks.v2.BootDiskB\x03\xe0\x41\x01\x12<\n\ndata_disks\x18\x07 \x03(\x0b\x32#.google.cloud.notebooks.v2.DataDiskB\x03\xe0\x41\x01\x12X\n\x18shielded_instance_config\x18\x08 \x01(\x0b\x32\x31.google.cloud.notebooks.v2.ShieldedInstanceConfigB\x03\xe0\x41\x01\x12L\n\x12network_interfaces\x18\t \x03(\x0b\x32+.google.cloud.notebooks.v2.NetworkInterfaceB\x03\xe0\x41\x01\x12\x1e\n\x11\x64isable_public_ip\x18\n \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04tags\x18\x0b \x03(\tB\x03\xe0\x41\x01\x12H\n\x08metadata\x18\x0c \x03(\x0b\x32\x31.google.cloud.notebooks.v2.GceSetup.MetadataEntryB\x03\xe0\x41\x01\x12!\n\x14\x65nable_ip_forwarding\x18\r \x01(\x08\x42\x03\xe0\x41\x01\x12J\n\x11gpu_driver_config\x18\x0e \x01(\x0b\x32*.google.cloud.notebooks.v2.GPUDriverConfigB\x03\xe0\x41\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
- pool = Google::Protobuf::DescriptorPool.generated_pool
13
-
14
- begin
15
- pool.add_serialized_file(descriptor_data)
16
- rescue TypeError
17
- # Compatibility code: will be removed in the next major version.
18
- require 'google/protobuf/descriptor_pb'
19
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
- parsed.clear_dependency
21
- serialized = parsed.class.encode(parsed)
22
- file = pool.add_serialized_file(serialized)
23
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
- imports = [
25
- ]
26
- imports.each do |type_name, expected_filename|
27
- import_file = pool.lookup(type_name).file_descriptor
28
- if import_file.name != expected_filename
29
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
30
- end
31
- end
32
- warn "Each proto file must use a consistent fully-qualified name."
33
- warn "This will become an error in the next major version."
34
- end
12
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
35
14
 
36
15
  module Google
37
16
  module Cloud
@@ -12,31 +12,8 @@ require 'google/protobuf/timestamp_pb'
12
12
 
13
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\"\xfd\x03\n\x13UpgradeHistoryEntry\x12\x15\n\x08snapshot\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08vm_image\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x63ontainer_image\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tframework\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07version\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12H\n\x05state\x18\x06 \x01(\x0e\x32\x34.google.cloud.notebooks.v2.UpgradeHistoryEntry.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x05\x12J\n\x06\x61\x63tion\x18\x08 \x01(\x0e\x32\x35.google.cloud.notebooks.v2.UpgradeHistoryEntry.ActionB\x03\xe0\x41\x01\x12\x1b\n\x0etarget_version\x18\t \x01(\tB\x03\xe0\x41\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\"\x96\x07\n\x08Instance\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12=\n\tgce_setup\x18\x02 \x01(\x0b\x32#.google.cloud.notebooks.v2.GceSetupB\x03\xe0\x41\x01H\x00\x12\x16\n\tproxy_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x0finstance_owners\x18\x04 \x03(\tB\x06\xe0\x41\x04\xe0\x41\x01\x12\x14\n\x07\x63reator\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x05state\x18\x06 \x01(\x0e\x32 .google.cloud.notebooks.v2.StateB\x03\xe0\x41\x03\x12L\n\x0fupgrade_history\x18\x07 \x03(\x0b\x32..google.cloud.notebooks.v2.UpgradeHistoryEntryB\x03\xe0\x41\x03\x12\x0f\n\x02id\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x0chealth_state\x18\t \x01(\x0e\x32&.google.cloud.notebooks.v2.HealthStateB\x03\xe0\x41\x03\x12M\n\x0bhealth_info\x18\n \x03(\x0b\x32\x33.google.cloud.notebooks.v2.Instance.HealthInfoEntryB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12!\n\x14\x64isable_proxy_access\x18\r \x01(\x08\x42\x03\xe0\x41\x01\x12\x44\n\x06labels\x18\x0e \x03(\x0b\x32/.google.cloud.notebooks.v2.Instance.LabelsEntryB\x03\xe0\x41\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
- pool = Google::Protobuf::DescriptorPool.generated_pool
16
-
17
- begin
18
- pool.add_serialized_file(descriptor_data)
19
- rescue TypeError
20
- # Compatibility code: will be removed in the next major version.
21
- require 'google/protobuf/descriptor_pb'
22
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
- parsed.clear_dependency
24
- serialized = parsed.class.encode(parsed)
25
- file = pool.add_serialized_file(serialized)
26
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
- imports = [
28
- ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
- ["google.cloud.notebooks.v2.GceSetup", "google/cloud/notebooks/v2/gce_setup.proto"],
30
- ]
31
- imports.each do |type_name, expected_filename|
32
- import_file = pool.lookup(type_name).file_descriptor
33
- if import_file.name != expected_filename
34
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
35
- end
36
- end
37
- warn "Each proto file must use a consistent fully-qualified name."
38
- warn "This will become an error in the next major version."
39
- end
15
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
16
+ pool.add_serialized_file(descriptor_data)
40
17
 
41
18
  module Google
42
19
  module Cloud
@@ -18,33 +18,8 @@ require 'google/protobuf/timestamp_pb'
18
18
 
19
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\">\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
- pool = Google::Protobuf::DescriptorPool.generated_pool
22
-
23
- begin
24
- pool.add_serialized_file(descriptor_data)
25
- rescue TypeError
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
21
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
22
+ pool.add_serialized_file(descriptor_data)
48
23
 
49
24
  module Google
50
25
  module Cloud
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Notebooks
23
23
  module V2
24
- VERSION = "1.3.1"
24
+ VERSION = "1.4.0"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-notebooks-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - ">="
129
129
  - !ruby/object:Gem::Version
130
- version: '3.1'
130
+ version: '3.2'
131
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  requirements:
133
133
  - - ">="