google-apis-notebooks_v1 0.10.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d96a16be4cd2fa58a43ccb0b8d8ebc74b6e2243cc73cdbd113e9c1e8a606c0ef
4
- data.tar.gz: 4181fc9077806c0f1195a3870ef044011cb806a7b05c622b8b2ebfb8e0475d13
3
+ metadata.gz: 6ea6b56882ae863b852259cf4f0e8079df2460bf38ebaa58adf9991f201da70e
4
+ data.tar.gz: d4a0600d8bf92a26023b31884d9b713a41d12a9ac656a53f2797ef7b857bfe2f
5
5
  SHA512:
6
- metadata.gz: 0abb51c3b743d5e5d2ae642ebe8c92b8c8830e40845dffa27ec766d2fb64d9f90cbfcb5cc3d17d4319b155e158a8c4dcf83ddabb8e2755da5a9e43488b63c8d1
7
- data.tar.gz: a292966ce400054f1fa09b6e7729db0f95a0ec9937efac912bd09476d152e88323adc53d2057f42673abcfa3b300a9a38c8cdbcf5a6f3bc35068eab571ba5ce7
6
+ metadata.gz: 4c2834684b6cbbb5bfdfb0909e5a3b4388c4280055bb751aec302c81ea73285c3962c711f0a6945a608aa21ab2fa5df51cc91c21805cbded719cdd628bf74f59
7
+ data.tar.gz: e481d52f60caef52e65c41a6d2c20a253f45a14927dafd1b590f74281cd6d4f54288cb6cac79136b189625facea9e5359e8993aedbb5d774897542996b21d16d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-notebooks_v1
2
2
 
3
+ ### v0.14.0 (2021-07-21)
4
+
5
+ * Regenerated from discovery document revision 20210715
6
+
7
+ ### v0.13.0 (2021-07-15)
8
+
9
+ * Regenerated from discovery document revision 20210713
10
+
11
+ ### v0.12.0 (2021-07-01)
12
+
13
+ * Regenerated from discovery document revision 20210626
14
+ * Regenerated using generator version 0.4.0
15
+
16
+ ### v0.11.0 (2021-06-24)
17
+
18
+ * Unspecified changes
19
+
3
20
  ### v0.10.0 (2021-06-15)
4
21
 
5
22
  * Regenerated from discovery document revision 20210610
data/OVERVIEW.md CHANGED
@@ -79,7 +79,7 @@ Gem names for modern clients are often of the form `google-cloud-<service_name>`
79
79
 
80
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
81
 
