Skip to content

Commit b4396f6

Browse files
feat: Automated regeneration of file v1 client
1 parent d872bb6 commit b4396f6

File tree

6 files changed

+138
-3
lines changed

6 files changed

+138
-3
lines changed

api_names_out.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250364,6 +250364,8 @@
250364250364
"/file:v1/DenyMaintenancePeriod/endDate": end_date
250365250365
"/file:v1/DenyMaintenancePeriod/startDate": start_date
250366250366
"/file:v1/DenyMaintenancePeriod/time": time
250367+
"/file:v1/DirectoryServicesConfig": directory_services_config
250368+
"/file:v1/DirectoryServicesConfig/ldap": ldap
250367250369
"/file:v1/Empty": empty
250368250370
"/file:v1/FileShareConfig": file_share_config
250369250371
"/file:v1/FileShareConfig/capacityGb": capacity_gb
@@ -250472,6 +250474,7 @@
250472250474
"/file:v1/Instance/deletionProtectionEnabled": deletion_protection_enabled
250473250475
"/file:v1/Instance/deletionProtectionReason": deletion_protection_reason
250474250476
"/file:v1/Instance/description": description
250477+
"/file:v1/Instance/directoryServices": directory_services
250475250478
"/file:v1/Instance/etag": etag
250476250479
"/file:v1/Instance/fileShares": file_shares
250477250480
"/file:v1/Instance/fileShares/file_share": file_share
@@ -250496,6 +250499,12 @@
250496250499
"/file:v1/Instance/tags": tags
250497250500
"/file:v1/Instance/tags/tag": tag
250498250501
"/file:v1/Instance/tier": tier
250502+
"/file:v1/LdapConfig": ldap_config
250503+
"/file:v1/LdapConfig/domain": domain
250504+
"/file:v1/LdapConfig/groupsOu": groups_ou
250505+
"/file:v1/LdapConfig/servers": servers
250506+
"/file:v1/LdapConfig/servers/server": server
250507+
"/file:v1/LdapConfig/usersOu": users_ou
250499250508
"/file:v1/ListBackupsResponse": list_backups_response
250500250509
"/file:v1/ListBackupsResponse/backups": backups
250501250510
"/file:v1/ListBackupsResponse/backups/backup": backup
@@ -250516,6 +250525,8 @@
250516250525
"/file:v1/ListOperationsResponse/nextPageToken": next_page_token
250517250526
"/file:v1/ListOperationsResponse/operations": operations
250518250527
"/file:v1/ListOperationsResponse/operations/operation": operation
250528+
"/file:v1/ListOperationsResponse/unreachable": unreachable
250529+
"/file:v1/ListOperationsResponse/unreachable/unreachable": unreachable
250519250530
"/file:v1/ListSnapshotsResponse": list_snapshots_response
250520250531
"/file:v1/ListSnapshotsResponse/nextPageToken": next_page_token
250521250532
"/file:v1/ListSnapshotsResponse/snapshots": snapshots
@@ -250718,6 +250729,7 @@
250718250729
"/file:v1/file.projects.locations.operations.list/name": name
250719250730
"/file:v1/file.projects.locations.operations.list/pageSize": page_size
250720250731
"/file:v1/file.projects.locations.operations.list/pageToken": page_token
250732+
"/file:v1/file.projects.locations.operations.list/returnPartialSuccess": return_partial_success
250721250733
"/file:v1/key": key
250722250734
"/file:v1/quotaUser": quota_user
250723250735
"/file:v1beta1/Backup": backup

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

3+
### v0.61.0 (2025-10-26)
4+
5+
* Regenerated from discovery document revision 20251015
6+
37
### v0.60.0 (2025-10-12)
48

59
* Regenerated from discovery document revision 20250929

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

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,25 @@ def update!(**args)
278278
end
279279
end
280280

281+
# Directory Services configuration for Kerberos-based authentication.
282+
class DirectoryServicesConfig
283+
include Google::Apis::Core::Hashable
284+
285+
# LdapConfig contains all the parameters for connecting to LDAP servers.
286+
# Corresponds to the JSON property `ldap`
287+
# @return [Google::Apis::FileV1::LdapConfig]
288+
attr_accessor :ldap
289+
290+
def initialize(**args)
291+
update!(**args)
292+
end
293+
294+
# Update properties of this object
295+
def update!(**args)
296+
@ldap = args[:ldap] if args.key?(:ldap)
297+
end
298+
end
299+
281300
# A generic empty message that you can re-use to avoid defining duplicated empty
282301
# messages in your APIs. A typical example is to use it as the request or the
283302
# response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -867,6 +886,11 @@ class Instance
867886
# @return [String]
868887
attr_accessor :description
869888

