Skip to content

Commit 7631495

Browse files
feat: Automated regeneration of notebooks v2 client
1 parent 1fce69b commit 7631495

File tree

6 files changed

+42
-9
lines changed

6 files changed

+42
-9
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308810,6 +308810,8 @@
308810308810
"/notebooks:v2/DataDisk/diskSizeGb": disk_size_gb
308811308811
"/notebooks:v2/DataDisk/diskType": disk_type
308812308812
"/notebooks:v2/DataDisk/kmsKey": kms_key
308813+
"/notebooks:v2/DataDisk/resourcePolicies": resource_policies
308814+
"/notebooks:v2/DataDisk/resourcePolicies/resource_policy": resource_policy
308813308815
"/notebooks:v2/DefaultValues": default_values
308814308816
"/notebooks:v2/DefaultValues/machineType": machine_type
308815308817
"/notebooks:v2/DiagnoseInstanceRequest": diagnose_instance_request
@@ -308908,6 +308910,8 @@
308908308910
"/notebooks:v2/ListOperationsResponse/nextPageToken": next_page_token
308909308911
"/notebooks:v2/ListOperationsResponse/operations": operations
308910308912
"/notebooks:v2/ListOperationsResponse/operations/operation": operation
308913+
"/notebooks:v2/ListOperationsResponse/unreachable": unreachable
308914+
"/notebooks:v2/ListOperationsResponse/unreachable/unreachable": unreachable
308911308915
"/notebooks:v2/Location": location
308912308916
"/notebooks:v2/Location/displayName": display_name
308913308917
"/notebooks:v2/Location/labels": labels
@@ -309085,6 +309089,7 @@
309085309089
"/notebooks:v2/notebooks.projects.locations.operations.list/name": name
309086309090
"/notebooks:v2/notebooks.projects.locations.operations.list/pageSize": page_size
309087309091
"/notebooks:v2/notebooks.projects.locations.operations.list/pageToken": page_token
309092+
"/notebooks:v2/notebooks.projects.locations.operations.list/returnPartialSuccess": return_partial_success
309088309093
"/notebooks:v2/quotaUser": quota_user
309089309094
"/oauth2:v1/Jwk": jwk
309090309095
"/oauth2:v1/Jwk/keys": keys

generated/google-apis-notebooks_v2/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-notebooks_v2
22

3+
### v0.27.0 (2025-10-19)
4+
5+
* Regenerated from discovery document revision 20251008
6+
37
### v0.26.0 (2025-07-20)
48

59
* Regenerated from discovery document revision 20250710

generated/google-apis-notebooks_v2/lib/google/apis/notebooks_v2/classes.rb

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,11 @@ class DataDisk
440440
# @return [String]
441441
attr_accessor :kms_key
442442

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+
443448
def initialize(**args)
444449
update!(**args)
445450
end
@@ -450,6 +455,7 @@ def update!(**args)
450455
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
451456
@disk_type = args[:disk_type] if args.key?(:disk_type)
452457
@kms_key = args[:kms_key] if args.key?(:kms_key)
458+
@resource_policies = args[:resource_policies] if args.key?(:resource_policies)
453459
end
454460
end
455461

@@ -979,8 +985,8 @@ class Instance
979985
# @return [Hash<String,String>]
980986
attr_accessor :labels
981987

982-
# Output only. The name of this notebook instance. Format: `projects/`project_id`
983-
# /locations/`location`/instances/`instance_id``
988+
# Output only. Identifier. The name of this notebook instance. Format: `projects/
989+
# `project_id`/locations/`location`/instances/`instance_id``
984990
# Corresponds to the JSON property `name`
985991
# @return [String]
986992
attr_accessor :name
@@ -1125,6 +1131,13 @@ class ListOperationsResponse
11251131
# @return [Array<Google::Apis::NotebooksV2::Operation>]
11261132
attr_accessor :operations
11271133

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+
11281141
def initialize(**args)
11291142
update!(**args)
11301143
end
@@ -1133,6 +1146,7 @@ def initialize(**args)
11331146
def update!(**args)
11341147
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
11351148
@operations = args[:operations] if args.key?(:operations)
1149+
@unreachable = args[:unreachable] if args.key?(:unreachable)
11361150
end
11371151
end
11381152

