google-apis-notebooks_v1 0.37.0 → 0.38.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: 69f225f52d27ea2444ba0b442e490540a2c2a20e9b52ecd40dafacfb946ac030
4
- data.tar.gz: 8f58a35cb3f9e6033eab2de844aba4081fe0d5a5797f5f7a5a764b510453ee43
3
+ metadata.gz: b8fcd9be2457f87b1482c47077f51fa55df6b1a1fca804bd8021cc5a7e7d3b24
4
+ data.tar.gz: d1feba1d9d7c1c8aa2f9781dd0624a34e52767cd018178c74bdc5acbc67b5faf
5
5
  SHA512:
6
- metadata.gz: cd7299194a4055407dd84d8b09d3880000c9aa24f6cefbc1eb29c5b0aeb64dc7c5fd4ab6f5cf979b988cb0923d56bb2fb27f2790d97022c901c204e153386842
7
- data.tar.gz: 2e003c58e4a3f6b8d9c954850e343b3d7aebb70de2b96c7451994c3862b770c871cfbd9fa100986d34172ec26b630015b31dff707227926ebd5e1c8188727dfc
6
+ metadata.gz: 533db26dc21f9a11f9512ea02b28f53c452d11f3fc40731d75e4269bb9cb1ad9555f03499f2007c11303d34355ffb23899a49f96acf9815675b97f9b9f2699da
7
+ data.tar.gz: 64b178302030ba7055105be41d43516c407fcce8fbad4b6651598147f79a96c31442cf7c69bc22c8c5f6009003aaba6e6cb24f2398d1ba9df803d84a039bb3ca
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-notebooks_v1
2
2
 
3
+ ### v0.38.0 (2023-01-29)
4
+
5
+ * Regenerated from discovery document revision 20230124
6
+ * Regenerated using generator version 0.11.1
7
+
3
8
  ### v0.37.0 (2022-12-19)
4
9
 
5
10
  * Regenerated from discovery document revision 20221213
@@ -23,8 +23,9 @@ module Google
23
23
  module NotebooksV1
24
24
 
25
25
  # Definition of a hardware accelerator. Note that not all combinations of `type`
26
- # and `core_count` are valid. Check [GPUs on Compute Engine](/compute/docs/gpus/#
27
- # gpus-list) to find a valid combination. TPUs are not supported.
26
+ # and `core_count` are valid. Check [GPUs on Compute Engine](https://cloud.
27
+ # google.com/compute/docs/gpus/#gpus-list) to find a valid combination. TPUs are
28
+ # not supported.
28
29
  class AcceleratorConfig
29
30
  include Google::Apis::Core::Hashable
30
31
 
@@ -87,22 +88,22 @@ module Google
87
88
  # kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
88
89
  # project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
89
90
  # email address that represents a Google group. For example, `admins@example.com`
90
- # . * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
91
- # identifier) representing a user that has been recently deleted. For example, `
92
- # alice@example.com?uid=123456789012345678901`. If the user is recovered, this
93
- # value reverts to `user:`emailid`` and the recovered user retains the role in
94
- # the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
95
- # address (plus unique identifier) representing a service account that has been
96
- # recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
91
+ # . * `domain:`domain``: The G Suite domain (primary) that represents all the
92
+ # users of that domain. For example, `google.com` or `example.com`. * `deleted:
93
+ # user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
94
+ # representing a user that has been recently deleted. For example, `alice@
95
+ # example.com?uid=123456789012345678901`. If the user is recovered, this value
96
+ # reverts to `user:`emailid`` and the recovered user retains the role in the
97
+ # binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
98
+ # (plus unique identifier) representing a service account that has been recently
99
+ # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
97
100
  # 123456789012345678901`. If the service account is undeleted, this value
98
101
  # reverts to `serviceAccount:`emailid`` and the undeleted service account
99
102
  # retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
100
103
  # An email address (plus unique identifier) representing a Google group that has
