google-cloud-notebooks-v1 0.4.2 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/google/cloud/notebooks/v1/bindings_override.rb +159 -0
  4. data/lib/google/cloud/notebooks/v1/diagnostic_config_pb.rb +24 -8
  5. data/lib/google/cloud/notebooks/v1/environment_pb.rb +25 -23
  6. data/lib/google/cloud/notebooks/v1/event_pb.rb +25 -13
  7. data/lib/google/cloud/notebooks/v1/execution_pb.rb +25 -79
  8. data/lib/google/cloud/notebooks/v1/instance_config_pb.rb +24 -5
  9. data/lib/google/cloud/notebooks/v1/instance_pb.rb +26 -146
  10. data/lib/google/cloud/notebooks/v1/managed_notebook_service/client.rb +46 -48
  11. data/lib/google/cloud/notebooks/v1/managed_notebook_service/operations.rb +14 -16
  12. data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/client.rb +1342 -0
  13. data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/operations.rb +793 -0
  14. data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/service_stub.rb +825 -0
  15. data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest.rb +54 -0
  16. data/lib/google/cloud/notebooks/v1/managed_notebook_service.rb +6 -0
  17. data/lib/google/cloud/notebooks/v1/managed_service_pb.rb +29 -68
  18. data/lib/google/cloud/notebooks/v1/notebook_service/client.rb +110 -118
  19. data/lib/google/cloud/notebooks/v1/notebook_service/operations.rb +14 -16
  20. data/lib/google/cloud/notebooks/v1/notebook_service/rest/client.rb +2898 -0
  21. data/lib/google/cloud/notebooks/v1/notebook_service/rest/operations.rb +793 -0
  22. data/lib/google/cloud/notebooks/v1/notebook_service/rest/service_stub.rb +2074 -0
  23. data/lib/google/cloud/notebooks/v1/notebook_service/rest.rb +54 -0
  24. data/lib/google/cloud/notebooks/v1/notebook_service.rb +6 -0
  25. data/lib/google/cloud/notebooks/v1/rest.rb +39 -0
  26. data/lib/google/cloud/notebooks/v1/runtime_pb.rb +26 -152
  27. data/lib/google/cloud/notebooks/v1/schedule_pb.rb +26 -22
  28. data/lib/google/cloud/notebooks/v1/service_pb.rb +31 -196
  29. data/lib/google/cloud/notebooks/v1/version.rb +1 -1
  30. data/lib/google/cloud/notebooks/v1.rb +5 -0
  31. data/proto_docs/google/api/client.rb +67 -4
  32. data/proto_docs/google/protobuf/any.rb +7 -4
  33. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  34. metadata +22 -12
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/notebooks/v1/instance.proto
3
4
 
@@ -8,154 +9,33 @@ require 'google/api/resource_pb'
8
9
  require 'google/cloud/notebooks/v1/environment_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/notebooks/v1/instance.proto", :syntax => :proto3) do
