Skip to content

Commit dff3c8c

Browse files
feat: Automated regeneration of file v1beta1 client (googleapis#22378)
Auto-created at 2025-04-06 10:22:39 +0000 using the toys pull request generator.
1 parent 41cf5ee commit dff3c8c

File tree

6 files changed

+90
-5
lines changed

6 files changed

+90
-5
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231479,6 +231479,7 @@
231479231479
"/file:v1beta1/DenyMaintenancePeriod/startDate": start_date
231480231480
"/file:v1beta1/DenyMaintenancePeriod/time": time
231481231481
"/file:v1beta1/DirectoryServicesConfig": directory_services_config
231482+
"/file:v1beta1/DirectoryServicesConfig/ldap": ldap
231482231483
"/file:v1beta1/DirectoryServicesConfig/managedActiveDirectory": managed_active_directory
231483231484
"/file:v1beta1/Empty": empty
231484231485
"/file:v1beta1/Export": export
@@ -231631,6 +231632,12 @@
231631231632
"/file:v1beta1/Instance/tags": tags
231632231633
"/file:v1beta1/Instance/tags/tag": tag
231633231634
"/file:v1beta1/Instance/tier": tier
231635+
"/file:v1beta1/LdapConfig": ldap_config
231636+
"/file:v1beta1/LdapConfig/domain": domain
231637+
"/file:v1beta1/LdapConfig/groupsOu": groups_ou
231638+
"/file:v1beta1/LdapConfig/servers": servers
231639+
"/file:v1beta1/LdapConfig/servers/server": server
231640+
"/file:v1beta1/LdapConfig/usersOu": users_ou
231634231641
"/file:v1beta1/ListBackupsResponse": list_backups_response
231635231642
"/file:v1beta1/ListBackupsResponse/backups": backups
231636231643
"/file:v1beta1/ListBackupsResponse/backups/backup": backup
@@ -231883,6 +231890,7 @@
231883231890
"/file:v1beta1/file.projects.locations.instances.snapshots.patch/name": name
231884231891
"/file:v1beta1/file.projects.locations.instances.snapshots.patch/updateMask": update_mask
231885231892
"/file:v1beta1/file.projects.locations.list": list_project_locations
231893+
"/file:v1beta1/file.projects.locations.list/extraLocationTypes": extra_location_types
231886231894
"/file:v1beta1/file.projects.locations.list/filter": filter
231887231895
"/file:v1beta1/file.projects.locations.list/includeUnrevealedLocations": include_unrevealed_locations
231888231896
"/file:v1beta1/file.projects.locations.list/name": name

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.54.0 (2025-04-06)
4+
5+
* Regenerated from discovery document revision 20250404
6+
37
### v0.53.0 (2025-02-26)
48

59
* Regenerated from discovery document revision 20250205

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

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,15 @@ def update!(**args)
276276
end
277277
end
278278

279-
# Directory Services configuration for Kerberos-based authentication.
279+
# Directory Services configuration.
280280
class DirectoryServicesConfig
281281
include Google::Apis::Core::Hashable
282282

283+
# LdapConfig contains all the parameters for connecting to LDAP servers.
284+
# Corresponds to the JSON property `ldap`
285+
# @return [Google::Apis::FileV1beta1::LdapConfig]
286+
attr_accessor :ldap
287+
283288
# ManagedActiveDirectoryConfig contains all the parameters for connecting to
284289
# Managed Service for Microsoft Active Directory (Managed Microsoft AD).
285290
# Corresponds to the JSON property `managedActiveDirectory`
@@ -292,6 +297,7 @@ def initialize(**args)
292297

293298
# Update properties of this object
294299
def update!(**args)
300+
@ldap = args[:ldap] if args.key?(:ldap)
295301
@managed_active_directory = args[:managed_active_directory] if args.key?(:managed_active_directory)
296302
end
297303
end
@@ -871,7 +877,7 @@ class Instance
871877
# @return [String]
872878
attr_accessor :description
873879

874-
# Directory Services configuration for Kerberos-based authentication.
880+
# Directory Services configuration.
875881
# Corresponds to the JSON property `directoryServices`
876882
# @return [Google::Apis::FileV1beta1::DirectoryServicesConfig]
877883
attr_accessor :directory_services
@@ -1037,6 +1043,51 @@ def update!(**args)
10371043
end
10381044
end
10391045

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

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

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

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
142142
include Google::Apis::Core::JsonObjectSupport
143143
end
144144

145+
class LdapConfig
146+
class Representation < Google::Apis::Core::JsonRepresentation; end
147+
148+
include Google::Apis::Core::JsonObjectSupport
149+
end
150+
145151
class ListBackupsResponse
146152
class Representation < Google::Apis::Core::JsonRepresentation; end
147153

@@ -371,6 +377,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
371377
class DirectoryServicesConfig
372378
# @private
373379
class Representation < Google::Apis::Core::JsonRepresentation
380+
property :ldap, as: 'ldap', class: Google::Apis::FileV1beta1::LdapConfig, decorator: Google::Apis::FileV1beta1::LdapConfig::Representation
381+
374382
property :managed_active_directory, as: 'managedActiveDirectory', class: Google::Apis::FileV1beta1::ManagedActiveDirectoryConfig, decorator: Google::Apis::FileV1beta1::ManagedActiveDirectoryConfig::Representation
375383

376384
end
@@ -548,6 +556,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
548556
end
549557
end
550558

559+
class LdapConfig
560+
# @private
561+
class Representation < Google::Apis::Core::JsonRepresentation
562+
property :domain, as: 'domain'
563+
property :groups_ou, as: 'groupsOu'
564+
collection :servers, as: 'servers'
565+
property :users_ou, as: 'usersOu'
566+
end
567+
end
568+
551569
class ListBackupsResponse
552570
# @private
553571
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
8484
# Lists information about the supported locations for this service.
8585
# @param [String] name
8686
# The resource that owns the locations collection, if applicable.
87+
# @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.
8790
# @param [String] filter
8891
# A filter to narrow down results to a preferred subset. The filtering language
8992
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -113,11 +116,12 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
113116
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
114117
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115118
# @raise [Google::Apis::AuthorizationError] Authorization is required
116-
def list_project_locations(name, filter: nil, include_unrevealed_locations: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
119+
def list_project_locations(name, extra_location_types: nil, filter: nil, include_unrevealed_locations: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
117120
command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
118121
command.response_representation = Google::Apis::FileV1beta1::ListLocationsResponse::Representation
119122
command.response_class = Google::Apis::FileV1beta1::ListLocationsResponse
120123
command.params['name'] = name unless name.nil?
124+
command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
121125
command.query['filter'] = filter unless filter.nil?
122126
command.query['includeUnrevealedLocations'] = include_unrevealed_locations unless include_unrevealed_locations.nil?
123127
command.query['pageSize'] = page_size unless page_size.nil?

0 commit comments

Comments
 (0)