google-apis-notebooks_v2 0.6.0 → 0.8.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: 19809cdbb985347be4b8ff8c8a6da533575140e4ad6dd6ebc2708425b126d069
4
- data.tar.gz: 6f693f904c0eae9b24267d8144b6d27867c87976131234801151dc35e5a63000
3
+ metadata.gz: 10030983cc11e599ddbefdc4b56caed1ae95462830394a24f5316868e09da6b2
4
+ data.tar.gz: ddc7086c99b3e730e80858dfcad9d8e787cbbf8d2e16491cce8d40b5fc7e097e
5
5
  SHA512:
6
- metadata.gz: 359744737e45f707f8a22bb1637715ad21d25721d26d6ceceb01b7d27b66b181cc8eb5e43e283447e235ce2852e55b34612f6aa559834dd2ffd61e015deadb7d
7
- data.tar.gz: 35b5b08141162abaf2dba023862220b37ec714824dd5b17260435975372f1425e1b67efd8f8278e51a6b5d9a58f66b93be07071da9845657ac3643e46e0a414a
6
+ metadata.gz: e5791ba124f835c94d50cd01a2c01a201e363332502d23f342980e146dac9a922d26b604aad768a0ef841253953859ceff50128becd8f855b5a91ab44a37e26e
7
+ data.tar.gz: 4fdd24221a3cadb9c2d715ccb17b8bbbc5aafcc26bcdcea745141ef7c878189aca90b980c6b65469d9776bec544364515affe0679f26c0f43501507a08f9055d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-notebooks_v2
2
2
 
3
+ ### v0.8.0 (2023-12-10)
4
+
5
+ * Regenerated from discovery document revision 20231203
6
+
7
+ ### v0.7.0 (2023-10-29)
8
+
9
+ * Regenerated from discovery document revision 20231019
10
+
3
11
  ### v0.6.0 (2023-09-17)
4
12
 
5
13
  * Regenerated from discovery document revision 20230906
@@ -223,6 +223,37 @@ module Google
223
223
  end
224
224
  end
225
225
 
226
+ # Response for getting WbI configurations in a location
227
+ class Config
228
+ include Google::Apis::Core::Hashable
229
+
230
+ # Output only. The list of available images to create a WbI.
231
+ # Corresponds to the JSON property `availableImages`
232
+ # @return [Array<Google::Apis::NotebooksV2::ImageRelease>]
233
+ attr_accessor :available_images
234
+
235
+ # DefaultValues represents the default configuration values.
236
+ # Corresponds to the JSON property `defaultValues`
237
+ # @return [Google::Apis::NotebooksV2::DefaultValues]
238
+ attr_accessor :default_values
239
+
240
+ # SupportedValues represents the values supported by the configuration.
241
+ # Corresponds to the JSON property `supportedValues`
242
+ # @return [Google::Apis::NotebooksV2::SupportedValues]
243
+ attr_accessor :supported_values
244
+
245
+ def initialize(**args)
246
+ update!(**args)
247
+ end
248
+
249
+ # Update properties of this object
250
+ def update!(**args)
251
+ @available_images = args[:available_images] if args.key?(:available_images)
252
+ @default_values = args[:default_values] if args.key?(:default_values)
253
+ @supported_values = args[:supported_values] if args.key?(:supported_values)
254
+ end
255
+ end
256
+
226
257
  # Definition of a container image for starting a notebook instance with the
227
258
  # environment installed in a container.
228
259
  class ContainerImage
@@ -293,6 +324,26 @@ module Google
293
324
  end
294
325
  end
295
326
 
327
+ # DefaultValues represents the default configuration values.
328
+ class DefaultValues
329
+ include Google::Apis::Core::Hashable
330
+
331
+ # Output only. The default machine type used by the backend if not provided by
332
+ # the user.
333
+ # Corresponds to the JSON property `machineType`
334
+ # @return [String]
335
+ attr_accessor :machine_type
336
+
337
+ def initialize(**args)
338
+ update!(**args)
339
+ end
340
+
341
+ # Update properties of this object
342
+ def update!(**args)
343
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
344
+ end
345
+ end
346
+
296
347
  # Request for creating a notebook instance diagnostic file.
297
348
  class DiagnoseInstanceRequest
298
349
  include Google::Apis::Core::Hashable
@@ -616,6 +667,31 @@ module Google
616
667
  end
617
668
  end
618
669
 