82
- The [product documentation](https://cloud.google.com/ai-platform/notebooks/docs/) may provide guidance regarding the preferred client library to use.
82
+ The [product documentation](https://cloud.google.com/notebooks/docs/) may provide guidance regarding the preferred client library to use.
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
@@ -21,9 +21,9 @@ module Google
21
21
  module Apis
22
22
  # Notebooks API
23
23
  #
24
- # AI Platform Notebooks API is used to manage notebook resources in Google Cloud.
24
+ # Notebooks API is used to manage notebook resources in Google Cloud.
25
25
  #
26
- # @see https://cloud.google.com/ai-platform/notebooks/docs/
26
+ # @see https://cloud.google.com/notebooks/docs/
27
27
  module NotebooksV1
28
28
  # Version of the Notebooks API this client connects to.
29
29
  # This is NOT the gem version.
@@ -368,6 +368,31 @@ module Google
368
368
  end
369
369
  end
370
370
 
371
+ # The definition of an Event for a managed / semi-managed notebook instance.
372
+ class Event
373
+ include Google::Apis::Core::Hashable
374
+
375
+ # Event report time.
376
+ # Corresponds to the JSON property `reportTime`
377
+ # @return [String]
378
+ attr_accessor :report_time
379
+
380
+ # Event type.
381
+ # Corresponds to the JSON property `type`
382
+ # @return [String]
383
+ attr_accessor :type
384
+
385
+ def initialize(**args)
386
+ update!(**args)
387
+ end
388
+
389
+ # Update properties of this object
390
+ def update!(**args)
391
+ @report_time = args[:report_time] if args.key?(:report_time)
392
+ @type = args[:type] if args.key?(:type)
393
+ end
394
+ end
395
+
371
396
  # The definition of a single executed notebook.
372
397
  class Execution
373
398
  include Google::Apis::Core::Hashable
@@ -393,6 +418,11 @@ module Google
393
418
  # @return [Google::Apis::NotebooksV1::ExecutionTemplate]
394
419
  attr_accessor :execution_template
395
420
 
421
+ # Output only. The URI of the external job used to execute the notebook.
422
+ # Corresponds to the JSON property `jobUri`
423
+ # @return [String]
424
+ attr_accessor :job_uri
425
+
396
426
  # Output only. The resource name of the execute. Format: `projects/`project_id`/
397
427
  # locations/`location`/execution/`execution_id`
398
428
  # Corresponds to the JSON property `name`
@@ -424,6 +454,7 @@ module Google
424
454
  @description = args[:description] if args.key?(:description)
425
455
  @display_name = args[:display_name] if args.key?(:display_name)
426
456
  @execution_template = args[:execution_template] if args.key?(:execution_template)
457
+ @job_uri = args[:job_uri] if args.key?(:job_uri)
427
458
  @name = args[:name] if args.key?(:name)
428
459
  @output_notebook_file = args[:output_notebook_file] if args.key?(:output_notebook_file)
429
460
  @state = args[:state] if args.key?(:state)
@@ -503,7 +534,8 @@ module Google
503
534
  # @return [String]
504
535
  attr_accessor :params_yaml_file
505
536
 
506
- # Required. Scale tier of the hardware used for notebook execution.
537
+ # Required. Scale tier of the hardware used for notebook execution. DEPRECATED
538
+ # Will be discontinued. As right now only CUSTOM is supported.
507
539
  # Corresponds to the JSON property `scaleTier`
508
540
  # @return [String]
509
541
  attr_accessor :scale_tier
@@ -791,6 +823,11 @@ module Google
791
823
  # @return [String]
792
824
  attr_accessor :proxy_uri
793
825
 
826
+ # Reservation Affinity for consuming Zonal reservation.
827
+ # Corresponds to the JSON property `reservationAffinity`
828
+ # @return [Google::Apis::NotebooksV1::ReservationAffinity]
829
+ attr_accessor :reservation_affinity
830
+
794
831
  # The service account on this instance, giving access to other Google Cloud
795
832
  # services. You can use any service account within the same project, but you
796
833
  # must have the service account user permission to use the instance. If not
@@ -879,6 +916,7 @@ module Google
879
916
  @no_remove_data_disk = args[:no_remove_data_disk] if args.key?(:no_remove_data_disk)
880
917
  @post_startup_script = args[:post_startup_script] if args.key?(:post_startup_script)
881
918
  @proxy_uri = args[:proxy_uri] if args.key?(:proxy_uri)
919
+ @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
882
920
  @service_account = args[:service_account] if args.key?(:service_account)
883
921
  @service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes)
884
922
  @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
@@ -1180,23 +1218,23 @@ module Google
1180
1218
  class LocalDisk
1181
1219
  include Google::Apis::Core::Hashable
1182
1220
 
1183
- # Output only. Specifies whether the disk will be auto-deleted when the instance
1184
- # is deleted (but not when the disk is detached from the instance).
1221
+ # Optional. Output only. Specifies whether the disk will be auto-deleted when
1222
+ # the instance is deleted (but not when the disk is detached from the instance).
1185
1223
  # Corresponds to the JSON property `autoDelete`
1186
1224
  # @return [Boolean]
1187
1225
  attr_accessor :auto_delete
1188
1226
  alias_method :auto_delete?, :auto_delete
1189
1227
 
1190
- # Output only. Indicates that this is a boot disk. The virtual machine will use
1191
- # the first partition of the disk for its root filesystem.
1228
+ # Optional. Output only. Indicates that this is a boot disk. The virtual machine
1229
+ # will use the first partition of the disk for its root filesystem.
1192
1230
  # Corresponds to the JSON property `boot`
1193
1231
  # @return [Boolean]
1194
1232
  attr_accessor :boot
1195
1233
  alias_method :boot?, :boot
1196
1234
 
1197
- # Output only. Specifies a unique device name of your choice that is reflected
1198
- # into the /dev/disk/by-id/google-* tree of a Linux operating system running
1199
- # within the instance. This name can be used to reference the device for
1235
+ # Optional. Output only. Specifies a unique device name of your choice that is
1236
+ # reflected into the /dev/disk/by-id/google-* tree of a Linux operating system
1237
+ # running within the instance. This name can be used to reference the device for
1200
1238
  # mounting, resizing, and so on, from within the instance. If not specified, the
1201
1239
  # server chooses a default device name to apply to this disk, in the form
1202
1240
  # persistent-disk-x, where x is a number assigned by Google Compute Engine. This
@@ -1212,14 +1250,14 @@ module Google
1212
1250
  # @return [Array<Google::Apis::NotebooksV1::RuntimeGuestOsFeature>]
1213
1251
  attr_accessor :guest_os_features
1214
1252
 
1215
- # Output only. [Output Only] A zero-based index to this disk, where 0 is
1216
- # reserved for the boot disk. If you have many disks attached to an instance,
1217
- # each disk would have a unique index number.
1253
+ # Output only. A zero-based index to this disk, where 0 is reserved for the boot
1254
+ # disk. If you have many disks attached to an instance, each disk would have a
1255
+ # unique index number.
1218
1256
  # Corresponds to the JSON property `index`
1219
1257
  # @return [Fixnum]
1220
1258
  attr_accessor :index
1221
1259
 
1222
- # [Input Only] Specifies the parameters for a new disk that will be created
1260
+ # Input only. Specifies the parameters for a new disk that will be created
1223
1261
  # alongside the new instance. Use initialization parameters to create boot disks
1224
1262
  # or local SSDs attached to the new runtime. This property is mutually exclusive
1225
1263
  # with the source property; you can only define one or the other, but not both.
@@ -1243,7 +1281,7 @@ module Google
1243
1281
  # @return [String]
1244
1282
  attr_accessor :kind
1245
1283
 
1246
- # Output only. [Output Only] Any valid publicly visible licenses.
1284
+ # Output only. Any valid publicly visible licenses.
1247
1285
  # Corresponds to the JSON property `licenses`
1248
1286
  # @return [Array<String>]
1249
1287
  attr_accessor :licenses
@@ -1287,7 +1325,7 @@ module Google
1287
1325
  end
1288
1326
  end
1289
1327
 
1290
- # [Input Only] Specifies the parameters for a new disk that will be created
1328
+ # Input only. Specifies the parameters for a new disk that will be created
1291
1329
  # alongside the new instance. Use initialization parameters to create boot disks
1292
1330
  # or local SSDs attached to the new runtime. This property is mutually exclusive
1293
1331
  # with the source property; you can only define one or the other, but not both.
@@ -1645,6 +1683,63 @@ module Google
1645
1683
  end
1646
1684
  end
1647
1685
 
1686
+ # Request for reporting a Managed Notebook Event.
1687
+ class ReportRuntimeEventRequest
1688
+ include Google::Apis::Core::Hashable
1689
+
1690
+ # The definition of an Event for a managed / semi-managed notebook instance.
1691
+ # Corresponds to the JSON property `event`
1692
+ # @return [Google::Apis::NotebooksV1::Event]
1693
+ attr_accessor :event
1694
+
1695
+ # Required. The VM hardware token for authenticating the VM. https://cloud.
1696
+ # google.com/compute/docs/instances/verifying-instance-identity
1697
+ # Corresponds to the JSON property `vmId`
1698
+ # @return [String]
1699
+ attr_accessor :vm_id
1700
+
1701
+ def initialize(**args)
1702
+ update!(**args)
1703
+ end
1704
+
1705
+ # Update properties of this object
1706
+ def update!(**args)
1707
+ @event = args[:event] if args.key?(:event)
1708
+ @vm_id = args[:vm_id] if args.key?(:vm_id)
1709
+ end
1710
+ end
1711
+
1712
+ # Reservation Affinity for consuming Zonal reservation.
1713
+ class ReservationAffinity
1714
+ include Google::Apis::Core::Hashable
1715
+
1716
+ # Optional. Type of reservation to consume
1717
+ # Corresponds to the JSON property `consumeReservationType`
1718
+ # @return [String]
1719
+ attr_accessor :consume_reservation_type
1720
+
1721
+ # Optional. Corresponds to the label key of reservation resource.
1722
+ # Corresponds to the JSON property `key`
1723
+ # @return [String]
1724
+ attr_accessor :key
1725
+
1726
+ # Optional. Corresponds to the label values of reservation resource.
1727
+ # Corresponds to the JSON property `values`
1728
+ # @return [Array<String>]
1729
+ attr_accessor :values
1730
+
1731
+ def initialize(**args)
1732
+ update!(**args)
1733
+ end
1734
+
1735
+ # Update properties of this object
1736
+ def update!(**args)
1737
+ @consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type)
1738
+ @key = args[:key] if args.key?(:key)
1739
+ @values = args[:values] if args.key?(:values)
1740
+ end
1741
+ end
1742
+
1648
1743
  # Request for reseting a notebook instance
