Skip to content

Commit c005cd1

Browse files
feat: Automated regeneration of file v1 client (#24247)
Auto-created at 2025-09-14 09:20:23 +0000 using the toys pull request generator.
1 parent 538dcc8 commit c005cd1

File tree

5 files changed

+62
-2
lines changed

5 files changed

+62
-2
lines changed

api_names_out.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245140,13 +245140,15 @@
245140245140
"/file:v1/NetworkConfig/modes": modes
245141245141
"/file:v1/NetworkConfig/modes/mode": mode
245142245142
"/file:v1/NetworkConfig/network": network
245143+
"/file:v1/NetworkConfig/pscConfig": psc_config
245143245144
"/file:v1/NetworkConfig/reservedIpRange": reserved_ip_range
245144245145
"/file:v1/NfsExportOptions": nfs_export_options
245145245146
"/file:v1/NfsExportOptions/accessMode": access_mode
245146245147
"/file:v1/NfsExportOptions/anonGid": anon_gid
245147245148
"/file:v1/NfsExportOptions/anonUid": anon_uid
245148245149
"/file:v1/NfsExportOptions/ipRanges": ip_ranges
245149245150
"/file:v1/NfsExportOptions/ipRanges/ip_range": ip_range
245151+
"/file:v1/NfsExportOptions/network": network
245150245152
"/file:v1/NfsExportOptions/squashMode": squash_mode
245151245153
"/file:v1/Operation": operation
245152245154
"/file:v1/Operation/done": done
@@ -245179,6 +245181,8 @@
245179245181
"/file:v1/PerformanceLimits/maxWriteThroughputBps": max_write_throughput_bps
245180245182
"/file:v1/PromoteReplicaRequest": promote_replica_request
245181245183
"/file:v1/PromoteReplicaRequest/peerInstance": peer_instance
245184+
"/file:v1/PscConfig": psc_config
245185+
"/file:v1/PscConfig/endpointProject": endpoint_project
245182245186
"/file:v1/ReplicaConfig": replica_config
245183245187
"/file:v1/ReplicaConfig/lastActiveSyncTime": last_active_sync_time
245184245188
"/file:v1/ReplicaConfig/peerInstance": peer_instance

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.58.0 (2025-09-14)
4+
5+
* Regenerated from discovery document revision 20250825
6+
37
### v0.57.0 (2025-08-31)
48

59
* Regenerated from discovery document revision 20250819

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,6 +1325,11 @@ class NetworkConfig
13251325
# @return [String]
13261326
attr_accessor :network
13271327

1328+
# Private Service Connect configuration.
1329+
# Corresponds to the JSON property `pscConfig`
1330+
# @return [Google::Apis::FileV1::PscConfig]
1331+
attr_accessor :psc_config
1332+
13281333
# Optional, reserved_ip_range can have one of the following two types of values.
13291334
# * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP
13301335
# address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-
@@ -1353,6 +1358,7 @@ def update!(**args)
13531358
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
13541359
@modes = args[:modes] if args.key?(:modes)
13551360
@network = args[:network] if args.key?(:network)
1361+
@psc_config = args[:psc_config] if args.key?(:psc_config)
13561362
@reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
13571363
end
13581364
end
@@ -1392,6 +1398,13 @@ class NfsExportOptions
13921398
# @return [Array<String>]
13931399
attr_accessor :ip_ranges
13941400

1401+
# Optional. The source VPC network for ip_ranges. Required for instances using
1402+
# Private Service Connect, optional otherwise. If provided, must be the same
1403+
# network specified in the `NetworkConfig.network` field.
1404+
# Corresponds to the JSON property `network`
1405+
# @return [String]
1406+
attr_accessor :network
1407+
13951408
# Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or
13961409
# ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
13971410
# Corresponds to the JSON property `squashMode`
@@ -1408,6 +1421,7 @@ def update!(**args)
14081421
@anon_gid = args[:anon_gid] if args.key?(:anon_gid)
14091422
@anon_uid = args[:anon_uid] if args.key?(:anon_uid)
14101423
@ip_ranges = args[:ip_ranges] if args.key?(:ip_ranges)
1424+
@network = args[:network] if args.key?(:network)
14111425
@squash_mode = args[:squash_mode] if args.key?(:squash_mode)
14121426
end
14131427
end
@@ -1628,6 +1642,28 @@ def update!(**args)
16281642
end
16291643
end
16301644

1645+
# Private Service Connect configuration.
1646+
class PscConfig
1647+
include Google::Apis::Core::Hashable
1648+
1649+
# Optional. Consumer service project in which the Private Service Connect
1650+
# endpoint would be set up. This is optional, and only relevant in case the
1651+
# network is a shared VPC. If this is not specified, the endpoint would be setup
1652+
# in the VPC host project.
1653+
# Corresponds to the JSON property `endpointProject`
1654+
# @return [String]
1655+
attr_accessor :endpoint_project
1656+
1657+
def initialize(**args)
1658+
update!(**args)
1659+
end
1660+
1661+
# Update properties of this object
1662+
def update!(**args)
1663+
@endpoint_project = args[:endpoint_project] if args.key?(:endpoint_project)
1664+
end
1665+
end
1666+
16311667
# Replica configuration for the instance.
16321668
class ReplicaConfig
16331669
include Google::Apis::Core::Hashable

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.57.0"
19+
GEM_VERSION = "0.58.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 = "20250819"
25+
REVISION = "20250825"
2626
end
2727
end
2828
end

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
226226
include Google::Apis::Core::JsonObjectSupport
227227
end
228228

229+
class PscConfig
230+
class Representation < Google::Apis::Core::JsonRepresentation; end
231+
232+
include Google::Apis::Core::JsonObjectSupport
233+
end
234+
229235
class ReplicaConfig
230236
class Representation < Google::Apis::Core::JsonRepresentation; end
231237

@@ -603,6 +609,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
603609
collection :ip_addresses, as: 'ipAddresses'
604610
collection :modes, as: 'modes'
605611
property :network, as: 'network'
612+
property :psc_config, as: 'pscConfig', class: Google::Apis::FileV1::PscConfig, decorator: Google::Apis::FileV1::PscConfig::Representation
613+
606614
property :reserved_ip_range, as: 'reservedIpRange'
607615
end
608616
end
@@ -614,6 +622,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
614622
property :anon_gid, :numeric_string => true, as: 'anonGid'
615623
property :anon_uid, :numeric_string => true, as: 'anonUid'
616624
collection :ip_ranges, as: 'ipRanges'
625+
property :network, as: 'network'
617626
property :squash_mode, as: 'squashMode'
618627
end
619628
end
@@ -671,6 +680,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
671680
end
672681
end
673682

683+
class PscConfig
684+
# @private
685+
class Representation < Google::Apis::Core::JsonRepresentation
686+
property :endpoint_project, as: 'endpointProject'
687+
end
688+
end
689+
674690
class ReplicaConfig
675691
# @private
676692
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)