google-cloud-notebooks-v1 0.5.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/notebooks/v1/diagnostic_config_pb.rb +24 -8
  4. data/lib/google/cloud/notebooks/v1/environment_pb.rb +25 -23
  5. data/lib/google/cloud/notebooks/v1/event_pb.rb +25 -13
  6. data/lib/google/cloud/notebooks/v1/execution_pb.rb +25 -79
  7. data/lib/google/cloud/notebooks/v1/instance_config_pb.rb +24 -5
  8. data/lib/google/cloud/notebooks/v1/instance_pb.rb +26 -146
  9. data/lib/google/cloud/notebooks/v1/managed_notebook_service/client.rb +6 -4
  10. data/lib/google/cloud/notebooks/v1/managed_notebook_service/operations.rb +5 -3
  11. data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/client.rb +6 -4
  12. data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/operations.rb +9 -7
  13. data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/service_stub.rb +13 -13
  14. data/lib/google/cloud/notebooks/v1/managed_service_pb.rb +29 -68
  15. data/lib/google/cloud/notebooks/v1/notebook_service/client.rb +6 -4
  16. data/lib/google/cloud/notebooks/v1/notebook_service/operations.rb +5 -3
  17. data/lib/google/cloud/notebooks/v1/notebook_service/rest/client.rb +6 -4
  18. data/lib/google/cloud/notebooks/v1/notebook_service/rest/operations.rb +9 -7
  19. data/lib/google/cloud/notebooks/v1/notebook_service/rest/service_stub.rb +34 -34
  20. data/lib/google/cloud/notebooks/v1/runtime_pb.rb +26 -152
  21. data/lib/google/cloud/notebooks/v1/schedule_pb.rb +26 -22
  22. data/lib/google/cloud/notebooks/v1/service_pb.rb +31 -196
  23. data/lib/google/cloud/notebooks/v1/version.rb +1 -1
  24. data/proto_docs/google/api/client.rb +67 -4
  25. data/proto_docs/google/protobuf/any.rb +7 -4
  26. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  27. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78e5dcddddef6c57ecbd9eb804c34ce99975360d6421def58c0f8d6b31380fed
4
- data.tar.gz: 7d366849246da1f7c3f758ce47336f46bee58e43266d117551cd836b73f9b855
3
+ metadata.gz: c8a2ce35e05d34dc2ace573a65db19ea84d064da5ac238671b74fa8a0e84282e
4
+ data.tar.gz: f12fabafb0ca694fdd7067bcaa274233d8f4ad26cfa03ac250ef5ff81a44f7d1
5
5
  SHA512:
6
- metadata.gz: e6a2b7e1bb8558168dd2eb06d151318d682faa441c6c6b2f22514d817b349a5cf58127af52f343c9b2afb07527174fa429c38fabc8410c163c7a50e8b467b67f
7
- data.tar.gz: b3e0324eb03939cbede834dc54c453a6592484629a6acaa0d7b2b16c496da33462cf40096c3635b9edf337ec6da00b718548020e403d72d34c71e6002acef97b
6
+ metadata.gz: fa6d11ccd7e584054a1acc9ff79c6e94d873147b45380b6b9d2e2d8817804022081977c5c6a2605d4c3dc5596a3e27aed32f8cc14ad1a92df85000c940956e02
7
+ data.tar.gz: 17dc0f41416f2ba4638d336112bcdebf9677fb0b751fcdc7824d1099abf1024b3ad594c2c634abc9d3feba70031190e42dc0bb1205097015611f838d15a026fe
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -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/diagnostic_config.proto
3
4
 
@@ -5,16 +6,31 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/api/field_behavior_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/notebooks/v1/diagnostic_config.proto", :syntax => :proto3) do
10
- add_message "google.cloud.notebooks.v1.DiagnosticConfig" do
11
- optional :gcs_bucket, :string, 1
12
- optional :relative_path, :string, 2
13
- optional :repair_flag_enabled, :bool, 3
14
- optional :packet_capture_flag_enabled, :bool, 4
15
- optional :copy_home_files_flag_enabled, :bool, 5
9
+
10
+ descriptor_data = "\n1google/cloud/notebooks/v1/diagnostic_config.proto\x12\x19google.cloud.notebooks.v1\x1a\x1fgoogle/api/field_behavior.proto\"\xbe\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 \n\x13repair_flag_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12(\n\x1bpacket_capture_flag_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12)\n\x1c\x63opy_home_files_flag_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x42u\n\x1d\x63om.google.cloud.notebooks.v1B\x15\x44iagnosticConfigProtoP\x01Z;cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspbb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
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}"
16
30
  end
17
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."
18
34
  end
19
35
 
20
36
  module Google
@@ -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/environment.proto
3
4
 