101
104
  # been recently deleted. For example, `admins@example.com?uid=
102
105
  # 123456789012345678901`. If the group is recovered, this value reverts to `
103
- # group:`emailid`` and the recovered group retains the role in the binding. * `
104
- # domain:`domain``: The G Suite domain (primary) that represents all the users
105
- # of that domain. For example, `google.com` or `example.com`.
106
+ # group:`emailid`` and the recovered group retains the role in the binding.
106
107
  # Corresponds to the JSON property `members`
107
108
  # @return [Array<String>]
108
109
  attr_accessor :members
@@ -311,8 +312,8 @@ module Google
311
312
  attr_accessor :boot
312
313
  alias_method :boot?, :boot
313
314
 
314
- # Indicates a unique device name of your choice that is reflected into the /dev/
315
- # disk/by-id/google-* tree of a Linux operating system running within the
315
+ # Indicates a unique device name of your choice that is reflected into the `/dev/
316
+ # disk/by-id/google-*` tree of a Linux operating system running within the
316
317
  # instance. This name can be used to reference the device for mounting, resizing,
317
318
  # and so on, from within the instance. If not specified, the server chooses a
318
319
  # default device name to apply to this disk, in the form persistent-disk-x,
@@ -345,8 +346,8 @@ module Google
345
346
  # SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and
346
347
  # the request will fail if you attempt to attach a persistent disk in any other
347
348
  # format than SCSI. Local SSDs can use either NVME or SCSI. For performance
348
- # characteristics of SCSI over NVMe, see Local SSD performance. Valid values: *
349
- # NVME * SCSI
349
+ # characteristics of SCSI over NVMe, see Local SSD performance. Valid values: * `
350
+ # NVME` * `SCSI`
350
351
  # Corresponds to the JSON property `interface`
351
352
  # @return [String]
352
353
  attr_accessor :interface
@@ -362,9 +363,9 @@ module Google
362
363
  # @return [Array<String>]
363
364
  attr_accessor :licenses
364
365
 
365
- # The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not
366
- # specified, the default is to attach the disk in READ_WRITE mode. Valid values:
367
- # * READ_ONLY * READ_WRITE
366
+ # The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`. If
367
+ # not specified, the default is to attach the disk in `READ_WRITE` mode. Valid
368
+ # values: * `READ_ONLY` * `READ_WRITE`
368
369
  # Corresponds to the JSON property `mode`
369
370
  # @return [String]
370
371
  attr_accessor :mode
@@ -374,8 +375,8 @@ module Google
374
375
  # @return [String]
375
376
  attr_accessor :source
376
377
 
377
- # Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values: *
378
- # PERSISTENT * SCRATCH
378
+ # Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`. Valid values:
379
+ # * `PERSISTENT` * `SCRATCH`
379
380
  # Corresponds to the JSON property `type`
380
381
  # @return [String]
381
382
  attr_accessor :type
@@ -825,9 +826,9 @@ module Google
825
826
  include Google::Apis::Core::Hashable
826
827
 
827
828
  # The ID of a supported feature. Read Enabling guest operating system features
828
- # to see a list of available options. Valid values: * FEATURE_TYPE_UNSPECIFIED *
829
- # MULTI_IP_SUBNET * SECURE_BOOT * UEFI_COMPATIBLE * VIRTIO_SCSI_MULTIQUEUE *
830
- # WINDOWS
829
+ # to see a list of available options. Valid values: * `FEATURE_TYPE_UNSPECIFIED`
830
+ # * `MULTI_IP_SUBNET` * `SECURE_BOOT` * `UEFI_COMPATIBLE` * `
831
+ # VIRTIO_SCSI_MULTIQUEUE` * `WINDOWS`
831
832
  # Corresponds to the JSON property `type`
832
833
  # @return [String]
833
834
  attr_accessor :type
@@ -847,8 +848,9 @@ module Google
847
848
  include Google::Apis::Core::Hashable
848
849
 
