google-apis-notebooks_v1 0.18.0 → 0.19.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: 894ad2b301172e56625b457029b94b638cb4dcebf4589b9ffcb5d17881be95e6
4
- data.tar.gz: c2b407e798448b13376c6cbfe3ff7ae912fe897baabeaee956580d333e27d4cf
3
+ metadata.gz: 2564fe0ba2be0b1e5b0fde75c78ec90186ab50e17f5c43e8510c24816976b4de
4
+ data.tar.gz: a3442d864320d3345bca3a95cd9a8db39d6d5ca730a75f035052a17be58aa9c3
5
5
  SHA512:
6
- metadata.gz: 83a90564f02432e1eb82516ff2d2cfd14c78fe5fb0d858e7c85a68ac5df95ceb65e550ddc7e75436b2f2b70412ac855971f6176a5d2466112c1841425dbba35f
7
- data.tar.gz: ef3ae4427e602705cdafc94471a87bc3471599caf57076460c32c75e9d2dc209139041bb26d94e7a70f292ed7fcedab681cc1012c948c356f76ed432a716cc94
6
+ metadata.gz: 3067d3b60aaf3bd26851b0b479ea971809b69a4b649b072e500e0a4b4ec680d8e5159c6e45c4228df40780c5a88549a2d89c73fcd3b17103984100f1e1130b81
7
+ data.tar.gz: 5cd71540e35daf387111b843dd76fa9de0299b8824f4d1b5e9d40a1a37dfbf96683567b69bd14c3f723a2ef54a3a32de80f209e485f32f7d1370be462c85a180
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-notebooks_v1
2
2
 
3
+ ### v0.19.0 (2022-01-09)
4
+
5
+ * Regenerated from discovery document revision 20220104
6
+ * Unspecified changes
7
+
3
8
  ### v0.18.0 (2021-10-25)
4
9
 
5
10
  * Regenerated from discovery document revision 20211019
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/notebooks_v1"
51
51
  client = Google::Apis::NotebooksV1::AIPlatformNotebooksService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -2585,6 +2585,44 @@ module Google
2585
2585
  end
2586
2586
  end
2587
2587
 
2588
+ # Request for adding/changing metadata items for an instance.
2589
+ class UpdateInstanceMetadataItemsRequest
2590
+ include Google::Apis::Core::Hashable
2591
+
2592
+ # Metadata items to add/update for the instance.
2593
+ # Corresponds to the JSON property `items`
2594
+ # @return [Hash<String,String>]
2595
+ attr_accessor :items
2596
+
2597
+ def initialize(**args)
2598
+ update!(**args)
2599
+ end
2600
+
2601
+ # Update properties of this object
2602
+ def update!(**args)
2603
+ @items = args[:items] if args.key?(:items)
2604
+ end
2605
+ end
2606
+
2607
+ # Response for adding/changing metadata items for an instance.
2608
+ class UpdateInstanceMetadataItemsResponse
2609
+ include Google::Apis::Core::Hashable
2610
+
2611
+ # Map of items that were added/updated to/in the metadata.
2612
+ # Corresponds to the JSON property `items`
2613
+ # @return [Hash<String,String>]
2614
+ attr_accessor :items
2615
+
2616
+ def initialize(**args)
2617
+ update!(**args)
2618
+ end
2619
+
2620
+ # Update properties of this object
2621
+ def update!(**args)
2622
+ @items = args[:items] if args.key?(:items)
2623
+ end
2624
+ end
2625
+
2588
2626
  # Request for updating the Shielded Instance config for a notebook instance. You
2589
2627
  # can only use this method on a stopped instance
2590
2628
  class UpdateShieldedInstanceConfigRequest
@@ -2683,6 +2721,12 @@ module Google
2683
2721
  class UpgradeInstanceInternalRequest
2684
2722
  include Google::Apis::Core::Hashable
2685
2723
 
2724
+ # Optional. The optional UpgradeType. Setting this field will search for
2725
+ # additional compute images to upgrade this instance.
2726
+ # Corresponds to the JSON property `type`
2727
+ # @return [String]
2728
+ attr_accessor :type
2729
+
2686
2730
  # Required. The VM hardware token for authenticating the VM. https://cloud.
2687
2731
  # google.com/compute/docs/instances/verifying-instance-identity
2688
2732
  # Corresponds to the JSON property `vmId`
@@ -2695,6 +2739,7 @@ module Google
2695
2739
 
2696
2740
  # Update properties of this object
2697
2741
  def update!(**args)
2742
+ @type = args[:type] if args.key?(:type)
2698
2743
  @vm_id = args[:vm_id] if args.key?(:vm_id)
2699
2744
  end
2700
2745
  end
@@ -2703,12 +2748,19 @@ module Google
2703
2748
  class UpgradeInstanceRequest
2704
2749
  include Google::Apis::Core::Hashable
2705
2750
 
2751
+ # Optional. The optional UpgradeType. Setting this field will search for
2752
+ # additional compute images to upgrade this instance.
2753
+ # Corresponds to the JSON property `type`
2754
+ # @return [String]
2755
+ attr_accessor :type
2756
+
2706
2757
  def initialize(**args)
2707
2758
  update!(**args)
2708
2759
  end
2709
2760
 
2710
2761
  # Update properties of this object
2711
2762
  def update!(**args)
2763
+ @type = args[:type] if args.key?(:type)
2712
2764
  end
2713
2765
  end
2714
2766
 
@@ -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.18.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211019"
25
+ REVISION = "20220104"
26
26
  end
27
27
  end
28
28
  end
@@ -394,6 +394,18 @@ module Google
394
394
  include Google::Apis::Core::JsonObjectSupport
395
395
  end
396
396
 
397
+ class UpdateInstanceMetadataItemsRequest
398
+ class Representation < Google::Apis::Core::JsonRepresentation; end
399
+
400
+ include Google::Apis::Core::JsonObjectSupport
401
+ end
402
+
403
+ class UpdateInstanceMetadataItemsResponse
404
+ class Representation < Google::Apis::Core::JsonRepresentation; end
405
+
406
+ include Google::Apis::Core::JsonObjectSupport
407
+ end
408
+
397
409
  class UpdateShieldedInstanceConfigRequest
398
410
  class Representation < Google::Apis::Core::JsonRepresentation; end
399
411
 
@@ -1070,6 +1082,20 @@ module Google
1070
1082
  end
1071
1083
  end
1072
1084
 
1085
+ class UpdateInstanceMetadataItemsRequest
1086
+ # @private
1087
+ class Representation < Google::Apis::Core::JsonRepresentation
1088
+ hash :items, as: 'items'
1089
+ end
1090
+ end
1091
+
1092
+ class UpdateInstanceMetadataItemsResponse
1093
+ # @private
1094
+ class Representation < Google::Apis::Core::JsonRepresentation
1095
+ hash :items, as: 'items'
1096
+ end
1097
+ end
1098
+
1073
1099
  class UpdateShieldedInstanceConfigRequest
1074
1100
  # @private
1075
1101
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1097,6 +1123,7 @@ module Google
1097
1123
  class UpgradeInstanceInternalRequest
1098
1124
  # @private
1099
1125
  class Representation < Google::Apis::Core::JsonRepresentation
1126
+ property :type, as: 'type'
1100
1127
  property :vm_id, as: 'vmId'
1101
1128
  end
1102
1129
  end
@@ -1104,6 +1131,7 @@ module Google
1104
1131
  class UpgradeInstanceRequest
1105
1132
  # @private
1106
1133
  class Representation < Google::Apis::Core::JsonRepresentation
1134
+ property :type, as: 'type'
1107
1135
  end
1108
1136
  end
1109
1137
 
@@ -506,13 +506,16 @@ module Google
506
506
  # REQUIRED: The resource for which the policy is being requested. See the
507
507
  # operation documentation for the appropriate value for this field.
508
508
  # @param [Fixnum] options_requested_policy_version
509
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
510
- # 3. Requests specifying an invalid value will be rejected. Requests for
511
- # policies with any conditional bindings must specify version 3. Policies
512
- # without any conditional bindings may specify any valid value or leave the
513
- # field unset. To learn which resources support conditions in their IAM policies,
514
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
515
- # resource-policies).
509
+ # Optional. The maximum policy version that will be used to format the policy.
510
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
511
+ # rejected. Requests for policies with any conditional role bindings must
512
+ # specify version 3. Policies with no conditional role bindings may specify any
513
+ # valid value or leave the field unset. The policy in the response might use the
514
+ # policy version that you specified, or it might use a lower policy version. For
515
+ # example, if you specify version 3, but the policy has no conditional role
516
+ # bindings, the response uses version 1. To learn which resources support
517
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
518
+ # google.com/iam/help/conditions/resource-policies).
516
519
  # @param [String] fields
517
520
  # Selector specifying which fields to include in a partial response.
518
521
  # @param [String] quota_user
@@ -576,6 +579,9 @@ module Google
576
579
  # @param [String] notebook_instance