@@ -7,31 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/protobuf/timestamp_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/notebooks/v1/environment.proto", :syntax => :proto3) do
12
- add_message "google.cloud.notebooks.v1.Environment" do
13
- optional :name, :string, 1
14
- optional :display_name, :string, 2
15
- optional :description, :string, 3
16
- optional :post_startup_script, :string, 8
17
- optional :create_time, :message, 9, "google.protobuf.Timestamp"
18
- oneof :image_type do
19
- optional :vm_image, :message, 6, "google.cloud.notebooks.v1.VmImage"
20
- optional :container_image, :message, 7, "google.cloud.notebooks.v1.ContainerImage"
21
- end
22
- end
23
- add_message "google.cloud.notebooks.v1.VmImage" do
24
- optional :project, :string, 1
25
- oneof :image do
26
- optional :image_name, :string, 2
27
- optional :image_family, :string, 3
28
- end
29
- end
30
- add_message "google.cloud.notebooks.v1.ContainerImage" do
31
- optional :repository, :string, 1
32
- optional :tag, :string, 2
11
+
12
+ descriptor_data = "\n+google/cloud/notebooks/v1/environment.proto\x12\x19google.cloud.notebooks.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x84\x03\n\x0b\x45nvironment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x36\n\x08vm_image\x18\x06 \x01(\x0b\x32\".google.cloud.notebooks.v1.VmImageH\x00\x12\x44\n\x0f\x63ontainer_image\x18\x07 \x01(\x0b\x32).google.cloud.notebooks.v1.ContainerImageH\x00\x12\x1b\n\x13post_startup_script\x18\x08 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:X\xea\x41U\n$notebooks.googleapis.com/Environment\x12-projects/{project}/environments/{environment}B\x0c\n\nimage_type\"V\n\x07VmImage\x12\x14\n\x07project\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\nimage_name\x18\x02 \x01(\tH\x00\x12\x16\n\x0cimage_family\x18\x03 \x01(\tH\x00\x42\x07\n\x05image\"6\n\x0e\x43ontainerImage\x12\x17\n\nrepository\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0b\n\x03tag\x18\x02 \x01(\tB\xc7\x01\n\x1d\x63om.google.cloud.notebooks.v1B\x10\x45nvironmentProtoP\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"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
33
33
  end
34
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
35
37
  end
36
38
 
37
39
  module Google
@@ -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/event.proto
3
4
 
@@ -6,21 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/notebooks/v1/event.proto", :syntax => :proto3) do
11
- add_message "google.cloud.notebooks.v1.Event" do
12
- optional :report_time, :message, 1, "google.protobuf.Timestamp"
13
- optional :type, :enum, 2, "google.cloud.notebooks.v1.Event.EventType"
14
- map :details, :string, :string, 3
15
- end
16
- add_enum "google.cloud.notebooks.v1.Event.EventType" do
17
- value :EVENT_TYPE_UNSPECIFIED, 0
18
- value :IDLE, 1
19
- value :HEARTBEAT, 2
20
- value :HEALTH, 3
21
- value :MAINTENANCE, 4
10
+
11
+ descriptor_data = "\n%google/cloud/notebooks/v1/event.proto\x12\x19google.cloud.notebooks.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc6\x02\n\x05\x45vent\x12/\n\x0breport_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x04type\x18\x02 \x01(\x0e\x32*.google.cloud.notebooks.v1.Event.EventType\x12\x43\n\x07\x64\x65tails\x18\x03 \x03(\x0b\x32-.google.cloud.notebooks.v1.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\"]\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\x42j\n\x1d\x63om.google.cloud.notebooks.v1B\nEventProtoP\x01Z;cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspbb\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
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}"
22
32
  end
23
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."
24
36
  end
25
37
 
26
38
  module Google
@@ -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/execution.proto
3
4
 
