google-apis-notebooks_v1 0.23.0 → 0.26.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: 5789618c2e7b882452883e91d2abeb6f950e2e49cf21c5827661bab1924784e6
4
- data.tar.gz: 5b87b930313d78530685575c6cdef4f96861b75493e612045f339a5380b8d2c5
3
+ metadata.gz: d238bd3c138c71b7146323cc8e67a4e1b15e614e60abfaa3cbadf82107df5100
4
+ data.tar.gz: cc532c9eb4fee89ccc3dcf9af75e6935e1d2591e6ba32e34b2510a615f0242e7
5
5
  SHA512:
6
- metadata.gz: d49a94015cf3f0d91ffa7c795ad2667c48824a7290039beeeb39ce51ef25a6c7546a82e89325bdb95a9091e3c175a657a49562a1574cd9694c20a5f6f6a28578
7
- data.tar.gz: 535b1a4e4dd4ad227b0e2c707bc8999a18a1b2f8f7826f165222546571b5e2a1a97cae5841ee55362b65eae928b393ef7e0da45f8fa26c5edaaafbcd6bc10021
6
+ metadata.gz: bb050c09726f930b433acd407f9f8dca7cad364814875223780810a297f3fbad0f3e5af53b2e78bba470158415bf1fa7e96fe0c829a17fdca815cc0c654b22d3
7
+ data.tar.gz: 60222777aefffe318d7b5f7a5cf2bcb17ef910f56967e9e55ed6a02c8b6ab5be8a977ce8a83d606e7370dcb5c82b3e0fb72505946f11e85d5cfc110a03e56ea0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-notebooks_v1
2
2
 
3
+ ### v0.26.0 (2022-04-16)
4
+
5
+ * Regenerated from discovery document revision 20220415
6
+
7
+ ### v0.25.0 (2022-03-26)
8
+
9
+ * Regenerated from discovery document revision 20220319
10
+
11
+ ### v0.24.0 (2022-03-12)
12
+
13
+ * Regenerated from discovery document revision 20220303
14
+
3
15
  ### v0.23.0 (2022-03-06)
4
16
 
5
17
  * Regenerated from discovery document revision 20220224
@@ -72,7 +72,7 @@ module Google
72
72
  # @return [Google::Apis::NotebooksV1::Expr]
73
73
  attr_accessor :condition
74
74
 
75
- # Specifies the principals requesting access for a Cloud Platform resource. `
75
+ # Specifies the principals requesting access for a Google Cloud resource. `
76
76
  # members` can have the following values: * `allUsers`: A special identifier
77
77
  # that represents anyone who is on the internet; with or without a Google
78
78
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -306,8 +306,7 @@ module Google
306
306
  # A generic empty message that you can re-use to avoid defining duplicated empty
307
307
  # messages in your APIs. A typical example is to use it as the request or the
308
308
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
309
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
310
- # `Empty` is empty JSON object ````.
309
+ # protobuf.Empty) returns (google.protobuf.Empty); `
311
310
  class Empty
312
311
  include Google::Apis::Core::Hashable
313
312
 
@@ -1729,6 +1728,51 @@ module Google
1729
1728
  end
1730
1729
  end
1731
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
+
1732
1776
  # Request for registering a notebook instance.
1733
1777
  class RegisterInstanceRequest
1734
1778
  include Google::Apis::Core::Hashable
@@ -1852,12 +1896,18 @@ module Google
1852
1896
  class ResetRuntimeRequest
1853
1897
  include Google::Apis::Core::Hashable
1854
1898
 
1899
+ # Idempotent request UUID.
1900
+ # Corresponds to the JSON property `requestId`
1901
+ # @return [String]
1902
+ attr_accessor :request_id
1903
+
1855
1904
  def initialize(**args)
1856
1905
  update!(**args)
1857
1906
  end
1858
1907
 
1859
1908
  # Update properties of this object
1860
1909
  def update!(**args)
1910
+ @request_id = args[:request_id] if args.key?(:request_id)
1861
1911
  end
1862
1912
  end
1863
1913
 
@@ -2466,12 +2516,18 @@ module Google
2466
2516
  class StartRuntimeRequest
2467
2517
  include Google::Apis::Core::Hashable
2468
2518
 
2519
+ # Idempotent request UUID.
2520
+ # Corresponds to the JSON property `requestId`
2521
+ # @return [String]
2522
+ attr_accessor :request_id
2523
+
2469
2524
  def initialize(**args)
2470
2525
  update!(**args)
2471
2526
  end
2472
2527
 
2473
2528
  # Update properties of this object
2474
2529
  def update!(**args)
2530
+ @request_id = args[:request_id] if args.key?(:request_id)
2475
2531
  end
2476
2532
  end
2477
2533
 
