google-apis-notebooks_v1 0.24.0 → 0.25.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: 111ad3a19efffe17053a09b90f6513901880cef96a2bf94566cd518112ecedbe
4
- data.tar.gz: 4494d0db8106198c3985bb707fe91011c9a7ae818d4030d55e13afaeb3c4e347
3
+ metadata.gz: 712329e355a093b1de23203663d62c558f84c835de4e27ffecd336955bce3a89
4
+ data.tar.gz: d9a74c84a3fed224ceb6c113afdb2783b774f1c92634ea52cb12b0a71d54a2b9
5
5
  SHA512:
6
- metadata.gz: 6bba3a7e88288ec57527e85c41ce0f95d138efee2325aa53468130eb26011e602f6688cc01710a86c30e8fa989dc04143aaea95922993c7bdbc5507b47b5a30d
7
- data.tar.gz: b75052cc851e24c777c332173765f952b539a427615fc5c3afe82866a9b10dbbd80409fcf1643173fbbd7e89fda2704298ff7074936e36662524a02cef18d29a
6
+ metadata.gz: 9e0329b4c661628bc61106dbb64a21919f4d30afcb67b2781d633a3f3f59d4456ad6fa997afc49ba7d552390abec5d64728677d0a7f04fd2fae944e3e3ef0db6
7
+ data.tar.gz: b3e619b579bff10f799e8c16d14adba59671634dac28436a1d0b0cdfd1b2b766237930695a26a20ac2d844422b3886ab1f38c5b8c39afa9be3edddf060836d95
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.24.0 (2022-03-12)
4
8
 
5
9
  * Regenerated from discovery document revision 20220303
@@ -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
@@ -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.24.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 = "20220303"
25
+ REVISION = "20220319"
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
@@ -1538,6 +1538,41 @@ module Google
1538
1538
  execute_or_queue_command(command, &block)
1539
1539
  end
1540
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
+
1541
1576
  # Report and process a runtime event.
1542
1577
  # @param [String] name
1543
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.24.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-03-14 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.24.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: []