google-apis-notebooks_v2 0.8.0 → 0.10.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: 10030983cc11e599ddbefdc4b56caed1ae95462830394a24f5316868e09da6b2
4
- data.tar.gz: ddc7086c99b3e730e80858dfcad9d8e787cbbf8d2e16491cce8d40b5fc7e097e
3
+ metadata.gz: 0fe306df2a8928003ee20027c4d23f9bed4de23f065263c6935a7df9ac70ec4f
4
+ data.tar.gz: e068404534ede512899380e8616154f3c7f6052fb461d114946e522516d8878f
5
5
  SHA512:
6
- metadata.gz: e5791ba124f835c94d50cd01a2c01a201e363332502d23f342980e146dac9a922d26b604aad768a0ef841253953859ceff50128becd8f855b5a91ab44a37e26e
7
- data.tar.gz: 4fdd24221a3cadb9c2d715ccb17b8bbbc5aafcc26bcdcea745141ef7c878189aca90b980c6b65469d9776bec544364515affe0679f26c0f43501507a08f9055d
6
+ metadata.gz: 866e7677afbeef72aefb5f22f75ec4cae8e42f746e62200a2c6a5464837ee2b221fae34c4183ef33c09883d9b1057d5a1ab7ece08ab35d153ecf9eef8f46bad9
7
+ data.tar.gz: 814c5a8359b1840579f3002b99d3a2e517c8059fb7ac020396f8a48632423ab332e619681a2ba4c8a8a09a71996c20335fb92e4a669ac6b8d5bfcbbb94549181
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-notebooks_v2
2
2
 
3
+ ### v0.10.0 (2024-01-22)
4
+
5
+ * Regenerated from discovery document revision 20231227
6
+ * Regenerated using generator version 0.13.0
7
+
8
+ ### v0.9.0 (2023-12-17)
9
+
10
+ * Regenerated from discovery document revision 20231213
11
+
3
12
  ### v0.8.0 (2023-12-10)
4
13
 
5
14
  * Regenerated from discovery document revision 20231203
@@ -89,21 +89,43 @@ module Google
89
89
  # project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
90
90
  # email address that represents a Google group. For example, `admins@example.com`
91
91
  # . * `domain:`domain``: The G Suite domain (primary) that represents all the
92
- # users of that domain. For example, `google.com` or `example.com`. * `deleted:
93
- # user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
94
- # representing a user that has been recently deleted. For example, `alice@
95
- # example.com?uid=123456789012345678901`. If the user is recovered, this value
96
- # reverts to `user:`emailid`` and the recovered user retains the role in the
97
- # binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
98
- # (plus unique identifier) representing a service account that has been recently
99
- # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
92
+ # users of that domain. For example, `google.com` or `example.com`. * `principal:
93
+ # //iam.googleapis.com/locations/global/workforcePools/`pool_id`/subject/`
94
+ # subject_attribute_value``: A single identity in a workforce identity pool. * `
95
+ # principalSet://iam.googleapis.com/locations/global/workforcePools/`pool_id`/
96
+ # group/`group_id``: All workforce identities in a group. * `principalSet://iam.
97
+ # googleapis.com/locations/global/workforcePools/`pool_id`/attribute.`
98
+ # attribute_name`/`attribute_value``: All workforce identities with a specific
99
+ # attribute value. * `principalSet://iam.googleapis.com/locations/global/
100
+ # workforcePools/`pool_id`/*`: All identities in a workforce identity pool. * `
101
+ # principal://iam.googleapis.com/projects/`project_number`/locations/global/
102
+ # workloadIdentityPools/`pool_id`/subject/`subject_attribute_value``: A single
103
+ # identity in a workload identity pool. * `principalSet://iam.googleapis.com/
104
+ # projects/`project_number`/locations/global/workloadIdentityPools/`pool_id`/
105
+ # group/`group_id``: A workload identity pool group. * `principalSet://iam.
106
+ # googleapis.com/projects/`project_number`/locations/global/
107
+ # workloadIdentityPools/`pool_id`/attribute.`attribute_name`/`attribute_value``:
108
+ # All identities in a workload identity pool with a certain attribute. * `
109
+ # principalSet://iam.googleapis.com/projects/`project_number`/locations/global/
110
+ # workloadIdentityPools/`pool_id`/*`: All identities in a workload identity pool.
111
+ # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
112
+ # identifier) representing a user that has been recently deleted. For example, `
113
+ # alice@example.com?uid=123456789012345678901`. If the user is recovered, this
114
+ # value reverts to `user:`emailid`` and the recovered user retains the role in
115
+ # the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
116
+ # address (plus unique identifier) representing a service account that has been
117
+ # recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
100
118
  # 123456789012345678901`. If the service account is undeleted, this value
101
119
  # reverts to `serviceAccount:`emailid`` and the undeleted service account
102
120
  # retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
103
121
  # An email address (plus unique identifier) representing a Google group that has
104
122
  # been recently deleted. For example, `admins@example.com?uid=
105
123
  # 123456789012345678901`. If the group is recovered, this value reverts to `
106
- # group:`emailid`` and the recovered group retains the role in the binding.
124
+ # group:`emailid`` and the recovered group retains the role in the binding. * `
125
+ # deleted:principal://iam.googleapis.com/locations/global/workforcePools/`
126
+ # pool_id`/subject/`subject_attribute_value``: Deleted single identity in a
127
+ # workforce identity pool. For example, `deleted:principal://iam.googleapis.com/
128
+ # locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
107
129
  # Corresponds to the JSON property `members`
