google-apis-notebooks_v1 0.22.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90bc8fee592dae026cb81f4a9e682fbcc431c51470cb4ff2dfd60c31c97eee0c
4
- data.tar.gz: 2ebd6f332a24a624729811205390b4ea439d719f64b14766d5b5b24483959740
3
+ metadata.gz: 712329e355a093b1de23203663d62c558f84c835de4e27ffecd336955bce3a89
4
+ data.tar.gz: d9a74c84a3fed224ceb6c113afdb2783b774f1c92634ea52cb12b0a71d54a2b9
5
5
  SHA512:
6
- metadata.gz: 0eab019d70bf8fbf965f578645e6ae7a05acd9b372b9acb4d229b4c813e4064c8a0659c67a0be08c3be791ae013acfcb08852ac4aeeb77b4cbacb90b4987729e
7
- data.tar.gz: f60eafea008516f315a08554d80fd2151c569cc6e38383abe770e0dd9075dc1f3beb9e78f1b9ca5294509b456d47011258d736bcc495cb2022f0f7347e547fa2
6
+ metadata.gz: 9e0329b4c661628bc61106dbb64a21919f4d30afcb67b2781d633a3f3f59d4456ad6fa997afc49ba7d552390abec5d64728677d0a7f04fd2fae944e3e3ef0db6
7
+ data.tar.gz: b3e619b579bff10f799e8c16d14adba59671634dac28436a1d0b0cdfd1b2b766237930695a26a20ac2d844422b3886ab1f38c5b8c39afa9be3edddf060836d95
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-notebooks_v1
2
2
 
3
+ ### v0.25.0 (2022-03-26)
4
+
5
+ * Regenerated from discovery document revision 20220319
6
+
7
+ ### v0.24.0 (2022-03-12)
8
+
9
+ * Regenerated from discovery document revision 20220303
10
+
11
+ ### v0.23.0 (2022-03-06)
12
+
13
+ * Regenerated from discovery document revision 20220224
14
+
3
15
  ### v0.22.0 (2022-02-19)
4
16
 
5
17
  * Regenerated from discovery document revision 20220214
@@ -120,6 +120,20 @@ module Google
120
120
  end
121
121
  end
122
122
 
123
+ # Definition of the boot image used by the Runtime. Used to facilitate runtime
124
+ # upgradeability.
125
+ class BootImage
126
+ include Google::Apis::Core::Hashable
127
+
128
+ def initialize(**args)
129
+ update!(**args)
130
+ end
131
+
132
+ # Update properties of this object
133
+ def update!(**args)
134
+ end
135
+ end
136
+
123
137
  # The request message for Operations.CancelOperation.
124
138
  class CancelOperationRequest
125
139
  include Google::Apis::Core::Hashable
@@ -292,8 +306,7 @@ module Google
292
306
  # A generic empty message that you can re-use to avoid defining duplicated empty
293
307
  # messages in your APIs. A typical example is to use it as the request or the
294
308
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
295
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
296
- # `Empty` is empty JSON object ````.
309
+ # protobuf.Empty) returns (google.protobuf.Empty); `
297
310
  class Empty
298
311
  include Google::Apis::Core::Hashable
299
312
 
@@ -755,6 +768,13 @@ module Google
755
768
  # @return [String]
756
769
  attr_accessor :boot_disk_type
757
770
 
771
+ # Optional. Flag to enable ip forwarding or not, default false/off. https://
772
+ # cloud.google.com/vpc/docs/using-routes#canipforward
773
+ # Corresponds to the JSON property `canIpForward`
774
+ # @return [Boolean]
775
+ attr_accessor :can_ip_forward
776
+ alias_method :can_ip_forward?, :can_ip_forward
777
+
758
778
  # Definition of a container image for starting a notebook instance with the
759
779
  # environment installed in a container.
760
780
  # Corresponds to the JSON property `containerImage`