1649
1744
  class ResetInstanceRequest
1650
1745
  include Google::Apis::Core::Hashable
@@ -1716,16 +1811,15 @@ module Google
1716
1811
  attr_accessor :metrics
1717
1812
 
1718
1813
  # Output only. The resource name of the runtime. Format: `projects/`project`/
1719
- # locations/`location`/runtimes/`runtime``
1814
+ # locations/`location`/runtimes/`runtimeId``
1720
1815
  # Corresponds to the JSON property `name`
1721
1816
  # @return [String]
1722
1817
  attr_accessor :name
1723
1818
 
1724
- # Specifies the selection and config of software inside the runtime. / The
1819
+ # Specifies the selection and configuration of software inside the runtime. The
1725
1820
  # properties to set on runtime. Properties keys are specified in `key:value`
1726
- # format, for example: * idle_shutdown: idle_shutdown=true *
1727
- # idle_shutdown_timeout: idle_shutdown_timeout=180 * report-system-health:
1728
- # report-system-health=true
1821
+ # format, for example: * `idle_shutdown: true` * `idle_shutdown_timeout: 180` * `
1822
+ # report-system-health: true`
1729
1823
  # Corresponds to the JSON property `softwareConfig`
1730
1824
  # @return [Google::Apis::NotebooksV1::RuntimeSoftwareConfig]
