google-apis-notebooks_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
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
+ module Google
16
+ module Apis
17
+ module NotebooksV1
18
+ # Version of the google-apis-notebooks_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20201211"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,592 @@
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
+ class AcceleratorConfig
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Binding
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class CancelOperationRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ContainerImage
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Disk
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Empty
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Environment
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Expr
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GuestOsFeature
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Instance
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class IsInstanceUpgradeableResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListEnvironmentsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListInstancesResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ListLocationsResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListOperationsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Location
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class Operation
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class OperationMetadata
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class Policy
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class RegisterInstanceRequest
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class ReportInstanceInfoRequest
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class ResetInstanceRequest
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class SetIamPolicyRequest
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class SetInstanceAcceleratorRequest
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class SetInstanceLabelsRequest
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class SetInstanceMachineTypeRequest
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class StartInstanceRequest
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class Status
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class StopInstanceRequest
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class TestIamPermissionsRequest
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class TestIamPermissionsResponse
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class TriggerScheduleRequest
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class UpgradeHistoryEntry
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class UpgradeInstanceInternalRequest
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class UpgradeInstanceRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class VmImage
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class AcceleratorConfig
242
+ # @private
243
+ class Representation < Google::Apis::Core::JsonRepresentation
244
+ property :core_count, :numeric_string => true, as: 'coreCount'
245
+ property :type, as: 'type'
246
+ end
247
+ end
248
+
249
+ class Binding
250
+ # @private
251
+ class Representation < Google::Apis::Core::JsonRepresentation
252
+ property :condition, as: 'condition', class: Google::Apis::NotebooksV1::Expr, decorator: Google::Apis::NotebooksV1::Expr::Representation
253
+
254
+ collection :members, as: 'members'
255
+ property :role, as: 'role'
256
+ end
257
+ end
258
+
259
+ class CancelOperationRequest
260
+ # @private
261
+ class Representation < Google::Apis::Core::JsonRepresentation
262
+ end
263
+ end
264
+
265
+ class ContainerImage
266
+ # @private
267
+ class Representation < Google::Apis::Core::JsonRepresentation
268
+ property :repository, as: 'repository'
269
+ property :tag, as: 'tag'
270
+ end
271
+ end
272
+
273
+ class Disk
274
+ # @private
275
+ class Representation < Google::Apis::Core::JsonRepresentation
276
+ property :auto_delete, as: 'autoDelete'
277
+ property :boot, as: 'boot'
278
+ property :device_name, as: 'deviceName'
279
+ property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
280
+ collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::NotebooksV1::GuestOsFeature, decorator: Google::Apis::NotebooksV1::GuestOsFeature::Representation
281
+
282
+ property :index, :numeric_string => true, as: 'index'
283
+ property :interface, as: 'interface'
284
+ property :kind, as: 'kind'
285
+ collection :licenses, as: 'licenses'
286
+ property :mode, as: 'mode'
287
+ property :source, as: 'source'
288
+ property :type, as: 'type'
289
+ end
290
+ end
291
+
292
+ class Empty
293
+ # @private
294
+ class Representation < Google::Apis::Core::JsonRepresentation
295
+ end
296
+ end
297
+
298
+ class Environment
299
+ # @private
300
+ class Representation < Google::Apis::Core::JsonRepresentation
301
+ property :container_image, as: 'containerImage', class: Google::Apis::NotebooksV1::ContainerImage, decorator: Google::Apis::NotebooksV1::ContainerImage::Representation
302
+
303
+ property :create_time, as: 'createTime'
304
+ property :description, as: 'description'
305
+ property :display_name, as: 'displayName'
306
+ property :name, as: 'name'
307
+ property :post_startup_script, as: 'postStartupScript'
308
+ property :vm_image, as: 'vmImage', class: Google::Apis::NotebooksV1::VmImage, decorator: Google::Apis::NotebooksV1::VmImage::Representation
309
+
310
+ end
311
+ end
312
+
313
+ class Expr
314
+ # @private
315
+ class Representation < Google::Apis::Core::JsonRepresentation
316
+ property :description, as: 'description'
317
+ property :expression, as: 'expression'
318
+ property :location, as: 'location'
319
+ property :title, as: 'title'
320
+ end
321
+ end
322
+
323
+ class GuestOsFeature
324
+ # @private
325
+ class Representation < Google::Apis::Core::JsonRepresentation
326
+ property :type, as: 'type'
327
+ end
328
+ end
329
+
330
+ class Instance
331
+ # @private
332
+ class Representation < Google::Apis::Core::JsonRepresentation
333
+ property :accelerator_config, as: 'acceleratorConfig', class: Google::Apis::NotebooksV1::AcceleratorConfig, decorator: Google::Apis::NotebooksV1::AcceleratorConfig::Representation
334
+
335
+ property :boot_disk_size_gb, :numeric_string => true, as: 'bootDiskSizeGb'
336
+ property :boot_disk_type, as: 'bootDiskType'
337
+ property :container_image, as: 'containerImage', class: Google::Apis::NotebooksV1::ContainerImage, decorator: Google::Apis::NotebooksV1::ContainerImage::Representation
338
+
339
+ property :create_time, as: 'createTime'
340
+ property :custom_gpu_driver_path, as: 'customGpuDriverPath'
341
+ property :data_disk_size_gb, :numeric_string => true, as: 'dataDiskSizeGb'
342
+ property :data_disk_type, as: 'dataDiskType'
343
+ property :disk_encryption, as: 'diskEncryption'
344
+ collection :disks, as: 'disks', class: Google::Apis::NotebooksV1::Disk, decorator: Google::Apis::NotebooksV1::Disk::Representation
345
+
346
+ property :install_gpu_driver, as: 'installGpuDriver'
347
+ collection :instance_owners, as: 'instanceOwners'
348
+ property :kms_key, as: 'kmsKey'
349
+ hash :labels, as: 'labels'
350
+ property :machine_type, as: 'machineType'
351
+ hash :metadata, as: 'metadata'
352
+ property :name, as: 'name'
353
+ property :network, as: 'network'
354
+ property :no_proxy_access, as: 'noProxyAccess'
355
+ property :no_public_ip, as: 'noPublicIp'
356
+ property :no_remove_data_disk, as: 'noRemoveDataDisk'
357
+ property :post_startup_script, as: 'postStartupScript'
358
+ property :proxy_uri, as: 'proxyUri'
359
+ property :service_account, as: 'serviceAccount'
360
+ property :state, as: 'state'
361
+ property :subnet, as: 'subnet'
362
+ property :update_time, as: 'updateTime'
363
+ collection :upgrade_history, as: 'upgradeHistory', class: Google::Apis::NotebooksV1::UpgradeHistoryEntry, decorator: Google::Apis::NotebooksV1::UpgradeHistoryEntry::Representation
364
+
365
+ property :vm_image, as: 'vmImage', class: Google::Apis::NotebooksV1::VmImage, decorator: Google::Apis::NotebooksV1::VmImage::Representation
366
+
367
+ end
368
+ end
369
+
370
+ class IsInstanceUpgradeableResponse
371
+ # @private
372
+ class Representation < Google::Apis::Core::JsonRepresentation
373
+ property :upgrade_info, as: 'upgradeInfo'
374
+ property :upgrade_version, as: 'upgradeVersion'
375
+ property :upgradeable, as: 'upgradeable'
376
+ end
377
+ end
378
+
379
+ class ListEnvironmentsResponse
380
+ # @private
381
+ class Representation < Google::Apis::Core::JsonRepresentation
382
+ collection :environments, as: 'environments', class: Google::Apis::NotebooksV1::Environment, decorator: Google::Apis::NotebooksV1::Environment::Representation
383
+
384
+ property :next_page_token, as: 'nextPageToken'
385
+ collection :unreachable, as: 'unreachable'
386
+ end
387
+ end
388
+
389
+ class ListInstancesResponse
390
+ # @private
391
+ class Representation < Google::Apis::Core::JsonRepresentation
392
+ collection :instances, as: 'instances', class: Google::Apis::NotebooksV1::Instance, decorator: Google::Apis::NotebooksV1::Instance::Representation
393
+
394
+ property :next_page_token, as: 'nextPageToken'
395
+ collection :unreachable, as: 'unreachable'
396
+ end
397
+ end
398
+
399
+ class ListLocationsResponse
400
+ # @private
401
+ class Representation < Google::Apis::Core::JsonRepresentation
402
+ collection :locations, as: 'locations', class: Google::Apis::NotebooksV1::Location, decorator: Google::Apis::NotebooksV1::Location::Representation
403
+
404
+ property :next_page_token, as: 'nextPageToken'
405
+ end
406
+ end
407
+
408
+ class ListOperationsResponse
409
+ # @private
410
+ class Representation < Google::Apis::Core::JsonRepresentation
411
+ property :next_page_token, as: 'nextPageToken'
412
+ collection :operations, as: 'operations', class: Google::Apis::NotebooksV1::Operation, decorator: Google::Apis::NotebooksV1::Operation::Representation
413
+
414
+ end
415
+ end
416
+
417
+ class Location
418
+ # @private
419
+ class Representation < Google::Apis::Core::JsonRepresentation
420
+ property :display_name, as: 'displayName'
421
+ hash :labels, as: 'labels'
422
+ property :location_id, as: 'locationId'
423
+ hash :metadata, as: 'metadata'
424
+ property :name, as: 'name'
425
+ end
426
+ end
427
+
428
+ class Operation
429
+ # @private
430
+ class Representation < Google::Apis::Core::JsonRepresentation
431
+ property :done, as: 'done'
432
+ property :error, as: 'error', class: Google::Apis::NotebooksV1::Status, decorator: Google::Apis::NotebooksV1::Status::Representation
433
+
434
+ hash :metadata, as: 'metadata'
435
+ property :name, as: 'name'
436
+ hash :response, as: 'response'
437
+ end
438
+ end
439
+
440
+ class OperationMetadata
441
+ # @private
442
+ class Representation < Google::Apis::Core::JsonRepresentation
443
+ property :api_version, as: 'apiVersion'
444
+ property :create_time, as: 'createTime'
445
+ property :end_time, as: 'endTime'
446
+ property :endpoint, as: 'endpoint'
447
+ property :requested_cancellation, as: 'requestedCancellation'
448
+ property :status_message, as: 'statusMessage'
449
+ property :target, as: 'target'
450
+ property :verb, as: 'verb'
451
+ end
452
+ end
453
+
454
+ class Policy
455
+ # @private
456
+ class Representation < Google::Apis::Core::JsonRepresentation
457
+ collection :bindings, as: 'bindings', class: Google::Apis::NotebooksV1::Binding, decorator: Google::Apis::NotebooksV1::Binding::Representation
458
+
459
+ property :etag, :base64 => true, as: 'etag'
460
+ property :version, as: 'version'
461
+ end
462
+ end
463
+
464
+ class RegisterInstanceRequest
465
+ # @private
466
+ class Representation < Google::Apis::Core::JsonRepresentation
467
+ property :instance_id, as: 'instanceId'
468
+ end
469
+ end
470
+
471
+ class ReportInstanceInfoRequest
472
+ # @private
473
+ class Representation < Google::Apis::Core::JsonRepresentation
474
+ hash :metadata, as: 'metadata'
475
+ property :vm_id, as: 'vmId'
476
+ end
477
+ end
478
+
479
+ class ResetInstanceRequest
480
+ # @private
481
+ class Representation < Google::Apis::Core::JsonRepresentation
482
+ end
483
+ end
484
+
485
+ class SetIamPolicyRequest
486
+ # @private
487
+ class Representation < Google::Apis::Core::JsonRepresentation
488
+ property :policy, as: 'policy', class: Google::Apis::NotebooksV1::Policy, decorator: Google::Apis::NotebooksV1::Policy::Representation
489
+
490
+ end
491
+ end
492
+
493
+ class SetInstanceAcceleratorRequest
494
+ # @private
495
+ class Representation < Google::Apis::Core::JsonRepresentation
496
+ property :core_count, :numeric_string => true, as: 'coreCount'
497
+ property :type, as: 'type'
498
+ end
499
+ end
500
+
501
+ class SetInstanceLabelsRequest
502
+ # @private
503
+ class Representation < Google::Apis::Core::JsonRepresentation
504
+ hash :labels, as: 'labels'
505
+ end
506
+ end
507
+
508
+ class SetInstanceMachineTypeRequest
509
+ # @private
510
+ class Representation < Google::Apis::Core::JsonRepresentation
511
+ property :machine_type, as: 'machineType'
512
+ end
513
+ end
514
+
515
+ class StartInstanceRequest
516
+ # @private
517
+ class Representation < Google::Apis::Core::JsonRepresentation
518
+ end
519
+ end
520
+
521
+ class Status
522
+ # @private
523
+ class Representation < Google::Apis::Core::JsonRepresentation
524
+ property :code, as: 'code'
525
+ collection :details, as: 'details'
526
+ property :message, as: 'message'
527
+ end
528
+ end
529
+
530
+ class StopInstanceRequest
531
+ # @private
532
+ class Representation < Google::Apis::Core::JsonRepresentation
533
+ end
534
+ end
535
+
536
+ class TestIamPermissionsRequest
537
+ # @private
538
+ class Representation < Google::Apis::Core::JsonRepresentation
539
+ collection :permissions, as: 'permissions'
540
+ end
541
+ end
542
+
543
+ class TestIamPermissionsResponse
544
+ # @private
545
+ class Representation < Google::Apis::Core::JsonRepresentation
546
+ collection :permissions, as: 'permissions'
547
+ end
548
+ end
549
+
550
+ class TriggerScheduleRequest
551
+ # @private
552
+ class Representation < Google::Apis::Core::JsonRepresentation
553
+ end
554
+ end
555
+
556
+ class UpgradeHistoryEntry
557
+ # @private
558
+ class Representation < Google::Apis::Core::JsonRepresentation
559
+ property :container_image, as: 'containerImage'
560
+ property :create_time, as: 'createTime'
561
+ property :framework, as: 'framework'
562
+ property :snapshot, as: 'snapshot'
563
+ property :state, as: 'state'
564
+ property :version, as: 'version'
565
+ property :vm_image, as: 'vmImage'
566
+ end
567
+ end
568
+
569
+ class UpgradeInstanceInternalRequest
570
+ # @private
571
+ class Representation < Google::Apis::Core::JsonRepresentation
572
+ property :vm_id, as: 'vmId'
573
+ end
574
+ end
575
+
576
+ class UpgradeInstanceRequest
577
+ # @private
578
+ class Representation < Google::Apis::Core::JsonRepresentation
579
+ end
580
+ end
581
+
582
+ class VmImage
583
+ # @private
584
+ class Representation < Google::Apis::Core::JsonRepresentation
585
+ property :image_family, as: 'imageFamily'
586
+ property :image_name, as: 'imageName'
587
+ property :project, as: 'project'
588
+ end
589
+ end
590
+ end
591
+ end
592
+ end