13
- add_message "google.cloud.notebooks.v1.ReservationAffinity" do
14
- optional :consume_reservation_type, :enum, 1, "google.cloud.notebooks.v1.ReservationAffinity.Type"
15
- optional :key, :string, 2
16
- repeated :values, :string, 3
17
- end
18
- add_enum "google.cloud.notebooks.v1.ReservationAffinity.Type" do
19
- value :TYPE_UNSPECIFIED, 0
20
- value :NO_RESERVATION, 1
21
- value :ANY_RESERVATION, 2
22
- value :SPECIFIC_RESERVATION, 3
23
- end
24
- add_message "google.cloud.notebooks.v1.Instance" do
25
- optional :name, :string, 1
26
- optional :post_startup_script, :string, 4
27
- optional :proxy_uri, :string, 5
28
- repeated :instance_owners, :string, 6
29
- optional :service_account, :string, 7
30
- repeated :service_account_scopes, :string, 31
31
- optional :machine_type, :string, 8
32
- optional :accelerator_config, :message, 9, "google.cloud.notebooks.v1.Instance.AcceleratorConfig"
33
- optional :state, :enum, 10, "google.cloud.notebooks.v1.Instance.State"
34
- optional :install_gpu_driver, :bool, 11
35
- optional :custom_gpu_driver_path, :string, 12
36
- optional :boot_disk_type, :enum, 13, "google.cloud.notebooks.v1.Instance.DiskType"
37
- optional :boot_disk_size_gb, :int64, 14
38
- optional :data_disk_type, :enum, 25, "google.cloud.notebooks.v1.Instance.DiskType"
39
- optional :data_disk_size_gb, :int64, 26
40
- optional :no_remove_data_disk, :bool, 27
41
- optional :disk_encryption, :enum, 15, "google.cloud.notebooks.v1.Instance.DiskEncryption"
42
- optional :kms_key, :string, 16
43
- repeated :disks, :message, 28, "google.cloud.notebooks.v1.Instance.Disk"
44
- optional :shielded_instance_config, :message, 30, "google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig"
45
- optional :no_public_ip, :bool, 17
46
- optional :no_proxy_access, :bool, 18
47
- optional :network, :string, 19
48
- optional :subnet, :string, 20
49
- map :labels, :string, :string, 21
50
- map :metadata, :string, :string, 22
51
- repeated :tags, :string, 32
52
- repeated :upgrade_history, :message, 29, "google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry"
53
- optional :nic_type, :enum, 33, "google.cloud.notebooks.v1.Instance.NicType"
54
- optional :reservation_affinity, :message, 34, "google.cloud.notebooks.v1.ReservationAffinity"
55
- optional :creator, :string, 36
56
- optional :can_ip_forward, :bool, 39
57
- optional :create_time, :message, 23, "google.protobuf.Timestamp"
58
- optional :update_time, :message, 24, "google.protobuf.Timestamp"
59
- oneof :environment do
60
- optional :vm_image, :message, 2, "google.cloud.notebooks.v1.VmImage"
61
- optional :container_image, :message, 3, "google.cloud.notebooks.v1.ContainerImage"
62
- end
63
- end
64
- add_message "google.cloud.notebooks.v1.Instance.AcceleratorConfig" do
65
- optional :type, :enum, 1, "google.cloud.notebooks.v1.Instance.AcceleratorType"
66
- optional :core_count, :int64, 2
67
- end
68
- add_message "google.cloud.notebooks.v1.Instance.Disk" do
69
- optional :auto_delete, :bool, 1
70
- optional :boot, :bool, 2
71
- optional :device_name, :string, 3
72
- optional :disk_size_gb, :int64, 4
73
- repeated :guest_os_features, :message, 5, "google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature"
74
- optional :index, :int64, 6
75
- optional :interface, :string, 7
76
- optional :kind, :string, 8
77
- repeated :licenses, :string, 9
78
- optional :mode, :string, 10
79
- optional :source, :string, 11
80
- optional :type, :string, 12
81
- end
82
- add_message "google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature" do
83
- optional :type, :string, 1
84
- end
85
- add_message "google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig" do
86
- optional :enable_secure_boot, :bool, 1
87
- optional :enable_vtpm, :bool, 2
88
- optional :enable_integrity_monitoring, :bool, 3
89
- end
90
- add_message "google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry" do
91
- optional :snapshot, :string, 1
92
- optional :vm_image, :string, 2
93
- optional :container_image, :string, 3
94
- optional :framework, :string, 4
95
- optional :version, :string, 5
96
- optional :state, :enum, 6, "google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State"
97
- optional :create_time, :message, 7, "google.protobuf.Timestamp"
98
- optional :target_image, :string, 8
99
- optional :action, :enum, 9, "google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action"
100
- optional :target_version, :string, 10
101
- end
102
- add_enum "google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State" do
103
- value :STATE_UNSPECIFIED, 0
104
- value :STARTED, 1
105
- value :SUCCEEDED, 2
106
- value :FAILED, 3
107
- end
108
- add_enum "google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action" do
109
- value :ACTION_UNSPECIFIED, 0
110
- value :UPGRADE, 1
111
- value :ROLLBACK, 2
112
- end
113
- add_enum "google.cloud.notebooks.v1.Instance.AcceleratorType" do
114
- value :ACCELERATOR_TYPE_UNSPECIFIED, 0
115
- value :NVIDIA_TESLA_K80, 1
116
- value :NVIDIA_TESLA_P100, 2
117
- value :NVIDIA_TESLA_V100, 3
118
- value :NVIDIA_TESLA_P4, 4
119
- value :NVIDIA_TESLA_T4, 5
120
- value :NVIDIA_TESLA_A100, 11
121
- value :NVIDIA_TESLA_T4_VWS, 8
122
- value :NVIDIA_TESLA_P100_VWS, 9
123
- value :NVIDIA_TESLA_P4_VWS, 10
124
- value :TPU_V2, 6
125
- value :TPU_V3, 7
126
- end
127
- add_enum "google.cloud.notebooks.v1.Instance.State" do
128
- value :STATE_UNSPECIFIED, 0
129
- value :STARTING, 1
130
- value :PROVISIONING, 2
131
- value :ACTIVE, 3
132
- value :STOPPING, 4
133
- value :STOPPED, 5
134
- value :DELETED, 6
135
- value :UPGRADING, 7
136
- value :INITIALIZING, 8
137
- value :REGISTERING, 9
138
- value :SUSPENDING, 10
139
- value :SUSPENDED, 11
140
- end
141
- add_enum "google.cloud.notebooks.v1.Instance.DiskType" do
142
- value :DISK_TYPE_UNSPECIFIED, 0
143
- value :PD_STANDARD, 1
144
- value :PD_SSD, 2
145
- value :PD_BALANCED, 3
146
- value :PD_EXTREME, 4
147
- end
148
- add_enum "google.cloud.notebooks.v1.Instance.DiskEncryption" do
149
- value :DISK_ENCRYPTION_UNSPECIFIED, 0
150
- value :GMEK, 1
151
- value :CMEK, 2
152
- end
153
- add_enum "google.cloud.notebooks.v1.Instance.NicType" do
154
- value :UNSPECIFIED_NIC_TYPE, 0
155
- value :VIRTIO_NET, 1
156
- value :GVNIC, 2
12
+
13
+ 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"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
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.cloud.notebooks.v1.VmImage", "google/cloud/notebooks/v1/environment.proto"],
29
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.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}"
157
35
  end