1731
1825
  attr_accessor :software_config
@@ -1825,15 +1919,19 @@ module Google
1825
1919
  end
1826
1920
  end
1827
1921
 
1828
- # A list of features to enable on the guest operating system. Applicable only
1829
- # for bootable images. Read Enabling guest operating system features to see a
1830
- # list of available options. Guest OS features for boot disk.
1922
+ # Optional. A list of features to enable on the guest operating system.
1923
+ # Applicable only for bootable images. Read [Enabling guest operating system
1924
+ # features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-
1925
+ # private-images#guest-os-features) to see a list of available options. Guest OS
1926
+ # features for boot disk.
1831
1927
  class RuntimeGuestOsFeature
1832
1928
  include Google::Apis::Core::Hashable
1833
1929
 
1834
- # The ID of a supported feature. Read Enabling guest operating system features
1835
- # to see a list of available options. Valid values: FEATURE_TYPE_UNSPECIFIED
1836
- # MULTI_IP_SUBNET SECURE_BOOT UEFI_COMPATIBLE VIRTIO_SCSI_MULTIQUEUE WINDOWS
1930
+ # The ID of a supported feature. Read [Enabling guest operating system features](
1931
+ # https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-
1932
+ # images#guest-os-features) to see a list of available options. Valid values: *
1933
+ # FEATURE_TYPE_UNSPECIFIED * MULTI_IP_SUBNET * SECURE_BOOT * UEFI_COMPATIBLE *
1934
+ # VIRTIO_SCSI_MULTIQUEUE * WINDOWS
1837
1935
  # Corresponds to the JSON property `type`
