google-apis-notebooks_v1 0.4.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/google/apis/notebooks_v1.rb +1 -1
- data/lib/google/apis/notebooks_v1/classes.rb +879 -71
- data/lib/google/apis/notebooks_v1/gem_version.rb +3 -3
- data/lib/google/apis/notebooks_v1/representations.rb +315 -0
- data/lib/google/apis/notebooks_v1/service.rb +355 -4
- metadata +4 -4
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module NotebooksV1
|
18
18
|
# Version of the google-apis-notebooks_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.9.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210603"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -58,6 +58,12 @@ module Google
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
+
class EncryptionConfig
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
61
67
|
class Environment
|
62
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
69
|
|
@@ -136,12 +142,30 @@ module Google
|
|
136
142
|
include Google::Apis::Core::JsonObjectSupport
|
137
143
|
end
|
138
144
|
|
145
|
+
class ListRuntimesResponse
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
139
151
|
class ListSchedulesResponse
|
140
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
153
|
|
142
154
|
include Google::Apis::Core::JsonObjectSupport
|
143
155
|
end
|
144
156
|
|
157
|
+
class LocalDisk
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
163
|
+
class LocalDiskInitializeParams
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
145
169
|
class Location
|
146
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
171
|
|
@@ -184,6 +208,60 @@ module Google
|
|
184
208
|
include Google::Apis::Core::JsonObjectSupport
|
185
209
|
end
|
186
210
|
|
211
|
+
class ResetRuntimeRequest
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
217
|
+
class RollbackInstanceRequest
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
223
|
+
class Runtime
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
229
|
+
class RuntimeAcceleratorConfig
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
235
|
+
class RuntimeAccessConfig
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
241
|
+
class RuntimeGuestOsFeature
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
|
+
|
244
|
+
include Google::Apis::Core::JsonObjectSupport
|
245
|
+
end
|
246
|
+
|
247
|
+
class RuntimeMetrics
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
+
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
251
|
+
end
|
252
|
+
|
253
|
+
class RuntimeShieldedInstanceConfig
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
259
|
+
class RuntimeSoftwareConfig
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
|
+
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
263
|
+
end
|
264
|
+
|
187
265
|
class Schedule
|
188
266
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
267
|
|
@@ -232,6 +310,12 @@ module Google
|
|
232
310
|
include Google::Apis::Core::JsonObjectSupport
|
233
311
|
end
|
234
312
|
|
313
|
+
class StartRuntimeRequest
|
314
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
|
+
|
316
|
+
include Google::Apis::Core::JsonObjectSupport
|
317
|
+
end
|
318
|
+
|
235
319
|
class Status
|
236
320
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
321
|
|
@@ -244,6 +328,18 @@ module Google
|
|
244
328
|
include Google::Apis::Core::JsonObjectSupport
|
245
329
|
end
|
246
330
|
|
331
|
+
class StopRuntimeRequest
|
332
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
333
|
+
|
334
|
+
include Google::Apis::Core::JsonObjectSupport
|
335
|
+
end
|
336
|
+
|
337
|
+
class SwitchRuntimeRequest
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
|
+
|
340
|
+
include Google::Apis::Core::JsonObjectSupport
|
341
|
+
end
|
342
|
+
|
247
343
|
class TestIamPermissionsRequest
|
248
344
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
345
|
|
@@ -262,6 +358,12 @@ module Google
|
|
262
358
|
include Google::Apis::Core::JsonObjectSupport
|
263
359
|
end
|
264
360
|
|
361
|
+
class UpdateShieldedInstanceConfigRequest
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
|
+
|
364
|
+
include Google::Apis::Core::JsonObjectSupport
|
365
|
+
end
|
366
|
+
|
265
367
|
class UpgradeHistoryEntry
|
266
368
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
369
|
|
@@ -280,6 +382,18 @@ module Google
|
|
280
382
|
include Google::Apis::Core::JsonObjectSupport
|
281
383
|
end
|
282
384
|
|
385
|
+
class VirtualMachine
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
|
+
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
389
|
+
end
|
390
|
+
|
391
|
+
class VirtualMachineConfig
|
392
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
|
+
|
394
|
+
include Google::Apis::Core::JsonObjectSupport
|
395
|
+
end
|
396
|
+
|
283
397
|
class VmImage
|
284
398
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
399
|
|
@@ -343,6 +457,13 @@ module Google
|
|
343
457
|
end
|
344
458
|
end
|
345
459
|
|
460
|
+
class EncryptionConfig
|
461
|
+
# @private
|
462
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
463
|
+
property :kms_key, as: 'kmsKey'
|
464
|
+
end
|
465
|
+
end
|
466
|
+
|
346
467
|
class Environment
|
347
468
|
# @private
|
348
469
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -386,6 +507,7 @@ module Google
|
|
386
507
|
property :parameters, as: 'parameters'
|
387
508
|
property :params_yaml_file, as: 'paramsYamlFile'
|
388
509
|
property :scale_tier, as: 'scaleTier'
|
510
|
+
property :service_account, as: 'serviceAccount'
|
389
511
|
end
|
390
512
|
end
|
391
513
|
|
@@ -438,6 +560,7 @@ module Google
|
|
438
560
|
hash :metadata, as: 'metadata'
|
439
561
|
property :name, as: 'name'
|
440
562
|
property :network, as: 'network'
|
563
|
+
property :nic_type, as: 'nicType'
|
441
564
|
property :no_proxy_access, as: 'noProxyAccess'
|
442
565
|
property :no_public_ip, as: 'noPublicIp'
|
443
566
|
property :no_remove_data_disk, as: 'noRemoveDataDisk'
|
@@ -461,6 +584,7 @@ module Google
|
|
461
584
|
class IsInstanceUpgradeableResponse
|
462
585
|
# @private
|
463
586
|
class Representation < Google::Apis::Core::JsonRepresentation
|
587
|
+
property :upgrade_image, as: 'upgradeImage'
|
464
588
|
property :upgrade_info, as: 'upgradeInfo'
|
465
589
|
property :upgrade_version, as: 'upgradeVersion'
|
466
590
|
property :upgradeable, as: 'upgradeable'
|
@@ -515,6 +639,16 @@ module Google
|
|
515
639
|
end
|
516
640
|
end
|
517
641
|
|
642
|
+
class ListRuntimesResponse
|
643
|
+
# @private
|
644
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
645
|
+
property :next_page_token, as: 'nextPageToken'
|
646
|
+
collection :runtimes, as: 'runtimes', class: Google::Apis::NotebooksV1::Runtime, decorator: Google::Apis::NotebooksV1::Runtime::Representation
|
647
|
+
|
648
|
+
collection :unreachable, as: 'unreachable'
|
649
|
+
end
|
650
|
+
end
|
651
|
+
|
518
652
|
class ListSchedulesResponse
|
519
653
|
# @private
|
520
654
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -525,6 +659,37 @@ module Google
|
|
525
659
|
end
|
526
660
|
end
|
527
661
|
|
662
|
+
class LocalDisk
|
663
|
+
# @private
|
664
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
665
|
+
property :auto_delete, as: 'autoDelete'
|
666
|
+
property :boot, as: 'boot'
|
667
|
+
property :device_name, as: 'deviceName'
|
668
|
+
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::NotebooksV1::RuntimeGuestOsFeature, decorator: Google::Apis::NotebooksV1::RuntimeGuestOsFeature::Representation
|
669
|
+
|
670
|
+
property :index, as: 'index'
|
671
|
+
property :initialize_params, as: 'initializeParams', class: Google::Apis::NotebooksV1::LocalDiskInitializeParams, decorator: Google::Apis::NotebooksV1::LocalDiskInitializeParams::Representation
|
672
|
+
|
673
|
+
property :interface, as: 'interface'
|
674
|
+
property :kind, as: 'kind'
|
675
|
+
collection :licenses, as: 'licenses'
|
676
|
+
property :mode, as: 'mode'
|
677
|
+
property :source, as: 'source'
|
678
|
+
property :type, as: 'type'
|
679
|
+
end
|
680
|
+
end
|
681
|
+
|
682
|
+
class LocalDiskInitializeParams
|
683
|
+
# @private
|
684
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
685
|
+
property :description, as: 'description'
|
686
|
+
property :disk_name, as: 'diskName'
|
687
|
+
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
|
688
|
+
property :disk_type, as: 'diskType'
|
689
|
+
hash :labels, as: 'labels'
|
690
|
+
end
|
691
|
+
end
|
692
|
+
|
528
693
|
class Location
|
529
694
|
# @private
|
530
695
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -593,6 +758,91 @@ module Google
|
|
593
758
|
end
|
594
759
|
end
|
595
760
|
|
761
|
+
class ResetRuntimeRequest
|
762
|
+
# @private
|
763
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
764
|
+
end
|
765
|
+
end
|
766
|
+
|
767
|
+
class RollbackInstanceRequest
|
768
|
+
# @private
|
769
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
770
|
+
property :target_snapshot, as: 'targetSnapshot'
|
771
|
+
end
|
772
|
+
end
|
773
|
+
|
774
|
+
class Runtime
|
775
|
+
# @private
|
776
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
777
|
+
property :access_config, as: 'accessConfig', class: Google::Apis::NotebooksV1::RuntimeAccessConfig, decorator: Google::Apis::NotebooksV1::RuntimeAccessConfig::Representation
|
778
|
+
|
779
|
+
property :create_time, as: 'createTime'
|
780
|
+
property :health_state, as: 'healthState'
|
781
|
+
property :metrics, as: 'metrics', class: Google::Apis::NotebooksV1::RuntimeMetrics, decorator: Google::Apis::NotebooksV1::RuntimeMetrics::Representation
|
782
|
+
|
783
|
+
property :name, as: 'name'
|
784
|
+
property :software_config, as: 'softwareConfig', class: Google::Apis::NotebooksV1::RuntimeSoftwareConfig, decorator: Google::Apis::NotebooksV1::RuntimeSoftwareConfig::Representation
|
785
|
+
|
786
|
+
property :state, as: 'state'
|
787
|
+
property :update_time, as: 'updateTime'
|
788
|
+
property :virtual_machine, as: 'virtualMachine', class: Google::Apis::NotebooksV1::VirtualMachine, decorator: Google::Apis::NotebooksV1::VirtualMachine::Representation
|
789
|
+
|
790
|
+
end
|
791
|
+
end
|
792
|
+
|
793
|
+
class RuntimeAcceleratorConfig
|
794
|
+
# @private
|
795
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
796
|
+
property :core_count, :numeric_string => true, as: 'coreCount'
|
797
|
+
property :type, as: 'type'
|
798
|
+
end
|
799
|
+
end
|
800
|
+
|
801
|
+
class RuntimeAccessConfig
|
802
|
+
# @private
|
803
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
804
|
+
property :access_type, as: 'accessType'
|
805
|
+
property :proxy_uri, as: 'proxyUri'
|
806
|
+
property :runtime_owner, as: 'runtimeOwner'
|
807
|
+
end
|
808
|
+
end
|
809
|
+
|
810
|
+
class RuntimeGuestOsFeature
|
811
|
+
# @private
|
812
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
813
|
+
property :type, as: 'type'
|
814
|
+
end
|
815
|
+
end
|
816
|
+
|
817
|
+
class RuntimeMetrics
|
818
|
+
# @private
|
819
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
820
|
+
hash :system_metrics, as: 'systemMetrics'
|
821
|
+
end
|
822
|
+
end
|
823
|
+
|
824
|
+
class RuntimeShieldedInstanceConfig
|
825
|
+
# @private
|
826
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
827
|
+
property :enable_integrity_monitoring, as: 'enableIntegrityMonitoring'
|
828
|
+
property :enable_secure_boot, as: 'enableSecureBoot'
|
829
|
+
property :enable_vtpm, as: 'enableVtpm'
|
830
|
+
end
|
831
|
+
end
|
832
|
+
|
833
|
+
class RuntimeSoftwareConfig
|
834
|
+
# @private
|
835
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
836
|
+
property :custom_gpu_driver_path, as: 'customGpuDriverPath'
|
837
|
+
property :enable_health_monitoring, as: 'enableHealthMonitoring'
|
838
|
+
property :idle_shutdown, as: 'idleShutdown'
|
839
|
+
property :idle_shutdown_timeout, as: 'idleShutdownTimeout'
|
840
|
+
property :install_gpu_driver, as: 'installGpuDriver'
|
841
|
+
property :notebook_upgrade_schedule, as: 'notebookUpgradeSchedule'
|
842
|
+
property :post_startup_script, as: 'postStartupScript'
|
843
|
+
end
|
844
|
+
end
|
845
|
+
|
596
846
|
class Schedule
|
597
847
|
# @private
|
598
848
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -664,6 +914,12 @@ module Google
|
|
664
914
|
end
|
665
915
|
end
|
666
916
|
|
917
|
+
class StartRuntimeRequest
|
918
|
+
# @private
|
919
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
920
|
+
end
|
921
|
+
end
|
922
|
+
|
667
923
|
class Status
|
668
924
|
# @private
|
669
925
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -679,6 +935,21 @@ module Google
|
|
679
935
|
end
|
680
936
|
end
|
681
937
|
|
938
|
+
class StopRuntimeRequest
|
939
|
+
# @private
|
940
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
941
|
+
end
|
942
|
+
end
|
943
|
+
|
944
|
+
class SwitchRuntimeRequest
|
945
|
+
# @private
|
946
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
947
|
+
property :accelerator_config, as: 'acceleratorConfig', class: Google::Apis::NotebooksV1::RuntimeAcceleratorConfig, decorator: Google::Apis::NotebooksV1::RuntimeAcceleratorConfig::Representation
|
948
|
+
|
949
|
+
property :machine_type, as: 'machineType'
|
950
|
+
end
|
951
|
+
end
|
952
|
+
|
682
953
|
class TestIamPermissionsRequest
|
683
954
|
# @private
|
684
955
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -699,6 +970,14 @@ module Google
|
|
699
970
|
end
|
700
971
|
end
|
701
972
|
|
973
|
+
class UpdateShieldedInstanceConfigRequest
|
974
|
+
# @private
|
975
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
976
|
+
property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::NotebooksV1::ShieldedInstanceConfig, decorator: Google::Apis::NotebooksV1::ShieldedInstanceConfig::Representation
|
977
|
+
|
978
|
+
end
|
979
|
+
end
|
980
|
+
|
702
981
|
class UpgradeHistoryEntry
|
703
982
|
# @private
|
704
983
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -728,6 +1007,42 @@ module Google
|
|
728
1007
|
end
|
729
1008
|
end
|
730
1009
|
|
1010
|
+
class VirtualMachine
|
1011
|
+
# @private
|
1012
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1013
|
+
property :instance_id, as: 'instanceId'
|
1014
|
+
property :instance_name, as: 'instanceName'
|
1015
|
+
property :virtual_machine_config, as: 'virtualMachineConfig', class: Google::Apis::NotebooksV1::VirtualMachineConfig, decorator: Google::Apis::NotebooksV1::VirtualMachineConfig::Representation
|
1016
|
+
|
1017
|
+
end
|
1018
|
+
end
|
1019
|
+
|
1020
|
+
class VirtualMachineConfig
|
1021
|
+
# @private
|
1022
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1023
|
+
property :accelerator_config, as: 'acceleratorConfig', class: Google::Apis::NotebooksV1::RuntimeAcceleratorConfig, decorator: Google::Apis::NotebooksV1::RuntimeAcceleratorConfig::Representation
|
1024
|
+
|
1025
|
+
collection :container_images, as: 'containerImages', class: Google::Apis::NotebooksV1::ContainerImage, decorator: Google::Apis::NotebooksV1::ContainerImage::Representation
|
1026
|
+
|
1027
|
+
property :data_disk, as: 'dataDisk', class: Google::Apis::NotebooksV1::LocalDisk, decorator: Google::Apis::NotebooksV1::LocalDisk::Representation
|
1028
|
+
|
1029
|
+
property :encryption_config, as: 'encryptionConfig', class: Google::Apis::NotebooksV1::EncryptionConfig, decorator: Google::Apis::NotebooksV1::EncryptionConfig::Representation
|
1030
|
+
|
1031
|
+
hash :guest_attributes, as: 'guestAttributes'
|
1032
|
+
property :internal_ip_only, as: 'internalIpOnly'
|
1033
|
+
hash :labels, as: 'labels'
|
1034
|
+
property :machine_type, as: 'machineType'
|
1035
|
+
hash :metadata, as: 'metadata'
|
1036
|
+
property :network, as: 'network'
|
1037
|
+
property :nic_type, as: 'nicType'
|
1038
|
+
property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::NotebooksV1::RuntimeShieldedInstanceConfig, decorator: Google::Apis::NotebooksV1::RuntimeShieldedInstanceConfig::Representation
|
1039
|
+
|
1040
|
+
property :subnet, as: 'subnet'
|
1041
|
+
collection :tags, as: 'tags'
|
1042
|
+
property :zone, as: 'zone'
|
1043
|
+
end
|
1044
|
+
end
|
1045
|
+
|
731
1046
|
class VmImage
|
732
1047
|
# @private
|
733
1048
|
class Representation < Google::Apis::Core::JsonRepresentation
|