Skip to content

Commit 7410c99

Browse files
feat(notebooks-v1beta1): Add IsInstanceUpgradeableResponse#upgrade_info, OperationMetadata#endpoint, and additional instance states and disk types.
1 parent 3c7e544 commit 7410c99

8 files changed

Lines changed: 38 additions & 12 deletions

File tree

google-cloud-notebooks-v1beta1/lib/google/cloud/notebooks/v1beta1/instance_pb.rb

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google-cloud-notebooks-v1beta1/lib/google/cloud/notebooks/v1beta1/notebook_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module Cloud
3232
module Notebooks
3333
module V1beta1
3434
##
35-
# API service for Cloud AI Platform Notebooks.
35+
# API v1beta1 service for Cloud AI Platform Notebooks.
3636
#
3737
# To load this service and instantiate a client:
3838
#

google-cloud-notebooks-v1beta1/lib/google/cloud/notebooks/v1beta1/notebook_service/client.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module NotebookService
2727
##
2828
# Client for the NotebookService service.
2929
#
30-
# API service for Cloud AI Platform Notebooks.
30+
# API v1beta1 service for Cloud AI Platform Notebooks.
3131
#
3232
class Client
3333
include Paths
@@ -516,8 +516,8 @@ def register_instance request, options = nil
516516
# @param core_count [::Integer]
517517
# Required. Count of cores of this accelerator. Note that not all combinations
518518
# of `type` and `core_count` are valid. Check [GPUs on
519-
# Compute Engine](/compute/docs/gpus/#gpus-list) to find a valid
520-
# combination. TPUs are not supported.
519+
# Compute Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to
520+
# find a valid combination. TPUs are not supported.
521521
#
522522
# @yield [response, operation] Access the result along with the RPC operation
523523
# @yieldparam response [::Gapic::Operation]
@@ -587,7 +587,8 @@ def set_instance_accelerator request, options = nil
587587
# Required. Format:
588588
# `projects/{project_id}/locations/{location}/instances/{instance_id}`
589589
# @param machine_type [::String]
590-
# Required. The [Compute Engine machine type](/compute/docs/machine-types).
590+
# Required. The [Compute Engine machine
591+
# type](https://cloud.google.com/compute/docs/machine-types).
591592
#
592593
# @yield [response, operation] Access the result along with the RPC operation
593594
# @yieldparam response [::Gapic::Operation]

google-cloud-notebooks-v1beta1/lib/google/cloud/notebooks/v1beta1/service_pb.rb

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google-cloud-notebooks-v1beta1/lib/google/cloud/notebooks/v1beta1/service_services_pb.rb

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google-cloud-notebooks-v1beta1/proto_docs/google/cloud/notebooks/v1beta1/instance.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,15 @@ module State
239239

240240
# The instance is deleted.
241241
DELETED = 6
242+
243+
# The instance is upgrading.
244+
UPGRADING = 7
245+
246+
# The instance is being created.
247+
INITIALIZING = 8
248+
249+
# The instance is getting registered.
250+
REGISTERING = 9
242251
end
243252

244253
# Possible disk types for notebook instances.
@@ -251,6 +260,9 @@ module DiskType
251260

252261
# SSD persistent disk type.
253262
PD_SSD = 2
263+
264+
# Balanced persistent disk type.
265+
PD_BALANCED = 3
254266
end
255267

256268
# Definition of the disk encryption options.

google-cloud-notebooks-v1beta1/proto_docs/google/cloud/notebooks/v1beta1/service.rb

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ module V1beta1
4646
# @!attribute [rw] api_version
4747
# @return [::String]
4848
# API version used to start the operation.
49+
# @!attribute [rw] endpoint
50+
# @return [::String]
51+
# API endpoint name of this operation.
4952
class OperationMetadata
5053
include ::Google::Protobuf::MessageExts
5154
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -140,8 +143,8 @@ class RegisterInstanceRequest
140143
# @return [::Integer]
141144
# Required. Count of cores of this accelerator. Note that not all combinations
142145
# of `type` and `core_count` are valid. Check [GPUs on
143-
# Compute Engine](/compute/docs/gpus/#gpus-list) to find a valid
144-
# combination. TPUs are not supported.
146+
# Compute Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to
147+
# find a valid combination. TPUs are not supported.
145148
class SetInstanceAcceleratorRequest
146149
include ::Google::Protobuf::MessageExts
147150
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -154,7 +157,8 @@ class SetInstanceAcceleratorRequest
154157
# `projects/{project_id}/locations/{location}/instances/{instance_id}`
155158
# @!attribute [rw] machine_type
156159
# @return [::String]
157-
# Required. The [Compute Engine machine type](/compute/docs/machine-types).
160+
# Required. The [Compute Engine machine
161+
# type](https://cloud.google.com/compute/docs/machine-types).
158162
class SetInstanceMachineTypeRequest
159163
include ::Google::Protobuf::MessageExts
160164
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -268,6 +272,9 @@ class IsInstanceUpgradeableRequest
268272
# @return [::String]
269273
# The version this instance will be upgraded to if calling the upgrade
270274
# endpoint. This field will only be populated if field upgradeable is true.
275+
# @!attribute [rw] upgrade_info
276+
# @return [::String]
277+
# Additional information about upgrade.
271278
class IsInstanceUpgradeableResponse
272279
include ::Google::Protobuf::MessageExts
273280
extend ::Google::Protobuf::MessageExts::ClassMethods

google-cloud-notebooks-v1beta1/synth.metadata

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/google-cloud-ruby.git",
7-
"sha": "e1d661afe7586d44a29821d44fe8a4cc6d0a34a9"
7+
"sha": "3c7e54476ce7a29459acce8236563cfaad9ee949"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "874846a1917ee5c3fe271449f3cb9a06e75407be",
15-
"internalRef": "326288259"
14+
"sha": "989670e868daaad6ce0306e6ec1b9ff40659c19e",
15+
"internalRef": "333377977"
1616
}
1717
}
1818
],

0 commit comments

Comments
 (0)