google-cloud-notebooks-v1 0.1.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 (48) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +151 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google/cloud/notebooks/v1/environment_pb.rb +46 -0
  7. data/lib/google/cloud/notebooks/v1/event_pb.rb +29 -0
  8. data/lib/google/cloud/notebooks/v1/execution_pb.rb +99 -0
  9. data/lib/google/cloud/notebooks/v1/instance_config_pb.rb +23 -0
  10. data/lib/google/cloud/notebooks/v1/instance_pb.rb +177 -0
  11. data/lib/google/cloud/notebooks/v1/managed_notebook_service/client.rb +1256 -0
  12. data/lib/google/cloud/notebooks/v1/managed_notebook_service/credentials.rb +51 -0
  13. data/lib/google/cloud/notebooks/v1/managed_notebook_service/operations.rb +767 -0
  14. data/lib/google/cloud/notebooks/v1/managed_notebook_service/paths.rb +52 -0
  15. data/lib/google/cloud/notebooks/v1/managed_notebook_service.rb +50 -0
  16. data/lib/google/cloud/notebooks/v1/managed_service_pb.rb +75 -0
  17. data/lib/google/cloud/notebooks/v1/managed_service_services_pb.rb +70 -0
  18. data/lib/google/cloud/notebooks/v1/notebook_service/client.rb +3643 -0
  19. data/lib/google/cloud/notebooks/v1/notebook_service/credentials.rb +51 -0
  20. data/lib/google/cloud/notebooks/v1/notebook_service/operations.rb +767 -0
  21. data/lib/google/cloud/notebooks/v1/notebook_service/paths.rb +105 -0
  22. data/lib/google/cloud/notebooks/v1/notebook_service.rb +50 -0
  23. data/lib/google/cloud/notebooks/v1/runtime_pb.rb +173 -0
  24. data/lib/google/cloud/notebooks/v1/schedule_pb.rb +45 -0
  25. data/lib/google/cloud/notebooks/v1/service_pb.rb +243 -0
  26. data/lib/google/cloud/notebooks/v1/service_services_pb.rb +114 -0
  27. data/lib/google/cloud/notebooks/v1/version.rb +28 -0
  28. data/lib/google/cloud/notebooks/v1.rb +41 -0
  29. data/lib/google-cloud-notebooks-v1.rb +21 -0
  30. data/proto_docs/README.md +4 -0
  31. data/proto_docs/google/api/field_behavior.rb +71 -0
  32. data/proto_docs/google/api/resource.rb +222 -0
  33. data/proto_docs/google/cloud/notebooks/v1/environment.rb +91 -0
  34. data/proto_docs/google/cloud/notebooks/v1/event.rb +47 -0
  35. data/proto_docs/google/cloud/notebooks/v1/execution.rb +330 -0
  36. data/proto_docs/google/cloud/notebooks/v1/instance.rb +551 -0
  37. data/proto_docs/google/cloud/notebooks/v1/instance_config.rb +39 -0
  38. data/proto_docs/google/cloud/notebooks/v1/managed_service.rb +160 -0
  39. data/proto_docs/google/cloud/notebooks/v1/runtime.rb +607 -0
  40. data/proto_docs/google/cloud/notebooks/v1/schedule.rb +104 -0
  41. data/proto_docs/google/cloud/notebooks/v1/service.rb +656 -0
  42. data/proto_docs/google/longrunning/operations.rb +164 -0
  43. data/proto_docs/google/protobuf/any.rb +141 -0
  44. data/proto_docs/google/protobuf/duration.rb +98 -0
  45. data/proto_docs/google/protobuf/empty.rb +36 -0
  46. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  47. data/proto_docs/google/rpc/status.rb +46 -0
  48. metadata +239 -0
