google-apis-notebooks_v1 0.12.0 → 0.16.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 +16 -0
- data/lib/google/apis/notebooks_v1/classes.rb +160 -35
- data/lib/google/apis/notebooks_v1/gem_version.rb +2 -2
- data/lib/google/apis/notebooks_v1/representations.rb +62 -0
- data/lib/google/apis/notebooks_v1/service.rb +35 -1
- data/lib/google/apis/notebooks_v1.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e080405ea8d112bdaa4f0a595aa1dbf80dbf29e8ef2e7a69d57593e6e6df0ca
|
4
|
+
data.tar.gz: 79028d7b2d6cb01741471ddf809a6a7f405384685f2d79f14be9ec0a74c35993
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a94f6bc9e1c6715f08322037276f8d320d13a6023bbaa131e6b725b0c2c3033b2b7f4f5f590284d0a8dbff9b4058d4467aaf200716804336007fa976e139fc0
|
7
|
+
data.tar.gz: 734446a9778903df7ad44e73888dcb4c3e7669594015ed1512d417d7f10a8e1d1868260d459e86c3339de716f91ea29718b89cb0dd0b896ae94673ba92f288ce
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-notebooks_v1
|
2
2
|
|
3
|
+
### v0.16.0 (2021-09-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210812
|
6
|
+
|
7
|
+
### v0.15.0 (2021-07-28)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210722
|
10
|
+
|
11
|
+
### v0.14.0 (2021-07-21)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210715
|
14
|
+
|
15
|
+
### v0.13.0 (2021-07-15)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210713
|
18
|
+
|
3
19
|
### v0.12.0 (2021-07-01)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210626
|
@@ -161,6 +161,26 @@ module Google
|
|
161
161
|
end
|
162
162
|
end
|
163
163
|
|
164
|
+
# Parameters used in Dataproc JobType executions.
|
165
|
+
class DataprocParameters
|
166
|
+
include Google::Apis::Core::Hashable
|
167
|
+
|
168
|
+
# URI for cluster used to run Dataproc execution. Format: 'projects/`PROJECT_ID`/
|
169
|
+
# regions/`REGION`/clusters/`CLUSTER_NAME`
|
170
|
+
# Corresponds to the JSON property `cluster`
|
171
|
+
# @return [String]
|
172
|
+
attr_accessor :cluster
|
173
|
+
|
174
|
+
def initialize(**args)
|
175
|
+
update!(**args)
|
176
|
+
end
|
177
|
+
|
178
|
+
# Update properties of this object
|
179
|
+
def update!(**args)
|
180
|
+
@cluster = args[:cluster] if args.key?(:cluster)
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
164
184
|
# An instance-attached disk resource.
|
165
185
|
class Disk
|
166
186
|
include Google::Apis::Core::Hashable
|
@@ -368,6 +388,31 @@ module Google
|
|
368
388
|
end
|
369
389
|
end
|
370
390
|
|
391
|
+
# The definition of an Event for a managed / semi-managed notebook instance.
|
392
|
+
class Event
|
393
|
+
include Google::Apis::Core::Hashable
|
394
|
+
|
395
|
+
# Event report time.
|
396
|
+
# Corresponds to the JSON property `reportTime`
|
397
|
+
# @return [String]
|
398
|
+
attr_accessor :report_time
|
399
|
+
|
400
|
+
# Event type.
|
401
|
+
# Corresponds to the JSON property `type`
|
402
|
+
# @return [String]
|
403
|
+
attr_accessor :type
|
404
|
+
|
405
|
+
def initialize(**args)
|
406
|
+
update!(**args)
|
407
|
+
end
|
408
|
+
|
409
|
+
# Update properties of this object
|
410
|
+
def update!(**args)
|
411
|
+
@report_time = args[:report_time] if args.key?(:report_time)
|
412
|
+
@type = args[:type] if args.key?(:type)
|
413
|
+
end
|
414
|
+
end
|
415
|
+
|
371
416
|
# The definition of a single executed notebook.
|
372
417
|
class Execution
|
373
418
|
include Google::Apis::Core::Hashable
|
@@ -455,6 +500,11 @@ module Google
|
|
455
500
|
# @return [String]
|
456
501
|
attr_accessor :container_image_uri
|
457
502
|
|
503
|
+
# Parameters used in Dataproc JobType executions.
|
504
|
+
# Corresponds to the JSON property `dataprocParameters`
|
505
|
+
# @return [Google::Apis::NotebooksV1::DataprocParameters]
|
506
|
+
attr_accessor :dataproc_parameters
|
507
|
+
|
458
508
|
# Path to the notebook file to execute. Must be in a Google Cloud Storage bucket.
|
459
509
|
# Format: gs://`project_id`/`folder`/`notebook_file_name` Ex: gs://
|
460
510
|
# notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
|
@@ -462,6 +512,11 @@ module Google
|
|
462
512
|
# @return [String]
|
463
513
|
attr_accessor :input_notebook_file
|
464
514
|
|
515
|
+
# The type of Job to be used on this execution.
|
516
|
+
# Corresponds to the JSON property `jobType`
|
517
|
+
# @return [String]
|
518
|
+
attr_accessor :job_type
|
519
|
+
|
465
520
|
# Labels for execution. If execution is scheduled, a field included will be 'nbs-
|
466
521
|
# scheduled'. Otherwise, it is an immediate execution, and an included field
|
467
522
|
# will be 'nbs-immediate'. Use fields to efficiently index between various types
|
@@ -509,7 +564,8 @@ module Google
|
|
509
564
|
# @return [String]
|
510
565
|
attr_accessor :params_yaml_file
|
511
566
|
|
512
|
-
# Required. Scale tier of the hardware used for notebook execution.
|
567
|
+
# Required. Scale tier of the hardware used for notebook execution. DEPRECATED
|
568
|
+
# Will be discontinued. As right now only CUSTOM is supported.
|
513
569
|
# Corresponds to the JSON property `scaleTier`
|
514
570
|
# @return [String]
|
515
571
|
attr_accessor :scale_tier
|
@@ -529,7 +585,9 @@ module Google
|
|
529
585
|
def update!(**args)
|
530
586
|
@accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
|
531
587
|
@container_image_uri = args[:container_image_uri] if args.key?(:container_image_uri)
|
588
|
+
@dataproc_parameters = args[:dataproc_parameters] if args.key?(:dataproc_parameters)
|
532
589
|
@input_notebook_file = args[:input_notebook_file] if args.key?(:input_notebook_file)
|
590
|
+
@job_type = args[:job_type] if args.key?(:job_type)
|
533
591
|
@labels = args[:labels] if args.key?(:labels)
|
534
592
|
@master_type = args[:master_type] if args.key?(:master_type)
|
535
593
|
@output_notebook_folder = args[:output_notebook_folder] if args.key?(:output_notebook_folder)
|
@@ -797,6 +855,11 @@ module Google
|
|
797
855
|
# @return [String]
|
798
856
|
attr_accessor :proxy_uri
|
799
857
|
|
858
|
+
# Reservation Affinity for consuming Zonal reservation.
|
859
|
+
# Corresponds to the JSON property `reservationAffinity`
|
860
|
+
# @return [Google::Apis::NotebooksV1::ReservationAffinity]
|
861
|
+
attr_accessor :reservation_affinity
|
862
|
+
|
800
863
|
# The service account on this instance, giving access to other Google Cloud
|
801
864
|
# services. You can use any service account within the same project, but you
|
802
865
|
# must have the service account user permission to use the instance. If not
|
@@ -885,6 +948,7 @@ module Google
|
|
885
948
|
@no_remove_data_disk = args[:no_remove_data_disk] if args.key?(:no_remove_data_disk)
|
886
949
|
@post_startup_script = args[:post_startup_script] if args.key?(:post_startup_script)
|
887
950
|
@proxy_uri = args[:proxy_uri] if args.key?(:proxy_uri)
|
951
|
+
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
|
888
952
|
@service_account = args[:service_account] if args.key?(:service_account)
|
889
953
|
@service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes)
|
890
954
|
@shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
|
@@ -1186,23 +1250,23 @@ module Google
|
|
1186
1250
|
class LocalDisk
|
1187
1251
|
include Google::Apis::Core::Hashable
|
1188
1252
|
|
1189
|
-
# Output only. Specifies whether the disk will be auto-deleted when
|
1190
|
-
# is deleted (but not when the disk is detached from the instance).
|
1253
|
+
# Optional. Output only. Specifies whether the disk will be auto-deleted when
|
1254
|
+
# the instance is deleted (but not when the disk is detached from the instance).
|
1191
1255
|
# Corresponds to the JSON property `autoDelete`
|
1192
1256
|
# @return [Boolean]
|
1193
1257
|
attr_accessor :auto_delete
|
1194
1258
|
alias_method :auto_delete?, :auto_delete
|
1195
1259
|
|
1196
|
-
# Output only. Indicates that this is a boot disk. The virtual machine
|
1197
|
-
# the first partition of the disk for its root filesystem.
|
1260
|
+
# Optional. Output only. Indicates that this is a boot disk. The virtual machine
|
1261
|
+
# will use the first partition of the disk for its root filesystem.
|
1198
1262
|
# Corresponds to the JSON property `boot`
|
1199
1263
|
# @return [Boolean]
|
1200
1264
|
attr_accessor :boot
|
1201
1265
|
alias_method :boot?, :boot
|
1202
1266
|
|
1203
|
-
# Output only. Specifies a unique device name of your choice that is
|
1204
|
-
# into the /dev/disk/by-id/google-* tree of a Linux operating system
|
1205
|
-
# within the instance. This name can be used to reference the device for
|
1267
|
+
# Optional. Output only. Specifies a unique device name of your choice that is
|
1268
|
+
# reflected into the /dev/disk/by-id/google-* tree of a Linux operating system
|
1269
|
+
# running within the instance. This name can be used to reference the device for
|
1206
1270
|
# mounting, resizing, and so on, from within the instance. If not specified, the
|
1207
1271
|
# server chooses a default device name to apply to this disk, in the form
|
1208
1272
|
# persistent-disk-x, where x is a number assigned by Google Compute Engine. This
|
@@ -1218,14 +1282,14 @@ module Google
|
|
1218
1282
|
# @return [Array<Google::Apis::NotebooksV1::RuntimeGuestOsFeature>]
|
1219
1283
|
attr_accessor :guest_os_features
|
1220
1284
|
|
1221
|
-
# Output only.
|
1222
|
-
#
|
1223
|
-
#
|
1285
|
+
# Output only. A zero-based index to this disk, where 0 is reserved for the boot
|
1286
|
+
# disk. If you have many disks attached to an instance, each disk would have a
|
1287
|
+
# unique index number.
|
1224
1288
|
# Corresponds to the JSON property `index`
|
1225
1289
|
# @return [Fixnum]
|
1226
1290
|
attr_accessor :index
|
1227
1291
|
|
1228
|
-
#
|
1292
|
+
# Input only. Specifies the parameters for a new disk that will be created
|
1229
1293
|
# alongside the new instance. Use initialization parameters to create boot disks
|
1230
1294
|
# or local SSDs attached to the new runtime. This property is mutually exclusive
|
1231
1295
|
# with the source property; you can only define one or the other, but not both.
|
@@ -1249,7 +1313,7 @@ module Google
|
|
1249
1313
|
# @return [String]
|
1250
1314
|
attr_accessor :kind
|
1251
1315
|
|
1252
|
-
# Output only.
|
1316
|
+
# Output only. Any valid publicly visible licenses.
|
1253
1317
|
# Corresponds to the JSON property `licenses`
|
1254
1318
|
# @return [Array<String>]
|
1255
1319
|
attr_accessor :licenses
|
@@ -1293,7 +1357,7 @@ module Google
|
|
1293
1357
|
end
|
1294
1358
|
end
|
1295
1359
|
|
1296
|
-
#
|
1360
|
+
# Input only. Specifies the parameters for a new disk that will be created
|
1297
1361
|
# alongside the new instance. Use initialization parameters to create boot disks
|
1298
1362
|
# or local SSDs attached to the new runtime. This property is mutually exclusive
|
1299
1363
|
# with the source property; you can only define one or the other, but not both.
|
@@ -1542,7 +1606,7 @@ module Google
|
|
1542
1606
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
1543
1607
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
1544
1608
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
1545
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
1609
|
+
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
|
1546
1610
|
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
1547
1611
|
# google.com/iam/docs/).
|
1548
1612
|
class Policy
|
@@ -1651,6 +1715,63 @@ module Google
|
|
1651
1715
|
end
|
1652
1716
|
end
|
1653
1717
|
|
1718
|
+
# Request for reporting a Managed Notebook Event.
|
1719
|
+
class ReportRuntimeEventRequest
|
1720
|
+
include Google::Apis::Core::Hashable
|
1721
|
+
|
1722
|
+
# The definition of an Event for a managed / semi-managed notebook instance.
|
1723
|
+
# Corresponds to the JSON property `event`
|
1724
|
+
# @return [Google::Apis::NotebooksV1::Event]
|
1725
|
+
attr_accessor :event
|
1726
|
+
|
1727
|
+
# Required. The VM hardware token for authenticating the VM. https://cloud.
|
1728
|
+
# google.com/compute/docs/instances/verifying-instance-identity
|
1729
|
+
# Corresponds to the JSON property `vmId`
|
1730
|
+
# @return [String]
|
1731
|
+
attr_accessor :vm_id
|
1732
|
+
|
1733
|
+
def initialize(**args)
|
1734
|
+
update!(**args)
|
1735
|
+
end
|
1736
|
+
|
1737
|
+
# Update properties of this object
|
1738
|
+
def update!(**args)
|
1739
|
+
@event = args[:event] if args.key?(:event)
|
1740
|
+
@vm_id = args[:vm_id] if args.key?(:vm_id)
|
1741
|
+
end
|
1742
|
+
end
|
1743
|
+
|
1744
|
+
# Reservation Affinity for consuming Zonal reservation.
|
1745
|
+
class ReservationAffinity
|
1746
|
+
include Google::Apis::Core::Hashable
|
1747
|
+
|
1748
|
+
# Optional. Type of reservation to consume
|
1749
|
+
# Corresponds to the JSON property `consumeReservationType`
|
1750
|
+
# @return [String]
|
1751
|
+
attr_accessor :consume_reservation_type
|
1752
|
+
|
1753
|
+
# Optional. Corresponds to the label key of reservation resource.
|
1754
|
+
# Corresponds to the JSON property `key`
|
1755
|
+
# @return [String]
|
1756
|
+
attr_accessor :key
|
1757
|
+
|
1758
|
+
# Optional. Corresponds to the label values of reservation resource.
|
1759
|
+
# Corresponds to the JSON property `values`
|
1760
|
+
# @return [Array<String>]
|
1761
|
+
attr_accessor :values
|
1762
|
+
|
1763
|
+
def initialize(**args)
|
1764
|
+
update!(**args)
|
1765
|
+
end
|
1766
|
+
|
1767
|
+
# Update properties of this object
|
1768
|
+
def update!(**args)
|
1769
|
+
@consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type)
|
1770
|
+
@key = args[:key] if args.key?(:key)
|
1771
|
+
@values = args[:values] if args.key?(:values)
|
1772
|
+
end
|
1773
|
+
end
|
1774
|
+
|
1654
1775
|
# Request for reseting a notebook instance
|
1655
1776
|
class ResetInstanceRequest
|
1656
1777
|
include Google::Apis::Core::Hashable
|
@@ -1722,16 +1843,15 @@ module Google
|
|
1722
1843
|
attr_accessor :metrics
|
1723
1844
|
|
1724
1845
|
# Output only. The resource name of the runtime. Format: `projects/`project`/
|
1725
|
-
# locations/`location`/runtimes/`
|
1846
|
+
# locations/`location`/runtimes/`runtimeId``
|
1726
1847
|
# Corresponds to the JSON property `name`
|
1727
1848
|
# @return [String]
|
1728
1849
|
attr_accessor :name
|
1729
1850
|
|
1730
|
-
# Specifies the selection and
|
1851
|
+
# Specifies the selection and configuration of software inside the runtime. The
|
1731
1852
|
# properties to set on runtime. Properties keys are specified in `key:value`
|
1732
|
-
# format, for example: * idle_shutdown:
|
1733
|
-
#
|
1734
|
-
# report-system-health=true
|
1853
|
+
# format, for example: * `idle_shutdown: true` * `idle_shutdown_timeout: 180` * `
|
1854
|
+
# report-system-health: true`
|
1735
1855
|
# Corresponds to the JSON property `softwareConfig`
|
1736
1856
|
# @return [Google::Apis::NotebooksV1::RuntimeSoftwareConfig]
|
1737
1857
|
attr_accessor :software_config
|
@@ -1831,15 +1951,19 @@ module Google
|
|
1831
1951
|
end
|
1832
1952
|
end
|
1833
1953
|
|
1834
|
-
# A list of features to enable on the guest operating system.
|
1835
|
-
# for bootable images. Read Enabling guest operating system
|
1836
|
-
#
|
1954
|
+
# Optional. A list of features to enable on the guest operating system.
|
1955
|
+
# Applicable only for bootable images. Read [Enabling guest operating system
|
1956
|
+
# features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-
|
1957
|
+
# private-images#guest-os-features) to see a list of available options. Guest OS
|
1958
|
+
# features for boot disk.
|
1837
1959
|
class RuntimeGuestOsFeature
|
1838
1960
|
include Google::Apis::Core::Hashable
|
1839
1961
|
|
1840
|
-
# The ID of a supported feature. Read Enabling guest operating system features
|
1841
|
-
#
|
1842
|
-
#
|
1962
|
+
# The ID of a supported feature. Read [Enabling guest operating system features](
|
1963
|
+
# https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-
|
1964
|
+
# images#guest-os-features) to see a list of available options. Valid values: *
|
1965
|
+
# FEATURE_TYPE_UNSPECIFIED * MULTI_IP_SUBNET * SECURE_BOOT * UEFI_COMPATIBLE *
|
1966
|
+
# VIRTIO_SCSI_MULTIQUEUE * WINDOWS
|
1843
1967
|
# Corresponds to the JSON property `type`
|
1844
1968
|
# @return [String]
|
1845
1969
|
attr_accessor :type
|
@@ -1874,7 +1998,8 @@ module Google
|
|
1874
1998
|
end
|
1875
1999
|
|
1876
2000
|
# A set of Shielded Instance options. Check [Images using supported Shielded VM
|
1877
|
-
# features]
|
2001
|
+
# features](https://cloud.google.com/compute/docs/instances/modifying-shielded-
|
2002
|
+
# vm). Not all combinations are valid.
|
1878
2003
|
class RuntimeShieldedInstanceConfig
|
1879
2004
|
include Google::Apis::Core::Hashable
|
1880
2005
|
|
@@ -1915,11 +2040,10 @@ module Google
|
|
1915
2040
|
end
|
1916
2041
|
end
|
1917
2042
|
|
1918
|
-
# Specifies the selection and
|
2043
|
+
# Specifies the selection and configuration of software inside the runtime. The
|
1919
2044
|
# properties to set on runtime. Properties keys are specified in `key:value`
|
1920
|
-
# format, for example: * idle_shutdown:
|
1921
|
-
#
|
1922
|
-
# report-system-health=true
|
2045
|
+
# format, for example: * `idle_shutdown: true` * `idle_shutdown_timeout: 180` * `
|
2046
|
+
# report-system-health: true`
|
1923
2047
|
class RuntimeSoftwareConfig
|
1924
2048
|
include Google::Apis::Core::Hashable
|
1925
2049
|
|
@@ -1935,13 +2059,13 @@ module Google
|
|
1935
2059
|
attr_accessor :enable_health_monitoring
|
1936
2060
|
alias_method :enable_health_monitoring?, :enable_health_monitoring
|
1937
2061
|
|
1938
|
-
# Runtime will automatically shutdown after idle_shutdown_time. Default:
|
2062
|
+
# Runtime will automatically shutdown after idle_shutdown_time. Default: True
|
1939
2063
|
# Corresponds to the JSON property `idleShutdown`
|
1940
2064
|
# @return [Boolean]
|
1941
2065
|
attr_accessor :idle_shutdown
|
1942
2066
|
alias_method :idle_shutdown?, :idle_shutdown
|
1943
2067
|
|
1944
|
-
# Time in minutes to wait before shuting down runtime. Default:
|
2068
|
+
# Time in minutes to wait before shuting down runtime. Default: 180 minutes
|
1945
2069
|
# Corresponds to the JSON property `idleShutdownTimeout`
|
1946
2070
|
# @return [Fixnum]
|
1947
2071
|
attr_accessor :idle_shutdown_timeout
|
@@ -2119,7 +2243,7 @@ module Google
|
|
2119
2243
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
2120
2244
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
2121
2245
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
2122
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
2246
|
+
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
|
2123
2247
|
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
2124
2248
|
# google.com/iam/docs/).
|
2125
2249
|
# Corresponds to the JSON property `policy`
|
@@ -2687,7 +2811,8 @@ module Google
|
|
2687
2811
|
attr_accessor :nic_type
|
2688
2812
|
|
2689
2813
|
# A set of Shielded Instance options. Check [Images using supported Shielded VM
|
2690
|
-
# features]
|
2814
|
+
# features](https://cloud.google.com/compute/docs/instances/modifying-shielded-
|
2815
|
+
# vm). Not all combinations are valid.
|
2691
2816
|
# Corresponds to the JSON property `shieldedInstanceConfig`
|
2692
2817
|
# @return [Google::Apis::NotebooksV1::RuntimeShieldedInstanceConfig]
|
2693
2818
|
attr_accessor :shielded_instance_config
|
@@ -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.16.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210812"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -46,6 +46,12 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class DataprocParameters
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
49
55
|
class Disk
|
50
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
57
|
|
@@ -70,6 +76,12 @@ module Google
|
|
70
76
|
include Google::Apis::Core::JsonObjectSupport
|
71
77
|
end
|
72
78
|
|
79
|
+
class Event
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
73
85
|
class Execution
|
74
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
87
|
|
@@ -208,6 +220,18 @@ module Google
|
|
208
220
|
include Google::Apis::Core::JsonObjectSupport
|
209
221
|
end
|
210
222
|
|
223
|
+
class ReportRuntimeEventRequest
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
229
|
+
class ReservationAffinity
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
211
235
|
class ResetInstanceRequest
|
212
236
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
237
|
|
@@ -444,6 +468,13 @@ module Google
|
|
444
468
|
end
|
445
469
|
end
|
446
470
|
|
471
|
+
class DataprocParameters
|
472
|
+
# @private
|
473
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
474
|
+
property :cluster, as: 'cluster'
|
475
|
+
end
|
476
|
+
end
|
477
|
+
|
447
478
|
class Disk
|
448
479
|
# @private
|
449
480
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -491,6 +522,14 @@ module Google
|
|
491
522
|
end
|
492
523
|
end
|
493
524
|
|
525
|
+
class Event
|
526
|
+
# @private
|
527
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
528
|
+
property :report_time, as: 'reportTime'
|
529
|
+
property :type, as: 'type'
|
530
|
+
end
|
531
|
+
end
|
532
|
+
|
494
533
|
class Execution
|
495
534
|
# @private
|
496
535
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -513,7 +552,10 @@ module Google
|
|
513
552
|
property :accelerator_config, as: 'acceleratorConfig', class: Google::Apis::NotebooksV1::SchedulerAcceleratorConfig, decorator: Google::Apis::NotebooksV1::SchedulerAcceleratorConfig::Representation
|
514
553
|
|
515
554
|
property :container_image_uri, as: 'containerImageUri'
|
555
|
+
property :dataproc_parameters, as: 'dataprocParameters', class: Google::Apis::NotebooksV1::DataprocParameters, decorator: Google::Apis::NotebooksV1::DataprocParameters::Representation
|
556
|
+
|
516
557
|
property :input_notebook_file, as: 'inputNotebookFile'
|
558
|
+
property :job_type, as: 'jobType'
|
517
559
|
hash :labels, as: 'labels'
|
518
560
|
property :master_type, as: 'masterType'
|
519
561
|
property :output_notebook_folder, as: 'outputNotebookFolder'
|
@@ -579,6 +621,8 @@ module Google
|
|
579
621
|
property :no_remove_data_disk, as: 'noRemoveDataDisk'
|
580
622
|
property :post_startup_script, as: 'postStartupScript'
|
581
623
|
property :proxy_uri, as: 'proxyUri'
|
624
|
+
property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::NotebooksV1::ReservationAffinity, decorator: Google::Apis::NotebooksV1::ReservationAffinity::Representation
|
625
|
+
|
582
626
|
property :service_account, as: 'serviceAccount'
|
583
627
|
collection :service_account_scopes, as: 'serviceAccountScopes'
|
584
628
|
property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::NotebooksV1::ShieldedInstanceConfig, decorator: Google::Apis::NotebooksV1::ShieldedInstanceConfig::Representation
|
@@ -773,6 +817,24 @@ module Google
|
|
773
817
|
end
|
774
818
|
end
|
775
819
|
|
820
|
+
class ReportRuntimeEventRequest
|
821
|
+
# @private
|
822
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
823
|
+
property :event, as: 'event', class: Google::Apis::NotebooksV1::Event, decorator: Google::Apis::NotebooksV1::Event::Representation
|
824
|
+
|
825
|
+
property :vm_id, as: 'vmId'
|
826
|
+
end
|
827
|
+
end
|
828
|
+
|
829
|
+
class ReservationAffinity
|
830
|
+
# @private
|
831
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
832
|
+
property :consume_reservation_type, as: 'consumeReservationType'
|
833
|
+
property :key, as: 'key'
|
834
|
+
collection :values, as: 'values'
|
835
|
+
end
|
836
|
+
end
|
837
|
+
|
776
838
|
class ResetInstanceRequest
|
777
839
|
# @private
|
778
840
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -329,7 +329,7 @@ module Google
|
|
329
329
|
|
330
330
|
# Gets details of executions
|
331
331
|
# @param [String] name
|
332
|
-
# Required. Format: `projects/`project_id`/locations/`location`/
|
332
|
+
# Required. Format: `projects/`project_id`/locations/`location`/executions/`
|
333
333
|
# execution_id``
|
334
334
|
# @param [String] fields
|
335
335
|
# Selector specifying which fields to include in a partial response.
|
@@ -1447,6 +1447,40 @@ module Google
|
|
1447
1447
|
execute_or_queue_command(command, &block)
|
1448
1448
|
end
|
1449
1449
|
|
1450
|
+
# Report and process a runtime event.
|
1451
|
+
# @param [String] name
|
1452
|
+
# Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
|
1453
|
+
# runtime_id``
|
1454
|
+
# @param [Google::Apis::NotebooksV1::ReportRuntimeEventRequest] report_runtime_event_request_object
|
1455
|
+
# @param [String] fields
|
1456
|
+
# Selector specifying which fields to include in a partial response.
|
1457
|
+
# @param [String] quota_user
|
1458
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1459
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1460
|
+
# @param [Google::Apis::RequestOptions] options
|
1461
|
+
# Request-specific options
|
1462
|
+
#
|
1463
|
+
# @yield [result, err] Result & error if block supplied
|
1464
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
1465
|
+
# @yieldparam err [StandardError] error object if request failed
|
1466
|
+
#
|
1467
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
1468
|
+
#
|
1469
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1470
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1471
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1472
|
+
def report_project_location_runtime_event(name, report_runtime_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1473
|
+
command = make_simple_command(:post, 'v1/{+name}:reportEvent', options)
|
1474
|
+
command.request_representation = Google::Apis::NotebooksV1::ReportRuntimeEventRequest::Representation
|
1475
|
+
command.request_object = report_runtime_event_request_object
|
1476
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
1477
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
1478
|
+
command.params['name'] = name unless name.nil?
|
1479
|
+
command.query['fields'] = fields unless fields.nil?
|
1480
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1481
|
+
execute_or_queue_command(command, &block)
|
1482
|
+
end
|
1483
|
+
|
1450
1484
|
# Resets a Managed Notebook Runtime.
|
1451
1485
|
# @param [String] name
|
1452
1486
|
# Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V1'
|
31
31
|
|
32
|
-
# See, edit, configure, and delete your Google Cloud
|
32
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
34
|
end
|
35
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-notebooks_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-notebooks_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.16.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-notebooks_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|