@@ -962,6 +982,7 @@ module Google
962
982
  @accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
963
983
  @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
964
984
  @boot_disk_type = args[:boot_disk_type] if args.key?(:boot_disk_type)
985
+ @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward)
965
986
  @container_image = args[:container_image] if args.key?(:container_image)
966
987
  @create_time = args[:create_time] if args.key?(:create_time)
967
988
  @creator = args[:creator] if args.key?(:creator)
@@ -1707,6 +1728,51 @@ module Google
1707
1728
  end
1708
1729
  end
1709
1730
 
1731
+ # Request for getting a new access token.
1732
+ class RefreshRuntimeTokenInternalRequest
1733
+ include Google::Apis::Core::Hashable
1734
+
1735
+ # Required. The VM hardware token for authenticating the VM. https://cloud.
1736
+ # google.com/compute/docs/instances/verifying-instance-identity
1737
+ # Corresponds to the JSON property `vmId`
1738
+ # @return [String]
1739
+ attr_accessor :vm_id
1740
+
1741
+ def initialize(**args)
1742
+ update!(**args)
1743
+ end
1744
+
1745
+ # Update properties of this object
1746
+ def update!(**args)
1747
+ @vm_id = args[:vm_id] if args.key?(:vm_id)
1748
+ end
1749
+ end
1750
+
1751
+ # Response with a new access token.
1752
+ class RefreshRuntimeTokenInternalResponse
1753
+ include Google::Apis::Core::Hashable
1754
+
1755
+ # The OAuth 2.0 access token.
1756
+ # Corresponds to the JSON property `accessToken`
1757
+ # @return [String]
1758
+ attr_accessor :access_token
1759
+
1760
+ # Output only. Token expiration time.
1761
+ # Corresponds to the JSON property `expireTime`
1762
+ # @return [String]
1763
+ attr_accessor :expire_time
1764
+
1765
+ def initialize(**args)
1766
+ update!(**args)
1767
+ end
1768
+
1769
+ # Update properties of this object
1770
+ def update!(**args)
1771
+ @access_token = args[:access_token] if args.key?(:access_token)
1772
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
1773
+ end
1774
+ end
1775
+
1710
1776
  # Request for registering a notebook instance.
1711
1777
  class RegisterInstanceRequest
1712
1778
  include Google::Apis::Core::Hashable
@@ -1830,12 +1896,18 @@ module Google
1830
1896
  class ResetRuntimeRequest
1831
1897
  include Google::Apis::Core::Hashable
1832
1898
 
1899
+ # Idempotent request UUID.
1900
+ # Corresponds to the JSON property `requestId`
1901
+ # @return [String]
1902
+ attr_accessor :request_id
1903
+
1833
1904
  def initialize(**args)
1834
1905
  update!(**args)
1835
1906
  end
1836
1907
 
1837
1908
  # Update properties of this object
1838
1909
  def update!(**args)
1910
+ @request_id = args[:request_id] if args.key?(:request_id)
1839
1911
  end
1840
1912
  end
1841
1913
 
@@ -2444,12 +2516,18 @@ module Google
2444
2516
  class StartRuntimeRequest
2445
2517
  include Google::Apis::Core::Hashable
2446
2518
 
2519
+ # Idempotent request UUID.
2520
+ # Corresponds to the JSON property `requestId`
2521
+ # @return [String]
2522
+ attr_accessor :request_id
2523
+
2447
2524
  def initialize(**args)
2448
2525
  update!(**args)
2449
2526
  end
2450
2527
 
2451
2528
  # Update properties of this object
2452
2529
  def update!(**args)
2530
+ @request_id = args[:request_id] if args.key?(:request_id)
2453
2531
  end
2454
2532
  end
2455
2533
 
@@ -2509,12 +2587,18 @@ module Google
2509
2587
  class StopRuntimeRequest
2510
2588
  include Google::Apis::Core::Hashable