849
850
  # Definition of a hardware accelerator. Note that not all combinations of `type`
850
- # and `core_count` are valid. Check [GPUs on Compute Engine](/compute/docs/gpus/#
851
- # gpus-list) to find a valid combination. TPUs are not supported.
851
+ # and `core_count` are valid. Check [GPUs on Compute Engine](https://cloud.
852
+ # google.com/compute/docs/gpus/#gpus-list) to find a valid combination. TPUs are
853
+ # not supported.
852
854
  # Corresponds to the JSON property `acceleratorConfig`
853
855
  # @return [Google::Apis::NotebooksV1::AcceleratorConfig]
854
856
  attr_accessor :accelerator_config
@@ -948,8 +950,8 @@ module Google
948
950
  # @return [Hash<String,String>]
949
951
  attr_accessor :labels
950
952
 
951
- # Required. The [Compute Engine machine type](/compute/docs/machine-types) of
952
- # this instance.
953
+ # Required. The [Compute Engine machine type](https://cloud.google.com/compute/
954
+ # docs/machine-types) of this instance.
953
955
  # Corresponds to the JSON property `machineType`
954
956
  # @return [String]
955
957
  attr_accessor :machine_type
@@ -1033,7 +1035,8 @@ module Google
1033
1035
  attr_accessor :service_account_scopes
1034
1036
 
1035
1037
  # A set of Shielded Instance options. Check [Images using supported Shielded VM
1036
- # features] Not all combinations are valid.
1038
+ # features](https://cloud.google.com/compute/docs/instances/modifying-shielded-
1039
+ # vm). Not all combinations are valid.
1037
1040
  # Corresponds to the JSON property `shieldedInstanceConfig`
1038
1041
  # @return [Google::Apis::NotebooksV1::ShieldedInstanceConfig]
1039
1042
  attr_accessor :shielded_instance_config
@@ -1265,8 +1268,8 @@ module Google
1265
1268
  # @return [String]
1266
1269
  attr_accessor :next_page_token
1267
1270
 
1268
- # Locations that could not be reached. For example, ['us-west1-a', 'us-central1-
1269
- # b']. A ListInstancesResponse will only contain either instances or
1271
+ # Locations that could not be reached. For example, `['us-west1-a', 'us-central1-
1272
+ # b']`. A ListInstancesResponse will only contain either instances or
1270
1273
  # unreachables,
1271
1274
  # Corresponds to the JSON property `unreachable`
1272
1275
  # @return [Array<String>]
@@ -1349,8 +1352,8 @@ module Google
1349
1352
  # @return [Array<Google::Apis::NotebooksV1::Runtime>]
1350
1353
  attr_accessor :runtimes
1351
1354
 
1352
- # Locations that could not be reached. For example, ['us-west1', 'us-central1'].
1353
- # A ListRuntimesResponse will only contain either runtimes or unreachables,
1355
+ # Locations that could not be reached. For example, `['us-west1', 'us-central1']`
1356
+ # . A ListRuntimesResponse will only contain either runtimes or unreachables,
1354
1357
  # Corresponds to the JSON property `unreachable`
1355
1358
  # @return [Array<String>]
1356
1359
  attr_accessor :unreachable
@@ -1420,7 +1423,7 @@ module Google
1420
1423
  alias_method :boot?, :boot
1421
1424
 
1422
1425
  # Optional. Output only. Specifies a unique device name of your choice that is
1423
- # reflected into the /dev/disk/by-id/google-* tree of a Linux operating system
1426
+ # reflected into the `/dev/disk/by-id/google-*` tree of a Linux operating system
1424
1427
  # running within the instance. This name can be used to reference the device for
1425
1428
  # mounting, resizing, and so on, from within the instance. If not specified, the
1426
1429
  # server chooses a default device name to apply to this disk, in the form
@@ -1456,8 +1459,8 @@ module Google
1456
1459
  # SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and
1457
1460
  # the request will fail if you attempt to attach a persistent disk in any other