889+
# Directory Services configuration for Kerberos-based authentication.
890+
# Corresponds to the JSON property `directoryServices`
891+
# @return [Google::Apis::FileV1::DirectoryServicesConfig]
892+
attr_accessor :directory_services
893+
870894
# Server-specified ETag for the instance resource to prevent simultaneous
871895
# updates from overwriting each other.
872896
# Corresponds to the JSON property `etag`
@@ -995,6 +1019,7 @@ def update!(**args)
9951019
@deletion_protection_enabled = args[:deletion_protection_enabled] if args.key?(:deletion_protection_enabled)
9961020
@deletion_protection_reason = args[:deletion_protection_reason] if args.key?(:deletion_protection_reason)
9971021
@description = args[:description] if args.key?(:description)
1022+
@directory_services = args[:directory_services] if args.key?(:directory_services)
9981023
@etag = args[:etag] if args.key?(:etag)
9991024
@file_shares = args[:file_shares] if args.key?(:file_shares)
10001025
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
@@ -1017,6 +1042,51 @@ def update!(**args)
10171042
end
10181043
end
10191044

1045+
# LdapConfig contains all the parameters for connecting to LDAP servers.
1046+
class LdapConfig
1047+
include Google::Apis::Core::Hashable
1048+
1049+
# Required. The LDAP domain name in the format of `my-domain.com`.
1050+
# Corresponds to the JSON property `domain`
1051+
# @return [String]
1052+
attr_accessor :domain
1053+
1054+
# Optional. The groups Organizational Unit (OU) is optional. This parameter is a
1055+
# hint to allow faster lookup in the LDAP namespace. In case that this parameter
1056+
# is not provided, Filestore instance will query the whole LDAP namespace.
1057+
# Corresponds to the JSON property `groupsOu`
1058+
# @return [String]
1059+
attr_accessor :groups_ou
1060+
1061+
# Required. The servers names are used for specifying the LDAP servers names.
1062+
# The LDAP servers names can come with two formats: 1. DNS name, for example: `
1063+
# ldap.example1.com`, `ldap.example2.com`. 2. IP address, for example: `10.0.0.1`
1064+
# , `10.0.0.2`, `10.0.0.3`. All servers names must be in the same format: either
1065+
# all DNS names or all IP addresses.
1066+
# Corresponds to the JSON property `servers`
1067+
# @return [Array<String>]
1068+
attr_accessor :servers
1069+
1070+
# Optional. The users Organizational Unit (OU) is optional. This parameter is a
1071+
# hint to allow faster lookup in the LDAP namespace. In case that this parameter
1072+
# is not provided, Filestore instance will query the whole LDAP namespace.
1073+
# Corresponds to the JSON property `usersOu`
1074+
# @return [String]
1075+
attr_accessor :users_ou
1076+
1077+
def initialize(**args)
1078+
update!(**args)
1079+
end
1080+
1081+
# Update properties of this object
1082+
def update!(**args)
1083+
@domain = args[:domain] if args.key?(:domain)
1084+
@groups_ou = args[:groups_ou] if args.key?(:groups_ou)
1085+
@servers = args[:servers] if args.key?(:servers)
1086+
@users_ou = args[:users_ou] if args.key?(:users_ou)
1087+
end
1088+
end
1089+
10201090
# ListBackupsResponse is the result of ListBackupsRequest.
10211091
class ListBackupsResponse
10221092
include Google::Apis::Core::Hashable
@@ -1128,6 +1198,13 @@ class ListOperationsResponse
11281198
# @return [Array<Google::Apis::FileV1::Operation>]
11291199
attr_accessor :operations
11301200

1201+
# Unordered list. Unreachable resources. Populated when the request sets `
1202+
# ListOperationsRequest.return_partial_success` and reads across collections e.g.
1203+
# when attempting to list all resources across all supported locations.
1204+
# Corresponds to the JSON property `unreachable`
1205+
# @return [Array<String>]
1206+
attr_accessor :unreachable
1207+
11311208
def initialize(**args)
11321209
update!(**args)
11331210
end
@@ -1136,6 +1213,7 @@ def initialize(**args)
11361213
def update!(**args)
11371214
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
11381215
@operations = args[:operations] if args.key?(:operations)
1216+
@unreachable = args[:unreachable] if args.key?(:unreachable)
11391217
end
11401218
end
11411219

generated/google-apis-file_v1/lib/google/apis/file_v1/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 FileV1
1818
# Version of the google-apis-file_v1 gem
19-
GEM_VERSION = "0.60.0"
19+
GEM_VERSION = "0.61.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 = "20250929"
25+
REVISION = "20251015"
2626
end
2727
end
2828
end

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
5252
include Google::Apis::Core::JsonObjectSupport
5353
end
5454

