lib/google/cloud/notebooks/v1/instance_pb.rb in google-cloud-notebooks-v1-0.5.0 vs lib/google/cloud/notebooks/v1/instance_pb.rb in google-cloud-notebooks-v1-0.6.0

- old
+ new

@@ -1,162 +1,42 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/notebooks/v1/instance.proto require 'google/protobuf' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/cloud/notebooks/v1/environment_pb' require 'google/protobuf/timestamp_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/notebooks/v1/instance.proto", :syntax => :proto3) do - add_message "google.cloud.notebooks.v1.ReservationAffinity" do - optional :consume_reservation_type, :enum, 1, "google.cloud.notebooks.v1.ReservationAffinity.Type" - optional :key, :string, 2 - repeated :values, :string, 3 + +descriptor_data = "\n(google/cloud/notebooks/v1/instance.proto\x12\x19google.cloud.notebooks.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/notebooks/v1/environment.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf9\x01\n\x13ReservationAffinity\x12Z\n\x18\x63onsume_reservation_type\x18\x01 \x01(\x0e\x32\x33.google.cloud.notebooks.v1.ReservationAffinity.TypeB\x03\xe0\x41\x01\x12\x10\n\x03key\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06values\x18\x03 \x03(\tB\x03\xe0\x41\x01\"_\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eNO_RESERVATION\x10\x01\x12\x13\n\x0f\x41NY_RESERVATION\x10\x02\x12\x18\n\x14SPECIFIC_RESERVATION\x10\x03\"\xad\x1c\n\x08Instance\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x36\n\x08vm_image\x18\x02 \x01(\x0b\x32\".google.cloud.notebooks.v1.VmImageH\x00\x12\x44\n\x0f\x63ontainer_image\x18\x03 \x01(\x0b\x32).google.cloud.notebooks.v1.ContainerImageH\x00\x12\x1b\n\x13post_startup_script\x18\x04 \x01(\t\x12\x16\n\tproxy_uri\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0finstance_owners\x18\x06 \x03(\tB\x03\xe0\x41\x04\x12\x17\n\x0fservice_account\x18\x07 \x01(\t\x12#\n\x16service_account_scopes\x18\x1f \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0cmachine_type\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12Q\n\x12\x61\x63\x63\x65lerator_config\x18\t \x01(\x0b\x32\x35.google.cloud.notebooks.v1.Instance.AcceleratorConfig\x12=\n\x05state\x18\n \x01(\x0e\x32).google.cloud.notebooks.v1.Instance.StateB\x03\xe0\x41\x03\x12\x1a\n\x12install_gpu_driver\x18\x0b \x01(\x08\x12\x1e\n\x16\x63ustom_gpu_driver_path\x18\x0c \x01(\t\x12I\n\x0e\x62oot_disk_type\x18\r \x01(\x0e\x32,.google.cloud.notebooks.v1.Instance.DiskTypeB\x03\xe0\x41\x04\x12\x1e\n\x11\x62oot_disk_size_gb\x18\x0e \x01(\x03\x42\x03\xe0\x41\x04\x12I\n\x0e\x64\x61ta_disk_type\x18\x19 \x01(\x0e\x32,.google.cloud.notebooks.v1.Instance.DiskTypeB\x03\xe0\x41\x04\x12\x1e\n\x11\x64\x61ta_disk_size_gb\x18\x1a \x01(\x03\x42\x03\xe0\x41\x04\x12 \n\x13no_remove_data_disk\x18\x1b \x01(\x08\x42\x03\xe0\x41\x04\x12P\n\x0f\x64isk_encryption\x18\x0f \x01(\x0e\x32\x32.google.cloud.notebooks.v1.Instance.DiskEncryptionB\x03\xe0\x41\x04\x12\x14\n\x07kms_key\x18\x10 \x01(\tB\x03\xe0\x41\x04\x12<\n\x05\x64isks\x18\x1c \x03(\x0b\x32(.google.cloud.notebooks.v1.Instance.DiskB\x03\xe0\x41\x03\x12\x61\n\x18shielded_instance_config\x18\x1e \x01(\x0b\x32:.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigB\x03\xe0\x41\x01\x12\x14\n\x0cno_public_ip\x18\x11 \x01(\x08\x12\x17\n\x0fno_proxy_access\x18\x12 \x01(\x08\x12\x0f\n\x07network\x18\x13 \x01(\t\x12\x0e\n\x06subnet\x18\x14 \x01(\t\x12?\n\x06labels\x18\x15 \x03(\x0b\x32/.google.cloud.notebooks.v1.Instance.LabelsEntry\x12\x43\n\x08metadata\x18\x16 \x03(\x0b\x32\x31.google.cloud.notebooks.v1.Instance.MetadataEntry\x12\x11\n\x04tags\x18 \x03(\tB\x03\xe0\x41\x01\x12P\n\x0fupgrade_history\x18\x1d \x03(\x0b\x32\x37.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry\x12\x42\n\x08nic_type\x18! \x01(\x0e\x32+.google.cloud.notebooks.v1.Instance.NicTypeB\x03\xe0\x41\x01\x12Q\n\x14reservation_affinity\x18\" \x01(\x0b\x32..google.cloud.notebooks.v1.ReservationAffinityB\x03\xe0\x41\x01\x12\x14\n\x07\x63reator\x18$ \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x63\x61n_ip_forward\x18\' \x01(\x08\x42\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x18 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1aj\n\x11\x41\x63\x63\x65leratorConfig\x12\x41\n\x04type\x18\x01 \x01(\x0e\x32\x33.google.cloud.notebooks.v1.Instance.AcceleratorType\x12\x12\n\ncore_count\x18\x02 \x01(\x03\x1a\xb6\x02\n\x04\x44isk\x12\x13\n\x0b\x61uto_delete\x18\x01 \x01(\x08\x12\x0c\n\x04\x62oot\x18\x02 \x01(\x08\x12\x13\n\x0b\x64\x65vice_name\x18\x03 \x01(\t\x12\x14\n\x0c\x64isk_size_gb\x18\x04 \x01(\x03\x12R\n\x11guest_os_features\x18\x05 \x03(\x0b\x32\x37.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature\x12\r\n\x05index\x18\x06 \x01(\x03\x12\x11\n\tinterface\x18\x07 \x01(\t\x12\x0c\n\x04kind\x18\x08 \x01(\t\x12\x10\n\x08licenses\x18\t \x03(\t\x12\x0c\n\x04mode\x18\n \x01(\t\x12\x0e\n\x06source\x18\x0b \x01(\t\x12\x0c\n\x04type\x18\x0c \x01(\t\x1a\x1e\n\x0eGuestOsFeature\x12\x0c\n\x04type\x18\x01 \x01(\t\x1an\n\x16ShieldedInstanceConfig\x12\x1a\n\x12\x65nable_secure_boot\x18\x01 \x01(\x08\x12\x13\n\x0b\x65nable_vtpm\x18\x02 \x01(\x08\x12#\n\x1b\x65nable_integrity_monitoring\x18\x03 \x01(\x08\x1a\xfc\x03\n\x13UpgradeHistoryEntry\x12\x10\n\x08snapshot\x18\x01 \x01(\t\x12\x10\n\x08vm_image\x18\x02 \x01(\t\x12\x17\n\x0f\x63ontainer_image\x18\x03 \x01(\t\x12\x11\n\tframework\x18\x04 \x01(\t\x12\x0f\n\x07version\x18\x05 \x01(\t\x12L\n\x05state\x18\x06 \x01(\x0e\x32=.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x0ctarget_image\x18\x08 \x01(\tB\x02\x18\x01\x12N\n\x06\x61\x63tion\x18\t \x01(\x0e\x32>.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action\x12\x16\n\x0etarget_version\x18\n \x01(\t\"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\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9d\x02\n\x0f\x41\x63\x63\x65leratorType\x12 \n\x1c\x41\x43\x43\x45LERATOR_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10NVIDIA_TESLA_K80\x10\x01\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\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\x12\n\n\x06TPU_V2\x10\x06\x12\n\n\x06TPU_V3\x10\x07\"\xc3\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\x0f\n\x0bREGISTERING\x10\t\x12\x0e\n\nSUSPENDING\x10\n\x12\r\n\tSUSPENDED\x10\x0b\"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\"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\">\n\x07NicType\x12\x18\n\x14UNSPECIFIED_NIC_TYPE\x10\x00\x12\x0e\n\nVIRTIO_NET\x10\x01\x12\t\n\x05GVNIC\x10\x02:O\xea\x41L\n!notebooks.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}B\r\n\x0b\x65nvironmentB\xc4\x01\n\x1d\x63om.google.cloud.notebooks.v1B\rInstanceProtoP\x01Z;cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspb\xaa\x02\x19Google.Cloud.Notebooks.V1\xca\x02\x19Google\\Cloud\\Notebooks\\V1\xea\x02\x1cGoogle::Cloud::Notebooks::V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError => e + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.cloud.notebooks.v1.VmImage", "google/cloud/notebooks/v1/environment.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" end - add_enum "google.cloud.notebooks.v1.ReservationAffinity.Type" do - value :TYPE_UNSPECIFIED, 0 - value :NO_RESERVATION, 1 - value :ANY_RESERVATION, 2 - value :SPECIFIC_RESERVATION, 3 - end - add_message "google.cloud.notebooks.v1.Instance" do - optional :name, :string, 1 - optional :post_startup_script, :string, 4 - optional :proxy_uri, :string, 5 - repeated :instance_owners, :string, 6 - optional :service_account, :string, 7 - repeated :service_account_scopes, :string, 31 - optional :machine_type, :string, 8 - optional :accelerator_config, :message, 9, "google.cloud.notebooks.v1.Instance.AcceleratorConfig" - optional :state, :enum, 10, "google.cloud.notebooks.v1.Instance.State" - optional :install_gpu_driver, :bool, 11 - optional :custom_gpu_driver_path, :string, 12 - optional :boot_disk_type, :enum, 13, "google.cloud.notebooks.v1.Instance.DiskType" - optional :boot_disk_size_gb, :int64, 14 - optional :data_disk_type, :enum, 25, "google.cloud.notebooks.v1.Instance.DiskType" - optional :data_disk_size_gb, :int64, 26 - optional :no_remove_data_disk, :bool, 27 - optional :disk_encryption, :enum, 15, "google.cloud.notebooks.v1.Instance.DiskEncryption" - optional :kms_key, :string, 16 - repeated :disks, :message, 28, "google.cloud.notebooks.v1.Instance.Disk" - optional :shielded_instance_config, :message, 30, "google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig" - optional :no_public_ip, :bool, 17 - optional :no_proxy_access, :bool, 18 - optional :network, :string, 19 - optional :subnet, :string, 20 - map :labels, :string, :string, 21 - map :metadata, :string, :string, 22 - repeated :tags, :string, 32 - repeated :upgrade_history, :message, 29, "google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry" - optional :nic_type, :enum, 33, "google.cloud.notebooks.v1.Instance.NicType" - optional :reservation_affinity, :message, 34, "google.cloud.notebooks.v1.ReservationAffinity" - optional :creator, :string, 36 - optional :can_ip_forward, :bool, 39 - optional :create_time, :message, 23, "google.protobuf.Timestamp" - optional :update_time, :message, 24, "google.protobuf.Timestamp" - oneof :environment do - optional :vm_image, :message, 2, "google.cloud.notebooks.v1.VmImage" - optional :container_image, :message, 3, "google.cloud.notebooks.v1.ContainerImage" - end - end - add_message "google.cloud.notebooks.v1.Instance.AcceleratorConfig" do - optional :type, :enum, 1, "google.cloud.notebooks.v1.Instance.AcceleratorType" - optional :core_count, :int64, 2 - end - add_message "google.cloud.notebooks.v1.Instance.Disk" do - optional :auto_delete, :bool, 1 - optional :boot, :bool, 2 - optional :device_name, :string, 3 - optional :disk_size_gb, :int64, 4 - repeated :guest_os_features, :message, 5, "google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature" - optional :index, :int64, 6 - optional :interface, :string, 7 - optional :kind, :string, 8 - repeated :licenses, :string, 9 - optional :mode, :string, 10 - optional :source, :string, 11 - optional :type, :string, 12 - end - add_message "google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature" do - optional :type, :string, 1 - end - add_message "google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig" do - optional :enable_secure_boot, :bool, 1 - optional :enable_vtpm, :bool, 2 - optional :enable_integrity_monitoring, :bool, 3 - end - add_message "google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry" do - optional :snapshot, :string, 1 - optional :vm_image, :string, 2 - optional :container_image, :string, 3 - optional :framework, :string, 4 - optional :version, :string, 5 - optional :state, :enum, 6, "google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State" - optional :create_time, :message, 7, "google.protobuf.Timestamp" - optional :target_image, :string, 8 - optional :action, :enum, 9, "google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action" - optional :target_version, :string, 10 - end - add_enum "google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State" do - value :STATE_UNSPECIFIED, 0 - value :STARTED, 1 - value :SUCCEEDED, 2 - value :FAILED, 3 - end - add_enum "google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action" do - value :ACTION_UNSPECIFIED, 0 - value :UPGRADE, 1 - value :ROLLBACK, 2 - end - add_enum "google.cloud.notebooks.v1.Instance.AcceleratorType" do - value :ACCELERATOR_TYPE_UNSPECIFIED, 0 - value :NVIDIA_TESLA_K80, 1 - value :NVIDIA_TESLA_P100, 2 - value :NVIDIA_TESLA_V100, 3 - value :NVIDIA_TESLA_P4, 4 - value :NVIDIA_TESLA_T4, 5 - value :NVIDIA_TESLA_A100, 11 - value :NVIDIA_TESLA_T4_VWS, 8 - value :NVIDIA_TESLA_P100_VWS, 9 - value :NVIDIA_TESLA_P4_VWS, 10 - value :TPU_V2, 6 - value :TPU_V3, 7 - end - add_enum "google.cloud.notebooks.v1.Instance.State" do - value :STATE_UNSPECIFIED, 0 - value :STARTING, 1 - value :PROVISIONING, 2 - value :ACTIVE, 3 - value :STOPPING, 4 - value :STOPPED, 5 - value :DELETED, 6 - value :UPGRADING, 7 - value :INITIALIZING, 8 - value :REGISTERING, 9 - value :SUSPENDING, 10 - value :SUSPENDED, 11 - end - add_enum "google.cloud.notebooks.v1.Instance.DiskType" do - value :DISK_TYPE_UNSPECIFIED, 0 - value :PD_STANDARD, 1 - value :PD_SSD, 2 - value :PD_BALANCED, 3 - value :PD_EXTREME, 4 - end - add_enum "google.cloud.notebooks.v1.Instance.DiskEncryption" do - value :DISK_ENCRYPTION_UNSPECIFIED, 0 - value :GMEK, 1 - value :CMEK, 2 - end - add_enum "google.cloud.notebooks.v1.Instance.NicType" do - value :UNSPECIFIED_NIC_TYPE, 0 - value :VIRTIO_NET, 1 - value :GVNIC, 2 - end end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." end module Google module Cloud module Notebooks