1458
1461
  # format than SCSI. Local SSDs can use either NVME or SCSI. For performance
1459
- # characteristics of SCSI over NVMe, see Local SSD performance. Valid values: *
1460
- # NVME * SCSI
1462
+ # characteristics of SCSI over NVMe, see Local SSD performance. Valid values: * `
1463
+ # NVME` * `SCSI`
1461
1464
  # Corresponds to the JSON property `interface`
1462
1465
  # @return [String]
1463
1466
  attr_accessor :interface
@@ -1473,9 +1476,9 @@ module Google
1473
1476
  # @return [Array<String>]
1474
1477
  attr_accessor :licenses
1475
1478
 
1476
- # The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not
1477
- # specified, the default is to attach the disk in READ_WRITE mode. Valid values:
1478
- # * READ_ONLY * READ_WRITE
1479
+ # The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`. If
1480
+ # not specified, the default is to attach the disk in `READ_WRITE` mode. Valid
1481
+ # values: * `READ_ONLY` * `READ_WRITE`
1479
1482
  # Corresponds to the JSON property `mode`
1480
1483
  # @return [String]
1481
1484
  attr_accessor :mode
@@ -1485,8 +1488,9 @@ module Google
1485
1488
  # @return [String]
1486
1489
  attr_accessor :source
1487
1490
 
1488
- # Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified,
1489
- # the default is PERSISTENT. Valid values: * PERSISTENT * SCRATCH
1491
+ # Specifies the type of the disk, either `SCRATCH` or `PERSISTENT`. If not
1492
+ # specified, the default is `PERSISTENT`. Valid values: * `PERSISTENT` * `
1493
+ # SCRATCH`
1490
1494
  # Corresponds to the JSON property `type`
1491
1495
  # @return [String]
1492
1496
  attr_accessor :type
@@ -1893,6 +1897,32 @@ module Google
1893
1897
  end
1894
1898
  end
1895
1899
 
1900
+ # Request for reporting a Managed Notebook Event.
1901
+ class ReportInstanceEventRequest
1902
+ include Google::Apis::Core::Hashable
1903
+
1904
+ # The definition of an Event for a managed / semi-managed notebook instance.
1905
+ # Corresponds to the JSON property `event`
1906
+ # @return [Google::Apis::NotebooksV1::Event]
1907
+ attr_accessor :event
1908
+
1909
+ # Required. The VM hardware token for authenticating the VM. https://cloud.
1910
+ # google.com/compute/docs/instances/verifying-instance-identity
1911
+ # Corresponds to the JSON property `vmId`
1912
+ # @return [String]
1913
+ attr_accessor :vm_id
1914
+
1915
+ def initialize(**args)
1916
+ update!(**args)
1917
+ end
1918
+
1919
+ # Update properties of this object
1920
+ def update!(**args)
1921
+ @event = args[:event] if args.key?(:event)
1922
+ @vm_id = args[:vm_id] if args.key?(:vm_id)
1923
+ end
1924
+ end
1925
+
1896
1926
  # Request for notebook instances to report information to Notebooks API.
1897
1927
  class ReportInstanceInfoRequest
1898
1928
  include Google::Apis::Core::Hashable
@@ -2013,8 +2043,8 @@ module Google
2013
2043
  class RollbackInstanceRequest
2014
2044
  include Google::Apis::Core::Hashable
2015
2045
 
2016
- # Required. The snapshot for rollback. Example: "projects/test-project/global/
2017
- # snapshots/krwlzipynril".
2046
+ # Required. The snapshot for rollback. Example: `projects/test-project/global/
2047
+ # snapshots/krwlzipynril`.
2018
2048
  # Corresponds to the JSON property `targetSnapshot`
2019
2049
  # @return [String]
2020
2050
  attr_accessor :target_snapshot
@@ -2048,6 +2078,16 @@ module Google
2048
2078
  # @return [String]
2049
2079
  attr_accessor :health_state