158
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."
159
39
  end
160
40
 
161
41
  module Google
@@ -257,13 +257,11 @@ module Google
257
257
  # # Call the list_runtimes method.
258
258
  # result = client.list_runtimes request
259
259
  #
260
- # # The returned object is of type Gapic::PagedEnumerable. You can
261
- # # iterate over all elements by calling #each, and the enumerable
262
- # # will lazily make API calls to fetch subsequent pages. Other
263
- # # methods are also available for managing paging directly.
264
- # result.each do |response|
260
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
261
+ # # over elements, and API calls will be issued to fetch pages as needed.
262
+ # result.each do |item|
265
263
  # # Each element is of type ::Google::Cloud::Notebooks::V1::Runtime.
266
- # p response
264
+ # p item
267
265
  # end
268
266
  #
269
267
  def list_runtimes request, options = nil
@@ -443,14 +441,14 @@ module Google
443
441
  # # Call the create_runtime method.
444
442
  # result = client.create_runtime request
445
443
  #
446
- # # The returned object is of type Gapic::Operation. You can use this
447
- # # object to check the status of an operation, cancel it, or wait
448
- # # for results. Here is how to block until completion:
444
+ # # The returned object is of type Gapic::Operation. You can use it to
445
+ # # check the status of an operation, cancel it, or wait for results.
446
+ # # Here is how to wait for a response.
449
447
  # result.wait_until_done! timeout: 60
450
448
  # if result.response?
451
449
  # p result.response
452
450
  # else
453
- # puts "Error!"
451
+ # puts "No response received."
454
452
  # end
455
453
  #
456
454
  def create_runtime request, options = nil
@@ -562,14 +560,14 @@ module Google
562
560
  # # Call the update_runtime method.
563
561
  # result = client.update_runtime request
564
562
  #
565
- # # The returned object is of type Gapic::Operation. You can use this
566
- # # object to check the status of an operation, cancel it, or wait
567
- # # for results. Here is how to block until completion:
563
+ # # The returned object is of type Gapic::Operation. You can use it to
564
+ # # check the status of an operation, cancel it, or wait for results.
565
+ # # Here is how to wait for a response.
568
566
  # result.wait_until_done! timeout: 60
569
567
  # if result.response?
570
568
  # p result.response
571
569
  # else
572
- # puts "Error!"
570
+ # puts "No response received."
573
571
  # end
574
572
  #
575
573
  def update_runtime request, options = nil
@@ -658,14 +656,14 @@ module Google
658
656
  # # Call the delete_runtime method.
659
657
  # result = client.delete_runtime request
660
658
  #