@@ -7,87 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/protobuf/timestamp_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/notebooks/v1/execution.proto", :syntax => :proto3) do
12
- add_message "google.cloud.notebooks.v1.ExecutionTemplate" do
13
- optional :scale_tier, :enum, 1, "google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier"
14
- optional :master_type, :string, 2
15
- optional :accelerator_config, :message, 3, "google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig"
16
- map :labels, :string, :string, 4
17
- optional :input_notebook_file, :string, 5
18
- optional :container_image_uri, :string, 6
19
- optional :output_notebook_folder, :string, 7
20
- optional :params_yaml_file, :string, 8
21
- optional :parameters, :string, 9
22
- optional :service_account, :string, 10
23
- optional :job_type, :enum, 11, "google.cloud.notebooks.v1.ExecutionTemplate.JobType"
24
- optional :kernel_spec, :string, 14
25
- optional :tensorboard, :string, 15
26
- oneof :job_parameters do
27
- optional :dataproc_parameters, :message, 12, "google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters"
28
- optional :vertex_ai_parameters, :message, 13, "google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters"
29
- end
30
- end
31
- add_message "google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig" do
32
- optional :type, :enum, 1, "google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType"
33
- optional :core_count, :int64, 2
34
- end
35
- add_message "google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters" do
36
- optional :cluster, :string, 1
37
- end
38
- add_message "google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters" do
39
- optional :network, :string, 1
40
- map :env, :string, :string, 2
41
- end
42
- add_enum "google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier" do
43
- value :SCALE_TIER_UNSPECIFIED, 0
44
- value :BASIC, 1
45
- value :STANDARD_1, 2
46
- value :PREMIUM_1, 3
47
- value :BASIC_GPU, 4
48
- value :BASIC_TPU, 5
49
- value :CUSTOM, 6
50
- end
51
- add_enum "google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType" do
52
- value :SCHEDULER_ACCELERATOR_TYPE_UNSPECIFIED, 0
53
- value :NVIDIA_TESLA_K80, 1
54
- value :NVIDIA_TESLA_P100, 2
55
- value :NVIDIA_TESLA_V100, 3
56
- value :NVIDIA_TESLA_P4, 4
57
- value :NVIDIA_TESLA_T4, 5
58
- value :NVIDIA_TESLA_A100, 10
59
- value :TPU_V2, 6
60
- value :TPU_V3, 7
61
- end
62
- add_enum "google.cloud.notebooks.v1.ExecutionTemplate.JobType" do
63
- value :JOB_TYPE_UNSPECIFIED, 0
64
- value :VERTEX_AI, 1
65
- value :DATAPROC, 2
66
- end
67
- add_message "google.cloud.notebooks.v1.Execution" do
68
- optional :execution_template, :message, 1, "google.cloud.notebooks.v1.ExecutionTemplate"
69
- optional :name, :string, 2
70
- optional :display_name, :string, 3
71
- optional :description, :string, 4
72
- optional :create_time, :message, 5, "google.protobuf.Timestamp"
73
- optional :update_time, :message, 6, "google.protobuf.Timestamp"
74
- optional :state, :enum, 7, "google.cloud.notebooks.v1.Execution.State"
75
- optional :output_notebook_file, :string, 8
76
- optional :job_uri, :string, 9
77
- end
78
- add_enum "google.cloud.notebooks.v1.Execution.State" do
79
- value :STATE_UNSPECIFIED, 0
80
- value :QUEUED, 1
81
- value :PREPARING, 2
82
- value :RUNNING, 3
83
- value :SUCCEEDED, 4
84
- value :FAILED, 5
85
- value :CANCELLING, 6
86
- value :CANCELLED, 7
87
- value :EXPIRED, 9
88
- value :INITIALIZING, 10
11
+
12
+ descriptor_data = "\n)google/cloud/notebooks/v1/execution.proto\x12\x19google.cloud.notebooks.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xea\x0c\n\x11\x45xecutionTemplate\x12Q\n\nscale_tier\x18\x01 \x01(\x0e\x32\x36.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTierB\x05\x18\x01\xe0\x41\x02\x12\x13\n\x0bmaster_type\x18\x02 \x01(\t\x12\x63\n\x12\x61\x63\x63\x65lerator_config\x18\x03 \x01(\x0b\x32G.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig\x12H\n\x06labels\x18\x04 \x03(\x0b\x32\x38.google.cloud.notebooks.v1.ExecutionTemplate.LabelsEntry\x12\x1b\n\x13input_notebook_file\x18\x05 \x01(\t\x12\x1b\n\x13\x63ontainer_image_uri\x18\x06 \x01(\t\x12\x1e\n\x16output_notebook_folder\x18\x07 \x01(\t\x12\x18\n\x10params_yaml_file\x18\x08 \x01(\t\x12\x12\n\nparameters\x18\t \x01(\t\x12\x17\n\x0fservice_account\x18\n \x01(\t\x12\x46\n\x08job_type\x18\x0b \x01(\x0e\x32\x34.google.cloud.notebooks.v1.ExecutionTemplate.JobType\x12^\n\x13\x64\x61taproc_parameters\x18\x0c \x01(\x0b\x32?.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParametersH\x00\x12_\n\x14vertex_ai_parameters\x18\r \x01(\x0b\x32?.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersH\x00\x12\x13\n\x0bkernel_spec\x18\x0e \x01(\t\x12?\n\x0btensorboard\x18\x0f \x01(\tB*\xfa\x41\'\n%aiplatform.googleapis.com/Tensorboard\x1a\x85\x01\n\x1aSchedulerAcceleratorConfig\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType\x12\x12\n\ncore_count\x18\x02 \x01(\x03\x1a%\n\x12\x44\x61taprocParameters\x12\x0f\n\x07\x63luster\x18\x01 \x01(\t\x1a\xa8\x01\n\x12VertexAIParameters\x12\x0f\n\x07network\x18\x01 \x01(\t\x12U\n\x03\x65nv\x18\x02 \x03(\x0b\x32H.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.EnvEntry\x1a*\n\x08\x45nvEntry\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\"{\n\tScaleTier\x12\x1a\n\x16SCALE_TIER_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x0e\n\nSTANDARD_1\x10\x02\x12\r\n\tPREMIUM_1\x10\x03\x12\r\n\tBASIC_GPU\x10\x04\x12\r\n\tBASIC_TPU\x10\x05\x12\n\n\x06\x43USTOM\x10\x06\"\xe3\x01\n\x18SchedulerAcceleratorType\x12*\n&SCHEDULER_ACCELERATOR_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\n\x12\n\n\x06TPU_V2\x10\x06\x12\n\n\x06TPU_V3\x10\x07\"@\n\x07JobType\x12\x18\n\x14JOB_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tVERTEX_AI\x10\x01\x12\x0c\n\x08\x44\x41TAPROC\x10\x02\x42\x10\n\x0ejob_parameters\"\x82\x05\n\tExecution\x12H\n\x12\x65xecution_template\x18\x01 \x01(\x0b\x32,.google.cloud.notebooks.v1.ExecutionTemplate\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12>\n\x05state\x18\x07 \x01(\x0e\x32*.google.cloud.notebooks.v1.Execution.StateB\x03\xe0\x41\x03\x12\x1c\n\x14output_notebook_file\x18\x08 \x01(\t\x12\x14\n\x07job_uri\x18\t \x01(\tB\x03\xe0\x41\x03\"\x9f\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\r\n\tPREPARING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x0e\n\nCANCELLING\x10\x06\x12\r\n\tCANCELLED\x10\x07\x12\x0b\n\x07\x45XPIRED\x10\t\x12\x10\n\x0cINITIALIZING\x10\n:f\xea\x41\x63\n\"notebooks.googleapis.com/Execution\x12=projects/{project}/location/{location}/executions/{execution}B\xdc\x01\n\x1d\x63om.google.cloud.notebooks.v1B\x0e\x45xecutionProtoP\x01Z;cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspb\xea\x41k\n%aiplatform.googleapis.com/Tensorboard\x12\x42projects/{project}/locations/{location}/tensorboards/{tensorboard}b\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
89
33
  end