577
580
  # Required. Format: `projects/`project_id`/locations/`location`/instances/`
578
581
  # instance_id``
582
+ # @param [String] type
583
+ # Optional. The optional UpgradeType. Setting this field will search for
584
+ # additional compute images to upgrade this instance.
579
585
  # @param [String] fields
580
586
  # Selector specifying which fields to include in a partial response.
581
587
  # @param [String] quota_user
@@ -593,11 +599,12 @@ module Google
593
599
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
594
600
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
595
601
  # @raise [Google::Apis::AuthorizationError] Authorization is required
596
- def is_project_location_instance_upgradeable(notebook_instance, fields: nil, quota_user: nil, options: nil, &block)
602
+ def is_project_location_instance_upgradeable(notebook_instance, type: nil, fields: nil, quota_user: nil, options: nil, &block)
597
603
  command = make_simple_command(:get, 'v1/{+notebookInstance}:isUpgradeable', options)
598
604
  command.response_representation = Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse::Representation
599
605
  command.response_class = Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse
600
606
  command.params['notebookInstance'] = notebook_instance unless notebook_instance.nil?
607
+ command.query['type'] = type unless type.nil?
601
608
  command.query['fields'] = fields unless fields.nil?
602
609
  command.query['quotaUser'] = quota_user unless quota_user.nil?
603
610
  execute_or_queue_command(command, &block)
@@ -1058,6 +1065,40 @@ module Google
1058
1065
  execute_or_queue_command(command, &block)
1059
1066
  end
1060
1067
 
1068
+ # Add/update metadata items for an instance.
1069
+ # @param [String] name
1070
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
1071
+ # instance_id``
1072
+ # @param [Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsRequest] update_instance_metadata_items_request_object
1073
+ # @param [String] fields
1074
+ # Selector specifying which fields to include in a partial response.
1075
+ # @param [String] quota_user
1076
+ # Available to use for quota purposes for server-side applications. Can be any
1077
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1078
+ # @param [Google::Apis::RequestOptions] options
1079
+ # Request-specific options
1080
+ #
1081
+ # @yield [result, err] Result & error if block supplied
1082
+ # @yieldparam result [Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsResponse] parsed result object
1083
+ # @yieldparam err [StandardError] error object if request failed
1084
+ #
1085
+ # @return [Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsResponse]
1086
+ #
1087
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1088
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1089
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1090
+ def update_project_location_instance_metadata_items(name, update_instance_metadata_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1091
+ command = make_simple_command(:patch, 'v1/{+name}:updateMetadataItems', options)
1092
+ command.request_representation = Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsRequest::Representation
1093
+ command.request_object = update_instance_metadata_items_request_object
1094
+ command.response_representation = Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsResponse::Representation
1095
+ command.response_class = Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsResponse
1096
+ command.params['name'] = name unless name.nil?
1097
+ command.query['fields'] = fields unless fields.nil?
1098
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1099
+ execute_or_queue_command(command, &block)
1100
+ end
1101
+
1061
1102
  # Updates the Shielded instance configuration of a single Instance.
1062
1103
  # @param [String] name
1063
1104
  # Required. Format: `projects/`project_id`/locations/`location`/instances/`
@@ -1416,13 +1457,16 @@ module Google
1416
1457
  # REQUIRED: The resource for which the policy is being requested. See the
1417
1458
  # operation documentation for the appropriate value for this field.
1418
1459
  # @param [Fixnum] options_requested_policy_version
1419
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
1420
- # 3. Requests specifying an invalid value will be rejected. Requests for
1421
- # policies with any conditional bindings must specify version 3. Policies
1422
- # without any conditional bindings may specify any valid value or leave the
1423
- # field unset. To learn which resources support conditions in their IAM policies,
1424
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1425
- # resource-policies).
1460
+ # Optional. The maximum policy version that will be used to format the policy.
1461
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1462
+ # rejected. Requests for policies with any conditional role bindings must
1463
+ # specify version 3. Policies with no conditional role bindings may specify any
1464
+ # valid value or leave the field unset. The policy in the response might use the
1465
+ # policy version that you specified, or it might use a lower policy version. For
1466
+ # example, if you specify version 3, but the policy has no conditional role
1467
+ # bindings, the response uses version 1. To learn which resources support
1468
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1469
+ # google.com/iam/help/conditions/resource-policies).
1426
1470
  # @param [String] fields
1427
1471
  # Selector specifying which fields to include in a partial response.
1428
1472
  # @param [String] quota_user
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.18.0
4
+ version: 0.19.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: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2022-01-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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.19.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.4
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Notebooks API V1