661
- # # The returned object is of type Gapic::Operation. You can use this
662
- # # object to check the status of an operation, cancel it, or wait
663
- # # for results. Here is how to block until completion:
659
+ # # The returned object is of type Gapic::Operation. You can use it to
660
+ # # check the status of an operation, cancel it, or wait for results.
661
+ # # Here is how to wait for a response.
664
662
  # result.wait_until_done! timeout: 60
665
663
  # if result.response?
666
664
  # p result.response
667
665
  # else
668
- # puts "Error!"
666
+ # puts "No response received."
669
667
  # end
670
668
  #
671
669
  def delete_runtime request, options = nil
@@ -758,14 +756,14 @@ module Google
758
756
  # # Call the start_runtime method.
759
757
  # result = client.start_runtime request
760
758
  #
761
- # # The returned object is of type Gapic::Operation. You can use this
762
- # # object to check the status of an operation, cancel it, or wait
763
- # # for results. Here is how to block until completion:
759
+ # # The returned object is of type Gapic::Operation. You can use it to
760
+ # # check the status of an operation, cancel it, or wait for results.
761
+ # # Here is how to wait for a response.
764
762
  # result.wait_until_done! timeout: 60
765
763
  # if result.response?
766
764
  # p result.response
767
765
  # else
768
- # puts "Error!"
766
+ # puts "No response received."
769
767
  # end
770
768
  #
771
769
  def start_runtime request, options = nil
@@ -858,14 +856,14 @@ module Google
858
856
  # # Call the stop_runtime method.
859
857
  # result = client.stop_runtime request
860
858
  #
861
- # # The returned object is of type Gapic::Operation. You can use this
862
- # # object to check the status of an operation, cancel it, or wait
863
- # # for results. Here is how to block until completion:
859
+ # # The returned object is of type Gapic::Operation. You can use it to
860
+ # # check the status of an operation, cancel it, or wait for results.
861
+ # # Here is how to wait for a response.
864
862
  # result.wait_until_done! timeout: 60
865
863
  # if result.response?
866
864
  # p result.response
867
865
  # else
868
- # puts "Error!"
866
+ # puts "No response received."
869
867
  # end
870
868
  #
871
869
  def stop_runtime request, options = nil
@@ -958,14 +956,14 @@ module Google
958
956
  # # Call the switch_runtime method.
959
957
  # result = client.switch_runtime request
960
958
  #
961
- # # The returned object is of type Gapic::Operation. You can use this
962
- # # object to check the status of an operation, cancel it, or wait
963
- # # for results. Here is how to block until completion:
959
+ # # The returned object is of type Gapic::Operation. You can use it to
960
+ # # check the status of an operation, cancel it, or wait for results.
961
+ # # Here is how to wait for a response.
964
962
  # result.wait_until_done! timeout: 60
965
963
  # if result.response?
966
964
  # p result.response
967
965
  # else
968
- # puts "Error!"
966
+ # puts "No response received."
969
967
  # end
970
968
  #
971
969
  def switch_runtime request, options = nil
@@ -1054,14 +1052,14 @@ module Google
1054
1052
  # # Call the reset_runtime method.
1055
1053
  # result = client.reset_runtime request
1056
1054
  #
1057
- # # The returned object is of type Gapic::Operation. You can use this
1058
- # # object to check the status of an operation, cancel it, or wait
1059
- # # for results. Here is how to block until completion:
1055
+ # # The returned object is of type Gapic::Operation. You can use it to
1056
+ # # check the status of an operation, cancel it, or wait for results.
1057
+ # # Here is how to wait for a response.
1060
1058
  # result.wait_until_done! timeout: 60
1061
1059
  # if result.response?
1062
1060
  # p result.response
1063
1061
  # else
1064
- # puts "Error!"
1062
+ # puts "No response received."
1065
1063
  # end
1066
1064
  #
1067
1065
  def reset_runtime request, options = nil
@@ -1150,14 +1148,14 @@ module Google
1150
1148
  # # Call the upgrade_runtime method.
1151
1149
  # result = client.upgrade_runtime request
1152
1150
  #
1153
- # # The returned object is of type Gapic::Operation. You can use this
1154
- # # object to check the status of an operation, cancel it, or wait
1155
- # # for results. Here is how to block until completion:
1151
+ # # The returned object is of type Gapic::Operation. You can use it to
1152
+ # # check the status of an operation, cancel it, or wait for results.
1153
+ # # Here is how to wait for a response.
1156
1154
  # result.wait_until_done! timeout: 60
1157
1155
  # if result.response?
1158
1156
  # p result.response