90
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
91
37
  end
92
38
 
93
39
  module Google
@@ -1,15 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/notebooks/v1/instance_config.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/notebooks/v1/instance_config.proto", :syntax => :proto3) do
8
- add_message "google.cloud.notebooks.v1.InstanceConfig" do
9
- optional :notebook_upgrade_schedule, :string, 1
10
- optional :enable_health_monitoring, :bool, 2
7
+
8
+ descriptor_data = "\n/google/cloud/notebooks/v1/instance_config.proto\x12\x19google.cloud.notebooks.v1\"U\n\x0eInstanceConfig\x12!\n\x19notebook_upgrade_schedule\x18\x01 \x01(\t\x12 \n\x18\x65nable_health_monitoring\x18\x02 \x01(\x08\x42\xca\x01\n\x1d\x63om.google.cloud.notebooks.v1B\x13InstanceConfigProtoP\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"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
11
28
  end
12
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
13
32
  end
14
33
 
15
34
  module Google
@@ -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
@@ -150,7 +150,7 @@ module Google
150
150
  credentials = @config.credentials
151
151
  # Use self-signed JWT if the endpoint is unchanged from default,
152
152
  # but only if the default endpoint does not have a region prefix.
153
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
153
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
154
154
  !@config.endpoint.split(".").first.include?("-")
155
155
  credentials ||= Credentials.default scope: @config.scope,
156
156
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1523,9 +1523,9 @@ module Google
1523
1523
  # * (`String`) The path to a service account key file in JSON format
1524
1524
  # * (`Hash`) A service account key as a Hash
1525
1525
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1526
- # (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))
1527
1527
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1528
- # (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))
1529
1529
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1530
1530
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1531
1531
  # * (`nil`) indicating no credentials
@@ -1567,7 +1567,9 @@ module Google
1567
1567
  class Configuration
1568
1568
  extend ::Gapic::Config
1569
1569
 
1570
- config_attr :endpoint, "notebooks.googleapis.com", ::String
1570
+ DEFAULT_ENDPOINT = "notebooks.googleapis.com"
1571
+
1572
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1571
1573
  config_attr :credentials, nil do |value|
1572
1574
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1573
1575
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (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))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (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))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -664,7 +664,9 @@ module Google
664
664
  class Configuration
665
665
  extend ::Gapic::Config
666
666
 
667
- config_attr :endpoint, "notebooks.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "notebooks.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
670
  config_attr :credentials, nil do |value|
669
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC