google-apis-file_v1 0.61.0 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/file_v1/classes.rb +45 -15
- data/lib/google/apis/file_v1/gem_version.rb +2 -2
- data/lib/google/apis/file_v1/representations.rb +24 -0
- data/lib/google/apis/file_v1/service.rb +79 -7
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b20a602fc016ceebe6fa047b4a218aa44820b509ff56ff6641e4ef88099399e7
|
|
4
|
+
data.tar.gz: cf16ad44b40e1a95bbe0bff716a3ba3de7e50ef7a87d8c6e57a926c0d2280188
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32209e96174fcab069666d6b858202b604c7bf2b2024848ef0f9dab159f2c1c9325025d61f1bff8de1a89a0e5dc0e9f0f1efe827a0db9f1951950d6eb2e0aa78
|
|
7
|
+
data.tar.gz: 96edfcf899e0599fadafeaf18d9a409a84c3c04bf4e8487ae21f170c362b136e7d04767af6527130d6af4a3041b4b1a1cba2dfa422f10044c25be7ef0014603e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-file_v1
|
|
2
2
|
|
|
3
|
+
### v0.63.0 (2026-01-25)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260114
|
|
6
|
+
|
|
7
|
+
### v0.62.0 (2025-12-14)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20251204
|
|
10
|
+
|
|
3
11
|
### v0.61.0 (2025-10-26)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20251015
|
|
@@ -852,7 +852,8 @@ module Google
|
|
|
852
852
|
class Instance
|
|
853
853
|
include Google::Apis::Core::Hashable
|
|
854
854
|
|
|
855
|
-
# Output only. The increase
|
|
855
|
+
# Output only. The incremental increase or decrease in capacity, designated in
|
|
856
|
+
# some number of GB.
|
|
856
857
|
# Corresponds to the JSON property `capacityStepSizeGb`
|
|
857
858
|
# @return [Fixnum]
|
|
858
859
|
attr_accessor :capacity_step_size_gb
|
|
@@ -913,12 +914,12 @@ module Google
|
|
|
913
914
|
# @return [Hash<String,String>]
|
|
914
915
|
attr_accessor :labels
|
|
915
916
|
|
|
916
|
-
# Output only. The
|
|
917
|
+
# Output only. The maximum capacity of the instance in GB.
|
|
917
918
|
# Corresponds to the JSON property `maxCapacityGb`
|
|
918
919
|
# @return [Fixnum]
|
|
919
920
|
attr_accessor :max_capacity_gb
|
|
920
921
|
|
|
921
|
-
# Output only. The
|
|
922
|
+
# Output only. The minimum capacity of the instance in GB.
|
|
922
923
|
# Corresponds to the JSON property `minCapacityGb`
|
|
923
924
|
# @return [Fixnum]
|
|
924
925
|
attr_accessor :min_capacity_gb
|
|
@@ -958,7 +959,7 @@ module Google
|
|
|
958
959
|
# @return [String]
|
|
959
960
|
attr_accessor :protocol
|
|
960
961
|
|
|
961
|
-
#
|
|
962
|
+
# Optional. The configuration used to replicate an instance.
|
|
962
963
|
# Corresponds to the JSON property `replication`
|
|
963
964
|
# @return [Google::Apis::FileV1::Replication]
|
|
964
965
|
attr_accessor :replication
|
|
@@ -1199,8 +1200,9 @@ module Google
|
|
|
1199
1200
|
attr_accessor :operations
|
|
1200
1201
|
|
|
1201
1202
|
# Unordered list. Unreachable resources. Populated when the request sets `
|
|
1202
|
-
# ListOperationsRequest.return_partial_success` and reads across collections
|
|
1203
|
-
# when attempting to list all resources across all supported
|
|
1203
|
+
# ListOperationsRequest.return_partial_success` and reads across collections.
|
|
1204
|
+
# For example, when attempting to list all resources across all supported
|
|
1205
|
+
# locations.
|
|
1204
1206
|
# Corresponds to the JSON property `unreachable`
|
|
1205
1207
|
# @return [Array<String>]
|
|
1206
1208
|
attr_accessor :unreachable
|
|
@@ -1401,7 +1403,6 @@ module Google
|
|
|
1401
1403
|
attr_accessor :ip_addresses
|
|
1402
1404
|
|
|
1403
1405
|
# Internet protocol versions for which the instance has IP addresses assigned.
|
|
1404
|
-
# For this version, only MODE_IPV4 is supported.
|
|
1405
1406
|
# Corresponds to the JSON property `modes`
|
|
1406
1407
|
# @return [Array<String>]
|
|
1407
1408
|
attr_accessor :modes
|
|
@@ -1634,6 +1635,19 @@ module Google
|
|
|
1634
1635
|
end
|
|
1635
1636
|
end
|
|
1636
1637
|
|
|
1638
|
+
# PauseReplicaRequest pauses a Filestore standby instance (replica).
|
|
1639
|
+
class PauseReplicaRequest
|
|
1640
|
+
include Google::Apis::Core::Hashable
|
|
1641
|
+
|
|
1642
|
+
def initialize(**args)
|
|
1643
|
+
update!(**args)
|
|
1644
|
+
end
|
|
1645
|
+
|
|
1646
|
+
# Update properties of this object
|
|
1647
|
+
def update!(**args)
|
|
1648
|
+
end
|
|
1649
|
+
end
|
|
1650
|
+
|
|
1637
1651
|
# Used for setting the performance configuration. If the user doesn't specify
|
|
1638
1652
|
# PerformanceConfig, automatically provision the default performance settings as
|
|
1639
1653
|
# described in https://cloud.google.com/filestore/docs/performance. Larger
|
|
@@ -1669,27 +1683,27 @@ module Google
|
|
|
1669
1683
|
class PerformanceLimits
|
|
1670
1684
|
include Google::Apis::Core::Hashable
|
|
1671
1685
|
|
|
1672
|
-
# Output only. The
|
|
1686
|
+
# Output only. The maximum IOPS.
|
|
1673
1687
|
# Corresponds to the JSON property `maxIops`
|
|
1674
1688
|
# @return [Fixnum]
|
|
1675
1689
|
attr_accessor :max_iops
|
|
1676
1690
|
|
|
1677
|
-
# Output only. The
|
|
1691
|
+
# Output only. The maximum read IOPS.
|
|
1678
1692
|
# Corresponds to the JSON property `maxReadIops`
|
|
1679
1693
|
# @return [Fixnum]
|
|
1680
1694
|
attr_accessor :max_read_iops
|
|
1681
1695
|
|
|
1682
|
-
# Output only. The
|
|
1696
|
+
# Output only. The maximum read throughput in bytes per second.
|
|
1683
1697
|
# Corresponds to the JSON property `maxReadThroughputBps`
|
|
1684
1698
|
# @return [Fixnum]
|
|
1685
1699
|
attr_accessor :max_read_throughput_bps
|
|
1686
1700
|
|
|
1687
|
-
# Output only. The
|
|
1701
|
+
# Output only. The maximum write IOPS.
|
|
1688
1702
|
# Corresponds to the JSON property `maxWriteIops`
|
|
1689
1703
|
# @return [Fixnum]
|
|
1690
1704
|
attr_accessor :max_write_iops
|
|
1691
1705
|
|
|
1692
|
-
# Output only. The
|
|
1706
|
+
# Output only. The maximum write throughput in bytes per second.
|
|
1693
1707
|
# Corresponds to the JSON property `maxWriteThroughputBps`
|
|
1694
1708
|
# @return [Fixnum]
|
|
1695
1709
|
attr_accessor :max_write_throughput_bps
|
|
@@ -1761,7 +1775,9 @@ module Google
|
|
|
1761
1775
|
# @return [String]
|
|
1762
1776
|
attr_accessor :last_active_sync_time
|
|
1763
1777
|
|
|
1764
|
-
# Optional. The
|
|
1778
|
+
# Optional. The name of the source instance for the replica, in the format `
|
|
1779
|
+
# projects/`project`/locations/`location`/instances/`instance``. This field is
|
|
1780
|
+
# required when creating a replica.
|
|
1765
1781
|
# Corresponds to the JSON property `peerInstance`
|
|
1766
1782
|
# @return [String]
|
|
1767
1783
|
attr_accessor :peer_instance
|
|
@@ -1795,7 +1811,7 @@ module Google
|
|
|
1795
1811
|
end
|
|
1796
1812
|
end
|
|
1797
1813
|
|
|
1798
|
-
#
|
|
1814
|
+
# Optional. The configuration used to replicate an instance.
|
|
1799
1815
|
class Replication
|
|
1800
1816
|
include Google::Apis::Core::Hashable
|
|
1801
1817
|
|
|
@@ -1805,7 +1821,8 @@ module Google
|
|
|
1805
1821
|
# @return [Array<Google::Apis::FileV1::ReplicaConfig>]
|
|
1806
1822
|
attr_accessor :replicas
|
|
1807
1823
|
|
|
1808
|
-
# Optional. The replication role.
|
|
1824
|
+
# Optional. The replication role. When creating a new replica, this field must
|
|
1825
|
+
# be set to `STANDBY`.
|
|
1809
1826
|
# Corresponds to the JSON property `role`
|
|
1810
1827
|
# @return [String]
|
|
1811
1828
|
attr_accessor :role
|
|
@@ -1849,6 +1866,19 @@ module Google
|
|
|
1849
1866
|
end
|
|
1850
1867
|
end
|
|
1851
1868
|
|
|
1869
|
+
# ResumeReplicaRequest resumes a Filestore standby instance (replica).
|
|
1870
|
+
class ResumeReplicaRequest
|
|
1871
|
+
include Google::Apis::Core::Hashable
|
|
1872
|
+
|
|
1873
|
+
def initialize(**args)
|
|
1874
|
+
update!(**args)
|
|
1875
|
+
end
|
|
1876
|
+
|
|
1877
|
+
# Update properties of this object
|
|
1878
|
+
def update!(**args)
|
|
1879
|
+
end
|
|
1880
|
+
end
|
|
1881
|
+
|
|
1852
1882
|
# RevertInstanceRequest reverts the given instance's file share to the specified
|
|
1853
1883
|
# snapshot.
|
|
1854
1884
|
class RevertInstanceRequest
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module FileV1
|
|
18
18
|
# Version of the google-apis-file_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.63.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260114"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -220,6 +220,12 @@ module Google
|
|
|
220
220
|
include Google::Apis::Core::JsonObjectSupport
|
|
221
221
|
end
|
|
222
222
|
|
|
223
|
+
class PauseReplicaRequest
|
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
225
|
+
|
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
227
|
+
end
|
|
228
|
+
|
|
223
229
|
class PerformanceConfig
|
|
224
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
225
231
|
|
|
@@ -262,6 +268,12 @@ module Google
|
|
|
262
268
|
include Google::Apis::Core::JsonObjectSupport
|
|
263
269
|
end
|
|
264
270
|
|
|
271
|
+
class ResumeReplicaRequest
|
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
273
|
+
|
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
275
|
+
end
|
|
276
|
+
|
|
265
277
|
class RevertInstanceRequest
|
|
266
278
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
267
279
|
|
|
@@ -686,6 +698,12 @@ module Google
|
|
|
686
698
|
end
|
|
687
699
|
end
|
|
688
700
|
|
|
701
|
+
class PauseReplicaRequest
|
|
702
|
+
# @private
|
|
703
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
704
|
+
end
|
|
705
|
+
end
|
|
706
|
+
|
|
689
707
|
class PerformanceConfig
|
|
690
708
|
# @private
|
|
691
709
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -749,6 +767,12 @@ module Google
|
|
|
749
767
|
end
|
|
750
768
|
end
|
|
751
769
|
|
|
770
|
+
class ResumeReplicaRequest
|
|
771
|
+
# @private
|
|
772
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
773
|
+
end
|
|
774
|
+
end
|
|
775
|
+
|
|
752
776
|
class RevertInstanceRequest
|
|
753
777
|
# @private
|
|
754
778
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -85,8 +85,8 @@ module Google
|
|
|
85
85
|
# @param [String] name
|
|
86
86
|
# The resource that owns the locations collection, if applicable.
|
|
87
87
|
# @param [Array<String>, String] extra_location_types
|
|
88
|
-
# Optional.
|
|
89
|
-
#
|
|
88
|
+
# Optional. Do not use this field. It is unsupported and is ignored unless
|
|
89
|
+
# explicitly documented otherwise. This is primarily for internal usage.
|
|
90
90
|
# @param [String] filter
|
|
91
91
|
# A filter to narrow down results to a preferred subset. The filtering language
|
|
92
92
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
|
@@ -512,6 +512,42 @@ module Google
|
|
|
512
512
|
execute_or_queue_command(command, &block)
|
|
513
513
|
end
|
|
514
514
|
|
|
515
|
+
# Pause the standby instance (replica). WARNING: This operation makes the
|
|
516
|
+
# standby instance's NFS filesystem writable. Any data written to the standby
|
|
517
|
+
# instance while paused will be lost when the replica is resumed or promoted.
|
|
518
|
+
# @param [String] name
|
|
519
|
+
# Required. The resource name of the instance, in the format `projects/`
|
|
520
|
+
# project_id`/locations/`location_id`/instances/`instance_id``.
|
|
521
|
+
# @param [Google::Apis::FileV1::PauseReplicaRequest] pause_replica_request_object
|
|
522
|
+
# @param [String] fields
|
|
523
|
+
# Selector specifying which fields to include in a partial response.
|
|
524
|
+
# @param [String] quota_user
|
|
525
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
526
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
527
|
+
# @param [Google::Apis::RequestOptions] options
|
|
528
|
+
# Request-specific options
|
|
529
|
+
#
|
|
530
|
+
# @yield [result, err] Result & error if block supplied
|
|
531
|
+
# @yieldparam result [Google::Apis::FileV1::Operation] parsed result object
|
|
532
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
533
|
+
#
|
|
534
|
+
# @return [Google::Apis::FileV1::Operation]
|
|
535
|
+
#
|
|
536
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
537
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
538
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
539
|
+
def pause_instance_replica(name, pause_replica_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
540
|
+
command = make_simple_command(:post, 'v1/{+name}:pauseReplica', options)
|
|
541
|
+
command.request_representation = Google::Apis::FileV1::PauseReplicaRequest::Representation
|
|
542
|
+
command.request_object = pause_replica_request_object
|
|
543
|
+
command.response_representation = Google::Apis::FileV1::Operation::Representation
|
|
544
|
+
command.response_class = Google::Apis::FileV1::Operation
|
|
545
|
+
command.params['name'] = name unless name.nil?
|
|
546
|
+
command.query['fields'] = fields unless fields.nil?
|
|
547
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
548
|
+
execute_or_queue_command(command, &block)
|
|
549
|
+
end
|
|
550
|
+
|
|
515
551
|
# Promote the standby instance (replica).
|
|
516
552
|
# @param [String] name
|
|
517
553
|
# Required. The resource name of the instance, in the format `projects/`
|
|
@@ -582,6 +618,41 @@ module Google
|
|
|
582
618
|
execute_or_queue_command(command, &block)
|
|
583
619
|
end
|
|
584
620
|
|
|
621
|
+
# Resume the standby instance (replica). WARNING: Any data written to the
|
|
622
|
+
# standby instance while paused will be lost when the replica is resumed.
|
|
623
|
+
# @param [String] name
|
|
624
|
+
# Required. The resource name of the instance, in the format `projects/`
|
|
625
|
+
# project_id`/locations/`location_id`/instances/`instance_id``.
|
|
626
|
+
# @param [Google::Apis::FileV1::ResumeReplicaRequest] resume_replica_request_object
|
|
627
|
+
# @param [String] fields
|
|
628
|
+
# Selector specifying which fields to include in a partial response.
|
|
629
|
+
# @param [String] quota_user
|
|
630
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
631
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
632
|
+
# @param [Google::Apis::RequestOptions] options
|
|
633
|
+
# Request-specific options
|
|
634
|
+
#
|
|
635
|
+
# @yield [result, err] Result & error if block supplied
|
|
636
|
+
# @yieldparam result [Google::Apis::FileV1::Operation] parsed result object
|
|
637
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
638
|
+
#
|
|
639
|
+
# @return [Google::Apis::FileV1::Operation]
|
|
640
|
+
#
|
|
641
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
642
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
643
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
644
|
+
def resume_instance_replica(name, resume_replica_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
645
|
+
command = make_simple_command(:post, 'v1/{+name}:resumeReplica', options)
|
|
646
|
+
command.request_representation = Google::Apis::FileV1::ResumeReplicaRequest::Representation
|
|
647
|
+
command.request_object = resume_replica_request_object
|
|
648
|
+
command.response_representation = Google::Apis::FileV1::Operation::Representation
|
|
649
|
+
command.response_class = Google::Apis::FileV1::Operation
|
|
650
|
+
command.params['name'] = name unless name.nil?
|
|
651
|
+
command.query['fields'] = fields unless fields.nil?
|
|
652
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
653
|
+
execute_or_queue_command(command, &block)
|
|
654
|
+
end
|
|
655
|
+
|
|
585
656
|
# Revert an existing instance's file system to a specified snapshot.
|
|
586
657
|
# @param [String] name
|
|
587
658
|
# Required. The resource name of the instance, in the format `projects/`
|
|
@@ -921,11 +992,12 @@ module Google
|
|
|
921
992
|
# The standard list page token.
|
|
922
993
|
# @param [Boolean] return_partial_success
|
|
923
994
|
# When set to `true`, operations that are reachable are returned as normal, and
|
|
924
|
-
# those that are unreachable are returned in the
|
|
925
|
-
# unreachable
|
|
926
|
-
#
|
|
927
|
-
# by default
|
|
928
|
-
# explicitly documented otherwise in service or product specific
|
|
995
|
+
# those that are unreachable are returned in the ListOperationsResponse.
|
|
996
|
+
# unreachable field. This can only be `true` when reading across collections.
|
|
997
|
+
# For example, when `parent` is set to `"projects/example/locations/-"`. This
|
|
998
|
+
# field is not supported by default and will result in an `UNIMPLEMENTED` error
|
|
999
|
+
# if set unless explicitly documented otherwise in service or product specific
|
|
1000
|
+
# documentation.
|
|
929
1001
|
# @param [String] fields
|
|
930
1002
|
# Selector specifying which fields to include in a partial response.
|
|
931
1003
|
# @param [String] quota_user
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-file_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.63.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-file_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1/v0.63.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-file_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|