google-apis-notebooks_v2 0.24.0 → 0.26.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a082263484948a5d45bfd682bc47670bd14080fe78586447a081bcb1f9ee444b
|
4
|
+
data.tar.gz: 03d80c99e5b852fba06f4684caeb674953ada771dc71a5e5a5fe1a9203eb5c4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c627a103abe56a66218690ecca25ce24d16d5b7be56d3581604595bba5b14b1f15c550d46d94b6d463f750081a0958f1a65af6e2ba462ad5f6ee3fc6f7ab86da
|
7
|
+
data.tar.gz: 2a86cb1762151c22a1732ca42bef5f232e6a2ba5a73f84047c985fd547c9e8508be0fbd10183a55a8e4a35ad3e4fc09668e7bb1e43abe7508c5791f7eda2aafb
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-notebooks_v2
|
2
2
|
|
3
|
+
### v0.26.0 (2025-07-20)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250710
|
6
|
+
|
7
|
+
### v0.25.0 (2025-06-15)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250604
|
10
|
+
|
3
11
|
### v0.24.0 (2025-06-08)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20250528
|
@@ -230,6 +230,60 @@ module Google
|
|
230
230
|
end
|
231
231
|
end
|
232
232
|
|
233
|
+
# Request message for checking authorization for the instance owner.
|
234
|
+
class CheckAuthorizationRequest
|
235
|
+
include Google::Apis::Core::Hashable
|
236
|
+
|
237
|
+
# Optional. The details of the OAuth authorization response. This may include
|
238
|
+
# additional params such as dry_run, version_info, origin, propagate, etc.
|
239
|
+
# Corresponds to the JSON property `authorizationDetails`
|
240
|
+
# @return [Hash<String,String>]
|
241
|
+
attr_accessor :authorization_details
|
242
|
+
|
243
|
+
def initialize(**args)
|
244
|
+
update!(**args)
|
245
|
+
end
|
246
|
+
|
247
|
+
# Update properties of this object
|
248
|
+
def update!(**args)
|
249
|
+
@authorization_details = args[:authorization_details] if args.key?(:authorization_details)
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
# Response message for checking authorization for the instance owner.
|
254
|
+
class CheckAuthorizationResponse
|
255
|
+
include Google::Apis::Core::Hashable
|
256
|
+
|
257
|
+
# Output only. Timestamp when this Authorization request was created.
|
258
|
+
# Corresponds to the JSON property `createTime`
|
259
|
+
# @return [String]
|
260
|
+
attr_accessor :create_time
|
261
|
+
|
262
|
+
# If the user has not completed OAuth consent, then the oauth_url is returned.
|
263
|
+
# Otherwise, this field is not set.
|
264
|
+
# Corresponds to the JSON property `oauth_uri`
|
265
|
+
# @return [String]
|
266
|
+
attr_accessor :oauth_uri
|
267
|
+
|
268
|
+
# Success indicates that the user completed OAuth consent and access tokens can
|
269
|
+
# be generated.
|
270
|
+
# Corresponds to the JSON property `success`
|
271
|
+
# @return [Boolean]
|
272
|
+
attr_accessor :success
|
273
|
+
alias_method :success?, :success
|
274
|
+
|
275
|
+
def initialize(**args)
|
276
|
+
update!(**args)
|
277
|
+
end
|
278
|
+
|
279
|
+
# Update properties of this object
|
280
|
+
def update!(**args)
|
281
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
282
|
+
@oauth_uri = args[:oauth_uri] if args.key?(:oauth_uri)
|
283
|
+
@success = args[:success] if args.key?(:success)
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
233
287
|
# Response for checking if a notebook instance is upgradeable.
|
234
288
|
class CheckInstanceUpgradabilityResponse
|
235
289
|
include Google::Apis::Core::Hashable
|
@@ -762,6 +816,66 @@ module Google
|
|
762
816
|
end
|
763
817
|
end
|
764
818
|
|
819
|
+
# Request message for generating an EUC for the instance owner.
|
820
|
+
class GenerateAccessTokenRequest
|
821
|
+
include Google::Apis::Core::Hashable
|
822
|
+
|
823
|
+
# Required. The VM identity token (a JWT) for authenticating the VM. https://
|
824
|
+
# cloud.google.com/compute/docs/instances/verifying-instance-identity
|
825
|
+
# Corresponds to the JSON property `vmToken`
|
826
|
+
# @return [String]
|
827
|
+
attr_accessor :vm_token
|
828
|
+
|
829
|
+
def initialize(**args)
|
830
|
+
update!(**args)
|
831
|
+
end
|
832
|
+
|
833
|
+
# Update properties of this object
|
834
|
+
def update!(**args)
|
835
|
+
@vm_token = args[:vm_token] if args.key?(:vm_token)
|
836
|
+
end
|
837
|
+
end
|
838
|
+
|
839
|
+
# Response message for generating an EUC for the instance owner.
|
840
|
+
class GenerateAccessTokenResponse
|
841
|
+
include Google::Apis::Core::Hashable
|
842
|
+
|
843
|
+
# Short-lived access token string which may be used to access Google APIs.
|
844
|
+
# Corresponds to the JSON property `access_token`
|
845
|
+
# @return [String]
|
846
|
+
attr_accessor :access_token
|
847
|
+
|
848
|
+
# The time in seconds when the access token expires. Typically that's 3600.
|
849
|
+
# Corresponds to the JSON property `expires_in`
|
850
|
+
# @return [Fixnum]
|
851
|
+
attr_accessor :expires_in
|
852
|
+
|
853
|
+
# Space-separated list of scopes contained in the returned token. https://cloud.
|
854
|
+
# google.com/docs/authentication/token-types#access-contents
|
855
|
+
# Corresponds to the JSON property `scope`
|
856
|
+
# @return [String]
|
857
|
+
attr_accessor :scope
|
858
|
+
|
859
|
+
# Type of the returned access token (e.g. "Bearer"). It specifies how the token
|
860
|
+
# must be used. Bearer tokens may be used by any entity without proof of
|
861
|
+
# identity.
|
862
|
+
# Corresponds to the JSON property `token_type`
|
863
|
+
# @return [String]
|
864
|
+
attr_accessor :token_type
|
865
|
+
|
866
|
+
def initialize(**args)
|
867
|
+
update!(**args)
|
868
|
+
end
|
869
|
+
|
870
|
+
# Update properties of this object
|
871
|
+
def update!(**args)
|
872
|
+
@access_token = args[:access_token] if args.key?(:access_token)
|
873
|
+
@expires_in = args[:expires_in] if args.key?(:expires_in)
|
874
|
+
@scope = args[:scope] if args.key?(:scope)
|
875
|
+
@token_type = args[:token_type] if args.key?(:token_type)
|
876
|
+
end
|
877
|
+
end
|
878
|
+
|
765
879
|
# ConfigImage represents an image release available to create a WbI
|
766
880
|
class ImageRelease
|
767
881
|
include Google::Apis::Core::Hashable
|
@@ -815,6 +929,12 @@ module Google
|
|
815
929
|
attr_accessor :enable_deletion_protection
|
816
930
|
alias_method :enable_deletion_protection?, :enable_deletion_protection
|
817
931
|
|
932
|
+
# Optional. Flag to enable managed end user credentials for the instance.
|
933
|
+
# Corresponds to the JSON property `enableManagedEuc`
|
934
|
+
# @return [Boolean]
|
935
|
+
attr_accessor :enable_managed_euc
|
936
|
+
alias_method :enable_managed_euc?, :enable_managed_euc
|
937
|
+
|
818
938
|
# Optional. Flag that specifies that a notebook can be accessed with third party
|
819
939
|
# identity provider.
|
820
940
|
# Corresponds to the JSON property `enableThirdPartyIdentity`
|
@@ -913,6 +1033,7 @@ module Google
|
|
913
1033
|
@creator = args[:creator] if args.key?(:creator)
|
914
1034
|
@disable_proxy_access = args[:disable_proxy_access] if args.key?(:disable_proxy_access)
|
915
1035
|
@enable_deletion_protection = args[:enable_deletion_protection] if args.key?(:enable_deletion_protection)
|
1036
|
+
@enable_managed_euc = args[:enable_managed_euc] if args.key?(:enable_managed_euc)
|
916
1037
|
@enable_third_party_identity = args[:enable_third_party_identity] if args.key?(:enable_third_party_identity)
|
917
1038
|
@gce_setup = args[:gce_setup] if args.key?(:gce_setup)
|
918
1039
|
@health_info = args[:health_info] if args.key?(:health_info)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module NotebooksV2
|
18
18
|
# Version of the google-apis-notebooks_v2 gem
|
19
|
-
GEM_VERSION = "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.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250710"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -52,6 +52,18 @@ module Google
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
+
class CheckAuthorizationRequest
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class CheckAuthorizationResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
55
67
|
class CheckInstanceUpgradabilityResponse
|
56
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
69
|
|
@@ -130,6 +142,18 @@ module Google
|
|
130
142
|
include Google::Apis::Core::JsonObjectSupport
|
131
143
|
end
|
132
144
|
|
145
|
+
class GenerateAccessTokenRequest
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class GenerateAccessTokenResponse
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
133
157
|
class ImageRelease
|
134
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
159
|
|
@@ -351,6 +375,22 @@ module Google
|
|
351
375
|
end
|
352
376
|
end
|
353
377
|
|
378
|
+
class CheckAuthorizationRequest
|
379
|
+
# @private
|
380
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
381
|
+
hash :authorization_details, as: 'authorizationDetails'
|
382
|
+
end
|
383
|
+
end
|
384
|
+
|
385
|
+
class CheckAuthorizationResponse
|
386
|
+
# @private
|
387
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
388
|
+
property :create_time, as: 'createTime'
|
389
|
+
property :oauth_uri, as: 'oauth_uri'
|
390
|
+
property :success, as: 'success'
|
391
|
+
end
|
392
|
+
end
|
393
|
+
|
354
394
|
class CheckInstanceUpgradabilityResponse
|
355
395
|
# @private
|
356
396
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -493,6 +533,23 @@ module Google
|
|
493
533
|
end
|
494
534
|
end
|
495
535
|
|
536
|
+
class GenerateAccessTokenRequest
|
537
|
+
# @private
|
538
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
539
|
+
property :vm_token, as: 'vmToken'
|
540
|
+
end
|
541
|
+
end
|
542
|
+
|
543
|
+
class GenerateAccessTokenResponse
|
544
|
+
# @private
|
545
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
546
|
+
property :access_token, as: 'access_token'
|
547
|
+
property :expires_in, as: 'expires_in'
|
548
|
+
property :scope, as: 'scope'
|
549
|
+
property :token_type, as: 'token_type'
|
550
|
+
end
|
551
|
+
end
|
552
|
+
|
496
553
|
class ImageRelease
|
497
554
|
# @private
|
498
555
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -508,6 +565,7 @@ module Google
|
|
508
565
|
property :creator, as: 'creator'
|
509
566
|
property :disable_proxy_access, as: 'disableProxyAccess'
|
510
567
|
property :enable_deletion_protection, as: 'enableDeletionProtection'
|
568
|
+
property :enable_managed_euc, as: 'enableManagedEuc'
|
511
569
|
property :enable_third_party_identity, as: 'enableThirdPartyIdentity'
|
512
570
|
property :gce_setup, as: 'gceSetup', class: Google::Apis::NotebooksV2::GceSetup, decorator: Google::Apis::NotebooksV2::GceSetup::Representation
|
513
571
|
|
@@ -128,6 +128,41 @@ module Google
|
|
128
128
|
execute_or_queue_command(command, &block)
|
129
129
|
end
|
130
130
|
|
131
|
+
# Initiated by Cloud Console for Oauth consent flow for Workbench Instances. Do
|
132
|
+
# not use this method directly. Design doc: go/wbi-euc:auth-dd
|
133
|
+
# @param [String] name
|
134
|
+
# Required. The name of the Notebook Instance resource. Format: `projects/`
|
135
|
+
# project`/locations/`location`/instances/`instance``
|
136
|
+
# @param [Google::Apis::NotebooksV2::CheckAuthorizationRequest] check_authorization_request_object
|
137
|
+
# @param [String] fields
|
138
|
+
# Selector specifying which fields to include in a partial response.
|
139
|
+
# @param [String] quota_user
|
140
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
141
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
142
|
+
# @param [Google::Apis::RequestOptions] options
|
143
|
+
# Request-specific options
|
144
|
+
#
|
145
|
+
# @yield [result, err] Result & error if block supplied
|
146
|
+
# @yieldparam result [Google::Apis::NotebooksV2::CheckAuthorizationResponse] parsed result object
|
147
|
+
# @yieldparam err [StandardError] error object if request failed
|
148
|
+
#
|
149
|
+
# @return [Google::Apis::NotebooksV2::CheckAuthorizationResponse]
|
150
|
+
#
|
151
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
152
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
153
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
154
|
+
def check_instance_authorization(name, check_authorization_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
155
|
+
command = make_simple_command(:post, 'v2/{+name}:checkAuthorization', options)
|
156
|
+
command.request_representation = Google::Apis::NotebooksV2::CheckAuthorizationRequest::Representation
|
157
|
+
command.request_object = check_authorization_request_object
|
158
|
+
command.response_representation = Google::Apis::NotebooksV2::CheckAuthorizationResponse::Representation
|
159
|
+
command.response_class = Google::Apis::NotebooksV2::CheckAuthorizationResponse
|
160
|
+
command.params['name'] = name unless name.nil?
|
161
|
+
command.query['fields'] = fields unless fields.nil?
|
162
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
163
|
+
execute_or_queue_command(command, &block)
|
164
|
+
end
|
165
|
+
|
131
166
|
# Checks whether a notebook instance is upgradable.
|
132
167
|
# @param [String] notebook_instance
|
133
168
|
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
@@ -266,6 +301,41 @@ module Google
|
|
266
301
|
execute_or_queue_command(command, &block)
|
267
302
|
end
|
268
303
|
|
304
|
+
# Called by VM to return an EUC for the instance owner. Do not use this method
|
305
|
+
# directly. Design doc: go/wbi-euc:dd
|
306
|
+
# @param [String] name
|
307
|
+
# Required. Format: `projects/`project`/locations/`location`/instances/`
|
308
|
+
# instance_id``
|
309
|
+
# @param [Google::Apis::NotebooksV2::GenerateAccessTokenRequest] generate_access_token_request_object
|
310
|
+
# @param [String] fields
|
311
|
+
# Selector specifying which fields to include in a partial response.
|
312
|
+
# @param [String] quota_user
|
313
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
314
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
315
|
+
# @param [Google::Apis::RequestOptions] options
|
316
|
+
# Request-specific options
|
317
|
+
#
|
318
|
+
# @yield [result, err] Result & error if block supplied
|
319
|
+
# @yieldparam result [Google::Apis::NotebooksV2::GenerateAccessTokenResponse] parsed result object
|
320
|
+
# @yieldparam err [StandardError] error object if request failed
|
321
|
+
#
|
322
|
+
# @return [Google::Apis::NotebooksV2::GenerateAccessTokenResponse]
|
323
|
+
#
|
324
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
325
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
326
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
327
|
+
def generate_instance_access_token(name, generate_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
328
|
+
command = make_simple_command(:post, 'v2/{+name}:generateAccessToken', options)
|
329
|
+
command.request_representation = Google::Apis::NotebooksV2::GenerateAccessTokenRequest::Representation
|
330
|
+
command.request_object = generate_access_token_request_object
|
331
|
+
command.response_representation = Google::Apis::NotebooksV2::GenerateAccessTokenResponse::Representation
|
332
|
+
command.response_class = Google::Apis::NotebooksV2::GenerateAccessTokenResponse
|
333
|
+
command.params['name'] = name unless name.nil?
|
334
|
+
command.query['fields'] = fields unless fields.nil?
|
335
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
336
|
+
execute_or_queue_command(command, &block)
|
337
|
+
end
|
338
|
+
|
269
339
|
# Gets details of a single Instance.
|
270
340
|
# @param [String] name
|
271
341
|
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
@@ -297,10 +367,7 @@ module Google
|
|
297
367
|
execute_or_queue_command(command, &block)
|
298
368
|
end
|
299
369
|
|
300
|
-
#
|
301
|
-
# Location is required by CCFE. Although we could bypass it to send location-
|
302
|
-
# less request directly to the backend job, we would need CPE (go/cloud-cpe).
|
303
|
-
# Having the location might also be useful depending on the query.
|
370
|
+
# Returns various configuration parameters.
|
304
371
|
# @param [String] name
|
305
372
|
# Required. Format: `projects/`project_id`/locations/`location``
|
306
373
|
# @param [String] fields
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-notebooks_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-notebooks_v2/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v2/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v2/v0.26.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-notebooks_v2
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|