2050
2080
 
2081
+ # Optional. The labels to associate with this Managed Notebook or Runtime. Label
2082
+ # **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https:
2083
+ # //www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if
2084
+ # present, must contain 1 to 63 characters, and must conform to [RFC 1035](https:
2085
+ # //www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with
2086
+ # a cluster.
2087
+ # Corresponds to the JSON property `labels`
2088
+ # @return [Hash<String,String>]
2089
+ attr_accessor :labels
2090
+
2051
2091
  # Contains runtime daemon metrics, such as OS and kernels and sessions stats.
2052
2092
  # Corresponds to the JSON property `metrics`
2053
2093
  # @return [Google::Apis::NotebooksV1::RuntimeMetrics]
@@ -2091,6 +2131,7 @@ module Google
2091
2131
  @access_config = args[:access_config] if args.key?(:access_config)
2092
2132
  @create_time = args[:create_time] if args.key?(:create_time)
2093
2133
  @health_state = args[:health_state] if args.key?(:health_state)
2134
+ @labels = args[:labels] if args.key?(:labels)
2094
2135
  @metrics = args[:metrics] if args.key?(:metrics)
2095
2136
  @name = args[:name] if args.key?(:name)
2096
2137
  @software_config = args[:software_config] if args.key?(:software_config)
@@ -2172,9 +2213,9 @@ module Google
2172
2213
 
2173
2214
  # The ID of a supported feature. Read [Enabling guest operating system features](
2174
2215
  # https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-
2175
- # images#guest-os-features) to see a list of available options. Valid values: *
2176
- # FEATURE_TYPE_UNSPECIFIED * MULTI_IP_SUBNET * SECURE_BOOT * UEFI_COMPATIBLE *
2177
- # VIRTIO_SCSI_MULTIQUEUE * WINDOWS
2216
+ # images#guest-os-features) to see a list of available options. Valid values: * `
2217
+ # FEATURE_TYPE_UNSPECIFIED` * `MULTI_IP_SUBNET` * `SECURE_BOOT` * `
2218
+ # UEFI_COMPATIBLE` * `VIRTIO_SCSI_MULTIQUEUE` * `WINDOWS`
2178
2219
  # Corresponds to the JSON property `type`
2179
2220
  # @return [String]
2180
2221
  attr_accessor :type
@@ -2362,7 +2403,7 @@ module Google
2362
2403
  attr_accessor :create_time
2363
2404
 
2364
2405
  # Cron-tab formatted schedule by which the job will execute. Format: minute,
2365
- # hour, day of month, month, day of week, e.g. 0 0 * * WED = every Wednesday
2406
+ # hour, day of month, month, day of week, e.g. `0 0 * * WED` = every Wednesday
2366
2407
  # More examples: https://crontab.guru/examples.html
2367
2408
  # Corresponds to the JSON property `cronSchedule`
2368
2409
  # @return [String]
@@ -2374,7 +2415,7 @@ module Google
2374
2415
  attr_accessor :description
2375
2416
 
2376
2417
  # Output only. Display name used for UI purposes. Name can only contain
2377
- # alphanumeric characters, hyphens '-', and underscores '_'.
2418
+ # alphanumeric characters, hyphens `-`, and underscores `_`.
2378
2419
  # Corresponds to the JSON property `displayName`
2379
2420
  # @return [String]
2380
2421
  attr_accessor :display_name
@@ -2577,7 +2618,8 @@ module Google
2577
2618
  end
2578
2619
 
2579
2620
  # A set of Shielded Instance options. Check [Images using supported Shielded VM
2580
- # features] Not all combinations are valid.
2621
+ # features](https://cloud.google.com/compute/docs/instances/modifying-shielded-
2622
+ # vm). Not all combinations are valid.
2581
2623
  class ShieldedInstanceConfig
2582
2624
  include Google::Apis::Core::Hashable
2583
2625
 
@@ -2873,7 +2915,8 @@ module Google
2873
2915
  include Google::Apis::Core::Hashable