1838
1936
  # @return [String]
1839
1937
  attr_accessor :type
@@ -1868,7 +1966,8 @@ module Google
1868
1966
  end
1869
1967
 
1870
1968
  # A set of Shielded Instance options. Check [Images using supported Shielded VM
1871
- # features] Not all combinations are valid.
1969
+ # features](https://cloud.google.com/compute/docs/instances/modifying-shielded-
1970
+ # vm). Not all combinations are valid.
1872
1971
  class RuntimeShieldedInstanceConfig
1873
1972
  include Google::Apis::Core::Hashable
1874
1973
 
@@ -1909,11 +2008,10 @@ module Google
1909
2008
  end
1910
2009
  end
1911
2010
 
1912
- # Specifies the selection and config of software inside the runtime. / The
2011
+ # Specifies the selection and configuration of software inside the runtime. The
1913
2012
  # properties to set on runtime. Properties keys are specified in `key:value`
1914
- # format, for example: * idle_shutdown: idle_shutdown=true *
1915
- # idle_shutdown_timeout: idle_shutdown_timeout=180 * report-system-health:
1916
- # report-system-health=true
2013
+ # format, for example: * `idle_shutdown: true` * `idle_shutdown_timeout: 180` * `
2014
+ # report-system-health: true`
1917
2015
  class RuntimeSoftwareConfig
1918
2016
  include Google::Apis::Core::Hashable
1919
2017
 
@@ -1929,13 +2027,13 @@ module Google
1929
2027
  attr_accessor :enable_health_monitoring
1930
2028
  alias_method :enable_health_monitoring?, :enable_health_monitoring
1931
2029
 
1932
- # Runtime will automatically shutdown after idle_shutdown_time. Default: False
2030
+ # Runtime will automatically shutdown after idle_shutdown_time. Default: True
1933
2031
  # Corresponds to the JSON property `idleShutdown`
1934
2032
  # @return [Boolean]
1935
2033
  attr_accessor :idle_shutdown
1936
2034
  alias_method :idle_shutdown?, :idle_shutdown
1937
2035
 
1938
- # Time in minutes to wait before shuting down runtime. Default: 90 minutes
2036
+ # Time in minutes to wait before shuting down runtime. Default: 180 minutes
1939
2037
  # Corresponds to the JSON property `idleShutdownTimeout`
1940
2038
  # @return [Fixnum]
1941
2039
  attr_accessor :idle_shutdown_timeout
@@ -2681,7 +2779,8 @@ module Google
2681
2779
  attr_accessor :nic_type
2682
2780
 
2683
2781
  # A set of Shielded Instance options. Check [Images using supported Shielded VM
2684
- # features] Not all combinations are valid.
2782
+ # features](https://cloud.google.com/compute/docs/instances/modifying-shielded-
2783
+ # vm). Not all combinations are valid.
2685
2784
  # Corresponds to the JSON property `shieldedInstanceConfig`
2686
2785
  # @return [Google::Apis::NotebooksV1::RuntimeShieldedInstanceConfig]
2687
2786
  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.10.0"
19
+ GEM_VERSION = "0.14.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.3.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210610"
25
+ REVISION = "20210715"
26
26
  end
27
27
  end
28
28
  end
@@ -70,6 +70,12 @@ module Google
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
+ class Event
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
73
79
  class Execution
74
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
81
 
@@ -208,6 +214,18 @@ module Google
208
214
  include Google::Apis::Core::JsonObjectSupport
209
215
  end
210
216
 