2511
2589
 
2590
+ # Idempotent request UUID.
2591
+ # Corresponds to the JSON property `requestId`
2592
+ # @return [String]
2593
+ attr_accessor :request_id
2594
+
2512
2595
  def initialize(**args)
2513
2596
  update!(**args)
2514
2597
  end
2515
2598
 
2516
2599
  # Update properties of this object
2517
2600
  def update!(**args)
2601
+ @request_id = args[:request_id] if args.key?(:request_id)
2518
2602
  end
2519
2603
  end
2520
2604
 
@@ -2537,6 +2621,11 @@ module Google
2537
2621
  # @return [String]
2538
2622
  attr_accessor :machine_type
2539
2623
 
2624
+ # Idempotent request UUID.
2625
+ # Corresponds to the JSON property `requestId`
2626
+ # @return [String]
2627
+ attr_accessor :request_id
2628
+
2540
2629
  def initialize(**args)
2541
2630
  update!(**args)
2542
2631
  end
@@ -2545,6 +2634,7 @@ module Google
2545
2634
  def update!(**args)
2546
2635
  @accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
2547
2636
  @machine_type = args[:machine_type] if args.key?(:machine_type)
2637
+ @request_id = args[:request_id] if args.key?(:request_id)
2548
2638
  end
2549
2639
  end
2550
2640
 
@@ -2876,6 +2966,12 @@ module Google
2876
2966
  # @return [Google::Apis::NotebooksV1::RuntimeAcceleratorConfig]
2877
2967
  attr_accessor :accelerator_config
2878
2968
 
2969
+ # Definition of the boot image used by the Runtime. Used to facilitate runtime
2970
+ # upgradeability.
2971
+ # Corresponds to the JSON property `bootImage`
2972
+ # @return [Google::Apis::NotebooksV1::BootImage]
2973
+ attr_accessor :boot_image
2974
+
2879
2975
  # Optional. Use a list of container images to use as Kernels in the notebook
2880
2976
  # instance.
2881
2977
  # Corresponds to the JSON property `containerImages`
@@ -3000,6 +3096,7 @@ module Google
3000
3096
  # Update properties of this object
3001
3097
  def update!(**args)
3002
3098
  @accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
3099
+ @boot_image = args[:boot_image] if args.key?(:boot_image)
3003
3100
  @container_images = args[:container_images] if args.key?(:container_images)
3004
3101
  @data_disk = args[:data_disk] if args.key?(:data_disk)