@@ -2531,12 +2587,18 @@ module Google
2531
2587
  class StopRuntimeRequest
2532
2588
  include Google::Apis::Core::Hashable
2533
2589
 
2590
+ # Idempotent request UUID.
2591
+ # Corresponds to the JSON property `requestId`
2592
+ # @return [String]
2593
+ attr_accessor :request_id
2594
+
2534
2595
  def initialize(**args)
2535
2596
  update!(**args)
2536
2597
  end
2537
2598
 
2538
2599
  # Update properties of this object
2539
2600
  def update!(**args)
2601
+ @request_id = args[:request_id] if args.key?(:request_id)
2540
2602
  end
2541
2603
  end
2542
2604
 
@@ -2559,6 +2621,11 @@ module Google
2559
2621
  # @return [String]
2560
2622
  attr_accessor :machine_type
2561
2623
 
2624
+ # Idempotent request UUID.
2625
+ # Corresponds to the JSON property `requestId`
2626
+ # @return [String]
2627
+ attr_accessor :request_id
2628
+
2562
2629
  def initialize(**args)
2563
2630
  update!(**args)
2564
2631
  end
@@ -2567,6 +2634,7 @@ module Google
2567
2634
  def update!(**args)
2568
2635
  @accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
2569
2636
  @machine_type = args[:machine_type] if args.key?(:machine_type)
2637
+ @request_id = args[:request_id] if args.key?(:request_id)
2570
2638
  end
2571
2639
  end
2572
2640
 
@@ -2575,7 +2643,7 @@ module Google
2575
2643
  include Google::Apis::Core::Hashable
2576
2644
 
2577
2645
  # The set of permissions to check for the `resource`. Permissions with wildcards
2578
- # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
2646
+ # (such as `*` or `storage.*`) are not allowed. For more information see [IAM
2579
2647
  # Overview](https://cloud.google.com/iam/docs/overview#permissions).
2580
2648
  # Corresponds to the JSON property `permissions`
2581
2649
  # @return [Array<String>]
@@ -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.23.0"
19
+ GEM_VERSION = "0.26.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 = "20220224"
25
+ REVISION = "20220415"
26
26
  end
27
27
  end
28
28
  end
@@ -214,6 +214,18 @@ module Google
214
214
  include Google::Apis::Core::JsonObjectSupport
215
215
  end
216
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
+
217
229
  class RegisterInstanceRequest
218
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
231
 
@@ -839,6 +851,21 @@ module Google
839
851
  end
840
852
  end
841
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
+
842
869
  class RegisterInstanceRequest
843
870
  # @private
844
871
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -881,6 +908,7 @@ module Google
881
908
  class ResetRuntimeRequest
882
909
  # @private
883
910
  class Representation < Google::Apis::Core::JsonRepresentation
911
+ property :request_id, as: 'requestId'
884
912
  end
885
913
  end
886
914
 
@@ -1040,6 +1068,7 @@ module Google
1040
1068
  class StartRuntimeRequest
1041
1069
  # @private
1042
1070
  class Representation < Google::Apis::Core::JsonRepresentation
1071
+ property :request_id, as: 'requestId'
1043
1072
  end
1044
1073
  end
1045
1074
 
@@ -1061,6 +1090,7 @@ module Google
1061
1090
  class StopRuntimeRequest
1062
1091
  # @private
1063
1092
  class Representation < Google::Apis::Core::JsonRepresentation
1093
+ property :request_id, as: 'requestId'
1064
1094
  end
1065
1095
  end
1066
1096
 
@@ -1070,6 +1100,7 @@ module Google
1070
1100
  property :accelerator_config, as: 'acceleratorConfig', class: Google::Apis::NotebooksV1::RuntimeAcceleratorConfig, decorator: Google::Apis::NotebooksV1::RuntimeAcceleratorConfig::Representation
1071
1101
 
1072
1102
  property :machine_type, as: 'machineType'
1103
+ property :request_id, as: 'requestId'
1073
1104
  end
1074
1105
  end
1075
1106
 
@@ -84,8 +84,8 @@ module Google
84
84
  # The resource that owns the locations collection, if applicable.
85
85
  # @param [String] filter
86
86
  # A filter to narrow down results to a preferred subset. The filtering language
87
- # accepts strings like "displayName=tokyo", and is documented in more detail in [
88
- # AIP-160](https://google.aip.dev/160).
87
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
88
+ # in [AIP-160](https://google.aip.dev/160).
89
89
  # @param [Fixnum] page_size
90
90
  # The maximum number of results to return. If not set, the service selects a
91
91
  # default.
@@ -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.23.0
4
+ version: 0.26.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-03-07 00:00:00.000000000 Z
11
+ date: 2022-04-18 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.23.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.26.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: []