Skip to content

Commit 97508dc

Browse files
feat: Automated regeneration of file v1beta1 client (#27202)
Auto-created at 2026-06-28 10:43:31 +0000 using the toys pull request generator.
1 parent 1272bf3 commit 97508dc

6 files changed

Lines changed: 231 additions & 2 deletions

File tree

api_names_out.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277912,6 +277912,12 @@
277912277912
"/file:v1/file.projects.locations.operations.list/returnPartialSuccess": return_partial_success
277913277913
"/file:v1/key": key
277914277914
"/file:v1/quotaUser": quota_user
277915+
"/file:v1beta1/AcquireShareRequest": acquire_share_request
277916+
"/file:v1beta1/AcquireShareRequest/capacityGb": capacity_gb
277917+
"/file:v1beta1/AcquireShareRequest/requestId": request_id
277918+
"/file:v1beta1/AcquireShareResponse": acquire_share_response
277919+
"/file:v1beta1/AcquireShareResponse/ipAddress": ip_address
277920+
"/file:v1beta1/AcquireShareResponse/shareId": share_id
277915277921
"/file:v1beta1/Backup": backup
277916277922
"/file:v1beta1/Backup/capacityGb": capacity_gb
277917277923
"/file:v1beta1/Backup/createTime": create_time
@@ -278231,6 +278237,10 @@
278231278237
"/file:v1beta1/PromoteReplicaRequest/peerInstance": peer_instance
278232278238
"/file:v1beta1/PscConfig": psc_config
278233278239
"/file:v1beta1/PscConfig/endpointProject": endpoint_project
278240+
"/file:v1beta1/ReleaseShareRequest": release_share_request
278241+
"/file:v1beta1/ReleaseShareRequest/ipAddress": ip_address
278242+
"/file:v1beta1/ReleaseShareRequest/shareId": share_id
278243+
"/file:v1beta1/ReleaseShareResponse": release_share_response
278234278244
"/file:v1beta1/ReplicaConfig": replica_config
278235278245
"/file:v1beta1/ReplicaConfig/lastActiveSyncTime": last_active_sync_time
278236278246
"/file:v1beta1/ReplicaConfig/peerInstance": peer_instance
@@ -278395,6 +278405,10 @@
278395278405
"/file:v1beta1/file.projects.locations.operations.list/pageSize": page_size
278396278406
"/file:v1beta1/file.projects.locations.operations.list/pageToken": page_token
278397278407
"/file:v1beta1/file.projects.locations.operations.list/returnPartialSuccess": return_partial_success
278408+
"/file:v1beta1/file.projects.locations.sharePools.acquireShare": acquire_share_pool_share
278409+
"/file:v1beta1/file.projects.locations.sharePools.acquireShare/parent": parent
278410+
"/file:v1beta1/file.projects.locations.sharePools.releaseShare": release_share_pool_share
278411+
"/file:v1beta1/file.projects.locations.sharePools.releaseShare/parent": parent
278398278412
"/file:v1beta1/key": key
278399278413
"/file:v1beta1/quotaUser": quota_user
278400278414
"/firebase:v1beta1/AddFirebaseRequest": add_firebase_request

generated/google-apis-file_v1beta1/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-file_v1beta1
22

3+
### v0.70.0 (2026-06-28)
4+
5+
* Regenerated from discovery document revision 20260612
6+
37
### v0.69.0 (2026-06-14)
48

59
* Regenerated using generator version 0.19.0

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

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,57 @@ module Google
2222
module Apis
2323
module FileV1beta1
2424

25+
# Request message for AcquireShare.
26+
class AcquireShareRequest
27+
include Google::Apis::Core::Hashable
28+
29+
# Required. Requested size of the share in GiB.
30+
# Corresponds to the JSON property `capacityGb`
31+
# @return [Fixnum]
32+
attr_accessor :capacity_gb
33+
34+
# Required. Unique string generated by the CSI driver for exact retry
35+
# idempotency.
36+
# Corresponds to the JSON property `requestId`
37+
# @return [String]
38+
attr_accessor :request_id
39+
40+
def initialize(**args)
41+
update!(**args)
42+
end
43+
44+
# Update properties of this object
45+
def update!(**args)
46+
@capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
47+
@request_id = args[:request_id] if args.key?(:request_id)
48+
end
49+
end
50+
51+
# Output message for AcquireShare.
52+
class AcquireShareResponse
53+
include Google::Apis::Core::Hashable
54+
55+
# The IP address of the physical Filestore instance hosting the share.
56+
# Corresponds to the JSON property `ipAddress`
57+
# @return [String]
58+
attr_accessor :ip_address
59+
60+
# The specific share identifier on the instance.
61+
# Corresponds to the JSON property `shareId`
62+
# @return [String]
63+
attr_accessor :share_id
64+
65+
def initialize(**args)
66+
update!(**args)
67+
end
68+
69+
# Update properties of this object
70+
def update!(**args)
71+
@ip_address = args[:ip_address] if args.key?(:ip_address)
72+
@share_id = args[:share_id] if args.key?(:share_id)
73+
end
74+
end
75+
2576
# A Filestore backup.
2677
class Backup
2778
include Google::Apis::Core::Hashable
@@ -1866,6 +1917,44 @@ def update!(**args)
18661917
end
18671918
end
18681919

1920+
# Request message for ReleaseShare.
1921+
class ReleaseShareRequest
1922+
include Google::Apis::Core::Hashable
1923+
1924+
# Required. The IP address of the physical Filestore instance hosting the share.
1925+
# Corresponds to the JSON property `ipAddress`
1926+
# @return [String]
1927+
attr_accessor :ip_address
1928+
1929+
# Required. The specific share ID on the instance.
1930+
# Corresponds to the JSON property `shareId`
1931+
# @return [String]
1932+
attr_accessor :share_id
1933+
1934+
def initialize(**args)
1935+
update!(**args)
1936+
end
1937+
1938+
# Update properties of this object
1939+
def update!(**args)
1940+
@ip_address = args[:ip_address] if args.key?(:ip_address)
1941+
@share_id = args[:share_id] if args.key?(:share_id)
1942+
end
1943+
end
1944+
1945+
# Response message for ReleaseShare.
1946+
class ReleaseShareResponse
1947+
include Google::Apis::Core::Hashable
1948+
1949+
def initialize(**args)
1950+
update!(**args)
1951+
end
1952+
1953+
# Update properties of this object
1954+
def update!(**args)
1955+
end
1956+
end
1957+
18691958
# Replica configuration for the instance.
18701959
class ReplicaConfig
18711960
include Google::Apis::Core::Hashable

generated/google-apis-file_v1beta1/lib/google/apis/file_v1beta1/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 FileV1beta1
1818
# Version of the google-apis-file_v1beta1 gem
19-
GEM_VERSION = "0.69.0"
19+
GEM_VERSION = "0.70.0"
2020

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

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

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

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ module Google
2222
module Apis
2323
module FileV1beta1
2424

25+
class AcquireShareRequest
26+
class Representation < Google::Apis::Core::JsonRepresentation; end
27+
28+
include Google::Apis::Core::JsonObjectSupport
29+
end
30+
31+
class AcquireShareResponse
32+
class Representation < Google::Apis::Core::JsonRepresentation; end
33+
34+
include Google::Apis::Core::JsonObjectSupport
35+
end
36+
2537
class Backup
2638
class Representation < Google::Apis::Core::JsonRepresentation; end
2739

@@ -262,6 +274,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
262274
include Google::Apis::Core::JsonObjectSupport
263275
end
264276

277+
class ReleaseShareRequest
278+
class Representation < Google::Apis::Core::JsonRepresentation; end
279+
280+
include Google::Apis::Core::JsonObjectSupport
281+
end
282+
283+
class ReleaseShareResponse
284+
class Representation < Google::Apis::Core::JsonRepresentation; end
285+
286+
include Google::Apis::Core::JsonObjectSupport
287+
end
288+
265289
class ReplicaConfig
266290
class Representation < Google::Apis::Core::JsonRepresentation; end
267291

@@ -334,6 +358,22 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
334358
include Google::Apis::Core::JsonObjectSupport
335359
end
336360

361+
class AcquireShareRequest
362+
# @private
363+
class Representation < Google::Apis::Core::JsonRepresentation
364+
property :capacity_gb, as: 'capacityGb'
365+
property :request_id, as: 'requestId'
366+
end
367+
end
368+
369+
class AcquireShareResponse
370+
# @private
371+
class Representation < Google::Apis::Core::JsonRepresentation
372+
property :ip_address, as: 'ipAddress'
373+
property :share_id, as: 'shareId'
374+
end
375+
end
376+
337377
class Backup
338378
# @private
339379
class Representation < Google::Apis::Core::JsonRepresentation
@@ -782,6 +822,20 @@ class Representation < Google::Apis::Core::JsonRepresentation
782822
end
783823
end
784824

825+
class ReleaseShareRequest
826+
# @private
827+
class Representation < Google::Apis::Core::JsonRepresentation
828+
property :ip_address, as: 'ipAddress'
829+
property :share_id, as: 'shareId'
830+
end
831+
end
832+
833+
class ReleaseShareResponse
834+
# @private
835+
class Representation < Google::Apis::Core::JsonRepresentation
836+
end
837+
end
838+
785839
class ReplicaConfig
786840
# @private
787841
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,74 @@ def list_project_location_operations(name, filter: nil, page_size: nil, page_tok
12231223
command.query['quotaUser'] = quota_user unless quota_user.nil?
12241224
execute_or_queue_command(command, &block)
12251225
end
1226+
1227+
# Acquires a share synchronously from the pre-provisioned share pool.
1228+
# @param [String] parent
1229+
# Required. The parent share pool path, in the format `projects/`project`/
1230+
# locations/`location`/sharePools/`share_pool``.
1231+
# @param [Google::Apis::FileV1beta1::AcquireShareRequest] acquire_share_request_object
1232+
# @param [String] fields
1233+
# Selector specifying which fields to include in a partial response.
1234+
# @param [String] quota_user
1235+
# Available to use for quota purposes for server-side applications. Can be any
1236+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1237+
# @param [Google::Apis::RequestOptions] options
1238+
# Request-specific options
1239+
#
1240+
# @yield [result, err] Result & error if block supplied
1241+
# @yieldparam result [Google::Apis::FileV1beta1::AcquireShareResponse] parsed result object
1242+
# @yieldparam err [StandardError] error object if request failed
1243+
#
1244+
# @return [Google::Apis::FileV1beta1::AcquireShareResponse]
1245+
#
1246+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1247+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1248+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1249+
def acquire_share_pool_share(parent, acquire_share_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1250+
command = make_simple_command(:post, 'v1beta1/{+parent}:acquireShare', options)
1251+
command.request_representation = Google::Apis::FileV1beta1::AcquireShareRequest::Representation
1252+
command.request_object = acquire_share_request_object
1253+
command.response_representation = Google::Apis::FileV1beta1::AcquireShareResponse::Representation
1254+
command.response_class = Google::Apis::FileV1beta1::AcquireShareResponse
1255+
command.params['parent'] = parent unless parent.nil?
1256+
command.query['fields'] = fields unless fields.nil?
1257+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1258+
execute_or_queue_command(command, &block)
1259+
end
1260+
1261+
# Releases a share synchronously, marking it for background scrubbing.
1262+
# @param [String] parent
1263+
# Required. The parent share pool path, in the format `projects/`project`/
1264+
# locations/`location`/sharePools/`share_pool``.
1265+
# @param [Google::Apis::FileV1beta1::ReleaseShareRequest] release_share_request_object
1266+
# @param [String] fields
1267+
# Selector specifying which fields to include in a partial response.
1268+
# @param [String] quota_user
1269+
# Available to use for quota purposes for server-side applications. Can be any
1270+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1271+
# @param [Google::Apis::RequestOptions] options
1272+
# Request-specific options
1273+
#
1274+
# @yield [result, err] Result & error if block supplied
1275+
# @yieldparam result [Google::Apis::FileV1beta1::ReleaseShareResponse] parsed result object
1276+
# @yieldparam err [StandardError] error object if request failed
1277+
#
1278+
# @return [Google::Apis::FileV1beta1::ReleaseShareResponse]
1279+
#
1280+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1281+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1282+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1283+
def release_share_pool_share(parent, release_share_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1284+
command = make_simple_command(:post, 'v1beta1/{+parent}:releaseShare', options)
1285+
command.request_representation = Google::Apis::FileV1beta1::ReleaseShareRequest::Representation
1286+
command.request_object = release_share_request_object
1287+
command.response_representation = Google::Apis::FileV1beta1::ReleaseShareResponse::Representation
1288+
command.response_class = Google::Apis::FileV1beta1::ReleaseShareResponse
1289+
command.params['parent'] = parent unless parent.nil?
1290+
command.query['fields'] = fields unless fields.nil?
1291+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1292+
execute_or_queue_command(command, &block)
1293+
end
12261294

12271295
protected
12281296

0 commit comments

Comments
 (0)