@@ -0,0 +1,105 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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
+
20
+ module Google
21
+ module Cloud
22
+ module Notebooks
23
+ module V1
24
+ module NotebookService
25
+ # Path helper methods for the NotebookService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Environment resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/environments/{environment}`
33
+ #
34
+ # @param project [String]
35
+ # @param environment [String]
36
+ #
37
+ # @return [::String]
38
+ def environment_path project:, environment:
39
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
40
+
41
+ "projects/#{project}/environments/#{environment}"
42
+ end
43
+
44
+ ##
45
+ # Create a fully-qualified Execution resource string.
46
+ #
47
+ # The resource will be in the following format:
48
+ #
49
+ # `projects/{project}/location/{location}/executions/{execution}`
50
+ #
51
+ # @param project [String]
52
+ # @param location [String]
53
+ # @param execution [String]
54
+ #
55
+ # @return [::String]
56
+ def execution_path project:, location:, execution:
57
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
58
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
59
+
60
+ "projects/#{project}/location/#{location}/executions/#{execution}"
61
+ end
62
+
63
+ ##
64
+ # Create a fully-qualified Instance resource string.
65
+ #
66
+ # The resource will be in the following format:
67
+ #
68
+ # `projects/{project}/instances/{instance}`
69
+ #
70
+ # @param project [String]
71
+ # @param instance [String]
72
+ #
73
+ # @return [::String]
74
+ def instance_path project:, instance:
75
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
76
+
77
+ "projects/#{project}/instances/#{instance}"
78
+ end
79
+
80
+ ##
81
+ # Create a fully-qualified Schedule resource string.
82
+ #
83
+ # The resource will be in the following format:
84
+ #
85
+ # `projects/{project}/location/{location}/schedules/{schedule}`
86
+ #
87
+ # @param project [String]
88
+ # @param location [String]
89
+ # @param schedule [String]
90
+ #
91
+ # @return [::String]
92
+ def schedule_path project:, location:, schedule:
93
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
94
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
95
+
96
+ "projects/#{project}/location/#{location}/schedules/#{schedule}"
97
+ end
98
+
99
+ extend self
100
+ end
101
+ end
102
+ end
103
+ end
104
+ end
105
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/notebooks/v1/version"
24
+
25
+ require "google/cloud/notebooks/v1/notebook_service/credentials"
26
+ require "google/cloud/notebooks/v1/notebook_service/paths"
27
+ require "google/cloud/notebooks/v1/notebook_service/operations"
28
+ require "google/cloud/notebooks/v1/notebook_service/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module Notebooks
33
+ module V1
34
+ ##
35
+ # API v1 service for Cloud AI Platform Notebooks.
36
+ #
37
+ # To load this service and instantiate a client:
38
+ #
39
+ # require "google/cloud/notebooks/v1/notebook_service"
40
+ # client = ::Google::Cloud::Notebooks::V1::NotebookService::Client.new
41
+ #
42
+ module NotebookService
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+
49
+ helper_path = ::File.join __dir__, "notebook_service", "helpers.rb"
50
+ require "google/cloud/notebooks/v1/notebook_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,173 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/notebooks/v1/runtime.proto
3
+
4
+ require 'google/api/field_behavior_pb'
5
+ require 'google/api/resource_pb'
6
+ require 'google/cloud/notebooks/v1/environment_pb'
7
+ require 'google/protobuf/timestamp_pb'
8
+ require 'google/protobuf'
9
+
10
+ Google::Protobuf::DescriptorPool.generated_pool.build do
11
+ add_file("google/cloud/notebooks/v1/runtime.proto", :syntax => :proto3) do
12
+ add_message "google.cloud.notebooks.v1.Runtime" do
13
+ optional :name, :string, 1
14
+ optional :state, :enum, 3, "google.cloud.notebooks.v1.Runtime.State"
15
+ optional :health_state, :enum, 4, "google.cloud.notebooks.v1.Runtime.HealthState"
16
+ optional :access_config, :message, 5, "google.cloud.notebooks.v1.RuntimeAccessConfig"
17
+ optional :software_config, :message, 6, "google.cloud.notebooks.v1.RuntimeSoftwareConfig"
18
+ optional :metrics, :message, 7, "google.cloud.notebooks.v1.RuntimeMetrics"
19
+ optional :create_time, :message, 20, "google.protobuf.Timestamp"
20
+ optional :update_time, :message, 21, "google.protobuf.Timestamp"
21
+ oneof :runtime_type do
22
+ optional :virtual_machine, :message, 2, "google.cloud.notebooks.v1.VirtualMachine"
23
+ end
24
+ end
25
+ add_enum "google.cloud.notebooks.v1.Runtime.State" do
26
+ value :STATE_UNSPECIFIED, 0
27
+ value :STARTING, 1
28
+ value :PROVISIONING, 2
29
+ value :ACTIVE, 3
30
+ value :STOPPING, 4
31
+ value :STOPPED, 5
32
+ value :DELETING, 6
33
+ value :UPGRADING, 7
34
+ value :INITIALIZING, 8
35
+ end
36
+ add_enum "google.cloud.notebooks.v1.Runtime.HealthState" do
37
+ value :HEALTH_STATE_UNSPECIFIED, 0
38
+ value :HEALTHY, 1
39
+ value :UNHEALTHY, 2
40
+ end
41
+ add_message "google.cloud.notebooks.v1.RuntimeAcceleratorConfig" do
42
+ optional :type, :enum, 1, "google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType"
43
+ optional :core_count, :int64, 2
44
+ end
45
+ add_enum "google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType" do
46
+ value :ACCELERATOR_TYPE_UNSPECIFIED, 0
47
+ value :NVIDIA_TESLA_K80, 1
48
+ value :NVIDIA_TESLA_P100, 2
49
+ value :NVIDIA_TESLA_V100, 3
50
+ value :NVIDIA_TESLA_P4, 4
51
+ value :NVIDIA_TESLA_T4, 5
52
+ value :NVIDIA_TESLA_A100, 6
53
+ value :TPU_V2, 7
54
+ value :TPU_V3, 8
55
+ value :NVIDIA_TESLA_T4_VWS, 9
56
+ value :NVIDIA_TESLA_P100_VWS, 10
57
+ value :NVIDIA_TESLA_P4_VWS, 11
58
+ end
59
+ add_message "google.cloud.notebooks.v1.EncryptionConfig" do
60
+ optional :kms_key, :string, 1
61
+ end
62
+ add_message "google.cloud.notebooks.v1.LocalDisk" do
63
+ optional :auto_delete, :bool, 1
64
+ optional :boot, :bool, 2
65
+ optional :device_name, :string, 3
66
+ repeated :guest_os_features, :message, 4, "google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature"
67
+ optional :index, :int32, 5
68
+ optional :initialize_params, :message, 6, "google.cloud.notebooks.v1.LocalDiskInitializeParams"
69
+ optional :interface, :string, 7
70
+ optional :kind, :string, 8
71
+ repeated :licenses, :string, 9
72
+ optional :mode, :string, 10
73
+ optional :source, :string, 11
74
+ optional :type, :string, 12
75
+ end
76
+ add_message "google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature" do
77
+ optional :type, :string, 1
78
+ end
79
+ add_message "google.cloud.notebooks.v1.LocalDiskInitializeParams" do
80
+ optional :description, :string, 1
81
+ optional :disk_name, :string, 2
82
+ optional :disk_size_gb, :int64, 3
83
+ optional :disk_type, :enum, 4, "google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType"
84
+ map :labels, :string, :string, 5
85
+ end
86
+ add_enum "google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType" do
87
+ value :DISK_TYPE_UNSPECIFIED, 0
88
+ value :PD_STANDARD, 1
89
+ value :PD_SSD, 2
90
+ value :PD_BALANCED, 3
91
+ end
92
+ add_message "google.cloud.notebooks.v1.RuntimeAccessConfig" do
93
+ optional :access_type, :enum, 1, "google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType"
94
+ optional :runtime_owner, :string, 2
95
+ optional :proxy_uri, :string, 3
96
+ end
97
+ add_enum "google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType" do
98
+ value :RUNTIME_ACCESS_TYPE_UNSPECIFIED, 0
99
+ value :SINGLE_USER, 1
100
+ end
101
+ add_message "google.cloud.notebooks.v1.RuntimeSoftwareConfig" do
102
+ optional :notebook_upgrade_schedule, :string, 1
103
+ proto3_optional :enable_health_monitoring, :bool, 2
104
+ proto3_optional :idle_shutdown, :bool, 3
105
+ optional :idle_shutdown_timeout, :int32, 4
106
+ optional :install_gpu_driver, :bool, 5
107
+ optional :custom_gpu_driver_path, :string, 6
108
+ optional :post_startup_script, :string, 7
109
+ end
110
+ add_message "google.cloud.notebooks.v1.RuntimeMetrics" do
111
+ map :system_metrics, :string, :string, 1
112
+ end
113
+ add_message "google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig" do
114
+ optional :enable_secure_boot, :bool, 1
115
+ optional :enable_vtpm, :bool, 2
116
+ optional :enable_integrity_monitoring, :bool, 3
117
+ end
118
+ add_message "google.cloud.notebooks.v1.VirtualMachine" do
119
+ optional :instance_name, :string, 1
120
+ optional :instance_id, :string, 2
121
+ optional :virtual_machine_config, :message, 3, "google.cloud.notebooks.v1.VirtualMachineConfig"
122
+ end
123
+ add_message "google.cloud.notebooks.v1.VirtualMachineConfig" do
124
+ optional :zone, :string, 1
125
+ optional :machine_type, :string, 2
126
+ repeated :container_images, :message, 3, "google.cloud.notebooks.v1.ContainerImage"
127
+ optional :data_disk, :message, 4, "google.cloud.notebooks.v1.LocalDisk"
128
+ optional :encryption_config, :message, 5, "google.cloud.notebooks.v1.EncryptionConfig"
129
+ optional :shielded_instance_config, :message, 6, "google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig"
130
+ optional :accelerator_config, :message, 7, "google.cloud.notebooks.v1.RuntimeAcceleratorConfig"
131
+ optional :network, :string, 8
132
+ optional :subnet, :string, 9
133
+ optional :internal_ip_only, :bool, 10
134
+ repeated :tags, :string, 13
135
+ map :guest_attributes, :string, :string, 14
136
+ map :metadata, :string, :string, 15
137
+ map :labels, :string, :string, 16
138
+ optional :nic_type, :enum, 17, "google.cloud.notebooks.v1.VirtualMachineConfig.NicType"
139
+ end
140
+ add_enum "google.cloud.notebooks.v1.VirtualMachineConfig.NicType" do
141
+ value :UNSPECIFIED_NIC_TYPE, 0
142
+ value :VIRTIO_NET, 1
143
+ value :GVNIC, 2
144
+ end
145
+ end
146
+ end
147
+
148
+ module Google
149
+ module Cloud
150
+ module Notebooks
151
+ module V1
152
+ Runtime = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.Runtime").msgclass
153
+ Runtime::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.Runtime.State").enummodule
154
+ Runtime::HealthState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.Runtime.HealthState").enummodule
155
+ RuntimeAcceleratorConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.RuntimeAcceleratorConfig").msgclass
156
+ RuntimeAcceleratorConfig::AcceleratorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType").enummodule
157
+ EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.EncryptionConfig").msgclass
158
+ LocalDisk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.LocalDisk").msgclass
159
+ LocalDisk::RuntimeGuestOsFeature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature").msgclass
160
+ LocalDiskInitializeParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.LocalDiskInitializeParams").msgclass
161
+ LocalDiskInitializeParams::DiskType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType").enummodule
162
+ RuntimeAccessConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.RuntimeAccessConfig").msgclass
163
+ RuntimeAccessConfig::RuntimeAccessType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType").enummodule
164
+ RuntimeSoftwareConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.RuntimeSoftwareConfig").msgclass
165
+ RuntimeMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.RuntimeMetrics").msgclass
166
+ RuntimeShieldedInstanceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig").msgclass
167
+ VirtualMachine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.VirtualMachine").msgclass
168
+ VirtualMachineConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.VirtualMachineConfig").msgclass
169
+ VirtualMachineConfig::NicType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.VirtualMachineConfig.NicType").enummodule
170
+ end
171
+ end
172
+ end
173
+ end
@@ -0,0 +1,45 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/notebooks/v1/schedule.proto
3
+
4
+ require 'google/api/field_behavior_pb'
5
+ require 'google/api/resource_pb'
6
+ require 'google/cloud/notebooks/v1/execution_pb'
7
+ require 'google/protobuf/timestamp_pb'
8
+ require 'google/protobuf'
9
+
10
+ Google::Protobuf::DescriptorPool.generated_pool.build do
11
+ add_file("google/cloud/notebooks/v1/schedule.proto", :syntax => :proto3) do
12
+ add_message "google.cloud.notebooks.v1.Schedule" do
13
+ optional :name, :string, 1
14
+ optional :display_name, :string, 2
15
+ optional :description, :string, 3
16
+ optional :state, :enum, 4, "google.cloud.notebooks.v1.Schedule.State"
17
+ optional :cron_schedule, :string, 5
18
+ optional :time_zone, :string, 6
19
+ optional :create_time, :message, 7, "google.protobuf.Timestamp"
20
+ optional :update_time, :message, 8, "google.protobuf.Timestamp"
21
+ optional :execution_template, :message, 9, "google.cloud.notebooks.v1.ExecutionTemplate"
22
+ repeated :recent_executions, :message, 10, "google.cloud.notebooks.v1.Execution"
23
+ end
24
+ add_enum "google.cloud.notebooks.v1.Schedule.State" do
25
+ value :STATE_UNSPECIFIED, 0
26
+ value :ENABLED, 1
27
+ value :PAUSED, 2
28
+ value :DISABLED, 3
29
+ value :UPDATE_FAILED, 4
30
+ value :INITIALIZING, 5
31
+ value :DELETING, 6
32
+ end
33
+ end
34
+ end
35
+
36
+ module Google
37
+ module Cloud
38
+ module Notebooks
39
+ module V1
40
+ Schedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.Schedule").msgclass
41
+ Schedule::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.Schedule.State").enummodule
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,243 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/notebooks/v1/service.proto
3
+
4
+ require 'google/api/annotations_pb'
5
+ require 'google/api/client_pb'
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/cloud/notebooks/v1/environment_pb'
9
+ require 'google/cloud/notebooks/v1/execution_pb'
10
+ require 'google/cloud/notebooks/v1/instance_pb'
11
+ require 'google/cloud/notebooks/v1/instance_config_pb'
12
+ require 'google/cloud/notebooks/v1/schedule_pb'
13
+ require 'google/longrunning/operations_pb'
14
+ require 'google/protobuf/timestamp_pb'
15
+ require 'google/protobuf'
16
+
17
+ Google::Protobuf::DescriptorPool.generated_pool.build do
18
+ add_file("google/cloud/notebooks/v1/service.proto", :syntax => :proto3) do
19
+ add_message "google.cloud.notebooks.v1.OperationMetadata" do
20
+ optional :create_time, :message, 1, "google.protobuf.Timestamp"
21
+ optional :end_time, :message, 2, "google.protobuf.Timestamp"
22
+ optional :target, :string, 3
23
+ optional :verb, :string, 4
24
+ optional :status_message, :string, 5
25
+ optional :requested_cancellation, :bool, 6
26
+ optional :api_version, :string, 7
27
+ optional :endpoint, :string, 8
28
+ end
29
+ add_message "google.cloud.notebooks.v1.ListInstancesRequest" do
30
+ optional :parent, :string, 1
31
+ optional :page_size, :int32, 2
32
+ optional :page_token, :string, 3
33
+ end
34
+ add_message "google.cloud.notebooks.v1.ListInstancesResponse" do
35
+ repeated :instances, :message, 1, "google.cloud.notebooks.v1.Instance"
36
+ optional :next_page_token, :string, 2
37
+ repeated :unreachable, :string, 3
38
+ end
39
+ add_message "google.cloud.notebooks.v1.GetInstanceRequest" do
40
+ optional :name, :string, 1
41
+ end
42
+ add_message "google.cloud.notebooks.v1.CreateInstanceRequest" do
43
+ optional :parent, :string, 1
44
+ optional :instance_id, :string, 2
45
+ optional :instance, :message, 3, "google.cloud.notebooks.v1.Instance"
46
+ end
47
+ add_message "google.cloud.notebooks.v1.RegisterInstanceRequest" do
48
+ optional :parent, :string, 1
49
+ optional :instance_id, :string, 2
50
+ end
51
+ add_message "google.cloud.notebooks.v1.SetInstanceAcceleratorRequest" do
52
+ optional :name, :string, 1
53
+ optional :type, :enum, 2, "google.cloud.notebooks.v1.Instance.AcceleratorType"
54
+ optional :core_count, :int64, 3
55
+ end
56
+ add_message "google.cloud.notebooks.v1.SetInstanceMachineTypeRequest" do
57
+ optional :name, :string, 1
58
+ optional :machine_type, :string, 2
59
+ end
60
+ add_message "google.cloud.notebooks.v1.UpdateInstanceConfigRequest" do
61
+ optional :name, :string, 1
62
+ optional :config, :message, 2, "google.cloud.notebooks.v1.InstanceConfig"
63
+ end
64
+ add_message "google.cloud.notebooks.v1.SetInstanceLabelsRequest" do
65
+ optional :name, :string, 1
66
+ map :labels, :string, :string, 2
67
+ end
68
+ add_message "google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest" do
69
+ optional :name, :string, 1
70
+ optional :shielded_instance_config, :message, 2, "google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig"
71
+ end
72
+ add_message "google.cloud.notebooks.v1.DeleteInstanceRequest" do
73
+ optional :name, :string, 1
74
+ end
75
+ add_message "google.cloud.notebooks.v1.StartInstanceRequest" do
76
+ optional :name, :string, 1
77
+ end
78
+ add_message "google.cloud.notebooks.v1.StopInstanceRequest" do
79
+ optional :name, :string, 1
80
+ end
81
+ add_message "google.cloud.notebooks.v1.ResetInstanceRequest" do
82
+ optional :name, :string, 1
83
+ end
84
+ add_message "google.cloud.notebooks.v1.ReportInstanceInfoRequest" do
85
+ optional :name, :string, 1
86
+ optional :vm_id, :string, 2
87
+ map :metadata, :string, :string, 3
88
+ end
89
+ add_message "google.cloud.notebooks.v1.IsInstanceUpgradeableRequest" do
90
+ optional :notebook_instance, :string, 1
91
+ end
92
+ add_message "google.cloud.notebooks.v1.IsInstanceUpgradeableResponse" do
93
+ optional :upgradeable, :bool, 1
94
+ optional :upgrade_version, :string, 2
95
+ optional :upgrade_info, :string, 3
96
+ optional :upgrade_image, :string, 4
97
+ end
98
+ add_message "google.cloud.notebooks.v1.GetInstanceHealthRequest" do
99
+ optional :name, :string, 1
100
+ end
101
+ add_message "google.cloud.notebooks.v1.GetInstanceHealthResponse" do
102
+ optional :health_state, :enum, 1, "google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState"
103
+ map :health_info, :string, :string, 2
104
+ end
105
+ add_enum "google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState" do
106
+ value :HEALTH_STATE_UNSPECIFIED, 0
107
+ value :HEALTHY, 1
108
+ value :UNHEALTHY, 2
109
+ value :AGENT_NOT_INSTALLED, 3
110
+ value :AGENT_NOT_RUNNING, 4
111
+ end
112
+ add_message "google.cloud.notebooks.v1.UpgradeInstanceRequest" do
113
+ optional :name, :string, 1
114
+ end
115
+ add_message "google.cloud.notebooks.v1.RollbackInstanceRequest" do
116
+ optional :name, :string, 1
117
+ optional :target_snapshot, :string, 2
118
+ end
119
+ add_message "google.cloud.notebooks.v1.UpgradeInstanceInternalRequest" do
120
+ optional :name, :string, 1
121
+ optional :vm_id, :string, 2
122
+ end
123
+ add_message "google.cloud.notebooks.v1.ListEnvironmentsRequest" do
124
+ optional :parent, :string, 1
125
+ optional :page_size, :int32, 2
126
+ optional :page_token, :string, 3
127
+ end
128
+ add_message "google.cloud.notebooks.v1.ListEnvironmentsResponse" do
129
+ repeated :environments, :message, 1, "google.cloud.notebooks.v1.Environment"
130
+ optional :next_page_token, :string, 2
131
+ repeated :unreachable, :string, 3
132
+ end
133
+ add_message "google.cloud.notebooks.v1.GetEnvironmentRequest" do
134
+ optional :name, :string, 1
135
+ end
136
+ add_message "google.cloud.notebooks.v1.CreateEnvironmentRequest" do
137
+ optional :parent, :string, 1
138
+ optional :environment_id, :string, 2
139
+ optional :environment, :message, 3, "google.cloud.notebooks.v1.Environment"
140
+ end
141
+ add_message "google.cloud.notebooks.v1.DeleteEnvironmentRequest" do
142
+ optional :name, :string, 1
143
+ end
144
+ add_message "google.cloud.notebooks.v1.ListSchedulesRequest" do
145
+ optional :parent, :string, 1
146
+ optional :page_size, :int32, 2
147
+ optional :page_token, :string, 3
148
+ optional :filter, :string, 4
149
+ optional :order_by, :string, 5
150
+ end
151
+ add_message "google.cloud.notebooks.v1.ListSchedulesResponse" do
152
+ repeated :schedules, :message, 1, "google.cloud.notebooks.v1.Schedule"
153
+ optional :next_page_token, :string, 2
154
+ repeated :unreachable, :string, 3
155
+ end
156
+ add_message "google.cloud.notebooks.v1.GetScheduleRequest" do
157
+ optional :name, :string, 1
158
+ end
159
+ add_message "google.cloud.notebooks.v1.DeleteScheduleRequest" do
160
+ optional :name, :string, 1
161
+ end
162
+ add_message "google.cloud.notebooks.v1.CreateScheduleRequest" do
163
+ optional :parent, :string, 1
164
+ optional :schedule_id, :string, 2
165
+ optional :schedule, :message, 3, "google.cloud.notebooks.v1.Schedule"
166
+ end
167
+ add_message "google.cloud.notebooks.v1.TriggerScheduleRequest" do
168
+ optional :name, :string, 1
169
+ end
170
+ add_message "google.cloud.notebooks.v1.ListExecutionsRequest" do
171
+ optional :parent, :string, 1
172
+ optional :page_size, :int32, 2
173
+ optional :page_token, :string, 3
174
+ optional :filter, :string, 4
175
+ optional :order_by, :string, 5
176
+ end
177
+ add_message "google.cloud.notebooks.v1.ListExecutionsResponse" do
178
+ repeated :executions, :message, 1, "google.cloud.notebooks.v1.Execution"
179
+ optional :next_page_token, :string, 2
180
+ repeated :unreachable, :string, 3
181
+ end
182
+ add_message "google.cloud.notebooks.v1.GetExecutionRequest" do
183
+ optional :name, :string, 1
184
+ end
185
+ add_message "google.cloud.notebooks.v1.DeleteExecutionRequest" do
186
+ optional :name, :string, 1
187
+ end
188
+ add_message "google.cloud.notebooks.v1.CreateExecutionRequest" do
189
+ optional :parent, :string, 1
190
+ optional :execution_id, :string, 2
191
+ optional :execution, :message, 3, "google.cloud.notebooks.v1.Execution"
192
+ end
193
+ end
194
+ end
195
+
196
+ module Google
197
+ module Cloud
198
+ module Notebooks
199
+ module V1
200
+ OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.OperationMetadata").msgclass
201
+ ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.ListInstancesRequest").msgclass
202
+ ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.ListInstancesResponse").msgclass
203
+ GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.GetInstanceRequest").msgclass
204
+ CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.CreateInstanceRequest").msgclass
205
+ RegisterInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.RegisterInstanceRequest").msgclass
206
+ SetInstanceAcceleratorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.SetInstanceAcceleratorRequest").msgclass
207
+ SetInstanceMachineTypeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.SetInstanceMachineTypeRequest").msgclass
208
+ UpdateInstanceConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.UpdateInstanceConfigRequest").msgclass
209
+ SetInstanceLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.SetInstanceLabelsRequest").msgclass
210
+ UpdateShieldedInstanceConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest").msgclass
211
+ DeleteInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.DeleteInstanceRequest").msgclass
212
+ StartInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.StartInstanceRequest").msgclass
213
+ StopInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.StopInstanceRequest").msgclass
214
+ ResetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.ResetInstanceRequest").msgclass
215
+ ReportInstanceInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.ReportInstanceInfoRequest").msgclass
216
+ IsInstanceUpgradeableRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.IsInstanceUpgradeableRequest").msgclass
217
+ IsInstanceUpgradeableResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.IsInstanceUpgradeableResponse").msgclass
218
+ GetInstanceHealthRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.GetInstanceHealthRequest").msgclass
219
+ GetInstanceHealthResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.GetInstanceHealthResponse").msgclass
220
+ GetInstanceHealthResponse::HealthState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState").enummodule
221
+ UpgradeInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.UpgradeInstanceRequest").msgclass
222
+ RollbackInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.RollbackInstanceRequest").msgclass
223
+ UpgradeInstanceInternalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.UpgradeInstanceInternalRequest").msgclass
224
+ ListEnvironmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.ListEnvironmentsRequest").msgclass
225
+ ListEnvironmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.ListEnvironmentsResponse").msgclass
226
+ GetEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.GetEnvironmentRequest").msgclass
227
+ CreateEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.CreateEnvironmentRequest").msgclass
228
+ DeleteEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.DeleteEnvironmentRequest").msgclass
229
+ ListSchedulesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.ListSchedulesRequest").msgclass
230
+ ListSchedulesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.ListSchedulesResponse").msgclass
231
+ GetScheduleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.GetScheduleRequest").msgclass
232
+ DeleteScheduleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.DeleteScheduleRequest").msgclass
233
+ CreateScheduleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.CreateScheduleRequest").msgclass
234
+ TriggerScheduleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.TriggerScheduleRequest").msgclass
235
+ ListExecutionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.ListExecutionsRequest").msgclass
236
+ ListExecutionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.ListExecutionsResponse").msgclass
237
+ GetExecutionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.GetExecutionRequest").msgclass
238
+ DeleteExecutionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.DeleteExecutionRequest").msgclass
239
+ CreateExecutionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.notebooks.v1.CreateExecutionRequest").msgclass
240
+ end
241
+ end
242
+ end
243
+ end