670
+ # ConfigImage represents an image release available to create a WbI
671
+ class ImageRelease
672
+ include Google::Apis::Core::Hashable
673
+
674
+ # Output only. The name of the image of the form workbench-instances-vYYYYmmdd--
675
+ # Corresponds to the JSON property `imageName`
676
+ # @return [String]
677
+ attr_accessor :image_name
678
+
679
+ # Output only. The release of the image of the form m123
680
+ # Corresponds to the JSON property `releaseName`
681
+ # @return [String]
682
+ attr_accessor :release_name
683
+
684
+ def initialize(**args)
685
+ update!(**args)
686
+ end
687
+
688
+ # Update properties of this object
689
+ def update!(**args)
690
+ @image_name = args[:image_name] if args.key?(:image_name)
691
+ @release_name = args[:release_name] if args.key?(:release_name)
692
+ end
693
+ end
694
+
619
695
  # The definition of a notebook instance.
620
696
  class Instance
621
697
  include Google::Apis::Core::Hashable
@@ -690,6 +766,12 @@ module Google
690
766
  # @return [String]
691
767
  attr_accessor :state
692
768
 
769
+ # Output only. The workforce pools proxy endpoint that is used to access the
770
+ # Jupyter notebook.
771
+ # Corresponds to the JSON property `thirdPartyProxyUrl`
772
+ # @return [String]
773
+ attr_accessor :third_party_proxy_url
774
+
693
775
  # Output only. Instance update time.
694
776
  # Corresponds to the JSON property `updateTime`
695
777
  # @return [String]
@@ -718,6 +800,7 @@ module Google
718
800
  @name = args[:name] if args.key?(:name)
719
801
  @proxy_uri = args[:proxy_uri] if args.key?(:proxy_uri)
720
802
  @state = args[:state] if args.key?(:state)
803
+ @third_party_proxy_url = args[:third_party_proxy_url] if args.key?(:third_party_proxy_url)
721
804
  @update_time = args[:update_time] if args.key?(:update_time)
722
805
  @upgrade_history = args[:upgrade_history] if args.key?(:upgrade_history)
723
806
  end
@@ -1348,6 +1431,31 @@ module Google
1348
1431
  end
1349
1432
  end
1350
1433
 
1434
+ # SupportedValues represents the values supported by the configuration.
1435
+ class SupportedValues
1436
+ include Google::Apis::Core::Hashable
1437
+
1438
+ # Output only. The accelerator types supported by WbI.
1439
+ # Corresponds to the JSON property `acceleratorTypes`
1440
+ # @return [Array<String>]
1441
+ attr_accessor :accelerator_types
1442
+
1443
+ # Output only. The machine types supported by WbI.
1444
+ # Corresponds to the JSON property `machineTypes`
1445
+ # @return [Array<String>]
1446
+ attr_accessor :machine_types
1447
+
1448
+ def initialize(**args)
1449
+ update!(**args)
1450
+ end
1451
+
1452
+ # Update properties of this object
1453
+ def update!(**args)
1454
+ @accelerator_types = args[:accelerator_types] if args.key?(:accelerator_types)
1455
+ @machine_types = args[:machine_types] if args.key?(:machine_types)
1456
+ end
1457
+ end
1458
+
1351
1459
  # Request message for `TestIamPermissions` method.
1352
1460
  class TestIamPermissionsRequest
1353
1461
  include Google::Apis::Core::Hashable
@@ -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.6.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230906"
25
+ REVISION = "20231203"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class Config
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class ContainerImage
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -64,6 +70,12 @@ module Google
64
70
  include Google::Apis::Core::JsonObjectSupport
65
71
  end
66
72
 
73
+ class DefaultValues
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
67
79
  class DiagnoseInstanceRequest
68
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
81
 
@@ -106,6 +118,12 @@ module Google
106
118
  include Google::Apis::Core::JsonObjectSupport
107
119
  end
108
120
 
121
+ class ImageRelease
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
109
127
  class Instance
110
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
129
 
@@ -214,6 +232,12 @@ module Google
214
232
  include Google::Apis::Core::JsonObjectSupport
215
233
  end
216
234
 
235
+ class SupportedValues
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
217
241
  class TestIamPermissionsRequest
218
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
243
 
@@ -294,6 +318,18 @@ module Google
294
318
  end
295
319
  end
296
320
 