2874
2916
 
2875
2917
  # A set of Shielded Instance options. Check [Images using supported Shielded VM
2876
- # features] Not all combinations are valid.
2918
+ # features](https://cloud.google.com/compute/docs/instances/modifying-shielded-
2919
+ # vm). Not all combinations are valid.
2877
2920
  # Corresponds to the JSON property `shieldedInstanceConfig`
2878
2921
  # @return [Google::Apis::NotebooksV1::ShieldedInstanceConfig]
2879
2922
  attr_accessor :shielded_instance_config
@@ -2922,7 +2965,7 @@ module Google
2922
2965
  # @return [String]
2923
2966
  attr_accessor :state
2924
2967
 
2925
- # Target VM Image. Format: ainotebooks-vm/project/image-name/name.
2968
+ # Target VM Image. Format: `ainotebooks-vm/project/image-name/name`.
2926
2969
  # Corresponds to the JSON property `targetImage`
2927
2970
  # @return [String]
2928
2971
  attr_accessor :target_image
@@ -3033,18 +3076,19 @@ module Google
3033
3076
  include Google::Apis::Core::Hashable
3034
3077
 
3035
3078
  # Environment variables. At most 100 environment variables can be specified and
3036
- # unique. Example: GCP_BUCKET=gs://my-bucket/samples/
3079
+ # unique. Example: `GCP_BUCKET=gs://my-bucket/samples/`
3037
3080
  # Corresponds to the JSON property `env`
3038
3081
  # @return [Hash<String,String>]
3039
3082
  attr_accessor :env
3040
3083
 
3041
- # The full name of the Compute Engine [network](/compute/docs/networks-and-
3042
- # firewalls#networks) to which the Job should be peered. For example, `projects/
3043
- # 12345/global/networks/myVPC`. [Format](https://cloud.google.com/compute/docs/
3044
- # reference/rest/v1/networks/insert) is of the form `projects/`project`/global/
3045
- # networks/`network``. Where `project` is a project number, as in `12345`, and `
3046
- # network` is a network name. Private services access must already be configured
3047
- # for the network. If left unspecified, the job is not peered with any network.
3084
+ # The full name of the Compute Engine [network](https://cloud.google.com/compute/
3085
+ # docs/networks-and-firewalls#networks) to which the Job should be peered. For
3086
+ # example, `projects/12345/global/networks/myVPC`. [Format](https://cloud.google.
3087
+ # com/compute/docs/reference/rest/v1/networks/insert) is of the form `projects/`
3088
+ # project`/global/networks/`network``. Where ``project`` is a project number, as
3089
+ # in `12345`, and ``network`` is a network name. Private services access must
3090
+ # already be configured for the network. If left unspecified, the job is not
3091
+ # peered with any network.
3048
3092
  # Corresponds to the JSON property `network`
3049
3093
  # @return [String]
3050
3094
  attr_accessor :network
@@ -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.37.0"
19
+ GEM_VERSION = "0.38.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221213"
25
+ REVISION = "20230124"
26
26
  end
27
27
  end
28
28
  end
@@ -250,6 +250,12 @@ module Google
250
250
  include Google::Apis::Core::JsonObjectSupport
251
251
  end
252
252
 
253
+ class ReportInstanceEventRequest
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
253
259
  class ReportInstanceInfoRequest
254
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
261
 
@@ -924,6 +930,15 @@ module Google
924
930
  end
925
931
  end
926
932
 
933
+ class ReportInstanceEventRequest
934
+ # @private
935
+ class Representation < Google::Apis::Core::JsonRepresentation
936
+ property :event, as: 'event', class: Google::Apis::NotebooksV1::Event, decorator: Google::Apis::NotebooksV1::Event::Representation
937
+
938
+ property :vm_id, as: 'vmId'
939
+ end
940
+ end
941
+
927
942
  class ReportInstanceInfoRequest
928
943
  # @private
