Skip to content

Commit 5872197

Browse files
feat: Automated regeneration of file v1beta1 client (googleapis#24061)
Auto-created at 2025-08-24 10:25:30 +0000 using the toys pull request generator.
1 parent 4e6502c commit 5872197

File tree

6 files changed

+78
-2
lines changed

6 files changed

+78
-2
lines changed

api_names_out.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241461,6 +241461,7 @@
241461241461
"/file:v1beta1/Instance/loggingService": logging_service
241462241462
"/file:v1beta1/Instance/maxCapacityGb": max_capacity_gb
241463241463
"/file:v1beta1/Instance/maxShareCount": max_share_count
241464+
"/file:v1beta1/Instance/minCapacityGb": min_capacity_gb
241464241465
"/file:v1beta1/Instance/monitoringService": monitoring_service
241465241466
"/file:v1beta1/Instance/multiShareEnabled": multi_share_enabled
241466241467
"/file:v1beta1/Instance/name": name
@@ -241584,6 +241585,7 @@
241584241585
"/file:v1beta1/OperationMetadata/statusDetail": status_detail
241585241586
"/file:v1beta1/OperationMetadata/target": target
241586241587
"/file:v1beta1/OperationMetadata/verb": verb
241588+
"/file:v1beta1/PauseReplicaRequest": pause_replica_request
241587241589
"/file:v1beta1/PerformanceConfig": performance_config
241588241590
"/file:v1beta1/PerformanceConfig/fixedIops": fixed_iops
241589241591
"/file:v1beta1/PerformanceConfig/iopsByCapacity": iops_by_capacity
@@ -241702,6 +241704,8 @@
241702241704
"/file:v1beta1/file.projects.locations.instances.patch": patch_project_location_instance
241703241705
"/file:v1beta1/file.projects.locations.instances.patch/name": name
241704241706
"/file:v1beta1/file.projects.locations.instances.patch/updateMask": update_mask
241707+
"/file:v1beta1/file.projects.locations.instances.pauseReplica": pause_instance_replica
241708+
"/file:v1beta1/file.projects.locations.instances.pauseReplica/name": name
241705241709
"/file:v1beta1/file.projects.locations.instances.promoteReplica": promote_instance_replica
241706241710
"/file:v1beta1/file.projects.locations.instances.promoteReplica/name": name
241707241711
"/file:v1beta1/file.projects.locations.instances.restore": restore_instance

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.59.0 (2025-08-24)
4+
5+
* Regenerated from discovery document revision 20250810
6+
37
### v0.58.0 (2025-08-10)
48

59
* Regenerated from discovery document revision 20250731

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,11 @@ class Instance
932932
# @return [Fixnum]
933933
attr_accessor :max_share_count
934934

935+
# Output only. The min capacity of the instance.
936+
# Corresponds to the JSON property `minCapacityGb`
937+
# @return [Fixnum]
938+
attr_accessor :min_capacity_gb
939+
935940
# Indicates whether this instance uses a multi-share configuration with which it
936941
# can have more than one file-share or none at all. File-shares are added,
937942
# updated and removed through the separate file-share APIs.
@@ -1045,6 +1050,7 @@ def update!(**args)
10451050
@labels = args[:labels] if args.key?(:labels)
10461051
@max_capacity_gb = args[:max_capacity_gb] if args.key?(:max_capacity_gb)
10471052
@max_share_count = args[:max_share_count] if args.key?(:max_share_count)
1053+
@min_capacity_gb = args[:min_capacity_gb] if args.key?(:min_capacity_gb)
10481054
@multi_share_enabled = args[:multi_share_enabled] if args.key?(:multi_share_enabled)
10491055
@name = args[:name] if args.key?(:name)
10501056
@networks = args[:networks] if args.key?(:networks)
@@ -1713,6 +1719,19 @@ def update!(**args)
17131719
end
17141720
end
17151721

1722+
# PauseReplicaRequest pauses a Filestore standby instance (replica).
1723+
class PauseReplicaRequest
1724+
include Google::Apis::Core::Hashable
1725+
1726+
def initialize(**args)
1727+
update!(**args)
1728+
end
1729+
1730+
# Update properties of this object
1731+
def update!(**args)
1732+
end
1733+
end
1734+
17161735
# Used for setting the performance configuration. If the user doesn't specify
17171736
# PerformanceConfig, automatically provision the default performance settings as
17181737
# described in https://cloud.google.com/filestore/docs/performance. Larger

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.58.0"
19+
GEM_VERSION = "0.59.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 = "20250731"
25+
REVISION = "20250810"
2626
end
2727
end
2828
end

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
232232
include Google::Apis::Core::JsonObjectSupport
233233
end
234234

235+
class PauseReplicaRequest
236+
class Representation < Google::Apis::Core::JsonRepresentation; end
237+
238+
include Google::Apis::Core::JsonObjectSupport
239+
end
240+
235241
class PerformanceConfig
236242
class Representation < Google::Apis::Core::JsonRepresentation; end
237243

@@ -543,6 +549,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
543549
hash :labels, as: 'labels'
544550
property :max_capacity_gb, :numeric_string => true, as: 'maxCapacityGb'
545551
property :max_share_count, :numeric_string => true, as: 'maxShareCount'
552+
property :min_capacity_gb, :numeric_string => true, as: 'minCapacityGb'
546553
property :multi_share_enabled, as: 'multiShareEnabled'
547554
property :name, as: 'name'
548555
collection :networks, as: 'networks', class: Google::Apis::FileV1beta1::NetworkConfig, decorator: Google::Apis::FileV1beta1::NetworkConfig::Representation
@@ -726,6 +733,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
726733
end
727734
end
728735

736+
class PauseReplicaRequest
737+
# @private
738+
class Representation < Google::Apis::Core::JsonRepresentation
739+
end
740+
end
741+
729742
class PerformanceConfig
730743
# @private
731744
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,42 @@ def patch_project_location_instance(name, instance_object = nil, update_mask: ni
514514
execute_or_queue_command(command, &block)
515515
end
516516

517+
# Pause the standby instance (replica). WARNING: This operation makes the
518+
# standby instance's NFS filesystem writable. Any data written to the standby
519+
# instance while paused will be lost when the replica is resumed or promoted.
520+
# @param [String] name
521+
# Required. The resource name of the instance, in the format `projects/`
522+
# project_id`/locations/`location_id`/instances/`instance_id``.
523+
# @param [Google::Apis::FileV1beta1::PauseReplicaRequest] pause_replica_request_object
524+
# @param [String] fields
525+
# Selector specifying which fields to include in a partial response.
526+
# @param [String] quota_user
527+
# Available to use for quota purposes for server-side applications. Can be any
528+
# arbitrary string assigned to a user, but should not exceed 40 characters.
529+
# @param [Google::Apis::RequestOptions] options
530+
# Request-specific options
531+
#
532+
# @yield [result, err] Result & error if block supplied
533+
# @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
534+
# @yieldparam err [StandardError] error object if request failed
535+
#
536+
# @return [Google::Apis::FileV1beta1::Operation]
537+
#
538+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
539+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
540+
# @raise [Google::Apis::AuthorizationError] Authorization is required
541+
def pause_instance_replica(name, pause_replica_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
542+
command = make_simple_command(:post, 'v1beta1/{+name}:pauseReplica', options)
543+
command.request_representation = Google::Apis::FileV1beta1::PauseReplicaRequest::Representation
544+
command.request_object = pause_replica_request_object
545+
command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
546+
command.response_class = Google::Apis::FileV1beta1::Operation
547+
command.params['name'] = name unless name.nil?
548+
command.query['fields'] = fields unless fields.nil?
549+
command.query['quotaUser'] = quota_user unless quota_user.nil?
550+
execute_or_queue_command(command, &block)
551+
end
552+
517553
# Promote the standby instance (replica).
518554
# @param [String] name
519555
# Required. The resource name of the instance, in the format `projects/`

0 commit comments

Comments
 (0)