3005
3102
  @encryption_config = args[:encryption_config] if args.key?(:encryption_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.22.0"
19
+ GEM_VERSION = "0.25.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220214"
25
+ REVISION = "20220319"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class BootImage
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class CancelOperationRequest
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -208,6 +214,18 @@ module Google
208
214
  include Google::Apis::Core::JsonObjectSupport
209
215
  end
210
216
 
217
+ class RefreshRuntimeTokenInternalRequest
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class RefreshRuntimeTokenInternalResponse
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
211
229
  class RegisterInstanceRequest
212
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
231
 
@@ -472,6 +490,12 @@ module Google
472
490
  end
473
491
  end
474
492
 
493
+ class BootImage
494
+ # @private
495
+ class Representation < Google::Apis::Core::JsonRepresentation
496
+ end
497
+ end
498
+
475
499
  class CancelOperationRequest
476
500
  # @private
477
501
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -621,6 +645,7 @@ module Google
621
645
 
622
646
  property :boot_disk_size_gb, :numeric_string => true, as: 'bootDiskSizeGb'
623
647
  property :boot_disk_type, as: 'bootDiskType'
648
+ property :can_ip_forward, as: 'canIpForward'
624
649
  property :container_image, as: 'containerImage', class: Google::Apis::NotebooksV1::ContainerImage, decorator: Google::Apis::NotebooksV1::ContainerImage::Representation
625
650
 
626
651
  property :create_time, as: 'createTime'
@@ -826,6 +851,21 @@ module Google
826
851
  end
827
852
  end
828
853
 
854
+ class RefreshRuntimeTokenInternalRequest
855
+ # @private
856
+ class Representation < Google::Apis::Core::JsonRepresentation
857
+ property :vm_id, as: 'vmId'
858
+ end
859
+ end
860
+
861
+ class RefreshRuntimeTokenInternalResponse
862
+ # @private
863
+ class Representation < Google::Apis::Core::JsonRepresentation
864
+ property :access_token, as: 'accessToken'
865
+ property :expire_time, as: 'expireTime'
866
+ end
867
+ end
868
+
829
869
  class RegisterInstanceRequest
830
870
  # @private
831
871
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -868,6 +908,7 @@ module Google
868
908
  class ResetRuntimeRequest
869
909
  # @private
870
910
  class Representation < Google::Apis::Core::JsonRepresentation
911
+ property :request_id, as: 'requestId'
871
912
  end
872
913
  end
873
914
 
@@ -1027,6 +1068,7 @@ module Google
1027
1068
  class StartRuntimeRequest
1028
1069
  # @private
1029
1070
  class Representation < Google::Apis::Core::JsonRepresentation
1071
+ property :request_id, as: 'requestId'
1030
1072
  end
1031
1073
  end
1032
1074
 
@@ -1048,6 +1090,7 @@ module Google
1048
1090
  class StopRuntimeRequest
1049
1091
  # @private
1050
1092
  class Representation < Google::Apis::Core::JsonRepresentation
1093
+ property :request_id, as: 'requestId'
1051
1094
  end
1052
1095
  end
1053
1096
 
@@ -1057,6 +1100,7 @@ module Google
1057
1100
  property :accelerator_config, as: 'acceleratorConfig', class: Google::Apis::NotebooksV1::RuntimeAcceleratorConfig, decorator: Google::Apis::NotebooksV1::RuntimeAcceleratorConfig::Representation
1058
1101
 
1059
1102
  property :machine_type, as: 'machineType'
1103
+ property :request_id, as: 'requestId'
1060
1104
  end
1061
1105
  end
1062
1106
 
@@ -1164,6 +1208,8 @@ module Google
1164
1208
  class Representation < Google::Apis::Core::JsonRepresentation
1165
1209
  property :accelerator_config, as: 'acceleratorConfig', class: Google::Apis::NotebooksV1::RuntimeAcceleratorConfig, decorator: Google::Apis::NotebooksV1::RuntimeAcceleratorConfig::Representation
1166
1210
 
1211
+ property :boot_image, as: 'bootImage', class: Google::Apis::NotebooksV1::BootImage, decorator: Google::Apis::NotebooksV1::BootImage::Representation
1212
+
1167
1213
  collection :container_images, as: 'containerImages', class: Google::Apis::NotebooksV1::ContainerImage, decorator: Google::Apis::NotebooksV1::ContainerImage::Representation
1168
1214
 
1169
1215
  property :data_disk, as: 'dataDisk', class: Google::Apis::NotebooksV1::LocalDisk, decorator: Google::Apis::NotebooksV1::LocalDisk::Representation
@@ -1356,6 +1356,8 @@ module Google
1356
1356
  # @param [String] parent
1357
1357
  # Required. Format: `parent=projects/`project_id`/locations/`location``
1358
1358
  # @param [Google::Apis::NotebooksV1::Runtime] runtime_object
1359
+ # @param [String] request_id
1360
+ # Idempotent request UUID.
1359
1361
  # @param [String] runtime_id
1360
1362
  # Required. User-defined unique ID of this Runtime.
1361
1363
  # @param [String] fields
@@ -1375,13 +1377,14 @@ module Google
1375
1377
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1376
1378
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1377
1379
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1378
- def create_project_location_runtime(parent, runtime_object = nil, runtime_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1380
+ def create_project_location_runtime(parent, runtime_object = nil, request_id: nil, runtime_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1379
1381
  command = make_simple_command(:post, 'v1/{+parent}/runtimes', options)
1380
1382
  command.request_representation = Google::Apis::NotebooksV1::Runtime::Representation
1381
1383
  command.request_object = runtime_object
1382
1384
  command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
1383
1385
  command.response_class = Google::Apis::NotebooksV1::Operation
1384
1386
  command.params['parent'] = parent unless parent.nil?
1387
+ command.query['requestId'] = request_id unless request_id.nil?
1385
1388
  command.query['runtimeId'] = runtime_id unless runtime_id.nil?
1386
1389
  command.query['fields'] = fields unless fields.nil?
1387
1390
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1392,6 +1395,8 @@ module Google
1392
1395
  # @param [String] name
1393
1396
  # Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
1394
1397
  # runtime_id``
1398
+ # @param [String] request_id
1399
+ # Idempotent request UUID.
1395
1400
  # @param [String] fields
1396
1401
  # Selector specifying which fields to include in a partial response.
1397
1402
  # @param [String] quota_user
@@ -1409,11 +1414,12 @@ module Google
1409
1414
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1410
1415
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1411
1416
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1412
- def delete_project_location_runtime(name, fields: nil, quota_user: nil, options: nil, &block)
1417
+ def delete_project_location_runtime(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1413
1418
  command = make_simple_command(:delete, 'v1/{+name}', options)
1414
1419
  command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
1415
1420
  command.response_class = Google::Apis::NotebooksV1::Operation
1416
1421
  command.params['name'] = name unless name.nil?
1422
+ command.query['requestId'] = request_id unless request_id.nil?
1417
1423
  command.query['fields'] = fields unless fields.nil?
1418
1424
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1419
1425
  execute_or_queue_command(command, &block)
@@ -1532,6 +1538,41 @@ module Google
1532
1538
  execute_or_queue_command(command, &block)
1533
1539
  end
1534
1540
 
1541
+ # Gets an access token for the consumer service account that the customer
1542
+ # attached to the runtime. Only accessible from the tenant instance.
1543
+ # @param [String] name
1544
+ # Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
1545
+ # runtime_id``
1546
+ # @param [Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalRequest] refresh_runtime_token_internal_request_object
1547
+ # @param [String] fields
1548
+ # Selector specifying which fields to include in a partial response.
1549
+ # @param [String] quota_user
1550
+ # Available to use for quota purposes for server-side applications. Can be any
1551
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1552
+ # @param [Google::Apis::RequestOptions] options
1553
+ # Request-specific options
1554
+ #
1555
+ # @yield [result, err] Result & error if block supplied
1556
+ # @yieldparam result [Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalResponse] parsed result object
1557
+ # @yieldparam err [StandardError] error object if request failed
1558
+ #
1559
+ # @return [Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalResponse]
1560
+ #
1561
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1562
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1563
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1564
+ def refresh_runtime_token_internal(name, refresh_runtime_token_internal_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1565
+ command = make_simple_command(:post, 'v1/{+name}:refreshRuntimeTokenInternal', options)
1566
+ command.request_representation = Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalRequest::Representation
1567
+ command.request_object = refresh_runtime_token_internal_request_object
1568
+ command.response_representation = Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalResponse::Representation
1569
+ command.response_class = Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalResponse
1570
+ command.params['name'] = name unless name.nil?
1571
+ command.query['fields'] = fields unless fields.nil?
1572
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1573
+ execute_or_queue_command(command, &block)
1574
+ end
1575
+
1535
1576
  # Report and process a runtime event.
1536
1577
  # @param [String] name
1537
1578
  # Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
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.22.0
4
+ version: 0.25.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: 2022-02-21 00:00:00.000000000 Z
11
+ date: 2022-03-28 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.22.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.25.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: []