generated/google-apis-notebooks_v2/lib/google/apis/notebooks_v2/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module NotebooksV2
1818
# Version of the google-apis-notebooks_v2 gem
19-
GEM_VERSION = "0.26.0"
19+
GEM_VERSION = "0.27.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250710"
25+
REVISION = "20251008"
2626
end
2727
end
2828
end

generated/google-apis-notebooks_v2/lib/google/apis/notebooks_v2/representations.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
436436
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
437437
property :disk_type, as: 'diskType'
438438
property :kms_key, as: 'kmsKey'
439+
collection :resource_policies, as: 'resourcePolicies'
439440
end
440441
end
441442

@@ -611,6 +612,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
611612
property :next_page_token, as: 'nextPageToken'
612613
collection :operations, as: 'operations', class: Google::Apis::NotebooksV2::Operation, decorator: Google::Apis::NotebooksV2::Operation::Representation
613614

615+
collection :unreachable, as: 'unreachable'
614616
end
615617
end
616618

generated/google-apis-notebooks_v2/lib/google/apis/notebooks_v2/service.rb

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
8585
# @param [String] name
8686
# The resource that owns the locations collection, if applicable.
8787
# @param [Array<String>, String] extra_location_types
88-
# Optional. A list of extra location types that should be used as conditions for
89-
# controlling the visibility of the locations.
88+
# Optional. Unless explicitly documented otherwise, don't use this unsupported
89+
# field which is primarily intended for internal usage.
9090
# @param [String] filter
9191
# A filter to narrow down results to a preferred subset. The filtering language
9292
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -488,8 +488,8 @@ def list_project_location_instances(parent, filter: nil, order_by: nil, page_siz
488488

489489
# UpdateInstance updates an Instance.
490490
# @param [String] name
491-
# Output only. The name of this notebook instance. Format: `projects/`project_id`
492-
# /locations/`location`/instances/`instance_id``
491+
# Output only. Identifier. The name of this notebook instance. Format: `projects/
492+
# `project_id`/locations/`location`/instances/`instance_id``
493493
# @param [Google::Apis::NotebooksV2::Instance] instance_object
494494
# @param [String] request_id
495495
# Optional. Idempotent request UUID.
@@ -1038,6 +1038,13 @@ def get_project_location_operation(name, fields: nil, quota_user: nil, options:
10381038
# The standard list page size.
10391039
# @param [String] page_token
10401040
# 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.
10411048
# @param [String] fields
10421049
# Selector specifying which fields to include in a partial response.
10431050
# @param [String] quota_user
@@ -1055,14 +1062,15 @@ def get_project_location_operation(name, fields: nil, quota_user: nil, options:
10551062
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10561063
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10571064
# @raise [Google::Apis::AuthorizationError] Authorization is required
1058-
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)
10591066
command = make_simple_command(:get, 'v2/{+name}/operations', options)
10601067
command.response_representation = Google::Apis::NotebooksV2::ListOperationsResponse::Representation
10611068
command.response_class = Google::Apis::NotebooksV2::ListOperationsResponse
10621069
command.params['name'] = name unless name.nil?
10631070
command.query['filter'] = filter unless filter.nil?
10641071
command.query['pageSize'] = page_size unless page_size.nil?
10651072
command.query['pageToken'] = page_token unless page_token.nil?
1073+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
10661074
command.query['fields'] = fields unless fields.nil?
10671075
command.query['quotaUser'] = quota_user unless quota_user.nil?
10681076
execute_or_queue_command(command, &block)

0 commit comments

Comments
 (0)