321
+ class Config
322
+ # @private
323
+ class Representation < Google::Apis::Core::JsonRepresentation
324
+ collection :available_images, as: 'availableImages', class: Google::Apis::NotebooksV2::ImageRelease, decorator: Google::Apis::NotebooksV2::ImageRelease::Representation
325
+
326
+ property :default_values, as: 'defaultValues', class: Google::Apis::NotebooksV2::DefaultValues, decorator: Google::Apis::NotebooksV2::DefaultValues::Representation
327
+
328
+ property :supported_values, as: 'supportedValues', class: Google::Apis::NotebooksV2::SupportedValues, decorator: Google::Apis::NotebooksV2::SupportedValues::Representation
329
+
330
+ end
331
+ end
332
+
297
333
  class ContainerImage
298
334
  # @private
299
335
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -312,6 +348,13 @@ module Google
312
348
  end
313
349
  end
314
350
 
351
+ class DefaultValues
352
+ # @private
353
+ class Representation < Google::Apis::Core::JsonRepresentation
354
+ property :machine_type, as: 'machineType'
355
+ end
356
+ end
357
+
315
358
  class DiagnoseInstanceRequest
316
359
  # @private
317
360
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -394,6 +437,14 @@ module Google
394
437
  end
395
438
  end
396
439
 
440
+ class ImageRelease
441
+ # @private
442
+ class Representation < Google::Apis::Core::JsonRepresentation
443
+ property :image_name, as: 'imageName'
444
+ property :release_name, as: 'releaseName'
445
+ end
446
+ end
447
+
397
448
  class Instance
398
449
  # @private
399
450
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -410,6 +461,7 @@ module Google
410
461
  property :name, as: 'name'
411
462
  property :proxy_uri, as: 'proxyUri'
412
463
  property :state, as: 'state'
464
+ property :third_party_proxy_url, as: 'thirdPartyProxyUrl'
413
465
  property :update_time, as: 'updateTime'
414
466
  collection :upgrade_history, as: 'upgradeHistory', class: Google::Apis::NotebooksV2::UpgradeHistoryEntry, decorator: Google::Apis::NotebooksV2::UpgradeHistoryEntry::Representation
415
467
 
@@ -569,6 +621,14 @@ module Google
569
621
  end
570
622
  end
571
623
 
624
+ class SupportedValues
625
+ # @private
626
+ class Representation < Google::Apis::Core::JsonRepresentation
627
+ collection :accelerator_types, as: 'acceleratorTypes'
628
+ collection :machine_types, as: 'machineTypes'
629
+ end
630
+ end
631
+
572
632
  class TestIamPermissionsRequest
573
633
  # @private
574
634
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -291,6 +291,39 @@ module Google
291
291
  execute_or_queue_command(command, &block)
292
292
  end
293
293
 
294
+ # Gets general backend configurations that might also affect the frontend.
295
+ # Location is required by CCFE. Although we could bypass it to send location-
296
+ # less request directly to the backend job, we would need CPE (go/cloud-cpe).
297
+ # Having the location might also be useful depending on the query.
298
+ # @param [String] name
299
+ # Required. Format: `projects/`project_id`/locations/`location``
300
+ # @param [String] fields
301
+ # Selector specifying which fields to include in a partial response.
302
+ # @param [String] quota_user
303
+ # Available to use for quota purposes for server-side applications. Can be any
304
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
305
+ # @param [Google::Apis::RequestOptions] options
306
+ # Request-specific options
307
+ #
308
+ # @yield [result, err] Result & error if block supplied
309
+ # @yieldparam result [Google::Apis::NotebooksV2::Config] parsed result object
310
+ # @yieldparam err [StandardError] error object if request failed
311
+ #
312
+ # @return [Google::Apis::NotebooksV2::Config]
313
+ #
314
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
315
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
316
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
317
+ def get_project_location_instance_config(name, fields: nil, quota_user: nil, options: nil, &block)
318
+ command = make_simple_command(:get, 'v2/{+name}/instances:getConfig', options)
319
+ command.response_representation = Google::Apis::NotebooksV2::Config::Representation
320
+ command.response_class = Google::Apis::NotebooksV2::Config
321
+ command.params['name'] = name unless name.nil?
322
+ command.query['fields'] = fields unless fields.nil?
323
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
324
+ execute_or_queue_command(command, &block)
325
+ end
326
+
294
327
  # Gets the access control policy for a resource. Returns an empty policy if the
295
328
  # resource exists and does not have a policy set.
296
329
  # @param [String] resource
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-notebooks_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.8.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: 2023-09-17 00:00:00.000000000 Z
11
+ date: 2023-12-10 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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v2/v0.6.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v2/v0.8.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-notebooks_v2
63
63
  post_install_message:
64
64
  rdoc_options: []