55+
class DirectoryServicesConfig
56+
class Representation < Google::Apis::Core::JsonRepresentation; end
57+
58+
include Google::Apis::Core::JsonObjectSupport
59+
end
60+
5561
class Empty
5662
class Representation < Google::Apis::Core::JsonRepresentation; end
5763

@@ -136,6 +142,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
136142
include Google::Apis::Core::JsonObjectSupport
137143
end
138144

145+
class LdapConfig
146+
class Representation < Google::Apis::Core::JsonRepresentation; end
147+
148+
include Google::Apis::Core::JsonObjectSupport
149+
end
150+
139151
class ListBackupsResponse
140152
class Representation < Google::Apis::Core::JsonRepresentation; end
141153

@@ -350,6 +362,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
350362
end
351363
end
352364

365+
class DirectoryServicesConfig
366+
# @private
367+
class Representation < Google::Apis::Core::JsonRepresentation
368+
property :ldap, as: 'ldap', class: Google::Apis::FileV1::LdapConfig, decorator: Google::Apis::FileV1::LdapConfig::Representation
369+
370+
end
371+
end
372+
353373
class Empty
354374
# @private
355375
class Representation < Google::Apis::Core::JsonRepresentation
@@ -493,6 +513,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
493513
property :deletion_protection_enabled, as: 'deletionProtectionEnabled'
494514
property :deletion_protection_reason, as: 'deletionProtectionReason'
495515
property :description, as: 'description'
516+
property :directory_services, as: 'directoryServices', class: Google::Apis::FileV1::DirectoryServicesConfig, decorator: Google::Apis::FileV1::DirectoryServicesConfig::Representation
517+
496518
property :etag, as: 'etag'
497519
collection :file_shares, as: 'fileShares', class: Google::Apis::FileV1::FileShareConfig, decorator: Google::Apis::FileV1::FileShareConfig::Representation
498520

@@ -520,6 +542,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
520542
end
521543
end
522544

545+
class LdapConfig
546+
# @private
547+
class Representation < Google::Apis::Core::JsonRepresentation
548+
property :domain, as: 'domain'
549+
property :groups_ou, as: 'groupsOu'
550+
collection :servers, as: 'servers'
551+
property :users_ou, as: 'usersOu'
552+
end
553+
end
554+
523555
class ListBackupsResponse
524556
# @private
525557
class Representation < Google::Apis::Core::JsonRepresentation
@@ -555,6 +587,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
555587
property :next_page_token, as: 'nextPageToken'
556588
collection :operations, as: 'operations', class: Google::Apis::FileV1::Operation, decorator: Google::Apis::FileV1::Operation::Representation
557589

590+
collection :unreachable, as: 'unreachable'
558591
end
559592
end
560593

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,13 @@ def get_project_location_operation(name, fields: nil, quota_user: nil, options:
919919
# The standard list page size.
920920
# @param [String] page_token
921921
# The standard list page token.
922+
# @param [Boolean] return_partial_success
923+
# When set to `true`, operations that are reachable are returned as normal, and
924+
# those that are unreachable are returned in the [ListOperationsResponse.
925+
# unreachable] field. This can only be `true` when reading across collections e.
926+
# g. when `parent` is set to `"projects/example/locations/-"`. This field is not
927+
# by default supported and will result in an `UNIMPLEMENTED` error if set unless
928+
# explicitly documented otherwise in service or product specific documentation.
922929
# @param [String] fields
923930
# Selector specifying which fields to include in a partial response.
924931
# @param [String] quota_user
@@ -936,14 +943,15 @@ def get_project_location_operation(name, fields: nil, quota_user: nil, options:
936943
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
937944
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
938945
# @raise [Google::Apis::AuthorizationError] Authorization is required
939-
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
946+
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)
940947
command = make_simple_command(:get, 'v1/{+name}/operations', options)
941948
command.response_representation = Google::Apis::FileV1::ListOperationsResponse::Representation
942949
command.response_class = Google::Apis::FileV1::ListOperationsResponse
943950
command.params['name'] = name unless name.nil?
944951
command.query['filter'] = filter unless filter.nil?
945952
command.query['pageSize'] = page_size unless page_size.nil?
946953
command.query['pageToken'] = page_token unless page_token.nil?
954+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
947955
command.query['fields'] = fields unless fields.nil?
948956
command.query['quotaUser'] = quota_user unless quota_user.nil?
949957
execute_or_queue_command(command, &block)

0 commit comments

Comments
 (0)