google-apis-notebooks_v2 0.25.0 → 0.27.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: fab9656607b127ca160eea5ddbceddd035eaea622f1d592b23f56ae2e16007b1
|
|
4
|
+
data.tar.gz: 961234458c1ee635c62ca3481a2f355c6aaaeedac39f994d98556aaff3240272
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 853a65d3b96d895dd95ed7923d805c1c340b3b1a29f0466834a353d7844bea4fd58a444d99117dea4908981d965d2684ac817fa2445040f814a100e841e4ccae
|
|
7
|
+
data.tar.gz: 0342ce55e04ca7662068aba6c396f4e772b7699e62a4319ad5a7147d9093c64fa1db5292e5d491a6b4a00f7fd2d12da39ed3870a8e7a2ef03b5db7cb5fc772a2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-notebooks_v2
|
|
2
2
|
|
|
3
|
+
### v0.27.0 (2025-10-19)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20251008
|
|
6
|
+
|
|
7
|
+
### v0.26.0 (2025-07-20)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20250710
|
|
10
|
+
|
|
3
11
|
### v0.25.0 (2025-06-15)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20250604
|
|
@@ -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
|
|
@@ -386,6 +440,11 @@ module Google
|
|
|
386
440
|
# @return [String]
|
|
387
441
|
attr_accessor :kms_key
|
|
388
442
|
|
|
443
|
+
# Optional. The resource policies to apply to the data disk.
|
|
444
|
+
# Corresponds to the JSON property `resourcePolicies`
|
|
445
|
+
# @return [Array<String>]
|
|
446
|
+
attr_accessor :resource_policies
|
|
447
|
+
|
|
389
448
|
def initialize(**args)
|
|
390
449
|
update!(**args)
|
|
391
450
|
end
|
|
@@ -396,6 +455,7 @@ module Google
|
|
|
396
455
|
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
|
397
456
|
@disk_type = args[:disk_type] if args.key?(:disk_type)
|
|
398
457
|
@kms_key = args[:kms_key] if args.key?(:kms_key)
|
|
458
|
+
@resource_policies = args[:resource_policies] if args.key?(:resource_policies)
|
|
399
459
|
end
|
|
400
460
|
end
|
|
401
461
|
|
|
@@ -762,6 +822,66 @@ module Google
|
|
|
762
822
|
end
|
|
763
823
|
end
|
|
764
824
|
|
|
825
|
+
# Request message for generating an EUC for the instance owner.
|
|
826
|
+
class GenerateAccessTokenRequest
|
|
827
|
+
include Google::Apis::Core::Hashable
|
|
828
|
+
|
|
829
|
+
# Required. The VM identity token (a JWT) for authenticating the VM. https://
|
|
830
|
+
# cloud.google.com/compute/docs/instances/verifying-instance-identity
|
|
831
|
+
# Corresponds to the JSON property `vmToken`
|
|
832
|
+
# @return [String]
|
|
833
|
+
attr_accessor :vm_token
|
|
834
|
+
|
|
835
|
+
def initialize(**args)
|
|
836
|
+
update!(**args)
|
|
837
|
+
end
|
|
838
|
+
|
|
839
|
+
# Update properties of this object
|
|
840
|
+
def update!(**args)
|
|
841
|
+
@vm_token = args[:vm_token] if args.key?(:vm_token)
|
|
842
|
+
end
|
|
843
|
+
end
|
|
844
|
+
|
|
845
|
+
# Response message for generating an EUC for the instance owner.
|
|
846
|
+
class GenerateAccessTokenResponse
|
|
847
|
+
include Google::Apis::Core::Hashable
|
|
848
|
+
|
|
849
|
+
# Short-lived access token string which may be used to access Google APIs.
|
|
850
|
+
# Corresponds to the JSON property `access_token`
|
|
851
|
+
# @return [String]
|
|
852
|
+
attr_accessor :access_token
|
|
853
|
+
|
|
854
|
+
# The time in seconds when the access token expires. Typically that's 3600.
|
|
855
|
+
# Corresponds to the JSON property `expires_in`
|
|
856
|
+
# @return [Fixnum]
|
|
857
|
+
attr_accessor :expires_in
|
|
858
|
+
|
|
859
|
+
# Space-separated list of scopes contained in the returned token. https://cloud.
|
|
860
|
+
# google.com/docs/authentication/token-types#access-contents
|
|
861
|
+
# Corresponds to the JSON property `scope`
|
|
862
|
+
# @return [String]
|
|
863
|
+
attr_accessor :scope
|
|
864
|
+
|
|
865
|
+
# Type of the returned access token (e.g. "Bearer"). It specifies how the token
|
|
866
|
+
# must be used. Bearer tokens may be used by any entity without proof of
|
|
867
|
+
# identity.
|
|
868
|
+
# Corresponds to the JSON property `token_type`
|
|
869
|
+
# @return [String]
|
|
870
|
+
attr_accessor :token_type
|
|
871
|
+
|
|
872
|
+
def initialize(**args)
|
|
873
|
+
update!(**args)
|
|
874
|
+
end
|
|
875
|
+
|
|
876
|
+
# Update properties of this object
|
|
877
|
+
def update!(**args)
|
|
878
|
+
@access_token = args[:access_token] if args.key?(:access_token)
|
|
879
|
+
@expires_in = args[:expires_in] if args.key?(:expires_in)
|
|
880
|
+
@scope = args[:scope] if args.key?(:scope)
|
|
881
|
+
@token_type = args[:token_type] if args.key?(:token_type)
|
|
882
|
+
end
|
|
883
|
+
end
|
|
884
|
+
|
|
765
885
|
# ConfigImage represents an image release available to create a WbI
|
|
766
886
|
class ImageRelease
|
|
767
887
|
include Google::Apis::Core::Hashable
|
|
@@ -815,6 +935,12 @@ module Google
|
|
|
815
935
|
attr_accessor :enable_deletion_protection
|
|
816
936
|
alias_method :enable_deletion_protection?, :enable_deletion_protection
|
|
817
937
|
|
|
938
|
+
# Optional. Flag to enable managed end user credentials for the instance.
|
|
939
|
+
# Corresponds to the JSON property `enableManagedEuc`
|
|
940
|
+
# @return [Boolean]
|
|
941
|
+
attr_accessor :enable_managed_euc
|
|
942
|
+
alias_method :enable_managed_euc?, :enable_managed_euc
|
|
943
|
+
|
|
818
944
|
# Optional. Flag that specifies that a notebook can be accessed with third party
|
|
819
945
|
# identity provider.
|
|
820
946
|
# Corresponds to the JSON property `enableThirdPartyIdentity`
|
|
@@ -859,8 +985,8 @@ module Google
|
|
|
859
985
|
# @return [Hash<String,String>]
|
|
860
986
|
attr_accessor :labels
|
|
861
987
|
|
|
862
|
-
# Output only. The name of this notebook instance. Format: `projects
|
|
863
|
-
#
|
|
988
|
+
# Output only. Identifier. The name of this notebook instance. Format: `projects/
|
|
989
|
+
# `project_id`/locations/`location`/instances/`instance_id``
|
|
864
990
|
# Corresponds to the JSON property `name`
|
|
865
991
|
# @return [String]
|
|
866
992
|
attr_accessor :name
|
|
@@ -913,6 +1039,7 @@ module Google
|
|
|
913
1039
|
@creator = args[:creator] if args.key?(:creator)
|
|
914
1040
|
@disable_proxy_access = args[:disable_proxy_access] if args.key?(:disable_proxy_access)
|
|
915
1041
|
@enable_deletion_protection = args[:enable_deletion_protection] if args.key?(:enable_deletion_protection)
|
|
1042
|
+
@enable_managed_euc = args[:enable_managed_euc] if args.key?(:enable_managed_euc)
|
|
916
1043
|
@enable_third_party_identity = args[:enable_third_party_identity] if args.key?(:enable_third_party_identity)
|
|
917
1044
|
@gce_setup = args[:gce_setup] if args.key?(:gce_setup)
|
|
918
1045
|
@health_info = args[:health_info] if args.key?(:health_info)
|
|
@@ -1004,6 +1131,13 @@ module Google
|
|
|
1004
1131
|
# @return [Array<Google::Apis::NotebooksV2::Operation>]
|
|
1005
1132
|
attr_accessor :operations
|
|
1006
1133
|
|
|
1134
|
+
# Unordered list. Unreachable resources. Populated when the request sets `
|
|
1135
|
+
# ListOperationsRequest.return_partial_success` and reads across collections e.g.
|
|
1136
|
+
# when attempting to list all resources across all supported locations.
|
|
1137
|
+
# Corresponds to the JSON property `unreachable`
|
|
1138
|
+
# @return [Array<String>]
|
|
1139
|
+
attr_accessor :unreachable
|
|
1140
|
+
|
|
1007
1141
|
def initialize(**args)
|
|
1008
1142
|
update!(**args)
|
|
1009
1143
|
end
|
|
@@ -1012,6 +1146,7 @@ module Google
|
|
|
1012
1146
|
def update!(**args)
|
|
1013
1147
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1014
1148
|
@operations = args[:operations] if args.key?(:operations)
|
|
1149
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
|
1015
1150
|
end
|
|
1016
1151
|
end
|
|
1017
1152
|
|
|
@@ -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.27.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 = "20251008"
|
|
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
|
|
@@ -396,6 +436,7 @@ module Google
|
|
|
396
436
|
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
|
|
397
437
|
property :disk_type, as: 'diskType'
|
|
398
438
|
property :kms_key, as: 'kmsKey'
|
|
439
|
+
collection :resource_policies, as: 'resourcePolicies'
|
|
399
440
|
end
|
|
400
441
|
end
|
|
401
442
|
|
|
@@ -493,6 +534,23 @@ module Google
|
|
|
493
534
|
end
|
|
494
535
|
end
|
|
495
536
|
|
|
537
|
+
class GenerateAccessTokenRequest
|
|
538
|
+
# @private
|
|
539
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
540
|
+
property :vm_token, as: 'vmToken'
|
|
541
|
+
end
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
class GenerateAccessTokenResponse
|
|
545
|
+
# @private
|
|
546
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
547
|
+
property :access_token, as: 'access_token'
|
|
548
|
+
property :expires_in, as: 'expires_in'
|
|
549
|
+
property :scope, as: 'scope'
|
|
550
|
+
property :token_type, as: 'token_type'
|
|
551
|
+
end
|
|
552
|
+
end
|
|
553
|
+
|
|
496
554
|
class ImageRelease
|
|
497
555
|
# @private
|
|
498
556
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -508,6 +566,7 @@ module Google
|
|
|
508
566
|
property :creator, as: 'creator'
|
|
509
567
|
property :disable_proxy_access, as: 'disableProxyAccess'
|
|
510
568
|
property :enable_deletion_protection, as: 'enableDeletionProtection'
|
|
569
|
+
property :enable_managed_euc, as: 'enableManagedEuc'
|
|
511
570
|
property :enable_third_party_identity, as: 'enableThirdPartyIdentity'
|
|
512
571
|
property :gce_setup, as: 'gceSetup', class: Google::Apis::NotebooksV2::GceSetup, decorator: Google::Apis::NotebooksV2::GceSetup::Representation
|
|
513
572
|
|
|
@@ -553,6 +612,7 @@ module Google
|
|
|
553
612
|
property :next_page_token, as: 'nextPageToken'
|
|
554
613
|
collection :operations, as: 'operations', class: Google::Apis::NotebooksV2::Operation, decorator: Google::Apis::NotebooksV2::Operation::Representation
|
|
555
614
|
|
|
615
|
+
collection :unreachable, as: 'unreachable'
|
|
556
616
|
end
|
|
557
617
|
end
|
|
558
618
|
|
|
@@ -85,8 +85,8 @@ module Google
|
|
|
85
85
|
# @param [String] name
|
|
86
86
|
# The resource that owns the locations collection, if applicable.
|
|
87
87
|
# @param [Array<String>, String] extra_location_types
|
|
88
|
-
# Optional.
|
|
89
|
-
#
|
|
88
|
+
# Optional. Unless explicitly documented otherwise, don't use this unsupported
|
|
89
|
+
# field which is primarily intended for internal usage.
|
|
90
90
|
# @param [String] filter
|
|
91
91
|
# A filter to narrow down results to a preferred subset. The filtering language
|
|
92
92
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
|
@@ -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/`
|
|
@@ -418,8 +488,8 @@ module Google
|
|
|
418
488
|
|
|
419
489
|
# UpdateInstance updates an Instance.
|
|
420
490
|
# @param [String] name
|
|
421
|
-
# Output only. The name of this notebook instance. Format: `projects
|
|
422
|
-
#
|
|
491
|
+
# Output only. Identifier. The name of this notebook instance. Format: `projects/
|
|
492
|
+
# `project_id`/locations/`location`/instances/`instance_id``
|
|
423
493
|
# @param [Google::Apis::NotebooksV2::Instance] instance_object
|
|
424
494
|
# @param [String] request_id
|
|
425
495
|
# Optional. Idempotent request UUID.
|
|
@@ -968,6 +1038,13 @@ module Google
|
|
|
968
1038
|
# The standard list page size.
|
|
969
1039
|
# @param [String] page_token
|
|
970
1040
|
# The standard list page token.
|
|
1041
|
+
# @param [Boolean] return_partial_success
|
|
1042
|
+
# When set to `true`, operations that are reachable are returned as normal, and
|
|
1043
|
+
# those that are unreachable are returned in the [ListOperationsResponse.
|
|
1044
|
+
# unreachable] field. This can only be `true` when reading across collections e.
|
|
1045
|
+
# g. when `parent` is set to `"projects/example/locations/-"`. This field is not
|
|
1046
|
+
# by default supported and will result in an `UNIMPLEMENTED` error if set unless
|
|
1047
|
+
# explicitly documented otherwise in service or product specific documentation.
|
|
971
1048
|
# @param [String] fields
|
|
972
1049
|
# Selector specifying which fields to include in a partial response.
|
|
973
1050
|
# @param [String] quota_user
|
|
@@ -985,7 +1062,7 @@ module Google
|
|
|
985
1062
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
986
1063
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
987
1064
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
988
|
-
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1065
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
989
1066
|
command = make_simple_command(:get, 'v2/{+name}/operations', options)
|
|
990
1067
|
command.response_representation = Google::Apis::NotebooksV2::ListOperationsResponse::Representation
|
|
991
1068
|
command.response_class = Google::Apis::NotebooksV2::ListOperationsResponse
|
|
@@ -993,6 +1070,7 @@ module Google
|
|
|
993
1070
|
command.query['filter'] = filter unless filter.nil?
|
|
994
1071
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
995
1072
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1073
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
996
1074
|
command.query['fields'] = fields unless fields.nil?
|
|
997
1075
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
998
1076
|
execute_or_queue_command(command, &block)
|
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.27.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.27.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:
|