217
+ class ReportRuntimeEventRequest
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class ReservationAffinity
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
211
229
  class ResetInstanceRequest
212
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
231
 
@@ -491,6 +509,14 @@ module Google
491
509
  end
492
510
  end
493
511
 
512
+ class Event
513
+ # @private
514
+ class Representation < Google::Apis::Core::JsonRepresentation
515
+ property :report_time, as: 'reportTime'
516
+ property :type, as: 'type'
517
+ end
518
+ end
519
+
494
520
  class Execution
495
521
  # @private
496
522
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -499,6 +525,7 @@ module Google
499
525
  property :display_name, as: 'displayName'
500
526
  property :execution_template, as: 'executionTemplate', class: Google::Apis::NotebooksV1::ExecutionTemplate, decorator: Google::Apis::NotebooksV1::ExecutionTemplate::Representation
501
527
 
528
+ property :job_uri, as: 'jobUri'
502
529
  property :name, as: 'name'
503
530
  property :output_notebook_file, as: 'outputNotebookFile'
504
531
  property :state, as: 'state'
@@ -578,6 +605,8 @@ module Google
578
605
  property :no_remove_data_disk, as: 'noRemoveDataDisk'
579
606
  property :post_startup_script, as: 'postStartupScript'
580
607
  property :proxy_uri, as: 'proxyUri'
608
+ property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::NotebooksV1::ReservationAffinity, decorator: Google::Apis::NotebooksV1::ReservationAffinity::Representation
609
+
581
610
  property :service_account, as: 'serviceAccount'
582
611
  collection :service_account_scopes, as: 'serviceAccountScopes'
583
612
  property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::NotebooksV1::ShieldedInstanceConfig, decorator: Google::Apis::NotebooksV1::ShieldedInstanceConfig::Representation
@@ -772,6 +801,24 @@ module Google
772
801
  end
773
802
  end
774
803
 
804
+ class ReportRuntimeEventRequest
805
+ # @private
806
+ class Representation < Google::Apis::Core::JsonRepresentation
807
+ property :event, as: 'event', class: Google::Apis::NotebooksV1::Event, decorator: Google::Apis::NotebooksV1::Event::Representation
808
+
809
+ property :vm_id, as: 'vmId'
810
+ end
811
+ end
812
+
813
+ class ReservationAffinity
814
+ # @private
815
+ class Representation < Google::Apis::Core::JsonRepresentation
816
+ property :consume_reservation_type, as: 'consumeReservationType'
817
+ property :key, as: 'key'
818
+ collection :values, as: 'values'
819
+ end
820
+ end
821
+
775
822
  class ResetInstanceRequest
776
823
  # @private
777
824
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -22,7 +22,7 @@ module Google
22
22
  module NotebooksV1
23
23
  # Notebooks API
24
24
  #
25
- # AI Platform Notebooks API is used to manage notebook resources in Google Cloud.
25
+ # Notebooks API is used to manage notebook resources in Google Cloud.
26
26
  #
27
27
  # @example
28
28
  # require 'google/apis/notebooks_v1'
@@ -30,7 +30,7 @@ module Google
30
30
  # Notebooks = Google::Apis::NotebooksV1 # Alias the module
31
31
  # service = Notebooks::AIPlatformNotebooksService.new
32
32
  #
33
- # @see https://cloud.google.com/ai-platform/notebooks/docs/
33
+ # @see https://cloud.google.com/notebooks/docs/
34
34
  class AIPlatformNotebooksService < Google::Apis::Core::BaseService
35
35
  # @return [String]
36
36
  # API key. Your API key identifies your project and provides you with API access,
@@ -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/`
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-notebooks_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.14.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-06-21 00:00:00.000000000 Z
11
+ date: 2021-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Notebooks API V1. Simple REST clients
28
34
  are Ruby client libraries that provide access to Google services via their HTTP
29
35
  REST API endpoints. These libraries are generated and updated automatically based
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-notebooks_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.14.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-notebooks_v1
57
63
  post_install_message:
58
64
  rdoc_options: []