108
130
  # @return [Array<String>]
109
131
  attr_accessor :members
@@ -1225,6 +1247,31 @@ module Google
1225
1247
  end
1226
1248
  end
1227
1249
 
1250
+ # Request for resizing the notebook instance disks
1251
+ class ResizeDiskRequest
1252
+ include Google::Apis::Core::Hashable
1253
+
1254
+ # The definition of a boot disk.
1255
+ # Corresponds to the JSON property `bootDisk`
1256
+ # @return [Google::Apis::NotebooksV2::BootDisk]
1257
+ attr_accessor :boot_disk
1258
+
1259
+ # An instance-attached disk resource.
1260
+ # Corresponds to the JSON property `dataDisk`
1261
+ # @return [Google::Apis::NotebooksV2::DataDisk]
1262
+ attr_accessor :data_disk
1263
+
1264
+ def initialize(**args)
1265
+ update!(**args)
1266
+ end
1267
+
1268
+ # Update properties of this object
1269
+ def update!(**args)
1270
+ @boot_disk = args[:boot_disk] if args.key?(:boot_disk)
1271
+ @data_disk = args[:data_disk] if args.key?(:data_disk)
1272
+ end
1273
+ end
1274
+
1228
1275
  # Request for rollbacking a notebook instance
1229
1276
  class RollbackInstanceRequest
1230
1277
  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.8.0"
19
+ GEM_VERSION = "0.10.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231203"
25
+ REVISION = "20231227"
26
26
  end
27
27
  end
28
28
  end
@@ -190,6 +190,12 @@ module Google
190
190
  include Google::Apis::Core::JsonObjectSupport
191
191
  end
192
192
 
193
+ class ResizeDiskRequest
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
193
199
  class RollbackInstanceRequest
194
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
201
 
@@ -567,6 +573,16 @@ module Google
567
573
  end
568
574
  end
569
575
 
576
+ class ResizeDiskRequest
577
+ # @private
578
+ class Representation < Google::Apis::Core::JsonRepresentation
579
+ property :boot_disk, as: 'bootDisk', class: Google::Apis::NotebooksV2::BootDisk, decorator: Google::Apis::NotebooksV2::BootDisk::Representation
580
+
581
+ property :data_disk, as: 'dataDisk', class: Google::Apis::NotebooksV2::DataDisk, decorator: Google::Apis::NotebooksV2::DataDisk::Representation
582
+
583
+ end
584
+ end
585
+
570
586
  class RollbackInstanceRequest
571
587
  # @private
572
588
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -32,6 +32,8 @@ module Google
32
32
  #
33
33
  # @see https://cloud.google.com/notebooks/docs/
34
34
  class AIPlatformNotebooksService < Google::Apis::Core::BaseService
35
+ DEFAULT_ENDPOINT_TEMPLATE = "https://notebooks.$UNIVERSE_DOMAIN$/"
36
+
35
37
  # @return [String]
36
38
  # API key. Your API key identifies your project and provides you with API access,
37
39
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -43,7 +45,7 @@ module Google
43
45
  attr_accessor :quota_user
44
46
 
45
47
  def initialize
46
- super('https://notebooks.googleapis.com/', '',
48
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
47
49
  client_name: 'google-apis-notebooks_v2',
48
50
  client_version: Google::Apis::NotebooksV2::GEM_VERSION)
49
51
  @batch_path = 'batch'
@@ -523,6 +525,40 @@ module Google
523
525
  execute_or_queue_command(command, &block)
524
526
  end
525
527
 
528
+ # Resize a notebook instance disk to a higher capacity.
529
+ # @param [String] notebook_instance
530
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
531
+ # instance_id``
532
+ # @param [Google::Apis::NotebooksV2::ResizeDiskRequest] resize_disk_request_object
533
+ # @param [String] fields
534
+ # Selector specifying which fields to include in a partial response.
535
+ # @param [String] quota_user
536
+ # Available to use for quota purposes for server-side applications. Can be any
537
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
538
+ # @param [Google::Apis::RequestOptions] options
539
+ # Request-specific options
540
+ #
541
+ # @yield [result, err] Result & error if block supplied
542
+ # @yieldparam result [Google::Apis::NotebooksV2::Operation] parsed result object
543
+ # @yieldparam err [StandardError] error object if request failed
544
+ #
545
+ # @return [Google::Apis::NotebooksV2::Operation]
546
+ #
547
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
548
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
549
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
550
+ def resize_instance_disk(notebook_instance, resize_disk_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
551
+ command = make_simple_command(:post, 'v2/{+notebookInstance}:resizeDisk', options)
552
+ command.request_representation = Google::Apis::NotebooksV2::ResizeDiskRequest::Representation
553
+ command.request_object = resize_disk_request_object
554
+ command.response_representation = Google::Apis::NotebooksV2::Operation::Representation
555
+ command.response_class = Google::Apis::NotebooksV2::Operation
556
+ command.params['notebookInstance'] = notebook_instance unless notebook_instance.nil?
557
+ command.query['fields'] = fields unless fields.nil?
558
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
559
+ execute_or_queue_command(command, &block)
560
+ end
561
+
526
562
  # Rollbacks a notebook instance to the previous version.
527
563
  # @param [String] name
528
564
  # Required. Format: `projects/`project_id`/locations/`location`/instances/`
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.8.0
4
+ version: 0.10.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-12-10 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.8.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v2/v0.10.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: []
@@ -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.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Notebooks API V2