1159
1157
  # else
1160
- # puts "Error!"
1158
+ # puts "No response received."
1161
1159
  # end
1162
1160
  #
1163
1161
  def upgrade_runtime request, options = nil
@@ -1249,14 +1247,14 @@ module Google
1249
1247
  # # Call the report_runtime_event method.
1250
1248
  # result = client.report_runtime_event request
1251
1249
  #
1252
- # # The returned object is of type Gapic::Operation. You can use this
1253
- # # object to check the status of an operation, cancel it, or wait
1254
- # # for results. Here is how to block until completion:
1250
+ # # The returned object is of type Gapic::Operation. You can use it to
1251
+ # # check the status of an operation, cancel it, or wait for results.
1252
+ # # Here is how to wait for a response.
1255
1253
  # result.wait_until_done! timeout: 60
1256
1254
  # if result.response?
1257
1255
  # p result.response
1258
1256
  # else
1259
- # puts "Error!"
1257
+ # puts "No response received."
1260
1258
  # end
1261
1259
  #
1262
1260
  def report_runtime_event request, options = nil
@@ -1435,14 +1433,14 @@ module Google
1435
1433
  # # Call the diagnose_runtime method.
1436
1434
  # result = client.diagnose_runtime request
1437
1435
  #
1438
- # # The returned object is of type Gapic::Operation. You can use this
1439
- # # object to check the status of an operation, cancel it, or wait
1440
- # # for results. Here is how to block until completion:
1436
+ # # The returned object is of type Gapic::Operation. You can use it to
1437
+ # # check the status of an operation, cancel it, or wait for results.
1438
+ # # Here is how to wait for a response.
1441
1439
  # result.wait_until_done! timeout: 60
1442
1440
  # if result.response?
1443
1441
  # p result.response
1444
1442
  # else
1445
- # puts "Error!"
1443
+ # puts "No response received."
1446
1444
  # end
1447
1445
  #
1448
1446
  def diagnose_runtime request, options = nil
@@ -1525,9 +1523,9 @@ module Google
1525
1523
  # * (`String`) The path to a service account key file in JSON format
1526
1524
  # * (`Hash`) A service account key as a Hash
1527
1525
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1528
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1526
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1529
1527
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1530
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1528
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1531
1529
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1532
1530
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1533
1531
  # * (`nil`) indicating no credentials
@@ -158,13 +158,11 @@ module Google
158
158
  # # Call the list_operations method.
159
159
  # result = client.list_operations request
160
160
  #
161
- # # The returned object is of type Gapic::PagedEnumerable. You can
162
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
164
- # # methods are also available for managing paging directly.
165
- # result.each do |response|
161
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
162
+ # # over elements, and API calls will be issued to fetch pages as needed.
163
+ # result.each do |item|
166
164
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
165
+ # p item
168
166
  # end
169
167
  #
170
168
  def list_operations request, options = nil
@@ -253,14 +251,14 @@ module Google
253
251
  # # Call the get_operation method.
254
252
  # result = client.get_operation request
255
253
  #
256
- # # The returned object is of type Gapic::Operation. You can use this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
254
+ # # The returned object is of type Gapic::Operation. You can use it to
255
+ # # check the status of an operation, cancel it, or wait for results.
256
+ # # Here is how to wait for a response.
259
257
  # result.wait_until_done! timeout: 60
260
258
  # if result.response?
261
259
  # p result.response
262
260
  # else
263
- # puts "Error!"
261
+ # puts "No response received."
264
262
  # end
265
263
  #
266
264
  def get_operation request, options = nil
@@ -540,14 +538,14 @@ module Google
540
538
  # # Call the wait_operation method.
541
539
  # result = client.wait_operation request
542
540
  #
543
- # # The returned object is of type Gapic::Operation. You can use this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
541
+ # # The returned object is of type Gapic::Operation. You can use it to
542
+ # # check the status of an operation, cancel it, or wait for results.
543
+ # # Here is how to wait for a response.
546
544
  # result.wait_until_done! timeout: 60
547
545
  # if result.response?
548
546
  # p result.response
549
547
  # else
550
- # puts "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil
@@ -622,9 +620,9 @@ module Google
622
620
  # * (`String`) The path to a service account key file in JSON format
623
621
  # * (`Hash`) A service account key as a Hash
624
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
625
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
626
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
627
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
628
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
629
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
630
628
  # * (`nil`) indicating no credentials