google-cloud-notebooks-v1 0.4.2 → 0.6.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.
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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c773bd6b3e0f2ea9f354db2c0c1ea2275e3b0f14117c0df3b1658be3304cbc49
4
- data.tar.gz: fba5d86a5d3c948caed29aef9acc12e691fdc997bca56d2d58f5ab8841748126
3
+ metadata.gz: d884bc378b2bbf1ebeea99cd6a72077f43e66818a03d7bdab56874f36fa2c973
4
+ data.tar.gz: a0204f9cb8142dcca62118bd33c66fb23a32447670904df3b09fc55681cae774
5
5
  SHA512:
6
- metadata.gz: 1d0c863b6e1368cfd07d92694d94bb44118aba45df096c2c0b2bc84a5227dc6671c7be875ebd9311b7a0a35a42d0034d3c4bd5a785dad83819e8a4f61969825f
7
- data.tar.gz: 821187d9c214b2e875a1addb3db8aaeb5e510baa4074a3c008e9fe22aaced9712404b888007d443ec71d8a2085d40924602fecca23c843c8e9d5e1764de92968
6
+ metadata.gz: ed09aab991d0854d3e75bf2a8b88b203b18c692ee90b767a69e0b567597052d0f1be3893e66501b03d04363b2101f952b232e3008e7b78c468cf56d48d7b3a0b
7
+ data.tar.gz: 2f59d5e5bad706b5f826bae1233ff828607a2177c6080592d9210863e730d90d348af2c600c0fc48fbd76cee638c9be002646714b751130ebc361bf0dfc22769
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the AI Platform Notebooks V1 API
2
2
 
3
- API Client library for the AI Platform Notebooks V1 API
3
+ Notebooks API is used to manage notebook resources in Google Cloud.
4
4
 
5
5
  AI Platform Notebooks makes it easy to manage JupyterLab instances through a protected, publicly available notebook instance URL. A JupyterLab instance is a Deep Learning virtual machine instance with the latest machine learning and data science libraries pre-installed.
6
6
 
@@ -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
 
@@ -0,0 +1,159 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/config"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Notebooks
24
+ ##
25
+ # @example Loading just the REST part of this package, including all its services, and instantiating a REST client
26
+ #
27
+ # require "google/cloud/notebooks/v1/rest"
28
+ # client = ::Google::Cloud::Notebooks::V1::ManagedNotebookService::Rest::Client.new
29
+ #
30
+ module V1
31
+ ##
32
+ # @private
33
+ # Initialize the mixin bindings configuration
34
+ #
35
+ def self.configure
36
+ @configure ||= begin
37
+ namespace = ["Google", "Cloud", "Notebooks"]
38
+ parent_config = while namespace.any?
39
+ parent_name = namespace.join "::"
40
+ parent_const = const_get parent_name
41
+ break parent_const.configure if parent_const.respond_to? :configure
42
+ namespace.pop
43
+ end
44
+
45
+ default_config = Configuration.new parent_config
46
+ default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
47
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
48
+ uri_method: :get,
49
+ uri_template: "/v1/{name}",
50
+ matches: [
51
+ ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
52
+ ],
53
+ body: nil
54
+ )
55
+ ]
56
+ default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
57
+
58
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
59
+ uri_method: :get,
60
+ uri_template: "/v1/{name}/locations",
61
+ matches: [
62
+ ["name", %r{^projects/[^/]+/?$}, false]
63
+ ],
64
+ body: nil
65
+ )
66
+ ]
67
+ default_config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"] = [
68
+
69
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
70
+ uri_method: :get,
71
+ uri_template: "/v1/{resource}:getIamPolicy",
72
+ matches: [
73
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
74
+ ],
75
+ body: nil
76
+ ),
77
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
78
+ uri_method: :get,
79
+ uri_template: "/v1/{resource}:getIamPolicy",
80
+ matches: [
81
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/runtimes/[^/]+/?$}, false]
82
+ ],
83
+ body: nil
84
+ )
85
+ ]
86
+ default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
87
+
88
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
89
+ uri_method: :post,
90
+ uri_template: "/v1/{resource}:setIamPolicy",
91
+ matches: [
92
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
93
+ ],
94
+ body: "*"
95
+ ),
96
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
97
+ uri_method: :post,
98
+ uri_template: "/v1/{resource}:setIamPolicy",
99
+ matches: [
100
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/runtimes/[^/]+/?$}, false]
101
+ ],
102
+ body: "*"
103
+ )
104
+ ]
105
+ default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
106
+
107
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
108
+ uri_method: :post,
109
+ uri_template: "/v1/{resource}:testIamPermissions",
110
+ matches: [
111
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
112
+ ],
113
+ body: "*"
114
+ ),
115
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
116
+ uri_method: :post,
117
+ uri_template: "/v1/{resource}:testIamPermissions",
118
+ matches: [
119
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/runtimes/[^/]+/?$}, false]
120
+ ],
121
+ body: "*"
122
+ )
123
+ ]
124
+ default_config
125
+ end
126
+ yield @configure if block_given?
127
+ @configure
128
+ end
129
+
130
+ ##
131
+ # @private
132
+ # Configuration class for the google.cloud.notebooks.v1 package.
133
+ #
134
+ # This class contains common configuration for all services
135
+ # of the google.cloud.notebooks.v1 package.
136
+ #
137
+ # This configuration is for internal use of the client library classes,
138
+ # and it is not intended that the end-users will read or change it.
139
+ #
140
+ class Configuration
141
+ extend ::Gapic::Config
142
+
143
+ # @private
144
+ # Overrides for http bindings for the RPC of the mixins for this package.
145
+ # Services in this package should use these when creating clients for the mixin services.
146
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
147
+ config_attr :bindings_override, {}, ::Hash, nil
148
+
149
+ # @private
150
+ def initialize parent_config = nil
151
+ @parent_config = parent_config unless parent_config.nil?
152
+
153
+ yield self if block_given?
154
+ end
155
+ end
156
+ end
157
+ end
158
+ end
159
+ end
@@ -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