929
944
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -977,6 +992,7 @@ module Google
977
992
 
978
993
  property :create_time, as: 'createTime'
979
994
  property :health_state, as: 'healthState'
995
+ hash :labels, as: 'labels'
980
996
  property :metrics, as: 'metrics', class: Google::Apis::NotebooksV1::RuntimeMetrics, decorator: Google::Apis::NotebooksV1::RuntimeMetrics::Representation
981
997
 
982
998
  property :name, as: 'name'
@@ -363,7 +363,7 @@ module Google
363
363
  # Required. Format: `parent=projects/`project_id`/locations/`location``
364
364
  # @param [String] filter
365
365
  # Filter applied to resulting executions. Currently only supports filtering
366
- # executions by a specified schedule_id. Format: `schedule_id=`
366
+ # executions by a specified `schedule_id`. Format: `schedule_id=`
367
367
  # @param [String] order_by
368
368
  # Sort by field.
369
369
  # @param [Fixnum] page_size
@@ -754,6 +754,40 @@ module Google
754
754
  execute_or_queue_command(command, &block)
755
755
  end
756
756
 
757
+ # Reports and processes an instance event.
758
+ # @param [String] name
759
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
760
+ # instance_id``
761
+ # @param [Google::Apis::NotebooksV1::ReportInstanceEventRequest] report_instance_event_request_object
762
+ # @param [String] fields
763
+ # Selector specifying which fields to include in a partial response.
764
+ # @param [String] quota_user
765
+ # Available to use for quota purposes for server-side applications. Can be any
766
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
767
+ # @param [Google::Apis::RequestOptions] options
768
+ # Request-specific options
769
+ #
770
+ # @yield [result, err] Result & error if block supplied
771
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
772
+ # @yieldparam err [StandardError] error object if request failed
773
+ #
774
+ # @return [Google::Apis::NotebooksV1::Operation]
775
+ #
776
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
777
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
778
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
779
+ def report_project_location_instance_event(name, report_instance_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
780
+ command = make_simple_command(:post, 'v1/{+name}:reportEvent', options)
781
+ command.request_representation = Google::Apis::NotebooksV1::ReportInstanceEventRequest::Representation
782
+ command.request_object = report_instance_event_request_object
783
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
784
+ command.response_class = Google::Apis::NotebooksV1::Operation
785
+ command.params['name'] = name unless name.nil?
786
+ command.query['fields'] = fields unless fields.nil?
787
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
788
+ execute_or_queue_command(command, &block)
789
+ end
790
+
757
791
  # Resets a notebook instance.
758
792
  # @param [String] name
759
793
  # Required. Format: `projects/`project_id`/locations/`location`/instances/`
@@ -1624,9 +1658,10 @@ module Google
1624
1658
  # request body would specify the new value, as follows: ` "software_config":` "
1625
1659
  # kernels": [` 'repository': 'gcr.io/deeplearning-platform-release/pytorch-gpu',
1626
1660
  # 'tag': 'latest' `], ` ` Currently, only the following fields can be updated: -
1627
- # software_config.kernels - software_config.post_startup_script -
1628
- # software_config.custom_gpu_driver_path - software_config.idle_shutdown -
1629
- # software_config.idle_shutdown_timeout - software_config.disable_terminal
1661
+ # `software_config.kernels` - `software_config.post_startup_script` - `
1662
+ # software_config.custom_gpu_driver_path` - `software_config.idle_shutdown` - `
1663
+ # software_config.idle_shutdown_timeout` - `software_config.disable_terminal` - `
1664
+ # labels`
1630
1665
  # @param [String] fields
1631
1666
  # Selector specifying which fields to include in a partial response.
1632
1667
  # @param [String] quota_user
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.37.0
4
+ version: 0.38.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: 2023-01-04 00:00:00.000000000 Z
11
+ date: 2023-01-29 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/main/generated/google-apis-notebooks_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.37.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.38.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-notebooks_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Notebooks API V1