google-apis-notebooks_v1 0.18.0 → 0.19.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/notebooks_v1/classes.rb +52 -0
- data/lib/google/apis/notebooks_v1/gem_version.rb +2 -2
- data/lib/google/apis/notebooks_v1/representations.rb +28 -0
- data/lib/google/apis/notebooks_v1/service.rb +59 -15
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2564fe0ba2be0b1e5b0fde75c78ec90186ab50e17f5c43e8510c24816976b4de
|
4
|
+
data.tar.gz: a3442d864320d3345bca3a95cd9a8db39d6d5ca730a75f035052a17be58aa9c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3067d3b60aaf3bd26851b0b479ea971809b69a4b649b072e500e0a4b4ec680d8e5159c6e45c4228df40780c5a88549a2d89c73fcd3b17103984100f1e1130b81
|
7
|
+
data.tar.gz: 5cd71540e35daf387111b843dd76fa9de0299b8824f4d1b5e9d40a1a37dfbf96683567b69bd14c3f723a2ef54a3a32de80f209e485f32f7d1370be462c85a180
|
data/CHANGELOG.md
CHANGED
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.
|
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.
|
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 = "
|
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
|
510
|
-
# 3. Requests specifying an invalid value will be
|
511
|
-
# policies with any conditional bindings must
|
512
|
-
#
|
513
|
-
# field unset.
|
514
|
-
#
|
515
|
-
#
|
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
|
1420
|
-
# 3. Requests specifying an invalid value will be
|
1421
|
-
# policies with any conditional bindings must
|
1422
|
-
#
|
1423
|
-
# field unset.
|
1424
|
-
#
|
1425
|
-
#
|
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.
|
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:
|
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.
|
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.
|
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
|