google-apis-notebooks_v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-notebooks_v1.rb +15 -0
- data/lib/google/apis/notebooks_v1.rb +36 -0
- data/lib/google/apis/notebooks_v1/classes.rb +1468 -0
- data/lib/google/apis/notebooks_v1/gem_version.rb +28 -0
- data/lib/google/apis/notebooks_v1/representations.rb +592 -0
- data/lib/google/apis/notebooks_v1/service.rb +1078 -0
- metadata +76 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 222b21433ec01b95a9533b0aafdf232d55cb40a412818ba933251e0020fa3f6b
|
4
|
+
data.tar.gz: 82139624dc408b0fd43e13ef9e64097e5849815038f6eae95a2a078769903879
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6262cda0a7c93b961f64b97407457e4083f7bad78c492260e4c869253e7caf841310a7d21eecec56aa0a91b98a70f2017c3756623a5a0de3bc4af5ca3ed439bd
|
7
|
+
data.tar.gz: cb06d1712dbd35ab7b8e3f287a19eb59565ce71261b2d93a79f0b0ca2b56f918876e4fbd5f558d5721f44f2921bb0e51f2209c660b80723bf9fbd31cb4f9a733
|
data/.yardopts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
--hide-void-return
|
2
|
+
--no-private
|
3
|
+
--verbose
|
4
|
+
--title=google-apis-notebooks_v1
|
5
|
+
--markup-provider=redcarpet
|
6
|
+
--markup=markdown
|
7
|
+
--main OVERVIEW.md
|
8
|
+
lib/google/apis/notebooks_v1/*.rb
|
9
|
+
lib/google/apis/notebooks_v1.rb
|
10
|
+
-
|
11
|
+
OVERVIEW.md
|
12
|
+
CHANGELOG.md
|
13
|
+
LICENSE.md
|
data/CHANGELOG.md
ADDED
data/LICENSE.md
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/OVERVIEW.md
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
# Simple REST client for version V1 of the Notebooks API
|
2
|
+
|
3
|
+
This is a simple client library for version V1 of the Notebooks API. It provides:
|
4
|
+
|
5
|
+
* A client object that connects to the HTTP/JSON REST endpoint for the service.
|
6
|
+
* Ruby objects for data structures related to the service.
|
7
|
+
* Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
|
8
|
+
* Control of retry, pagination, and timeouts.
|
9
|
+
|
10
|
+
Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
|
11
|
+
|
12
|
+
## Getting started
|
13
|
+
|
14
|
+
### Before you begin
|
15
|
+
|
16
|
+
There are a few setup steps you need to complete before you can use this library:
|
17
|
+
|
18
|
+
1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
|
19
|
+
2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
|
20
|
+
3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/notebooks.googleapis.com) in the console.
|
21
|
+
|
22
|
+
### Installation
|
23
|
+
|
24
|
+
Add this line to your application's Gemfile:
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
gem 'google-apis-notebooks_v1', '~> 0.1'
|
28
|
+
```
|
29
|
+
|
30
|
+
And then execute:
|
31
|
+
|
32
|
+
```
|
33
|
+
$ bundle
|
34
|
+
```
|
35
|
+
|
36
|
+
Or install it yourself as:
|
37
|
+
|
38
|
+
```
|
39
|
+
$ gem install google-apis-notebooks_v1
|
40
|
+
```
|
41
|
+
|
42
|
+
### Creating a client object
|
43
|
+
|
44
|
+
Once the gem is installed, you can load the client code and instantiate a client.
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
# Load the client
|
48
|
+
require "google/apis/notebooks_v1"
|
49
|
+
|
50
|
+
# Create a client object
|
51
|
+
client = Google::Apis::NotebooksV1::AIPlatformNotebooksService.new
|
52
|
+
|
53
|
+
# Authenticate calls
|
54
|
+
client.authentication = # ... use the googleauth gem to create credentials
|
55
|
+
```
|
56
|
+
|
57
|
+
See the class reference docs for information on the methods you can call from a client.
|
58
|
+
|
59
|
+
## Documentation
|
60
|
+
|
61
|
+
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
|
+
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
|
+
|
66
|
+
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Notebooks service in particular.)
|
67
|
+
|
68
|
+
For reference information on specific calls in the Notebooks API, see the {Google::Apis::NotebooksV1::AIPlatformNotebooksService class reference docs}.
|
69
|
+
|
70
|
+
## Which client should I use?
|
71
|
+
|
72
|
+
Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
|
73
|
+
|
74
|
+
This library, `google-apis-notebooks_v1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
|
75
|
+
|
76
|
+
Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
|
77
|
+
|
78
|
+
Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
|
79
|
+
|
80
|
+
**For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
|
81
|
+
|
82
|
+
The [product documentation](https://cloud.google.com/ai-platform/notebooks/docs/) may provide guidance regarding the preferred client library to use.
|
83
|
+
|
84
|
+
## Supported Ruby versions
|
85
|
+
|
86
|
+
This library is supported on Ruby 2.5+.
|
87
|
+
|
88
|
+
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
|
+
|
90
|
+
## License
|
91
|
+
|
92
|
+
This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
|
93
|
+
|
94
|
+
## Support
|
95
|
+
|
96
|
+
Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require "google/apis/notebooks_v1"
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/notebooks_v1/service.rb'
|
16
|
+
require 'google/apis/notebooks_v1/classes.rb'
|
17
|
+
require 'google/apis/notebooks_v1/representations.rb'
|
18
|
+
require 'google/apis/notebooks_v1/gem_version.rb'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
# Notebooks API
|
23
|
+
#
|
24
|
+
# AI Platform Notebooks API is used to manage notebook resources in Google Cloud.
|
25
|
+
#
|
26
|
+
# @see https://cloud.google.com/ai-platform/notebooks/docs/
|
27
|
+
module NotebooksV1
|
28
|
+
# Version of the Notebooks API this client connects to.
|
29
|
+
# This is NOT the gem version.
|
30
|
+
VERSION = 'V1'
|
31
|
+
|
32
|
+
# View and manage your data across Google Cloud Platform services
|
33
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,1468 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module NotebooksV1
|
24
|
+
|
25
|
+
# Definition of a hardware accelerator. Note that not all combinations of `type`
|
26
|
+
# and `core_count` are valid. Check [GPUs on Compute Engine](/compute/docs/gpus/#
|
27
|
+
# gpus-list) to find a valid combination. TPUs are not supported.
|
28
|
+
class AcceleratorConfig
|
29
|
+
include Google::Apis::Core::Hashable
|
30
|
+
|
31
|
+
# Count of cores of this accelerator.
|
32
|
+
# Corresponds to the JSON property `coreCount`
|
33
|
+
# @return [Fixnum]
|
34
|
+
attr_accessor :core_count
|
35
|
+
|
36
|
+
# Type of this accelerator.
|
37
|
+
# Corresponds to the JSON property `type`
|
38
|
+
# @return [String]
|
39
|
+
attr_accessor :type
|
40
|
+
|
41
|
+
def initialize(**args)
|
42
|
+
update!(**args)
|
43
|
+
end
|
44
|
+
|
45
|
+
# Update properties of this object
|
46
|
+
def update!(**args)
|
47
|
+
@core_count = args[:core_count] if args.key?(:core_count)
|
48
|
+
@type = args[:type] if args.key?(:type)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# Associates `members` with a `role`.
|
53
|
+
class Binding
|
54
|
+
include Google::Apis::Core::Hashable
|
55
|
+
|
56
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
57
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
58
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
59
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
60
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
61
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
62
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
63
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
64
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
65
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
66
|
+
# string" description: "Create a notification string with a timestamp."
|
67
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
68
|
+
# exact variables and functions that may be referenced within an expression are
|
69
|
+
# determined by the service that evaluates it. See the service documentation for
|
70
|
+
# additional information.
|
71
|
+
# Corresponds to the JSON property `condition`
|
72
|
+
# @return [Google::Apis::NotebooksV1::Expr]
|
73
|
+
attr_accessor :condition
|
74
|
+
|
75
|
+
# Specifies the identities requesting access for a Cloud Platform resource. `
|
76
|
+
# members` can have the following values: * `allUsers`: A special identifier
|
77
|
+
# that represents anyone who is on the internet; with or without a Google
|
78
|
+
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
79
|
+
# anyone who is authenticated with a Google account or a service account. * `
|
80
|
+
# user:`emailid``: An email address that represents a specific Google account.
|
81
|
+
# For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
|
82
|
+
# address that represents a service account. For example, `my-other-app@appspot.
|
83
|
+
# gserviceaccount.com`. * `group:`emailid``: An email address that represents a
|
84
|
+
# Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
|
85
|
+
# `uniqueid``: An email address (plus unique identifier) representing a user
|
86
|
+
# that has been recently deleted. For example, `alice@example.com?uid=
|
87
|
+
# 123456789012345678901`. If the user is recovered, this value reverts to `user:`
|
88
|
+
# emailid`` and the recovered user retains the role in the binding. * `deleted:
|
89
|
+
# serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
|
90
|
+
# identifier) representing a service account that has been recently deleted. For
|
91
|
+
# example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
92
|
+
# If the service account is undeleted, this value reverts to `serviceAccount:`
|
93
|
+
# emailid`` and the undeleted service account retains the role in the binding. *
|
94
|
+
# `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
|
95
|
+
# identifier) representing a Google group that has been recently deleted. For
|
96
|
+
# example, `admins@example.com?uid=123456789012345678901`. If the group is
|
97
|
+
# recovered, this value reverts to `group:`emailid`` and the recovered group
|
98
|
+
# retains the role in the binding. * `domain:`domain``: The G Suite domain (
|
99
|
+
# primary) that represents all the users of that domain. For example, `google.
|
100
|
+
# com` or `example.com`.
|
101
|
+
# Corresponds to the JSON property `members`
|
102
|
+
# @return [Array<String>]
|
103
|
+
attr_accessor :members
|
104
|
+
|
105
|
+
# Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
|
106
|
+
# , or `roles/owner`.
|
107
|
+
# Corresponds to the JSON property `role`
|
108
|
+
# @return [String]
|
109
|
+
attr_accessor :role
|
110
|
+
|
111
|
+
def initialize(**args)
|
112
|
+
update!(**args)
|
113
|
+
end
|
114
|
+
|
115
|
+
# Update properties of this object
|
116
|
+
def update!(**args)
|
117
|
+
@condition = args[:condition] if args.key?(:condition)
|
118
|
+
@members = args[:members] if args.key?(:members)
|
119
|
+
@role = args[:role] if args.key?(:role)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# The request message for Operations.CancelOperation.
|
124
|
+
class CancelOperationRequest
|
125
|
+
include Google::Apis::Core::Hashable
|
126
|
+
|
127
|
+
def initialize(**args)
|
128
|
+
update!(**args)
|
129
|
+
end
|
130
|
+
|
131
|
+
# Update properties of this object
|
132
|
+
def update!(**args)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
# Definition of a container image for starting a notebook instance with the
|
137
|
+
# environment installed in a container.
|
138
|
+
class ContainerImage
|
139
|
+
include Google::Apis::Core::Hashable
|
140
|
+
|
141
|
+
# Required. The path to the container image repository. For example: `gcr.io/`
|
142
|
+
# project_id`/`image_name``
|
143
|
+
# Corresponds to the JSON property `repository`
|
144
|
+
# @return [String]
|
145
|
+
attr_accessor :repository
|
146
|
+
|
147
|
+
# The tag of the container image. If not specified, this defaults to the latest
|
148
|
+
# tag.
|
149
|
+
# Corresponds to the JSON property `tag`
|
150
|
+
# @return [String]
|
151
|
+
attr_accessor :tag
|
152
|
+
|
153
|
+
def initialize(**args)
|
154
|
+
update!(**args)
|
155
|
+
end
|
156
|
+
|
157
|
+
# Update properties of this object
|
158
|
+
def update!(**args)
|
159
|
+
@repository = args[:repository] if args.key?(:repository)
|
160
|
+
@tag = args[:tag] if args.key?(:tag)
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
# An instance-attached disk resource.
|
165
|
+
class Disk
|
166
|
+
include Google::Apis::Core::Hashable
|
167
|
+
|
168
|
+
# Indicates whether the disk will be auto-deleted when the instance is deleted (
|
169
|
+
# but not when the disk is detached from the instance).
|
170
|
+
# Corresponds to the JSON property `autoDelete`
|
171
|
+
# @return [Boolean]
|
172
|
+
attr_accessor :auto_delete
|
173
|
+
alias_method :auto_delete?, :auto_delete
|
174
|
+
|
175
|
+
# Indicates that this is a boot disk. The virtual machine will use the first
|
176
|
+
# partition of the disk for its root filesystem.
|
177
|
+
# Corresponds to the JSON property `boot`
|
178
|
+
# @return [Boolean]
|
179
|
+
attr_accessor :boot
|
180
|
+
alias_method :boot?, :boot
|
181
|
+
|
182
|
+
# Indicates a unique device name of your choice that is reflected into the /dev/
|
183
|
+
# disk/by-id/google-* tree of a Linux operating system running within the
|
184
|
+
# instance. This name can be used to reference the device for mounting, resizing,
|
185
|
+
# and so on, from within the instance. If not specified, the server chooses a
|
186
|
+
# default device name to apply to this disk, in the form persistent-disk-x,
|
187
|
+
# where x is a number assigned by Google Compute Engine.This field is only
|
188
|
+
# applicable for persistent disks.
|
189
|
+
# Corresponds to the JSON property `deviceName`
|
190
|
+
# @return [String]
|
191
|
+
attr_accessor :device_name
|
192
|
+
|
193
|
+
# Indicates the size of the disk in base-2 GB.
|
194
|
+
# Corresponds to the JSON property `diskSizeGb`
|
195
|
+
# @return [Fixnum]
|
196
|
+
attr_accessor :disk_size_gb
|
197
|
+
|
198
|
+
# Indicates a list of features to enable on the guest operating system.
|
199
|
+
# Applicable only for bootable images. Read Enabling guest operating system
|
200
|
+
# features to see a list of available options.
|
201
|
+
# Corresponds to the JSON property `guestOsFeatures`
|
202
|
+
# @return [Array<Google::Apis::NotebooksV1::GuestOsFeature>]
|
203
|
+
attr_accessor :guest_os_features
|
204
|
+
|
205
|
+
# A zero-based index to this disk, where 0 is reserved for the boot disk. If you
|
206
|
+
# have many disks attached to an instance, each disk would have a unique index
|
207
|
+
# number.
|
208
|
+
# Corresponds to the JSON property `index`
|
209
|
+
# @return [Fixnum]
|
210
|
+
attr_accessor :index
|
211
|
+
|
212
|
+
# Indicates the disk interface to use for attaching this disk, which is either
|
213
|
+
# SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and
|
214
|
+
# the request will fail if you attempt to attach a persistent disk in any other
|
215
|
+
# format than SCSI. Local SSDs can use either NVME or SCSI. For performance
|
216
|
+
# characteristics of SCSI over NVMe, see Local SSD performance. Valid values:
|
217
|
+
# NVME SCSI
|
218
|
+
# Corresponds to the JSON property `interface`
|
219
|
+
# @return [String]
|
220
|
+
attr_accessor :interface
|
221
|
+
|
222
|
+
# Type of the resource. Always compute#attachedDisk for attached disks.
|
223
|
+
# Corresponds to the JSON property `kind`
|
224
|
+
# @return [String]
|
225
|
+
attr_accessor :kind
|
226
|
+
|
227
|
+
# A list of publicly visible licenses. Reserved for Google's use. A License
|
228
|
+
# represents billing and aggregate usage data for public and marketplace images.
|
229
|
+
# Corresponds to the JSON property `licenses`
|
230
|
+
# @return [Array<String>]
|
231
|
+
attr_accessor :licenses
|
232
|
+
|
233
|
+
# The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not
|
234
|
+
# specified, the default is to attach the disk in READ_WRITE mode. Valid values:
|
235
|
+
# READ_ONLY READ_WRITE
|
236
|
+
# Corresponds to the JSON property `mode`
|
237
|
+
# @return [String]
|
238
|
+
attr_accessor :mode
|
239
|
+
|
240
|
+
# Indicates a valid partial or full URL to an existing Persistent Disk resource.
|
241
|
+
# Corresponds to the JSON property `source`
|
242
|
+
# @return [String]
|
243
|
+
attr_accessor :source
|
244
|
+
|
245
|
+
# Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values:
|
246
|
+
# PERSISTENT SCRATCH
|
247
|
+
# Corresponds to the JSON property `type`
|
248
|
+
# @return [String]
|
249
|
+
attr_accessor :type
|
250
|
+
|
251
|
+
def initialize(**args)
|
252
|
+
update!(**args)
|
253
|
+
end
|
254
|
+
|
255
|
+
# Update properties of this object
|
256
|
+
def update!(**args)
|
257
|
+
@auto_delete = args[:auto_delete] if args.key?(:auto_delete)
|
258
|
+
@boot = args[:boot] if args.key?(:boot)
|
259
|
+
@device_name = args[:device_name] if args.key?(:device_name)
|
260
|
+
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
261
|
+
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
|
262
|
+
@index = args[:index] if args.key?(:index)
|
263
|
+
@interface = args[:interface] if args.key?(:interface)
|
264
|
+
@kind = args[:kind] if args.key?(:kind)
|
265
|
+
@licenses = args[:licenses] if args.key?(:licenses)
|
266
|
+
@mode = args[:mode] if args.key?(:mode)
|
267
|
+
@source = args[:source] if args.key?(:source)
|
268
|
+
@type = args[:type] if args.key?(:type)
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
273
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
274
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
275
|
+
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
276
|
+
# `Empty` is empty JSON object ````.
|
277
|
+
class Empty
|
278
|
+
include Google::Apis::Core::Hashable
|
279
|
+
|
280
|
+
def initialize(**args)
|
281
|
+
update!(**args)
|
282
|
+
end
|
283
|
+
|
284
|
+
# Update properties of this object
|
285
|
+
def update!(**args)
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
# Definition of a software environment that is used to start a notebook instance.
|
290
|
+
class Environment
|
291
|
+
include Google::Apis::Core::Hashable
|
292
|
+
|
293
|
+
# Definition of a container image for starting a notebook instance with the
|
294
|
+
# environment installed in a container.
|
295
|
+
# Corresponds to the JSON property `containerImage`
|
296
|
+
# @return [Google::Apis::NotebooksV1::ContainerImage]
|
297
|
+
attr_accessor :container_image
|
298
|
+
|
299
|
+
# Output only. The time at which this environment was created.
|
300
|
+
# Corresponds to the JSON property `createTime`
|
301
|
+
# @return [String]
|
302
|
+
attr_accessor :create_time
|
303
|
+
|
304
|
+
# A brief description of this environment.
|
305
|
+
# Corresponds to the JSON property `description`
|
306
|
+
# @return [String]
|
307
|
+
attr_accessor :description
|
308
|
+
|
309
|
+
# Display name of this environment for the UI.
|
310
|
+
# Corresponds to the JSON property `displayName`
|
311
|
+
# @return [String]
|
312
|
+
attr_accessor :display_name
|
313
|
+
|
314
|
+
# Output only. Name of this environment. Format: `projects/`project_id`/
|
315
|
+
# locations/`location`/environments/`environment_id``
|
316
|
+
# Corresponds to the JSON property `name`
|
317
|
+
# @return [String]
|
318
|
+
attr_accessor :name
|
319
|
+
|
320
|
+
# Path to a Bash script that automatically runs after a notebook instance fully
|
321
|
+
# boots up. The path must be a URL or Cloud Storage path. Example: `"gs://path-
|
322
|
+
# to-file/file-name"`
|
323
|
+
# Corresponds to the JSON property `postStartupScript`
|
324
|
+
# @return [String]
|
325
|
+
attr_accessor :post_startup_script
|
326
|
+
|
327
|
+
# Definition of a custom Compute Engine virtual machine image for starting a
|
328
|
+
# notebook instance with the environment installed directly on the VM.
|
329
|
+
# Corresponds to the JSON property `vmImage`
|
330
|
+
# @return [Google::Apis::NotebooksV1::VmImage]
|
331
|
+
attr_accessor :vm_image
|
332
|
+
|
333
|
+
def initialize(**args)
|
334
|
+
update!(**args)
|
335
|
+
end
|
336
|
+
|
337
|
+
# Update properties of this object
|
338
|
+
def update!(**args)
|
339
|
+
@container_image = args[:container_image] if args.key?(:container_image)
|
340
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
341
|
+
@description = args[:description] if args.key?(:description)
|
342
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
343
|
+
@name = args[:name] if args.key?(:name)
|
344
|
+
@post_startup_script = args[:post_startup_script] if args.key?(:post_startup_script)
|
345
|
+
@vm_image = args[:vm_image] if args.key?(:vm_image)
|
346
|
+
end
|
347
|
+
end
|
348
|
+
|
349
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
350
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
351
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
352
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
353
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
354
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
355
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
356
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
357
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
358
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
359
|
+
# string" description: "Create a notification string with a timestamp."
|
360
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
361
|
+
# exact variables and functions that may be referenced within an expression are
|
362
|
+
# determined by the service that evaluates it. See the service documentation for
|
363
|
+
# additional information.
|
364
|
+
class Expr
|
365
|
+
include Google::Apis::Core::Hashable
|
366
|
+
|
367
|
+
# Optional. Description of the expression. This is a longer text which describes
|
368
|
+
# the expression, e.g. when hovered over it in a UI.
|
369
|
+
# Corresponds to the JSON property `description`
|
370
|
+
# @return [String]
|
371
|
+
attr_accessor :description
|
372
|
+
|
373
|
+
# Textual representation of an expression in Common Expression Language syntax.
|
374
|
+
# Corresponds to the JSON property `expression`
|
375
|
+
# @return [String]
|
376
|
+
attr_accessor :expression
|
377
|
+
|
378
|
+
# Optional. String indicating the location of the expression for error reporting,
|
379
|
+
# e.g. a file name and a position in the file.
|
380
|
+
# Corresponds to the JSON property `location`
|
381
|
+
# @return [String]
|
382
|
+
attr_accessor :location
|
383
|
+
|
384
|
+
# Optional. Title for the expression, i.e. a short string describing its purpose.
|
385
|
+
# This can be used e.g. in UIs which allow to enter the expression.
|
386
|
+
# Corresponds to the JSON property `title`
|
387
|
+
# @return [String]
|
388
|
+
attr_accessor :title
|
389
|
+
|
390
|
+
def initialize(**args)
|
391
|
+
update!(**args)
|
392
|
+
end
|
393
|
+
|
394
|
+
# Update properties of this object
|
395
|
+
def update!(**args)
|
396
|
+
@description = args[:description] if args.key?(:description)
|
397
|
+
@expression = args[:expression] if args.key?(:expression)
|
398
|
+
@location = args[:location] if args.key?(:location)
|
399
|
+
@title = args[:title] if args.key?(:title)
|
400
|
+
end
|
401
|
+
end
|
402
|
+
|
403
|
+
# Guest OS features for boot disk.
|
404
|
+
class GuestOsFeature
|
405
|
+
include Google::Apis::Core::Hashable
|
406
|
+
|
407
|
+
# The ID of a supported feature. Read Enabling guest operating system features
|
408
|
+
# to see a list of available options. Valid values: FEATURE_TYPE_UNSPECIFIED
|
409
|
+
# MULTI_IP_SUBNET SECURE_BOOT UEFI_COMPATIBLE VIRTIO_SCSI_MULTIQUEUE WINDOWS
|
410
|
+
# Corresponds to the JSON property `type`
|
411
|
+
# @return [String]
|
412
|
+
attr_accessor :type
|
413
|
+
|
414
|
+
def initialize(**args)
|
415
|
+
update!(**args)
|
416
|
+
end
|
417
|
+
|
418
|
+
# Update properties of this object
|
419
|
+
def update!(**args)
|
420
|
+
@type = args[:type] if args.key?(:type)
|
421
|
+
end
|
422
|
+
end
|
423
|
+
|
424
|
+
# The definition of a notebook instance.
|
425
|
+
class Instance
|
426
|
+
include Google::Apis::Core::Hashable
|
427
|
+
|
428
|
+
# Definition of a hardware accelerator. Note that not all combinations of `type`
|
429
|
+
# and `core_count` are valid. Check [GPUs on Compute Engine](/compute/docs/gpus/#
|
430
|
+
# gpus-list) to find a valid combination. TPUs are not supported.
|
431
|
+
# Corresponds to the JSON property `acceleratorConfig`
|
432
|
+
# @return [Google::Apis::NotebooksV1::AcceleratorConfig]
|
433
|
+
attr_accessor :accelerator_config
|
434
|
+
|
435
|
+
# Input only. The size of the boot disk in GB attached to this instance, up to a
|
436
|
+
# maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not
|
437
|
+
# specified, this defaults to 100.
|
438
|
+
# Corresponds to the JSON property `bootDiskSizeGb`
|
439
|
+
# @return [Fixnum]
|
440
|
+
attr_accessor :boot_disk_size_gb
|
441
|
+
|
442
|
+
# Input only. The type of the boot disk attached to this instance, defaults to
|
443
|
+
# standard persistent disk (`PD_STANDARD`).
|
444
|
+
# Corresponds to the JSON property `bootDiskType`
|
445
|
+
# @return [String]
|
446
|
+
attr_accessor :boot_disk_type
|
447
|
+
|
448
|
+
# Definition of a container image for starting a notebook instance with the
|
449
|
+
# environment installed in a container.
|
450
|
+
# Corresponds to the JSON property `containerImage`
|
451
|
+
# @return [Google::Apis::NotebooksV1::ContainerImage]
|
452
|
+
attr_accessor :container_image
|
453
|
+
|
454
|
+
# Output only. Instance creation time.
|
455
|
+
# Corresponds to the JSON property `createTime`
|
456
|
+
# @return [String]
|
457
|
+
attr_accessor :create_time
|
458
|
+
|
459
|
+
# Specify a custom Cloud Storage path where the GPU driver is stored. If not
|
460
|
+
# specified, we'll automatically choose from official GPU drivers.
|
461
|
+
# Corresponds to the JSON property `customGpuDriverPath`
|
462
|
+
# @return [String]
|
463
|
+
attr_accessor :custom_gpu_driver_path
|
464
|
+
|
465
|
+
# Input only. The size of the data disk in GB attached to this instance, up to a
|
466
|
+
# maximum of 64000 GB (64 TB). You can choose the size of the data disk based on
|
467
|
+
# how big your notebooks and data are. If not specified, this defaults to 100.
|
468
|
+
# Corresponds to the JSON property `dataDiskSizeGb`
|
469
|
+
# @return [Fixnum]
|
470
|
+
attr_accessor :data_disk_size_gb
|
471
|
+
|
472
|
+
# Input only. The type of the data disk attached to this instance, defaults to
|
473
|
+
# standard persistent disk (`PD_STANDARD`).
|
474
|
+
# Corresponds to the JSON property `dataDiskType`
|
475
|
+
# @return [String]
|
476
|
+
attr_accessor :data_disk_type
|
477
|
+
|
478
|
+
# Input only. Disk encryption method used on the boot and data disks, defaults
|
479
|
+
# to GMEK.
|
480
|
+
# Corresponds to the JSON property `diskEncryption`
|
481
|
+
# @return [String]
|
482
|
+
attr_accessor :disk_encryption
|
483
|
+
|
484
|
+
# Output only. Attached disks to notebook instance.
|
485
|
+
# Corresponds to the JSON property `disks`
|
486
|
+
# @return [Array<Google::Apis::NotebooksV1::Disk>]
|
487
|
+
attr_accessor :disks
|
488
|
+
|
489
|
+
# Whether the end user authorizes Google Cloud to install GPU driver on this
|
490
|
+
# instance. If this field is empty or set to false, the GPU driver won't be
|
491
|
+
# installed. Only applicable to instances with GPUs.
|
492
|
+
# Corresponds to the JSON property `installGpuDriver`
|
493
|
+
# @return [Boolean]
|
494
|
+
attr_accessor :install_gpu_driver
|
495
|
+
alias_method :install_gpu_driver?, :install_gpu_driver
|
496
|
+
|
497
|
+
# Input only. The owner of this instance after creation. Format: `alias@example.
|
498
|
+
# com` Currently supports one owner only. If not specified, all of the service
|
499
|
+
# account users of your VM instance's service account can use the instance.
|
500
|
+
# Corresponds to the JSON property `instanceOwners`
|
501
|
+
# @return [Array<String>]
|
502
|
+
attr_accessor :instance_owners
|
503
|
+
|
504
|
+
# Input only. The KMS key used to encrypt the disks, only applicable if
|
505
|
+
# disk_encryption is CMEK. Format: `projects/`project_id`/locations/`location`/
|
506
|
+
# keyRings/`key_ring_id`/cryptoKeys/`key_id`` Learn more about [using your own
|
507
|
+
# encryption keys](/kms/docs/quickstart).
|
508
|
+
# Corresponds to the JSON property `kmsKey`
|
509
|
+
# @return [String]
|
510
|
+
attr_accessor :kms_key
|
511
|
+
|
512
|
+
# Labels to apply to this instance. These can be later modified by the setLabels
|
513
|
+
# method.
|
514
|
+
# Corresponds to the JSON property `labels`
|
515
|
+
# @return [Hash<String,String>]
|
516
|
+
attr_accessor :labels
|
517
|
+
|
518
|
+
# Required. The [Compute Engine machine type](/compute/docs/machine-types) of
|
519
|
+
# this instance.
|
520
|
+
# Corresponds to the JSON property `machineType`
|
521
|
+
# @return [String]
|
522
|
+
attr_accessor :machine_type
|
523
|
+
|
524
|
+
# Custom metadata to apply to this instance.
|
525
|
+
# Corresponds to the JSON property `metadata`
|
526
|
+
# @return [Hash<String,String>]
|
527
|
+
attr_accessor :metadata
|
528
|
+
|
529
|
+
# Output only. The name of this notebook instance. Format: `projects/`project_id`
|
530
|
+
# /locations/`location`/instances/`instance_id``
|
531
|
+
# Corresponds to the JSON property `name`
|
532
|
+
# @return [String]
|
533
|
+
attr_accessor :name
|
534
|
+
|
535
|
+
# The name of the VPC that this instance is in. Format: `projects/`project_id`/
|
536
|
+
# global/networks/`network_id``
|
537
|
+
# Corresponds to the JSON property `network`
|
538
|
+
# @return [String]
|
539
|
+
attr_accessor :network
|
540
|
+
|
541
|
+
# If true, the notebook instance will not register with the proxy.
|
542
|
+
# Corresponds to the JSON property `noProxyAccess`
|
543
|
+
# @return [Boolean]
|
544
|
+
attr_accessor :no_proxy_access
|
545
|
+
alias_method :no_proxy_access?, :no_proxy_access
|
546
|
+
|
547
|
+
# If true, no public IP will be assigned to this instance.
|
548
|
+
# Corresponds to the JSON property `noPublicIp`
|
549
|
+
# @return [Boolean]
|
550
|
+
attr_accessor :no_public_ip
|
551
|
+
alias_method :no_public_ip?, :no_public_ip
|
552
|
+
|
553
|
+
# Input only. If true, the data disk will not be auto deleted when deleting the
|
554
|
+
# instance.
|
555
|
+
# Corresponds to the JSON property `noRemoveDataDisk`
|
556
|
+
# @return [Boolean]
|
557
|
+
attr_accessor :no_remove_data_disk
|
558
|
+
alias_method :no_remove_data_disk?, :no_remove_data_disk
|
559
|
+
|
560
|
+
# Path to a Bash script that automatically runs after a notebook instance fully
|
561
|
+
# boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-
|
562
|
+
# name).
|
563
|
+
# Corresponds to the JSON property `postStartupScript`
|
564
|
+
# @return [String]
|
565
|
+
attr_accessor :post_startup_script
|
566
|
+
|
567
|
+
# Output only. The proxy endpoint that is used to access the Jupyter notebook.
|
568
|
+
# Corresponds to the JSON property `proxyUri`
|
569
|
+
# @return [String]
|
570
|
+
attr_accessor :proxy_uri
|
571
|
+
|
572
|
+
# The service account on this instance, giving access to other Google Cloud
|
573
|
+
# services. You can use any service account within the same project, but you
|
574
|
+
# must have the service account user permission to use the instance. If not
|
575
|
+
# specified, the [Compute Engine default service account](https://cloud.google.
|
576
|
+
# com/compute/docs/access/service-accounts#default_service_account) is used.
|
577
|
+
# Corresponds to the JSON property `serviceAccount`
|
578
|
+
# @return [String]
|
579
|
+
attr_accessor :service_account
|
580
|
+
|
581
|
+
# Output only. The state of this instance.
|
582
|
+
# Corresponds to the JSON property `state`
|
583
|
+
# @return [String]
|
584
|
+
attr_accessor :state
|
585
|
+
|
586
|
+
# The name of the subnet that this instance is in. Format: `projects/`project_id`
|
587
|
+
# /regions/`region`/subnetworks/`subnetwork_id``
|
588
|
+
# Corresponds to the JSON property `subnet`
|
589
|
+
# @return [String]
|
590
|
+
attr_accessor :subnet
|
591
|
+
|
592
|
+
# Output only. Instance update time.
|
593
|
+
# Corresponds to the JSON property `updateTime`
|
594
|
+
# @return [String]
|
595
|
+
attr_accessor :update_time
|
596
|
+
|
597
|
+
# The upgrade history of this instance.
|
598
|
+
# Corresponds to the JSON property `upgradeHistory`
|
599
|
+
# @return [Array<Google::Apis::NotebooksV1::UpgradeHistoryEntry>]
|
600
|
+
attr_accessor :upgrade_history
|
601
|
+
|
602
|
+
# Definition of a custom Compute Engine virtual machine image for starting a
|
603
|
+
# notebook instance with the environment installed directly on the VM.
|
604
|
+
# Corresponds to the JSON property `vmImage`
|
605
|
+
# @return [Google::Apis::NotebooksV1::VmImage]
|
606
|
+
attr_accessor :vm_image
|
607
|
+
|
608
|
+
def initialize(**args)
|
609
|
+
update!(**args)
|
610
|
+
end
|
611
|
+
|
612
|
+
# Update properties of this object
|
613
|
+
def update!(**args)
|
614
|
+
@accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
|
615
|
+
@boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
|
616
|
+
@boot_disk_type = args[:boot_disk_type] if args.key?(:boot_disk_type)
|
617
|
+
@container_image = args[:container_image] if args.key?(:container_image)
|
618
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
619
|
+
@custom_gpu_driver_path = args[:custom_gpu_driver_path] if args.key?(:custom_gpu_driver_path)
|
620
|
+
@data_disk_size_gb = args[:data_disk_size_gb] if args.key?(:data_disk_size_gb)
|
621
|
+
@data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type)
|
622
|
+
@disk_encryption = args[:disk_encryption] if args.key?(:disk_encryption)
|
623
|
+
@disks = args[:disks] if args.key?(:disks)
|
624
|
+
@install_gpu_driver = args[:install_gpu_driver] if args.key?(:install_gpu_driver)
|
625
|
+
@instance_owners = args[:instance_owners] if args.key?(:instance_owners)
|
626
|
+
@kms_key = args[:kms_key] if args.key?(:kms_key)
|
627
|
+
@labels = args[:labels] if args.key?(:labels)
|
628
|
+
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
629
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
630
|
+
@name = args[:name] if args.key?(:name)
|
631
|
+
@network = args[:network] if args.key?(:network)
|
632
|
+
@no_proxy_access = args[:no_proxy_access] if args.key?(:no_proxy_access)
|
633
|
+
@no_public_ip = args[:no_public_ip] if args.key?(:no_public_ip)
|
634
|
+
@no_remove_data_disk = args[:no_remove_data_disk] if args.key?(:no_remove_data_disk)
|
635
|
+
@post_startup_script = args[:post_startup_script] if args.key?(:post_startup_script)
|
636
|
+
@proxy_uri = args[:proxy_uri] if args.key?(:proxy_uri)
|
637
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
638
|
+
@state = args[:state] if args.key?(:state)
|
639
|
+
@subnet = args[:subnet] if args.key?(:subnet)
|
640
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
641
|
+
@upgrade_history = args[:upgrade_history] if args.key?(:upgrade_history)
|
642
|
+
@vm_image = args[:vm_image] if args.key?(:vm_image)
|
643
|
+
end
|
644
|
+
end
|
645
|
+
|
646
|
+
# Response for checking if a notebook instance is upgradeable.
|
647
|
+
class IsInstanceUpgradeableResponse
|
648
|
+
include Google::Apis::Core::Hashable
|
649
|
+
|
650
|
+
# Additional information about upgrade.
|
651
|
+
# Corresponds to the JSON property `upgradeInfo`
|
652
|
+
# @return [String]
|
653
|
+
attr_accessor :upgrade_info
|
654
|
+
|
655
|
+
# The version this instance will be upgraded to if calling the upgrade endpoint.
|
656
|
+
# This field will only be populated if field upgradeable is true.
|
657
|
+
# Corresponds to the JSON property `upgradeVersion`
|
658
|
+
# @return [String]
|
659
|
+
attr_accessor :upgrade_version
|
660
|
+
|
661
|
+
# If an instance is upgradeable.
|
662
|
+
# Corresponds to the JSON property `upgradeable`
|
663
|
+
# @return [Boolean]
|
664
|
+
attr_accessor :upgradeable
|
665
|
+
alias_method :upgradeable?, :upgradeable
|
666
|
+
|
667
|
+
def initialize(**args)
|
668
|
+
update!(**args)
|
669
|
+
end
|
670
|
+
|
671
|
+
# Update properties of this object
|
672
|
+
def update!(**args)
|
673
|
+
@upgrade_info = args[:upgrade_info] if args.key?(:upgrade_info)
|
674
|
+
@upgrade_version = args[:upgrade_version] if args.key?(:upgrade_version)
|
675
|
+
@upgradeable = args[:upgradeable] if args.key?(:upgradeable)
|
676
|
+
end
|
677
|
+
end
|
678
|
+
|
679
|
+
# Response for listing environments.
|
680
|
+
class ListEnvironmentsResponse
|
681
|
+
include Google::Apis::Core::Hashable
|
682
|
+
|
683
|
+
# A list of returned environments.
|
684
|
+
# Corresponds to the JSON property `environments`
|
685
|
+
# @return [Array<Google::Apis::NotebooksV1::Environment>]
|
686
|
+
attr_accessor :environments
|
687
|
+
|
688
|
+
# A page token that can be used to continue listing from the last result in the
|
689
|
+
# next list call.
|
690
|
+
# Corresponds to the JSON property `nextPageToken`
|
691
|
+
# @return [String]
|
692
|
+
attr_accessor :next_page_token
|
693
|
+
|
694
|
+
# Locations that could not be reached.
|
695
|
+
# Corresponds to the JSON property `unreachable`
|
696
|
+
# @return [Array<String>]
|
697
|
+
attr_accessor :unreachable
|
698
|
+
|
699
|
+
def initialize(**args)
|
700
|
+
update!(**args)
|
701
|
+
end
|
702
|
+
|
703
|
+
# Update properties of this object
|
704
|
+
def update!(**args)
|
705
|
+
@environments = args[:environments] if args.key?(:environments)
|
706
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
707
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
708
|
+
end
|
709
|
+
end
|
710
|
+
|
711
|
+
# Response for listing notebook instances.
|
712
|
+
class ListInstancesResponse
|
713
|
+
include Google::Apis::Core::Hashable
|
714
|
+
|
715
|
+
# A list of returned instances.
|
716
|
+
# Corresponds to the JSON property `instances`
|
717
|
+
# @return [Array<Google::Apis::NotebooksV1::Instance>]
|
718
|
+
attr_accessor :instances
|
719
|
+
|
720
|
+
# Page token that can be used to continue listing from the last result in the
|
721
|
+
# next list call.
|
722
|
+
# Corresponds to the JSON property `nextPageToken`
|
723
|
+
# @return [String]
|
724
|
+
attr_accessor :next_page_token
|
725
|
+
|
726
|
+
# Locations that could not be reached. For example, ['us-west1-a', 'us-central1-
|
727
|
+
# b']. A ListInstancesResponse will only contain either instances or
|
728
|
+
# unreachables,
|
729
|
+
# Corresponds to the JSON property `unreachable`
|
730
|
+
# @return [Array<String>]
|
731
|
+
attr_accessor :unreachable
|
732
|
+
|
733
|
+
def initialize(**args)
|
734
|
+
update!(**args)
|
735
|
+
end
|
736
|
+
|
737
|
+
# Update properties of this object
|
738
|
+
def update!(**args)
|
739
|
+
@instances = args[:instances] if args.key?(:instances)
|
740
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
741
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
742
|
+
end
|
743
|
+
end
|
744
|
+
|
745
|
+
# The response message for Locations.ListLocations.
|
746
|
+
class ListLocationsResponse
|
747
|
+
include Google::Apis::Core::Hashable
|
748
|
+
|
749
|
+
# A list of locations that matches the specified filter in the request.
|
750
|
+
# Corresponds to the JSON property `locations`
|
751
|
+
# @return [Array<Google::Apis::NotebooksV1::Location>]
|
752
|
+
attr_accessor :locations
|
753
|
+
|
754
|
+
# The standard List next-page token.
|
755
|
+
# Corresponds to the JSON property `nextPageToken`
|
756
|
+
# @return [String]
|
757
|
+
attr_accessor :next_page_token
|
758
|
+
|
759
|
+
def initialize(**args)
|
760
|
+
update!(**args)
|
761
|
+
end
|
762
|
+
|
763
|
+
# Update properties of this object
|
764
|
+
def update!(**args)
|
765
|
+
@locations = args[:locations] if args.key?(:locations)
|
766
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
767
|
+
end
|
768
|
+
end
|
769
|
+
|
770
|
+
# The response message for Operations.ListOperations.
|
771
|
+
class ListOperationsResponse
|
772
|
+
include Google::Apis::Core::Hashable
|
773
|
+
|
774
|
+
# The standard List next-page token.
|
775
|
+
# Corresponds to the JSON property `nextPageToken`
|
776
|
+
# @return [String]
|
777
|
+
attr_accessor :next_page_token
|
778
|
+
|
779
|
+
# A list of operations that matches the specified filter in the request.
|
780
|
+
# Corresponds to the JSON property `operations`
|
781
|
+
# @return [Array<Google::Apis::NotebooksV1::Operation>]
|
782
|
+
attr_accessor :operations
|
783
|
+
|
784
|
+
def initialize(**args)
|
785
|
+
update!(**args)
|
786
|
+
end
|
787
|
+
|
788
|
+
# Update properties of this object
|
789
|
+
def update!(**args)
|
790
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
791
|
+
@operations = args[:operations] if args.key?(:operations)
|
792
|
+
end
|
793
|
+
end
|
794
|
+
|
795
|
+
# A resource that represents Google Cloud Platform location.
|
796
|
+
class Location
|
797
|
+
include Google::Apis::Core::Hashable
|
798
|
+
|
799
|
+
# The friendly name for this location, typically a nearby city name. For example,
|
800
|
+
# "Tokyo".
|
801
|
+
# Corresponds to the JSON property `displayName`
|
802
|
+
# @return [String]
|
803
|
+
attr_accessor :display_name
|
804
|
+
|
805
|
+
# Cross-service attributes for the location. For example `"cloud.googleapis.com/
|
806
|
+
# region": "us-east1"`
|
807
|
+
# Corresponds to the JSON property `labels`
|
808
|
+
# @return [Hash<String,String>]
|
809
|
+
attr_accessor :labels
|
810
|
+
|
811
|
+
# The canonical id for this location. For example: `"us-east1"`.
|
812
|
+
# Corresponds to the JSON property `locationId`
|
813
|
+
# @return [String]
|
814
|
+
attr_accessor :location_id
|
815
|
+
|
816
|
+
# Service-specific metadata. For example the available capacity at the given
|
817
|
+
# location.
|
818
|
+
# Corresponds to the JSON property `metadata`
|
819
|
+
# @return [Hash<String,Object>]
|
820
|
+
attr_accessor :metadata
|
821
|
+
|
822
|
+
# Resource name for the location, which may vary between implementations. For
|
823
|
+
# example: `"projects/example-project/locations/us-east1"`
|
824
|
+
# Corresponds to the JSON property `name`
|
825
|
+
# @return [String]
|
826
|
+
attr_accessor :name
|
827
|
+
|
828
|
+
def initialize(**args)
|
829
|
+
update!(**args)
|
830
|
+
end
|
831
|
+
|
832
|
+
# Update properties of this object
|
833
|
+
def update!(**args)
|
834
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
835
|
+
@labels = args[:labels] if args.key?(:labels)
|
836
|
+
@location_id = args[:location_id] if args.key?(:location_id)
|
837
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
838
|
+
@name = args[:name] if args.key?(:name)
|
839
|
+
end
|
840
|
+
end
|
841
|
+
|
842
|
+
# This resource represents a long-running operation that is the result of a
|
843
|
+
# network API call.
|
844
|
+
class Operation
|
845
|
+
include Google::Apis::Core::Hashable
|
846
|
+
|
847
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
848
|
+
# , the operation is completed, and either `error` or `response` is available.
|
849
|
+
# Corresponds to the JSON property `done`
|
850
|
+
# @return [Boolean]
|
851
|
+
attr_accessor :done
|
852
|
+
alias_method :done?, :done
|
853
|
+
|
854
|
+
# The `Status` type defines a logical error model that is suitable for different
|
855
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
856
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
857
|
+
# data: error code, error message, and error details. You can find out more
|
858
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
859
|
+
# //cloud.google.com/apis/design/errors).
|
860
|
+
# Corresponds to the JSON property `error`
|
861
|
+
# @return [Google::Apis::NotebooksV1::Status]
|
862
|
+
attr_accessor :error
|
863
|
+
|
864
|
+
# Service-specific metadata associated with the operation. It typically contains
|
865
|
+
# progress information and common metadata such as create time. Some services
|
866
|
+
# might not provide such metadata. Any method that returns a long-running
|
867
|
+
# operation should document the metadata type, if any.
|
868
|
+
# Corresponds to the JSON property `metadata`
|
869
|
+
# @return [Hash<String,Object>]
|
870
|
+
attr_accessor :metadata
|
871
|
+
|
872
|
+
# The server-assigned name, which is only unique within the same service that
|
873
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
874
|
+
# be a resource name ending with `operations/`unique_id``.
|
875
|
+
# Corresponds to the JSON property `name`
|
876
|
+
# @return [String]
|
877
|
+
attr_accessor :name
|
878
|
+
|
879
|
+
# The normal response of the operation in case of success. If the original
|
880
|
+
# method returns no data on success, such as `Delete`, the response is `google.
|
881
|
+
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
882
|
+
# the response should be the resource. For other methods, the response should
|
883
|
+
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
884
|
+
# example, if the original method name is `TakeSnapshot()`, the inferred
|
885
|
+
# response type is `TakeSnapshotResponse`.
|
886
|
+
# Corresponds to the JSON property `response`
|
887
|
+
# @return [Hash<String,Object>]
|
888
|
+
attr_accessor :response
|
889
|
+
|
890
|
+
def initialize(**args)
|
891
|
+
update!(**args)
|
892
|
+
end
|
893
|
+
|
894
|
+
# Update properties of this object
|
895
|
+
def update!(**args)
|
896
|
+
@done = args[:done] if args.key?(:done)
|
897
|
+
@error = args[:error] if args.key?(:error)
|
898
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
899
|
+
@name = args[:name] if args.key?(:name)
|
900
|
+
@response = args[:response] if args.key?(:response)
|
901
|
+
end
|
902
|
+
end
|
903
|
+
|
904
|
+
# Represents the metadata of the long-running operation.
|
905
|
+
class OperationMetadata
|
906
|
+
include Google::Apis::Core::Hashable
|
907
|
+
|
908
|
+
# API version used to start the operation.
|
909
|
+
# Corresponds to the JSON property `apiVersion`
|
910
|
+
# @return [String]
|
911
|
+
attr_accessor :api_version
|
912
|
+
|
913
|
+
# The time the operation was created.
|
914
|
+
# Corresponds to the JSON property `createTime`
|
915
|
+
# @return [String]
|
916
|
+
attr_accessor :create_time
|
917
|
+
|
918
|
+
# The time the operation finished running.
|
919
|
+
# Corresponds to the JSON property `endTime`
|
920
|
+
# @return [String]
|
921
|
+
attr_accessor :end_time
|
922
|
+
|
923
|
+
# API endpoint name of this operation.
|
924
|
+
# Corresponds to the JSON property `endpoint`
|
925
|
+
# @return [String]
|
926
|
+
attr_accessor :endpoint
|
927
|
+
|
928
|
+
# Identifies whether the user has requested cancellation of the operation.
|
929
|
+
# Operations that have successfully been cancelled have Operation.error value
|
930
|
+
# with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
931
|
+
# Corresponds to the JSON property `requestedCancellation`
|
932
|
+
# @return [Boolean]
|
933
|
+
attr_accessor :requested_cancellation
|
934
|
+
alias_method :requested_cancellation?, :requested_cancellation
|
935
|
+
|
936
|
+
# Human-readable status of the operation, if any.
|
937
|
+
# Corresponds to the JSON property `statusMessage`
|
938
|
+
# @return [String]
|
939
|
+
attr_accessor :status_message
|
940
|
+
|
941
|
+
# Server-defined resource path for the target of the operation.
|
942
|
+
# Corresponds to the JSON property `target`
|
943
|
+
# @return [String]
|
944
|
+
attr_accessor :target
|
945
|
+
|
946
|
+
# Name of the verb executed by the operation.
|
947
|
+
# Corresponds to the JSON property `verb`
|
948
|
+
# @return [String]
|
949
|
+
attr_accessor :verb
|
950
|
+
|
951
|
+
def initialize(**args)
|
952
|
+
update!(**args)
|
953
|
+
end
|
954
|
+
|
955
|
+
# Update properties of this object
|
956
|
+
def update!(**args)
|
957
|
+
@api_version = args[:api_version] if args.key?(:api_version)
|
958
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
959
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
960
|
+
@endpoint = args[:endpoint] if args.key?(:endpoint)
|
961
|
+
@requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
|
962
|
+
@status_message = args[:status_message] if args.key?(:status_message)
|
963
|
+
@target = args[:target] if args.key?(:target)
|
964
|
+
@verb = args[:verb] if args.key?(:verb)
|
965
|
+
end
|
966
|
+
end
|
967
|
+
|
968
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
969
|
+
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
970
|
+
# A `binding` binds one or more `members` to a single `role`. Members can be
|
971
|
+
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
972
|
+
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
973
|
+
# role or a user-created custom role. For some types of Google Cloud resources,
|
974
|
+
# a `binding` can also specify a `condition`, which is a logical expression that
|
975
|
+
# allows access to a resource only if the expression evaluates to `true`. A
|
976
|
+
# condition can add constraints based on attributes of the request, the resource,
|
977
|
+
# or both. To learn which resources support conditions in their IAM policies,
|
978
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
979
|
+
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
980
|
+
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
981
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
982
|
+
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
983
|
+
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
984
|
+
# title": "expirable access", "description": "Does not grant access after Sep
|
985
|
+
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
986
|
+
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
987
|
+
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
988
|
+
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
989
|
+
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
990
|
+
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
991
|
+
# description: Does not grant access after Sep 2020 expression: request.time <
|
992
|
+
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
993
|
+
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
994
|
+
# google.com/iam/docs/).
|
995
|
+
class Policy
|
996
|
+
include Google::Apis::Core::Hashable
|
997
|
+
|
998
|
+
# Associates a list of `members` to a `role`. Optionally, may specify a `
|
999
|
+
# condition` that determines how and when the `bindings` are applied. Each of
|
1000
|
+
# the `bindings` must contain at least one member.
|
1001
|
+
# Corresponds to the JSON property `bindings`
|
1002
|
+
# @return [Array<Google::Apis::NotebooksV1::Binding>]
|
1003
|
+
attr_accessor :bindings
|
1004
|
+
|
1005
|
+
# `etag` is used for optimistic concurrency control as a way to help prevent
|
1006
|
+
# simultaneous updates of a policy from overwriting each other. It is strongly
|
1007
|
+
# suggested that systems make use of the `etag` in the read-modify-write cycle
|
1008
|
+
# to perform policy updates in order to avoid race conditions: An `etag` is
|
1009
|
+
# returned in the response to `getIamPolicy`, and systems are expected to put
|
1010
|
+
# that etag in the request to `setIamPolicy` to ensure that their change will be
|
1011
|
+
# applied to the same version of the policy. **Important:** If you use IAM
|
1012
|
+
# Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
|
1013
|
+
# If you omit this field, then IAM allows you to overwrite a version `3` policy
|
1014
|
+
# with a version `1` policy, and all of the conditions in the version `3` policy
|
1015
|
+
# are lost.
|
1016
|
+
# Corresponds to the JSON property `etag`
|
1017
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1018
|
+
# @return [String]
|
1019
|
+
attr_accessor :etag
|
1020
|
+
|
1021
|
+
# Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
|
1022
|
+
# Requests that specify an invalid value are rejected. Any operation that
|
1023
|
+
# affects conditional role bindings must specify version `3`. This requirement
|
1024
|
+
# applies to the following operations: * Getting a policy that includes a
|
1025
|
+
# conditional role binding * Adding a conditional role binding to a policy *
|
1026
|
+
# Changing a conditional role binding in a policy * Removing any role binding,
|
1027
|
+
# with or without a condition, from a policy that includes conditions **
|
1028
|
+
# Important:** If you use IAM Conditions, you must include the `etag` field
|
1029
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
|
1030
|
+
# to overwrite a version `3` policy with a version `1` policy, and all of the
|
1031
|
+
# conditions in the version `3` policy are lost. If a policy does not include
|
1032
|
+
# any conditions, operations on that policy may specify any valid version or
|
1033
|
+
# leave the field unset. To learn which resources support conditions in their
|
1034
|
+
# IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
|
1035
|
+
# conditions/resource-policies).
|
1036
|
+
# Corresponds to the JSON property `version`
|
1037
|
+
# @return [Fixnum]
|
1038
|
+
attr_accessor :version
|
1039
|
+
|
1040
|
+
def initialize(**args)
|
1041
|
+
update!(**args)
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
# Update properties of this object
|
1045
|
+
def update!(**args)
|
1046
|
+
@bindings = args[:bindings] if args.key?(:bindings)
|
1047
|
+
@etag = args[:etag] if args.key?(:etag)
|
1048
|
+
@version = args[:version] if args.key?(:version)
|
1049
|
+
end
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
# Request for registering a notebook instance.
|
1053
|
+
class RegisterInstanceRequest
|
1054
|
+
include Google::Apis::Core::Hashable
|
1055
|
+
|
1056
|
+
# Required. User defined unique ID of this instance. The `instance_id` must be 1
|
1057
|
+
# to 63 characters long and contain only lowercase letters, numeric characters,
|
1058
|
+
# and dashes. The first character must be a lowercase letter and the last
|
1059
|
+
# character cannot be a dash.
|
1060
|
+
# Corresponds to the JSON property `instanceId`
|
1061
|
+
# @return [String]
|
1062
|
+
attr_accessor :instance_id
|
1063
|
+
|
1064
|
+
def initialize(**args)
|
1065
|
+
update!(**args)
|
1066
|
+
end
|
1067
|
+
|
1068
|
+
# Update properties of this object
|
1069
|
+
def update!(**args)
|
1070
|
+
@instance_id = args[:instance_id] if args.key?(:instance_id)
|
1071
|
+
end
|
1072
|
+
end
|
1073
|
+
|
1074
|
+
# Request for notebook instances to report information to Notebooks API.
|
1075
|
+
class ReportInstanceInfoRequest
|
1076
|
+
include Google::Apis::Core::Hashable
|
1077
|
+
|
1078
|
+
# The metadata reported to Notebooks API. This will be merged to the instance
|
1079
|
+
# metadata store
|
1080
|
+
# Corresponds to the JSON property `metadata`
|
1081
|
+
# @return [Hash<String,String>]
|
1082
|
+
attr_accessor :metadata
|
1083
|
+
|
1084
|
+
# Required. The VM hardware token for authenticating the VM. https://cloud.
|
1085
|
+
# google.com/compute/docs/instances/verifying-instance-identity
|
1086
|
+
# Corresponds to the JSON property `vmId`
|
1087
|
+
# @return [String]
|
1088
|
+
attr_accessor :vm_id
|
1089
|
+
|
1090
|
+
def initialize(**args)
|
1091
|
+
update!(**args)
|
1092
|
+
end
|
1093
|
+
|
1094
|
+
# Update properties of this object
|
1095
|
+
def update!(**args)
|
1096
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1097
|
+
@vm_id = args[:vm_id] if args.key?(:vm_id)
|
1098
|
+
end
|
1099
|
+
end
|
1100
|
+
|
1101
|
+
# Request for reseting a notebook instance
|
1102
|
+
class ResetInstanceRequest
|
1103
|
+
include Google::Apis::Core::Hashable
|
1104
|
+
|
1105
|
+
def initialize(**args)
|
1106
|
+
update!(**args)
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
# Update properties of this object
|
1110
|
+
def update!(**args)
|
1111
|
+
end
|
1112
|
+
end
|
1113
|
+
|
1114
|
+
# Request message for `SetIamPolicy` method.
|
1115
|
+
class SetIamPolicyRequest
|
1116
|
+
include Google::Apis::Core::Hashable
|
1117
|
+
|
1118
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
1119
|
+
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
1120
|
+
# A `binding` binds one or more `members` to a single `role`. Members can be
|
1121
|
+
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
1122
|
+
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
1123
|
+
# role or a user-created custom role. For some types of Google Cloud resources,
|
1124
|
+
# a `binding` can also specify a `condition`, which is a logical expression that
|
1125
|
+
# allows access to a resource only if the expression evaluates to `true`. A
|
1126
|
+
# condition can add constraints based on attributes of the request, the resource,
|
1127
|
+
# or both. To learn which resources support conditions in their IAM policies,
|
1128
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
1129
|
+
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
1130
|
+
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
1131
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
1132
|
+
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
1133
|
+
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
1134
|
+
# title": "expirable access", "description": "Does not grant access after Sep
|
1135
|
+
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
1136
|
+
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
1137
|
+
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
1138
|
+
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
1139
|
+
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
1140
|
+
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
1141
|
+
# description: Does not grant access after Sep 2020 expression: request.time <
|
1142
|
+
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
1143
|
+
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
1144
|
+
# google.com/iam/docs/).
|
1145
|
+
# Corresponds to the JSON property `policy`
|
1146
|
+
# @return [Google::Apis::NotebooksV1::Policy]
|
1147
|
+
attr_accessor :policy
|
1148
|
+
|
1149
|
+
def initialize(**args)
|
1150
|
+
update!(**args)
|
1151
|
+
end
|
1152
|
+
|
1153
|
+
# Update properties of this object
|
1154
|
+
def update!(**args)
|
1155
|
+
@policy = args[:policy] if args.key?(:policy)
|
1156
|
+
end
|
1157
|
+
end
|
1158
|
+
|
1159
|
+
# Request for setting instance accelerator.
|
1160
|
+
class SetInstanceAcceleratorRequest
|
1161
|
+
include Google::Apis::Core::Hashable
|
1162
|
+
|
1163
|
+
# Required. Count of cores of this accelerator. Note that not all combinations
|
1164
|
+
# of `type` and `core_count` are valid. Check [GPUs on Compute Engine](https://
|
1165
|
+
# cloud.google.com/compute/docs/gpus/#gpus-list) to find a valid combination.
|
1166
|
+
# TPUs are not supported.
|
1167
|
+
# Corresponds to the JSON property `coreCount`
|
1168
|
+
# @return [Fixnum]
|
1169
|
+
attr_accessor :core_count
|
1170
|
+
|
1171
|
+
# Required. Type of this accelerator.
|
1172
|
+
# Corresponds to the JSON property `type`
|
1173
|
+
# @return [String]
|
1174
|
+
attr_accessor :type
|
1175
|
+
|
1176
|
+
def initialize(**args)
|
1177
|
+
update!(**args)
|
1178
|
+
end
|
1179
|
+
|
1180
|
+
# Update properties of this object
|
1181
|
+
def update!(**args)
|
1182
|
+
@core_count = args[:core_count] if args.key?(:core_count)
|
1183
|
+
@type = args[:type] if args.key?(:type)
|
1184
|
+
end
|
1185
|
+
end
|
1186
|
+
|
1187
|
+
# Request for setting instance labels.
|
1188
|
+
class SetInstanceLabelsRequest
|
1189
|
+
include Google::Apis::Core::Hashable
|
1190
|
+
|
1191
|
+
# Labels to apply to this instance. These can be later modified by the setLabels
|
1192
|
+
# method
|
1193
|
+
# Corresponds to the JSON property `labels`
|
1194
|
+
# @return [Hash<String,String>]
|
1195
|
+
attr_accessor :labels
|
1196
|
+
|
1197
|
+
def initialize(**args)
|
1198
|
+
update!(**args)
|
1199
|
+
end
|
1200
|
+
|
1201
|
+
# Update properties of this object
|
1202
|
+
def update!(**args)
|
1203
|
+
@labels = args[:labels] if args.key?(:labels)
|
1204
|
+
end
|
1205
|
+
end
|
1206
|
+
|
1207
|
+
# Request for setting instance machine type.
|
1208
|
+
class SetInstanceMachineTypeRequest
|
1209
|
+
include Google::Apis::Core::Hashable
|
1210
|
+
|
1211
|
+
# Required. The [Compute Engine machine type](https://cloud.google.com/compute/
|
1212
|
+
# docs/machine-types).
|
1213
|
+
# Corresponds to the JSON property `machineType`
|
1214
|
+
# @return [String]
|
1215
|
+
attr_accessor :machine_type
|
1216
|
+
|
1217
|
+
def initialize(**args)
|
1218
|
+
update!(**args)
|
1219
|
+
end
|
1220
|
+
|
1221
|
+
# Update properties of this object
|
1222
|
+
def update!(**args)
|
1223
|
+
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
1224
|
+
end
|
1225
|
+
end
|
1226
|
+
|
1227
|
+
# Request for starting a notebook instance
|
1228
|
+
class StartInstanceRequest
|
1229
|
+
include Google::Apis::Core::Hashable
|
1230
|
+
|
1231
|
+
def initialize(**args)
|
1232
|
+
update!(**args)
|
1233
|
+
end
|
1234
|
+
|
1235
|
+
# Update properties of this object
|
1236
|
+
def update!(**args)
|
1237
|
+
end
|
1238
|
+
end
|
1239
|
+
|
1240
|
+
# The `Status` type defines a logical error model that is suitable for different
|
1241
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
1242
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
1243
|
+
# data: error code, error message, and error details. You can find out more
|
1244
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
1245
|
+
# //cloud.google.com/apis/design/errors).
|
1246
|
+
class Status
|
1247
|
+
include Google::Apis::Core::Hashable
|
1248
|
+
|
1249
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
1250
|
+
# Corresponds to the JSON property `code`
|
1251
|
+
# @return [Fixnum]
|
1252
|
+
attr_accessor :code
|
1253
|
+
|
1254
|
+
# A list of messages that carry the error details. There is a common set of
|
1255
|
+
# message types for APIs to use.
|
1256
|
+
# Corresponds to the JSON property `details`
|
1257
|
+
# @return [Array<Hash<String,Object>>]
|
1258
|
+
attr_accessor :details
|
1259
|
+
|
1260
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
1261
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
1262
|
+
# field, or localized by the client.
|
1263
|
+
# Corresponds to the JSON property `message`
|
1264
|
+
# @return [String]
|
1265
|
+
attr_accessor :message
|
1266
|
+
|
1267
|
+
def initialize(**args)
|
1268
|
+
update!(**args)
|
1269
|
+
end
|
1270
|
+
|
1271
|
+
# Update properties of this object
|
1272
|
+
def update!(**args)
|
1273
|
+
@code = args[:code] if args.key?(:code)
|
1274
|
+
@details = args[:details] if args.key?(:details)
|
1275
|
+
@message = args[:message] if args.key?(:message)
|
1276
|
+
end
|
1277
|
+
end
|
1278
|
+
|
1279
|
+
# Request for stopping a notebook instance
|
1280
|
+
class StopInstanceRequest
|
1281
|
+
include Google::Apis::Core::Hashable
|
1282
|
+
|
1283
|
+
def initialize(**args)
|
1284
|
+
update!(**args)
|
1285
|
+
end
|
1286
|
+
|
1287
|
+
# Update properties of this object
|
1288
|
+
def update!(**args)
|
1289
|
+
end
|
1290
|
+
end
|
1291
|
+
|
1292
|
+
# Request message for `TestIamPermissions` method.
|
1293
|
+
class TestIamPermissionsRequest
|
1294
|
+
include Google::Apis::Core::Hashable
|
1295
|
+
|
1296
|
+
# The set of permissions to check for the `resource`. Permissions with wildcards
|
1297
|
+
# (such as '*' or 'storage.*') are not allowed. For more information see [IAM
|
1298
|
+
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
1299
|
+
# Corresponds to the JSON property `permissions`
|
1300
|
+
# @return [Array<String>]
|
1301
|
+
attr_accessor :permissions
|
1302
|
+
|
1303
|
+
def initialize(**args)
|
1304
|
+
update!(**args)
|
1305
|
+
end
|
1306
|
+
|
1307
|
+
# Update properties of this object
|
1308
|
+
def update!(**args)
|
1309
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
1310
|
+
end
|
1311
|
+
end
|
1312
|
+
|
1313
|
+
# Response message for `TestIamPermissions` method.
|
1314
|
+
class TestIamPermissionsResponse
|
1315
|
+
include Google::Apis::Core::Hashable
|
1316
|
+
|
1317
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
|
1318
|
+
# Corresponds to the JSON property `permissions`
|
1319
|
+
# @return [Array<String>]
|
1320
|
+
attr_accessor :permissions
|
1321
|
+
|
1322
|
+
def initialize(**args)
|
1323
|
+
update!(**args)
|
1324
|
+
end
|
1325
|
+
|
1326
|
+
# Update properties of this object
|
1327
|
+
def update!(**args)
|
1328
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
1329
|
+
end
|
1330
|
+
end
|
1331
|
+
|
1332
|
+
# Request for created scheduled notebooks
|
1333
|
+
class TriggerScheduleRequest
|
1334
|
+
include Google::Apis::Core::Hashable
|
1335
|
+
|
1336
|
+
def initialize(**args)
|
1337
|
+
update!(**args)
|
1338
|
+
end
|
1339
|
+
|
1340
|
+
# Update properties of this object
|
1341
|
+
def update!(**args)
|
1342
|
+
end
|
1343
|
+
end
|
1344
|
+
|
1345
|
+
#
|
1346
|
+
class UpgradeHistoryEntry
|
1347
|
+
include Google::Apis::Core::Hashable
|
1348
|
+
|
1349
|
+
# The container image before this instance upgrade.
|
1350
|
+
# Corresponds to the JSON property `containerImage`
|
1351
|
+
# @return [String]
|
1352
|
+
attr_accessor :container_image
|
1353
|
+
|
1354
|
+
# The time that this instance upgrade history entry is created.
|
1355
|
+
# Corresponds to the JSON property `createTime`
|
1356
|
+
# @return [String]
|
1357
|
+
attr_accessor :create_time
|
1358
|
+
|
1359
|
+
# The framework of this notebook instance.
|
1360
|
+
# Corresponds to the JSON property `framework`
|
1361
|
+
# @return [String]
|
1362
|
+
attr_accessor :framework
|
1363
|
+
|
1364
|
+
# The snapshot of the boot disk of this notebook instance before upgrade.
|
1365
|
+
# Corresponds to the JSON property `snapshot`
|
1366
|
+
# @return [String]
|
1367
|
+
attr_accessor :snapshot
|
1368
|
+
|
1369
|
+
# The state of this instance upgrade history entry.
|
1370
|
+
# Corresponds to the JSON property `state`
|
1371
|
+
# @return [String]
|
1372
|
+
attr_accessor :state
|
1373
|
+
|
1374
|
+
# The version of the notebook instance before this upgrade.
|
1375
|
+
# Corresponds to the JSON property `version`
|
1376
|
+
# @return [String]
|
1377
|
+
attr_accessor :version
|
1378
|
+
|
1379
|
+
# The VM image before this instance upgrade.
|
1380
|
+
# Corresponds to the JSON property `vmImage`
|
1381
|
+
# @return [String]
|
1382
|
+
attr_accessor :vm_image
|
1383
|
+
|
1384
|
+
def initialize(**args)
|
1385
|
+
update!(**args)
|
1386
|
+
end
|
1387
|
+
|
1388
|
+
# Update properties of this object
|
1389
|
+
def update!(**args)
|
1390
|
+
@container_image = args[:container_image] if args.key?(:container_image)
|
1391
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1392
|
+
@framework = args[:framework] if args.key?(:framework)
|
1393
|
+
@snapshot = args[:snapshot] if args.key?(:snapshot)
|
1394
|
+
@state = args[:state] if args.key?(:state)
|
1395
|
+
@version = args[:version] if args.key?(:version)
|
1396
|
+
@vm_image = args[:vm_image] if args.key?(:vm_image)
|
1397
|
+
end
|
1398
|
+
end
|
1399
|
+
|
1400
|
+
# Request for upgrading a notebook instance from within the VM
|
1401
|
+
class UpgradeInstanceInternalRequest
|
1402
|
+
include Google::Apis::Core::Hashable
|
1403
|
+
|
1404
|
+
# Required. The VM hardware token for authenticating the VM. https://cloud.
|
1405
|
+
# google.com/compute/docs/instances/verifying-instance-identity
|
1406
|
+
# Corresponds to the JSON property `vmId`
|
1407
|
+
# @return [String]
|
1408
|
+
attr_accessor :vm_id
|
1409
|
+
|
1410
|
+
def initialize(**args)
|
1411
|
+
update!(**args)
|
1412
|
+
end
|
1413
|
+
|
1414
|
+
# Update properties of this object
|
1415
|
+
def update!(**args)
|
1416
|
+
@vm_id = args[:vm_id] if args.key?(:vm_id)
|
1417
|
+
end
|
1418
|
+
end
|
1419
|
+
|
1420
|
+
# Request for upgrading a notebook instance
|
1421
|
+
class UpgradeInstanceRequest
|
1422
|
+
include Google::Apis::Core::Hashable
|
1423
|
+
|
1424
|
+
def initialize(**args)
|
1425
|
+
update!(**args)
|
1426
|
+
end
|
1427
|
+
|
1428
|
+
# Update properties of this object
|
1429
|
+
def update!(**args)
|
1430
|
+
end
|
1431
|
+
end
|
1432
|
+
|
1433
|
+
# Definition of a custom Compute Engine virtual machine image for starting a
|
1434
|
+
# notebook instance with the environment installed directly on the VM.
|
1435
|
+
class VmImage
|
1436
|
+
include Google::Apis::Core::Hashable
|
1437
|
+
|
1438
|
+
# Use this VM image family to find the image; the newest image in this family
|
1439
|
+
# will be used.
|
1440
|
+
# Corresponds to the JSON property `imageFamily`
|
1441
|
+
# @return [String]
|
1442
|
+
attr_accessor :image_family
|
1443
|
+
|
1444
|
+
# Use VM image name to find the image.
|
1445
|
+
# Corresponds to the JSON property `imageName`
|
1446
|
+
# @return [String]
|
1447
|
+
attr_accessor :image_name
|
1448
|
+
|
1449
|
+
# Required. The name of the Google Cloud project that this VM image belongs to.
|
1450
|
+
# Format: `projects/`project_id``
|
1451
|
+
# Corresponds to the JSON property `project`
|
1452
|
+
# @return [String]
|
1453
|
+
attr_accessor :project
|
1454
|
+
|
1455
|
+
def initialize(**args)
|
1456
|
+
update!(**args)
|
1457
|
+
end
|
1458
|
+
|
1459
|
+
# Update properties of this object
|
1460
|
+
def update!(**args)
|
1461
|
+
@image_family = args[:image_family] if args.key?(:image_family)
|
1462
|
+
@image_name = args[:image_name] if args.key?(:image_name)
|
1463
|
+
@project = args[:project] if args.key?(:project)
|
1464
|
+
end
|
1465
|
+
end
|
1466
|
+
end
|
1467
|
+
end
|
1468
|
+
end
|