google-cloud-filestore-v1 2.0.0 → 2.1.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/lib/google/cloud/filestore/v1/cloud_filestore_manager/client.rb +115 -3
- data/lib/google/cloud/filestore/v1/cloud_filestore_manager/rest/client.rb +108 -3
- data/lib/google/cloud/filestore/v1/cloud_filestore_manager/rest/service_stub.rb +62 -0
- data/lib/google/cloud/filestore/v1/cloud_filestore_service_pb.rb +12 -1
- data/lib/google/cloud/filestore/v1/cloud_filestore_service_services_pb.rb +4 -0
- data/lib/google/cloud/filestore/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +6 -0
- data/proto_docs/google/cloud/filestore/v1/cloud_filestore_service.rb +297 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d884bc839f5c77367e0bbecb95d5c7383a14f6829680173f2eafb8d499cd86c9
|
4
|
+
data.tar.gz: 23b2c924a62e1fbb43461e571de7e72ff8836cfe9cf22ecb6aa162b6740f6f7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38ae8ec45fd9f402bf7de9a4743672972252abd487181db2da11a4fee5f86d934b001def1d275194a6fe155b2575ee03a0f3c4148450427563dca440960b58bf
|
7
|
+
data.tar.gz: 492142bb986b19d216b23581b989e8f5ad8fe5a6a8f3f23d2e1cfa98471bc570e1ca3a3242349258c7a51863a41c7c18bbdfdcbeae45afc02c0ca8b1cb01c554
|
@@ -587,6 +587,9 @@ module Google
|
|
587
587
|
# * "description"
|
588
588
|
# * "file_shares"
|
589
589
|
# * "labels"
|
590
|
+
# * "performance_config"
|
591
|
+
# * "deletion_protection_enabled"
|
592
|
+
# * "deletion_protection_reason"
|
590
593
|
# @param instance [::Google::Cloud::Filestore::V1::Instance, ::Hash]
|
591
594
|
# Only fields specified in update_mask are updated.
|
592
595
|
#
|
@@ -787,9 +790,8 @@ module Google
|
|
787
790
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
788
791
|
#
|
789
792
|
# @param name [::String]
|
790
|
-
# Required.
|
793
|
+
# Required. The resource name of the instance, in the format
|
791
794
|
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
|
792
|
-
# The resource name of the instance, in the format
|
793
795
|
# @param target_snapshot_id [::String]
|
794
796
|
# Required. The snapshot resource ID, in the format 'my-snapshot', where the
|
795
797
|
# specified ID is the \\{snapshot_id} of the fully qualified name like
|
@@ -980,7 +982,7 @@ module Google
|
|
980
982
|
# @param options [::Gapic::CallOptions, ::Hash]
|
981
983
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
982
984
|
#
|
983
|
-
# @overload list_snapshots(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
|
985
|
+
# @overload list_snapshots(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil, return_partial_success: nil)
|
984
986
|
# Pass arguments to `list_snapshots` via keyword arguments. Note that at
|
985
987
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
986
988
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -998,6 +1000,9 @@ module Google
|
|
998
1000
|
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
|
999
1001
|
# @param filter [::String]
|
1000
1002
|
# List filter.
|
1003
|
+
# @param return_partial_success [::Boolean]
|
1004
|
+
# Optional. If true, allow partial responses for multi-regional Aggregated
|
1005
|
+
# List requests.
|
1001
1006
|
#
|
1002
1007
|
# @yield [response, operation] Access the result along with the RPC operation
|
1003
1008
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Filestore::V1::Snapshot>]
|
@@ -1940,6 +1945,106 @@ module Google
|
|
1940
1945
|
raise ::Google::Cloud::Error.from_error(e)
|
1941
1946
|
end
|
1942
1947
|
|
1948
|
+
##
|
1949
|
+
# Promote the standby instance (replica).
|
1950
|
+
#
|
1951
|
+
# @overload promote_replica(request, options = nil)
|
1952
|
+
# Pass arguments to `promote_replica` via a request object, either of type
|
1953
|
+
# {::Google::Cloud::Filestore::V1::PromoteReplicaRequest} or an equivalent Hash.
|
1954
|
+
#
|
1955
|
+
# @param request [::Google::Cloud::Filestore::V1::PromoteReplicaRequest, ::Hash]
|
1956
|
+
# A request object representing the call parameters. Required. To specify no
|
1957
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1958
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1959
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1960
|
+
#
|
1961
|
+
# @overload promote_replica(name: nil, peer_instance: nil)
|
1962
|
+
# Pass arguments to `promote_replica` via keyword arguments. Note that at
|
1963
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1964
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1965
|
+
#
|
1966
|
+
# @param name [::String]
|
1967
|
+
# Required. The resource name of the instance, in the format
|
1968
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
|
1969
|
+
# @param peer_instance [::String]
|
1970
|
+
# Optional. The resource name of the peer instance to promote, in the format
|
1971
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
|
1972
|
+
# The peer instance is required if the operation is called on an active
|
1973
|
+
# instance.
|
1974
|
+
#
|
1975
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1976
|
+
# @yieldparam response [::Gapic::Operation]
|
1977
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1978
|
+
#
|
1979
|
+
# @return [::Gapic::Operation]
|
1980
|
+
#
|
1981
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1982
|
+
#
|
1983
|
+
# @example Basic example
|
1984
|
+
# require "google/cloud/filestore/v1"
|
1985
|
+
#
|
1986
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1987
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Client.new
|
1988
|
+
#
|
1989
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1990
|
+
# request = Google::Cloud::Filestore::V1::PromoteReplicaRequest.new
|
1991
|
+
#
|
1992
|
+
# # Call the promote_replica method.
|
1993
|
+
# result = client.promote_replica request
|
1994
|
+
#
|
1995
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1996
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1997
|
+
# # Here is how to wait for a response.
|
1998
|
+
# result.wait_until_done! timeout: 60
|
1999
|
+
# if result.response?
|
2000
|
+
# p result.response
|
2001
|
+
# else
|
2002
|
+
# puts "No response received."
|
2003
|
+
# end
|
2004
|
+
#
|
2005
|
+
def promote_replica request, options = nil
|
2006
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2007
|
+
|
2008
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Filestore::V1::PromoteReplicaRequest
|
2009
|
+
|
2010
|
+
# Converts hash and nil to an options object
|
2011
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2012
|
+
|
2013
|
+
# Customize the options with defaults
|
2014
|
+
metadata = @config.rpcs.promote_replica.metadata.to_h
|
2015
|
+
|
2016
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2017
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2018
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2019
|
+
gapic_version: ::Google::Cloud::Filestore::V1::VERSION
|
2020
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2021
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2022
|
+
|
2023
|
+
header_params = {}
|
2024
|
+
if request.name
|
2025
|
+
header_params["name"] = request.name
|
2026
|
+
end
|
2027
|
+
|
2028
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2029
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2030
|
+
|
2031
|
+
options.apply_defaults timeout: @config.rpcs.promote_replica.timeout,
|
2032
|
+
metadata: metadata,
|
2033
|
+
retry_policy: @config.rpcs.promote_replica.retry_policy
|
2034
|
+
|
2035
|
+
options.apply_defaults timeout: @config.timeout,
|
2036
|
+
metadata: @config.metadata,
|
2037
|
+
retry_policy: @config.retry_policy
|
2038
|
+
|
2039
|
+
@cloud_filestore_manager_stub.call_rpc :promote_replica, request, options: options do |response, operation|
|
2040
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2041
|
+
yield response, operation if block_given?
|
2042
|
+
throw :response, response
|
2043
|
+
end
|
2044
|
+
rescue ::GRPC::BadStatus => e
|
2045
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2046
|
+
end
|
2047
|
+
|
1943
2048
|
##
|
1944
2049
|
# Configuration class for the CloudFilestoreManager API.
|
1945
2050
|
#
|
@@ -2191,6 +2296,11 @@ module Google
|
|
2191
2296
|
# @return [::Gapic::Config::Method]
|
2192
2297
|
#
|
2193
2298
|
attr_reader :update_backup
|
2299
|
+
##
|
2300
|
+
# RPC-specific configuration for `promote_replica`
|
2301
|
+
# @return [::Gapic::Config::Method]
|
2302
|
+
#
|
2303
|
+
attr_reader :promote_replica
|
2194
2304
|
|
2195
2305
|
# @private
|
2196
2306
|
def initialize parent_rpcs = nil
|
@@ -2228,6 +2338,8 @@ module Google
|
|
2228
2338
|
@delete_backup = ::Gapic::Config::Method.new delete_backup_config
|
2229
2339
|
update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
|
2230
2340
|
@update_backup = ::Gapic::Config::Method.new update_backup_config
|
2341
|
+
promote_replica_config = parent_rpcs.promote_replica if parent_rpcs.respond_to? :promote_replica
|
2342
|
+
@promote_replica = ::Gapic::Config::Method.new promote_replica_config
|
2231
2343
|
|
2232
2344
|
yield self if block_given?
|
2233
2345
|
end
|
@@ -560,6 +560,9 @@ module Google
|
|
560
560
|
# * "description"
|
561
561
|
# * "file_shares"
|
562
562
|
# * "labels"
|
563
|
+
# * "performance_config"
|
564
|
+
# * "deletion_protection_enabled"
|
565
|
+
# * "deletion_protection_reason"
|
563
566
|
# @param instance [::Google::Cloud::Filestore::V1::Instance, ::Hash]
|
564
567
|
# Only fields specified in update_mask are updated.
|
565
568
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -746,9 +749,8 @@ module Google
|
|
746
749
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
747
750
|
#
|
748
751
|
# @param name [::String]
|
749
|
-
# Required.
|
752
|
+
# Required. The resource name of the instance, in the format
|
750
753
|
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
|
751
|
-
# The resource name of the instance, in the format
|
752
754
|
# @param target_snapshot_id [::String]
|
753
755
|
# Required. The snapshot resource ID, in the format 'my-snapshot', where the
|
754
756
|
# specified ID is the \\{snapshot_id} of the fully qualified name like
|
@@ -925,7 +927,7 @@ module Google
|
|
925
927
|
# @param options [::Gapic::CallOptions, ::Hash]
|
926
928
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
927
929
|
#
|
928
|
-
# @overload list_snapshots(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
|
930
|
+
# @overload list_snapshots(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil, return_partial_success: nil)
|
929
931
|
# Pass arguments to `list_snapshots` via keyword arguments. Note that at
|
930
932
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
931
933
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -943,6 +945,9 @@ module Google
|
|
943
945
|
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
|
944
946
|
# @param filter [::String]
|
945
947
|
# List filter.
|
948
|
+
# @param return_partial_success [::Boolean]
|
949
|
+
# Optional. If true, allow partial responses for multi-regional Aggregated
|
950
|
+
# List requests.
|
946
951
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
947
952
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Filestore::V1::Snapshot>]
|
948
953
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1815,6 +1820,99 @@ module Google
|
|
1815
1820
|
raise ::Google::Cloud::Error.from_error(e)
|
1816
1821
|
end
|
1817
1822
|
|
1823
|
+
##
|
1824
|
+
# Promote the standby instance (replica).
|
1825
|
+
#
|
1826
|
+
# @overload promote_replica(request, options = nil)
|
1827
|
+
# Pass arguments to `promote_replica` via a request object, either of type
|
1828
|
+
# {::Google::Cloud::Filestore::V1::PromoteReplicaRequest} or an equivalent Hash.
|
1829
|
+
#
|
1830
|
+
# @param request [::Google::Cloud::Filestore::V1::PromoteReplicaRequest, ::Hash]
|
1831
|
+
# A request object representing the call parameters. Required. To specify no
|
1832
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1833
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1834
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1835
|
+
#
|
1836
|
+
# @overload promote_replica(name: nil, peer_instance: nil)
|
1837
|
+
# Pass arguments to `promote_replica` via keyword arguments. Note that at
|
1838
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1839
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1840
|
+
#
|
1841
|
+
# @param name [::String]
|
1842
|
+
# Required. The resource name of the instance, in the format
|
1843
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
|
1844
|
+
# @param peer_instance [::String]
|
1845
|
+
# Optional. The resource name of the peer instance to promote, in the format
|
1846
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
|
1847
|
+
# The peer instance is required if the operation is called on an active
|
1848
|
+
# instance.
|
1849
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1850
|
+
# @yieldparam result [::Gapic::Operation]
|
1851
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1852
|
+
#
|
1853
|
+
# @return [::Gapic::Operation]
|
1854
|
+
#
|
1855
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1856
|
+
#
|
1857
|
+
# @example Basic example
|
1858
|
+
# require "google/cloud/filestore/v1"
|
1859
|
+
#
|
1860
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1861
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
|
1862
|
+
#
|
1863
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1864
|
+
# request = Google::Cloud::Filestore::V1::PromoteReplicaRequest.new
|
1865
|
+
#
|
1866
|
+
# # Call the promote_replica method.
|
1867
|
+
# result = client.promote_replica request
|
1868
|
+
#
|
1869
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1870
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1871
|
+
# # Here is how to wait for a response.
|
1872
|
+
# result.wait_until_done! timeout: 60
|
1873
|
+
# if result.response?
|
1874
|
+
# p result.response
|
1875
|
+
# else
|
1876
|
+
# puts "No response received."
|
1877
|
+
# end
|
1878
|
+
#
|
1879
|
+
def promote_replica request, options = nil
|
1880
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1881
|
+
|
1882
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Filestore::V1::PromoteReplicaRequest
|
1883
|
+
|
1884
|
+
# Converts hash and nil to an options object
|
1885
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1886
|
+
|
1887
|
+
# Customize the options with defaults
|
1888
|
+
call_metadata = @config.rpcs.promote_replica.metadata.to_h
|
1889
|
+
|
1890
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1891
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1892
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1893
|
+
gapic_version: ::Google::Cloud::Filestore::V1::VERSION,
|
1894
|
+
transports_version_send: [:rest]
|
1895
|
+
|
1896
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1897
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1898
|
+
|
1899
|
+
options.apply_defaults timeout: @config.rpcs.promote_replica.timeout,
|
1900
|
+
metadata: call_metadata,
|
1901
|
+
retry_policy: @config.rpcs.promote_replica.retry_policy
|
1902
|
+
|
1903
|
+
options.apply_defaults timeout: @config.timeout,
|
1904
|
+
metadata: @config.metadata,
|
1905
|
+
retry_policy: @config.retry_policy
|
1906
|
+
|
1907
|
+
@cloud_filestore_manager_stub.promote_replica request, options do |result, operation|
|
1908
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1909
|
+
yield result, operation if block_given?
|
1910
|
+
throw :response, result
|
1911
|
+
end
|
1912
|
+
rescue ::Gapic::Rest::Error => e
|
1913
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1914
|
+
end
|
1915
|
+
|
1818
1916
|
##
|
1819
1917
|
# Configuration class for the CloudFilestoreManager REST API.
|
1820
1918
|
#
|
@@ -2053,6 +2151,11 @@ module Google
|
|
2053
2151
|
# @return [::Gapic::Config::Method]
|
2054
2152
|
#
|
2055
2153
|
attr_reader :update_backup
|
2154
|
+
##
|
2155
|
+
# RPC-specific configuration for `promote_replica`
|
2156
|
+
# @return [::Gapic::Config::Method]
|
2157
|
+
#
|
2158
|
+
attr_reader :promote_replica
|
2056
2159
|
|
2057
2160
|
# @private
|
2058
2161
|
def initialize parent_rpcs = nil
|
@@ -2090,6 +2193,8 @@ module Google
|
|
2090
2193
|
@delete_backup = ::Gapic::Config::Method.new delete_backup_config
|
2091
2194
|
update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
|
2092
2195
|
@update_backup = ::Gapic::Config::Method.new update_backup_config
|
2196
|
+
promote_replica_config = parent_rpcs.promote_replica if parent_rpcs.respond_to? :promote_replica
|
2197
|
+
@promote_replica = ::Gapic::Config::Method.new promote_replica_config
|
2093
2198
|
|
2094
2199
|
yield self if block_given?
|
2095
2200
|
end
|
@@ -753,6 +753,46 @@ module Google
|
|
753
753
|
end
|
754
754
|
end
|
755
755
|
|
756
|
+
##
|
757
|
+
# Baseline implementation for the promote_replica REST call
|
758
|
+
#
|
759
|
+
# @param request_pb [::Google::Cloud::Filestore::V1::PromoteReplicaRequest]
|
760
|
+
# A request object representing the call parameters. Required.
|
761
|
+
# @param options [::Gapic::CallOptions]
|
762
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
763
|
+
#
|
764
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
765
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
766
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
767
|
+
#
|
768
|
+
# @return [::Google::Longrunning::Operation]
|
769
|
+
# A result object deserialized from the server's reply
|
770
|
+
def promote_replica request_pb, options = nil
|
771
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
772
|
+
|
773
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_promote_replica_request request_pb
|
774
|
+
query_string_params = if query_string_params.any?
|
775
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
776
|
+
else
|
777
|
+
{}
|
778
|
+
end
|
779
|
+
|
780
|
+
response = @client_stub.make_http_request(
|
781
|
+
verb,
|
782
|
+
uri: uri,
|
783
|
+
body: body || "",
|
784
|
+
params: query_string_params,
|
785
|
+
method_name: "promote_replica",
|
786
|
+
options: options
|
787
|
+
)
|
788
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
789
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
790
|
+
catch :response do
|
791
|
+
yield result, operation if block_given?
|
792
|
+
result
|
793
|
+
end
|
794
|
+
end
|
795
|
+
|
756
796
|
##
|
757
797
|
# @private
|
758
798
|
#
|
@@ -1117,6 +1157,28 @@ module Google
|
|
1117
1157
|
)
|
1118
1158
|
transcoder.transcode request_pb
|
1119
1159
|
end
|
1160
|
+
|
1161
|
+
##
|
1162
|
+
# @private
|
1163
|
+
#
|
1164
|
+
# GRPC transcoding helper method for the promote_replica REST call
|
1165
|
+
#
|
1166
|
+
# @param request_pb [::Google::Cloud::Filestore::V1::PromoteReplicaRequest]
|
1167
|
+
# A request object representing the call parameters. Required.
|
1168
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1169
|
+
# Uri, Body, Query string parameters
|
1170
|
+
def self.transcode_promote_replica_request request_pb
|
1171
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1172
|
+
.with_bindings(
|
1173
|
+
uri_method: :post,
|
1174
|
+
uri_template: "/v1/{name}:promoteReplica",
|
1175
|
+
body: "*",
|
1176
|
+
matches: [
|
1177
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
1178
|
+
]
|
1179
|
+
)
|
1180
|
+
transcoder.transcode request_pb
|
1181
|
+
end
|
1120
1182
|
end
|
1121
1183
|
end
|
1122
1184
|
end
|
@@ -16,7 +16,7 @@ require 'google/protobuf/timestamp_pb'
|
|
16
16
|
require 'google/protobuf/wrappers_pb'
|
17
17
|
|
18
18
|
|
19
|
-
descriptor_data = "\n7google/cloud/filestore/v1/cloud_filestore_service.proto\x12\x19google.cloud.filestore.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/common/operation_metadata.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x80\x03\n\rNetworkConfig\x12\x0f\n\x07network\x18\x01 \x01(\t\x12\x43\n\x05modes\x18\x03 \x03(\x0e\x32\x34.google.cloud.filestore.v1.NetworkConfig.AddressMode\x12\x19\n\x11reserved_ip_range\x18\x04 \x01(\t\x12\x19\n\x0cip_addresses\x18\x05 \x03(\tB\x03\xe0\x41\x03\x12J\n\x0c\x63onnect_mode\x18\x06 \x01(\x0e\x32\x34.google.cloud.filestore.v1.NetworkConfig.ConnectMode\":\n\x0b\x41\x64\x64ressMode\x12\x1c\n\x18\x41\x44\x44RESS_MODE_UNSPECIFIED\x10\x00\x12\r\n\tMODE_IPV4\x10\x01\"[\n\x0b\x43onnectMode\x12\x1c\n\x18\x43ONNECT_MODE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x44IRECT_PEERING\x10\x01\x12\x1a\n\x16PRIVATE_SERVICE_ACCESS\x10\x02\"\xc1\x01\n\x0f\x46ileShareConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x63\x61pacity_gb\x18\x02 \x01(\x03\x12\x38\n\rsource_backup\x18\x08 \x01(\tB\x1f\xfa\x41\x1c\n\x1a\x66ile.googleapis.com/BackupH\x00\x12G\n\x12nfs_export_options\x18\x07 \x03(\x0b\x32+.google.cloud.filestore.v1.NfsExportOptionsB\x08\n\x06source\"\xfd\x02\n\x10NfsExportOptions\x12\x11\n\tip_ranges\x18\x01 \x03(\t\x12K\n\x0b\x61\x63\x63\x65ss_mode\x18\x02 \x01(\x0e\x32\x36.google.cloud.filestore.v1.NfsExportOptions.AccessMode\x12K\n\x0bsquash_mode\x18\x03 \x01(\x0e\x32\x36.google.cloud.filestore.v1.NfsExportOptions.SquashMode\x12\x10\n\x08\x61non_uid\x18\x04 \x01(\x03\x12\x10\n\x08\x61non_gid\x18\x05 \x01(\x03\"H\n\nAccessMode\x12\x1b\n\x17\x41\x43\x43\x45SS_MODE_UNSPECIFIED\x10\x00\x12\r\n\tREAD_ONLY\x10\x01\x12\x0e\n\nREAD_WRITE\x10\x02\"N\n\nSquashMode\x12\x1b\n\x17SQUASH_MODE_UNSPECIFIED\x10\x00\x12\x12\n\x0eNO_ROOT_SQUASH\x10\x01\x12\x0f\n\x0bROOT_SQUASH\x10\x02\"\xa5\t\n\x08Instance\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12=\n\x05state\x18\x05 \x01(\x0e\x32).google.cloud.filestore.v1.Instance.StateB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x36\n\x04tier\x18\x08 \x01(\x0e\x32(.google.cloud.filestore.v1.Instance.Tier\x12?\n\x06labels\x18\t \x03(\x0b\x32/.google.cloud.filestore.v1.Instance.LabelsEntry\x12?\n\x0b\x66ile_shares\x18\n \x03(\x0b\x32*.google.cloud.filestore.v1.FileShareConfig\x12:\n\x08networks\x18\x0b \x03(\x0b\x32(.google.cloud.filestore.v1.NetworkConfig\x12\x0c\n\x04\x65tag\x18\x0c \x01(\t\x12\x36\n\rsatisfies_pzs\x18\r \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzi\x18\x12 \x01(\x08\x42\x03\xe0\x41\x03\x12\x14\n\x0ckms_key_name\x18\x0e \x01(\t\x12U\n\x12suspension_reasons\x18\x0f \x03(\x0e\x32\x34.google.cloud.filestore.v1.Instance.SuspensionReasonB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xaa\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\r\n\tREPAIRING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\t\n\x05\x45RROR\x10\x06\x12\r\n\tRESTORING\x10\x07\x12\r\n\tSUSPENDED\x10\x08\x12\x0e\n\nSUSPENDING\x10\t\x12\x0c\n\x08RESUMING\x10\n\x12\r\n\tREVERTING\x10\x0c\"\x92\x01\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x0b\n\x07PREMIUM\x10\x02\x12\r\n\tBASIC_HDD\x10\x03\x12\r\n\tBASIC_SSD\x10\x04\x12\x12\n\x0eHIGH_SCALE_SSD\x10\x05\x12\x0e\n\nENTERPRISE\x10\x06\x12\t\n\x05ZONAL\x10\x07\x12\x0c\n\x08REGIONAL\x10\x08\"H\n\x10SuspensionReason\x12!\n\x1dSUSPENSION_REASON_UNSPECIFIED\x10\x00\x12\x11\n\rKMS_KEY_ISSUE\x10\x01:_\xea\x41\\\n\x1c\x66ile.googleapis.com/Instance\x12<projects/{project}/locations/{location}/instances/{instance}\"\xa8\x01\n\x15\x43reateInstanceRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\x08instance\x18\x03 \x01(\x0b\x32#.google.cloud.filestore.v1.InstanceB\x03\xe0\x41\x02\"H\n\x12GetInstanceRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Instance\"\x7f\n\x15UpdateInstanceRequest\x12/\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x35\n\x08instance\x18\x02 \x01(\x0b\x32#.google.cloud.filestore.v1.Instance\"\xa9\x01\n\x16RestoreInstanceRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Instance\x12\x17\n\nfile_share\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x38\n\rsource_backup\x18\x03 \x01(\tB\x1f\xfa\x41\x1c\n\x1a\x66ile.googleapis.com/BackupH\x00\x42\x08\n\x06source\"l\n\x15RevertInstanceRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Instance\x12\x1f\n\x12target_snapshot_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"Z\n\x15\x44\x65leteInstanceRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Instance\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"\x9a\x01\n\x14ListInstancesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x10\n\x08order_by\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\"}\n\x15ListInstancesResponse\x12\x36\n\tinstances\x18\x01 \x03(\x0b\x32#.google.cloud.filestore.v1.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xf8\x03\n\x08Snapshot\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12=\n\x05state\x18\x03 \x01(\x0e\x32).google.cloud.filestore.v1.Snapshot.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x06labels\x18\x05 \x03(\x0b\x32/.google.cloud.filestore.v1.Snapshot.LabelsEntry\x12\"\n\x15\x66ilesystem_used_bytes\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03:t\xea\x41q\n\x1c\x66ile.googleapis.com/Snapshot\x12Qprojects/{project}/locations/{location}/instances/{instance}/snapshots/{snapshot}\"\xa3\x01\n\x15\x43reateSnapshotRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Instance\x12\x18\n\x0bsnapshot_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\x08snapshot\x18\x03 \x01(\x0b\x32#.google.cloud.filestore.v1.SnapshotB\x03\xe0\x41\x02\"H\n\x12GetSnapshotRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Snapshot\"K\n\x15\x44\x65leteSnapshotRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Snapshot\"\x89\x01\n\x15UpdateSnapshotRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12:\n\x08snapshot\x18\x02 \x01(\x0b\x32#.google.cloud.filestore.v1.SnapshotB\x03\xe0\x41\x02\"\x95\x01\n\x14ListSnapshotsRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Instance\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x10\n\x08order_by\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\"h\n\x15ListSnapshotsResponse\x12\x36\n\tsnapshots\x18\x01 \x03(\x0b\x32#.google.cloud.filestore.v1.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb1\x06\n\x06\x42\x61\x63kup\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12;\n\x05state\x18\x03 \x01(\x0e\x32\'.google.cloud.filestore.v1.Backup.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x06labels\x18\x05 \x03(\x0b\x32-.google.cloud.filestore.v1.Backup.LabelsEntry\x12\x18\n\x0b\x63\x61pacity_gb\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1a\n\rstorage_bytes\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03\x12:\n\x0fsource_instance\x18\x08 \x01(\tB!\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Instance\x12\x19\n\x11source_file_share\x18\t \x01(\t\x12K\n\x14source_instance_tier\x18\n \x01(\x0e\x32(.google.cloud.filestore.v1.Instance.TierB\x03\xe0\x41\x03\x12\x1b\n\x0e\x64ownload_bytes\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03\x12\x36\n\rsatisfies_pzs\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzi\x18\x0e \x01(\x08\x42\x03\xe0\x41\x03\x12\x14\n\x07kms_key\x18\r \x01(\tB\x03\xe0\x41\x05\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"b\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0e\n\nFINALIZING\x10\x02\x12\t\n\x05READY\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0b\n\x07INVALID\x10\x05:Y\xea\x41V\n\x1a\x66ile.googleapis.com/Backup\x12\x38projects/{project}/locations/{location}/backups/{backup}\"\xa0\x01\n\x13\x43reateBackupRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x36\n\x06\x62\x61\x63kup\x18\x02 \x01(\x0b\x32!.google.cloud.filestore.v1.BackupB\x03\xe0\x41\x02\x12\x16\n\tbackup_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"G\n\x13\x44\x65leteBackupRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x66ile.googleapis.com/Backup\"\x83\x01\n\x13UpdateBackupRequest\x12\x36\n\x06\x62\x61\x63kup\x18\x01 \x01(\x0b\x32!.google.cloud.filestore.v1.BackupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"D\n\x10GetBackupRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x66ile.googleapis.com/Backup\"\x98\x01\n\x12ListBackupsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x10\n\x08order_by\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\"w\n\x13ListBackupsResponse\x12\x32\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32!.google.cloud.filestore.v1.Backup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t2\xa4\x1d\n\x15\x43loudFilestoreManager\x12\xb2\x01\n\rListInstances\x12/.google.cloud.filestore.v1.ListInstancesRequest\x1a\x30.google.cloud.filestore.v1.ListInstancesResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/instances\x12\x9f\x01\n\x0bGetInstance\x12-.google.cloud.filestore.v1.GetInstanceRequest\x1a#.google.cloud.filestore.v1.Instance\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/instances/*}\x12\xf5\x01\n\x0e\x43reateInstance\x12\x30.google.cloud.filestore.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x91\x01\xca\x41\x31\n\x08Instance\x12%google.cloud.common.OperationMetadata\xda\x41\x1bparent,instance,instance_id\x82\xd3\xe4\x93\x02\x39\"-/v1/{parent=projects/*/locations/*}/instances:\x08instance\x12\xf7\x01\n\x0eUpdateInstance\x12\x30.google.cloud.filestore.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x93\x01\xca\x41\x31\n\x08Instance\x12%google.cloud.common.OperationMetadata\xda\x41\x14instance,update_mask\x82\xd3\xe4\x93\x02\x42\x32\x36/v1/{instance.name=projects/*/locations/*/instances/*}:\x08instance\x12\xd9\x01\n\x0fRestoreInstance\x12\x31.google.cloud.filestore.v1.RestoreInstanceRequest\x1a\x1d.google.longrunning.Operation\"t\xca\x41\x31\n\x08Instance\x12%google.cloud.common.OperationMetadata\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/instances/*}:restore:\x01*\x12\xd6\x01\n\x0eRevertInstance\x12\x30.google.cloud.filestore.v1.RevertInstanceRequest\x1a\x1d.google.longrunning.Operation\"s\xca\x41\x31\n\x08Instance\x12%google.cloud.common.OperationMetadata\x82\xd3\xe4\x93\x02\x39\"4/v1/{name=projects/*/locations/*/instances/*}:revert:\x01*\x12\xe0\x01\n\x0e\x44\x65leteInstance\x12\x30.google.cloud.filestore.v1.DeleteInstanceRequest\x1a\x1d.google.longrunning.Operation\"}\xca\x41>\n\x15google.protobuf.Empty\x12%google.cloud.common.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/instances/*}\x12\xbe\x01\n\rListSnapshots\x12/.google.cloud.filestore.v1.ListSnapshotsRequest\x1a\x30.google.cloud.filestore.v1.ListSnapshotsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*/instances/*}/snapshots\x12\xab\x01\n\x0bGetSnapshot\x12-.google.cloud.filestore.v1.GetSnapshotRequest\x1a#.google.cloud.filestore.v1.Snapshot\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/instances/*/snapshots/*}\x12\x81\x02\n\x0e\x43reateSnapshot\x12\x30.google.cloud.filestore.v1.CreateSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x9d\x01\xca\x41\x31\n\x08Snapshot\x12%google.cloud.common.OperationMetadata\xda\x41\x1bparent,snapshot,snapshot_id\x82\xd3\xe4\x93\x02\x45\"9/v1/{parent=projects/*/locations/*/instances/*}/snapshots:\x08snapshot\x12\xed\x01\n\x0e\x44\x65leteSnapshot\x12\x30.google.cloud.filestore.v1.DeleteSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\xca\x41>\n\x15google.protobuf.Empty\x12%google.cloud.common.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02;*9/v1/{name=projects/*/locations/*/instances/*/snapshots/*}\x12\x83\x02\n\x0eUpdateSnapshot\x12\x30.google.cloud.filestore.v1.UpdateSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x9f\x01\xca\x41\x31\n\x08Snapshot\x12%google.cloud.common.OperationMetadata\xda\x41\x14snapshot,update_mask\x82\xd3\xe4\x93\x02N2B/v1/{snapshot.name=projects/*/locations/*/instances/*/snapshots/*}:\x08snapshot\x12\xaa\x01\n\x0bListBackups\x12-.google.cloud.filestore.v1.ListBackupsRequest\x1a..google.cloud.filestore.v1.ListBackupsResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/backups\x12\x97\x01\n\tGetBackup\x12+.google.cloud.filestore.v1.GetBackupRequest\x1a!.google.cloud.filestore.v1.Backup\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/backups/*}\x12\xe7\x01\n\x0c\x43reateBackup\x12..google.cloud.filestore.v1.CreateBackupRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41/\n\x06\x42\x61\x63kup\x12%google.cloud.common.OperationMetadata\xda\x41\x17parent,backup,backup_id\x82\xd3\xe4\x93\x02\x35\"+/v1/{parent=projects/*/locations/*}/backups:\x06\x62\x61\x63kup\x12\xda\x01\n\x0c\x44\x65leteBackup\x12..google.cloud.filestore.v1.DeleteBackupRequest\x1a\x1d.google.longrunning.Operation\"{\xca\x41>\n\x15google.protobuf.Empty\x12%google.cloud.common.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/backups/*}\x12\xe9\x01\n\x0cUpdateBackup\x12..google.cloud.filestore.v1.UpdateBackupRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\xca\x41/\n\x06\x42\x61\x63kup\x12%google.cloud.common.OperationMetadata\xda\x41\x12\x62\x61\x63kup,update_mask\x82\xd3\xe4\x93\x02<22/v1/{backup.name=projects/*/locations/*/backups/*}:\x06\x62\x61\x63kup\x1aG\xca\x41\x13\x66ile.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb2\x01\n\x1d\x63om.google.cloud.filestore.v1B\x1a\x43loudFilestoreServiceProtoP\x01Z;cloud.google.com/go/filestore/apiv1/filestorepb;filestorepb\xaa\x02\x19Google.Cloud.Filestore.V1\xca\x02\x19Google\\Cloud\\Filestore\\V1b\x06proto3"
|
19
|
+
descriptor_data = "\n7google/cloud/filestore/v1/cloud_filestore_service.proto\x12\x19google.cloud.filestore.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/common/operation_metadata.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x80\x03\n\rNetworkConfig\x12\x0f\n\x07network\x18\x01 \x01(\t\x12\x43\n\x05modes\x18\x03 \x03(\x0e\x32\x34.google.cloud.filestore.v1.NetworkConfig.AddressMode\x12\x19\n\x11reserved_ip_range\x18\x04 \x01(\t\x12\x19\n\x0cip_addresses\x18\x05 \x03(\tB\x03\xe0\x41\x03\x12J\n\x0c\x63onnect_mode\x18\x06 \x01(\x0e\x32\x34.google.cloud.filestore.v1.NetworkConfig.ConnectMode\":\n\x0b\x41\x64\x64ressMode\x12\x1c\n\x18\x41\x44\x44RESS_MODE_UNSPECIFIED\x10\x00\x12\r\n\tMODE_IPV4\x10\x01\"[\n\x0b\x43onnectMode\x12\x1c\n\x18\x43ONNECT_MODE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x44IRECT_PEERING\x10\x01\x12\x1a\n\x16PRIVATE_SERVICE_ACCESS\x10\x02\"\xc1\x01\n\x0f\x46ileShareConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x63\x61pacity_gb\x18\x02 \x01(\x03\x12\x38\n\rsource_backup\x18\x08 \x01(\tB\x1f\xfa\x41\x1c\n\x1a\x66ile.googleapis.com/BackupH\x00\x12G\n\x12nfs_export_options\x18\x07 \x03(\x0b\x32+.google.cloud.filestore.v1.NfsExportOptionsB\x08\n\x06source\"\xfd\x02\n\x10NfsExportOptions\x12\x11\n\tip_ranges\x18\x01 \x03(\t\x12K\n\x0b\x61\x63\x63\x65ss_mode\x18\x02 \x01(\x0e\x32\x36.google.cloud.filestore.v1.NfsExportOptions.AccessMode\x12K\n\x0bsquash_mode\x18\x03 \x01(\x0e\x32\x36.google.cloud.filestore.v1.NfsExportOptions.SquashMode\x12\x10\n\x08\x61non_uid\x18\x04 \x01(\x03\x12\x10\n\x08\x61non_gid\x18\x05 \x01(\x03\"H\n\nAccessMode\x12\x1b\n\x17\x41\x43\x43\x45SS_MODE_UNSPECIFIED\x10\x00\x12\r\n\tREAD_ONLY\x10\x01\x12\x0e\n\nREAD_WRITE\x10\x02\"N\n\nSquashMode\x12\x1b\n\x17SQUASH_MODE_UNSPECIFIED\x10\x00\x12\x12\n\x0eNO_ROOT_SQUASH\x10\x01\x12\x0f\n\x0bROOT_SQUASH\x10\x02\"\xd4\x03\n\rReplicaConfig\x12\x42\n\x05state\x18\x01 \x01(\x0e\x32..google.cloud.filestore.v1.ReplicaConfig.StateB\x03\xe0\x41\x03\x12P\n\rstate_reasons\x18\x02 \x03(\x0e\x32\x34.google.cloud.filestore.v1.ReplicaConfig.StateReasonB\x03\xe0\x41\x03\x12;\n\rpeer_instance\x18\x03 \x01(\tB$\xe0\x41\x01\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Instance\x12>\n\x15last_active_sync_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x03\x12\x0c\n\x08REMOVING\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\"]\n\x0bStateReason\x12\x1c\n\x18STATE_REASON_UNSPECIFIED\x10\x00\x12\x1d\n\x19PEER_INSTANCE_UNREACHABLE\x10\x01\x12\x11\n\rREMOVE_FAILED\x10\x02\"\xc5\x01\n\x0bReplication\x12>\n\x04role\x18\x01 \x01(\x0e\x32+.google.cloud.filestore.v1.Replication.RoleB\x03\xe0\x41\x01\x12?\n\x08replicas\x18\x02 \x03(\x0b\x32(.google.cloud.filestore.v1.ReplicaConfigB\x03\xe0\x41\x01\"5\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0b\n\x07STANDBY\x10\x02\"\xd6\x11\n\x08Instance\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12=\n\x05state\x18\x05 \x01(\x0e\x32).google.cloud.filestore.v1.Instance.StateB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x36\n\x04tier\x18\x08 \x01(\x0e\x32(.google.cloud.filestore.v1.Instance.Tier\x12?\n\x06labels\x18\t \x03(\x0b\x32/.google.cloud.filestore.v1.Instance.LabelsEntry\x12?\n\x0b\x66ile_shares\x18\n \x03(\x0b\x32*.google.cloud.filestore.v1.FileShareConfig\x12:\n\x08networks\x18\x0b \x03(\x0b\x32(.google.cloud.filestore.v1.NetworkConfig\x12\x0c\n\x04\x65tag\x18\x0c \x01(\t\x12\x36\n\rsatisfies_pzs\x18\r \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzi\x18\x12 \x01(\x08\x42\x03\xe0\x41\x03\x12\x14\n\x0ckms_key_name\x18\x0e \x01(\t\x12U\n\x12suspension_reasons\x18\x0f \x03(\x0e\x32\x34.google.cloud.filestore.v1.Instance.SuspensionReasonB\x03\xe0\x41\x03\x12@\n\x0breplication\x18\x13 \x01(\x0b\x32&.google.cloud.filestore.v1.ReplicationB\x03\xe0\x41\x01\x12\x46\n\x04tags\x18\x14 \x03(\x0b\x32-.google.cloud.filestore.v1.Instance.TagsEntryB\t\xe0\x41\x04\xe0\x41\x05\xe0\x41\x01\x12G\n\x08protocol\x18\x15 \x01(\x0e\x32\x30.google.cloud.filestore.v1.Instance.FileProtocolB\x03\xe0\x41\x05\x12)\n\x1c\x63ustom_performance_supported\x18\x17 \x01(\x08\x42\x03\xe0\x41\x03\x12V\n\x12performance_config\x18\x18 \x01(\x0b\x32\x35.google.cloud.filestore.v1.Instance.PerformanceConfigB\x03\xe0\x41\x01\x12V\n\x12performance_limits\x18\x19 \x01(\x0b\x32\x35.google.cloud.filestore.v1.Instance.PerformanceLimitsB\x03\xe0\x41\x03\x12(\n\x1b\x64\x65letion_protection_enabled\x18\x1a \x01(\x08\x42\x03\xe0\x41\x01\x12\'\n\x1a\x64\x65letion_protection_reason\x18\x1b \x01(\tB\x03\xe0\x41\x01\x1a)\n\tIOPSPerTB\x12\x1c\n\x0fmax_iops_per_tb\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\x1a\"\n\tFixedIOPS\x12\x15\n\x08max_iops\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\x1a\xa6\x01\n\x11PerformanceConfig\x12\x44\n\x0biops_per_tb\x18\x04 \x01(\x0b\x32-.google.cloud.filestore.v1.Instance.IOPSPerTBH\x00\x12\x43\n\nfixed_iops\x18\x02 \x01(\x0b\x32-.google.cloud.filestore.v1.Instance.FixedIOPSH\x00\x42\x06\n\x04mode\x1a\xb0\x01\n\x11PerformanceLimits\x12\x15\n\x08max_iops\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1a\n\rmax_read_iops\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1b\n\x0emax_write_iops\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12$\n\x17max_read_throughput_bps\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12%\n\x18max_write_throughput_bps\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb9\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\r\n\tREPAIRING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\t\n\x05\x45RROR\x10\x06\x12\r\n\tRESTORING\x10\x07\x12\r\n\tSUSPENDED\x10\x08\x12\x0e\n\nSUSPENDING\x10\t\x12\x0c\n\x08RESUMING\x10\n\x12\r\n\tREVERTING\x10\x0c\x12\r\n\tPROMOTING\x10\r\"\x92\x01\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x0b\n\x07PREMIUM\x10\x02\x12\r\n\tBASIC_HDD\x10\x03\x12\r\n\tBASIC_SSD\x10\x04\x12\x12\n\x0eHIGH_SCALE_SSD\x10\x05\x12\x0e\n\nENTERPRISE\x10\x06\x12\t\n\x05ZONAL\x10\x07\x12\x0c\n\x08REGIONAL\x10\x08\"H\n\x10SuspensionReason\x12!\n\x1dSUSPENSION_REASON_UNSPECIFIED\x10\x00\x12\x11\n\rKMS_KEY_ISSUE\x10\x01\"G\n\x0c\x46ileProtocol\x12\x1d\n\x19\x46ILE_PROTOCOL_UNSPECIFIED\x10\x00\x12\n\n\x06NFS_V3\x10\x01\x12\x0c\n\x08NFS_V4_1\x10\x02:_\xea\x41\\\n\x1c\x66ile.googleapis.com/Instance\x12<projects/{project}/locations/{location}/instances/{instance}\"\xa8\x01\n\x15\x43reateInstanceRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\x08instance\x18\x03 \x01(\x0b\x32#.google.cloud.filestore.v1.InstanceB\x03\xe0\x41\x02\"H\n\x12GetInstanceRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Instance\"\x7f\n\x15UpdateInstanceRequest\x12/\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x35\n\x08instance\x18\x02 \x01(\x0b\x32#.google.cloud.filestore.v1.Instance\"\xa9\x01\n\x16RestoreInstanceRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Instance\x12\x17\n\nfile_share\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x38\n\rsource_backup\x18\x03 \x01(\tB\x1f\xfa\x41\x1c\n\x1a\x66ile.googleapis.com/BackupH\x00\x42\x08\n\x06source\"l\n\x15RevertInstanceRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Instance\x12\x1f\n\x12target_snapshot_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"Z\n\x15\x44\x65leteInstanceRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Instance\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"\x9a\x01\n\x14ListInstancesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x10\n\x08order_by\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\"\x82\x01\n\x15ListInstancesResponse\x12\x36\n\tinstances\x18\x01 \x03(\x0b\x32#.google.cloud.filestore.v1.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xed\x04\n\x08Snapshot\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12=\n\x05state\x18\x03 \x01(\x0e\x32).google.cloud.filestore.v1.Snapshot.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x06labels\x18\x05 \x03(\x0b\x32/.google.cloud.filestore.v1.Snapshot.LabelsEntry\x12\"\n\x15\x66ilesystem_used_bytes\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12\x46\n\x04tags\x18\x07 \x03(\x0b\x32-.google.cloud.filestore.v1.Snapshot.TagsEntryB\t\xe0\x41\x04\xe0\x41\x05\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03:t\xea\x41q\n\x1c\x66ile.googleapis.com/Snapshot\x12Qprojects/{project}/locations/{location}/instances/{instance}/snapshots/{snapshot}\"\xa3\x01\n\x15\x43reateSnapshotRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Instance\x12\x18\n\x0bsnapshot_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\x08snapshot\x18\x03 \x01(\x0b\x32#.google.cloud.filestore.v1.SnapshotB\x03\xe0\x41\x02\"H\n\x12GetSnapshotRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Snapshot\"K\n\x15\x44\x65leteSnapshotRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Snapshot\"\x89\x01\n\x15UpdateSnapshotRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12:\n\x08snapshot\x18\x02 \x01(\x0b\x32#.google.cloud.filestore.v1.SnapshotB\x03\xe0\x41\x02\"\xba\x01\n\x14ListSnapshotsRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Instance\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x10\n\x08order_by\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12#\n\x16return_partial_success\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"\x82\x01\n\x15ListSnapshotsResponse\x12\x36\n\tsnapshots\x18\x01 \x03(\x0b\x32#.google.cloud.filestore.v1.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xf9\x07\n\x06\x42\x61\x63kup\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12;\n\x05state\x18\x03 \x01(\x0e\x32\'.google.cloud.filestore.v1.Backup.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x06labels\x18\x05 \x03(\x0b\x32-.google.cloud.filestore.v1.Backup.LabelsEntry\x12\x18\n\x0b\x63\x61pacity_gb\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1a\n\rstorage_bytes\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03\x12:\n\x0fsource_instance\x18\x08 \x01(\tB!\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Instance\x12\x19\n\x11source_file_share\x18\t \x01(\t\x12K\n\x14source_instance_tier\x18\n \x01(\x0e\x32(.google.cloud.filestore.v1.Instance.TierB\x03\xe0\x41\x03\x12\x1b\n\x0e\x64ownload_bytes\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03\x12\x36\n\rsatisfies_pzs\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzi\x18\x0e \x01(\x08\x42\x03\xe0\x41\x03\x12\x14\n\x07kms_key\x18\r \x01(\tB\x03\xe0\x41\x05\x12\x44\n\x04tags\x18\x0f \x03(\x0b\x32+.google.cloud.filestore.v1.Backup.TagsEntryB\t\xe0\x41\x04\xe0\x41\x05\xe0\x41\x01\x12S\n\x14\x66ile_system_protocol\x18\x10 \x01(\x0e\x32\x30.google.cloud.filestore.v1.Instance.FileProtocolB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"b\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0e\n\nFINALIZING\x10\x02\x12\t\n\x05READY\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0b\n\x07INVALID\x10\x05:Y\xea\x41V\n\x1a\x66ile.googleapis.com/Backup\x12\x38projects/{project}/locations/{location}/backups/{backup}\"\xa0\x01\n\x13\x43reateBackupRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x36\n\x06\x62\x61\x63kup\x18\x02 \x01(\x0b\x32!.google.cloud.filestore.v1.BackupB\x03\xe0\x41\x02\x12\x16\n\tbackup_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"G\n\x13\x44\x65leteBackupRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x66ile.googleapis.com/Backup\"\x83\x01\n\x13UpdateBackupRequest\x12\x36\n\x06\x62\x61\x63kup\x18\x01 \x01(\x0b\x32!.google.cloud.filestore.v1.BackupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x88\x01\n\x15PromoteReplicaRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Instance\x12;\n\rpeer_instance\x18\x02 \x01(\tB$\xe0\x41\x01\xfa\x41\x1e\n\x1c\x66ile.googleapis.com/Instance\"D\n\x10GetBackupRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x66ile.googleapis.com/Backup\"\x98\x01\n\x12ListBackupsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x10\n\x08order_by\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\"|\n\x13ListBackupsResponse\x12\x32\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32!.google.cloud.filestore.v1.Backup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\x32\x85\x1f\n\x15\x43loudFilestoreManager\x12\xb2\x01\n\rListInstances\x12/.google.cloud.filestore.v1.ListInstancesRequest\x1a\x30.google.cloud.filestore.v1.ListInstancesResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/instances\x12\x9f\x01\n\x0bGetInstance\x12-.google.cloud.filestore.v1.GetInstanceRequest\x1a#.google.cloud.filestore.v1.Instance\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/instances/*}\x12\xf5\x01\n\x0e\x43reateInstance\x12\x30.google.cloud.filestore.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x91\x01\xca\x41\x31\n\x08Instance\x12%google.cloud.common.OperationMetadata\xda\x41\x1bparent,instance,instance_id\x82\xd3\xe4\x93\x02\x39\"-/v1/{parent=projects/*/locations/*}/instances:\x08instance\x12\xf7\x01\n\x0eUpdateInstance\x12\x30.google.cloud.filestore.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x93\x01\xca\x41\x31\n\x08Instance\x12%google.cloud.common.OperationMetadata\xda\x41\x14instance,update_mask\x82\xd3\xe4\x93\x02\x42\x32\x36/v1/{instance.name=projects/*/locations/*/instances/*}:\x08instance\x12\xd9\x01\n\x0fRestoreInstance\x12\x31.google.cloud.filestore.v1.RestoreInstanceRequest\x1a\x1d.google.longrunning.Operation\"t\xca\x41\x31\n\x08Instance\x12%google.cloud.common.OperationMetadata\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/instances/*}:restore:\x01*\x12\xd6\x01\n\x0eRevertInstance\x12\x30.google.cloud.filestore.v1.RevertInstanceRequest\x1a\x1d.google.longrunning.Operation\"s\xca\x41\x31\n\x08Instance\x12%google.cloud.common.OperationMetadata\x82\xd3\xe4\x93\x02\x39\"4/v1/{name=projects/*/locations/*/instances/*}:revert:\x01*\x12\xe0\x01\n\x0e\x44\x65leteInstance\x12\x30.google.cloud.filestore.v1.DeleteInstanceRequest\x1a\x1d.google.longrunning.Operation\"}\xca\x41>\n\x15google.protobuf.Empty\x12%google.cloud.common.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/instances/*}\x12\xbe\x01\n\rListSnapshots\x12/.google.cloud.filestore.v1.ListSnapshotsRequest\x1a\x30.google.cloud.filestore.v1.ListSnapshotsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*/instances/*}/snapshots\x12\xab\x01\n\x0bGetSnapshot\x12-.google.cloud.filestore.v1.GetSnapshotRequest\x1a#.google.cloud.filestore.v1.Snapshot\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/instances/*/snapshots/*}\x12\x81\x02\n\x0e\x43reateSnapshot\x12\x30.google.cloud.filestore.v1.CreateSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x9d\x01\xca\x41\x31\n\x08Snapshot\x12%google.cloud.common.OperationMetadata\xda\x41\x1bparent,snapshot,snapshot_id\x82\xd3\xe4\x93\x02\x45\"9/v1/{parent=projects/*/locations/*/instances/*}/snapshots:\x08snapshot\x12\xed\x01\n\x0e\x44\x65leteSnapshot\x12\x30.google.cloud.filestore.v1.DeleteSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\xca\x41>\n\x15google.protobuf.Empty\x12%google.cloud.common.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02;*9/v1/{name=projects/*/locations/*/instances/*/snapshots/*}\x12\x83\x02\n\x0eUpdateSnapshot\x12\x30.google.cloud.filestore.v1.UpdateSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x9f\x01\xca\x41\x31\n\x08Snapshot\x12%google.cloud.common.OperationMetadata\xda\x41\x14snapshot,update_mask\x82\xd3\xe4\x93\x02N2B/v1/{snapshot.name=projects/*/locations/*/instances/*/snapshots/*}:\x08snapshot\x12\xaa\x01\n\x0bListBackups\x12-.google.cloud.filestore.v1.ListBackupsRequest\x1a..google.cloud.filestore.v1.ListBackupsResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/backups\x12\x97\x01\n\tGetBackup\x12+.google.cloud.filestore.v1.GetBackupRequest\x1a!.google.cloud.filestore.v1.Backup\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/backups/*}\x12\xe7\x01\n\x0c\x43reateBackup\x12..google.cloud.filestore.v1.CreateBackupRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41/\n\x06\x42\x61\x63kup\x12%google.cloud.common.OperationMetadata\xda\x41\x17parent,backup,backup_id\x82\xd3\xe4\x93\x02\x35\"+/v1/{parent=projects/*/locations/*}/backups:\x06\x62\x61\x63kup\x12\xda\x01\n\x0c\x44\x65leteBackup\x12..google.cloud.filestore.v1.DeleteBackupRequest\x1a\x1d.google.longrunning.Operation\"{\xca\x41>\n\x15google.protobuf.Empty\x12%google.cloud.common.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/backups/*}\x12\xe9\x01\n\x0cUpdateBackup\x12..google.cloud.filestore.v1.UpdateBackupRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\xca\x41/\n\x06\x42\x61\x63kup\x12%google.cloud.common.OperationMetadata\xda\x41\x12\x62\x61\x63kup,update_mask\x82\xd3\xe4\x93\x02<22/v1/{backup.name=projects/*/locations/*/backups/*}:\x06\x62\x61\x63kup\x12\xde\x01\n\x0ePromoteReplica\x12\x30.google.cloud.filestore.v1.PromoteReplicaRequest\x1a\x1d.google.longrunning.Operation\"{\xca\x41\x31\n\x08Instance\x12%google.cloud.common.OperationMetadata\x82\xd3\xe4\x93\x02\x41\"</v1/{name=projects/*/locations/*/instances/*}:promoteReplica:\x01*\x1aG\xca\x41\x13\x66ile.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb2\x01\n\x1d\x63om.google.cloud.filestore.v1B\x1a\x43loudFilestoreServiceProtoP\x01Z;cloud.google.com/go/filestore/apiv1/filestorepb;filestorepb\xaa\x02\x19Google.Cloud.Filestore.V1\xca\x02\x19Google\\Cloud\\Filestore\\V1b\x06proto3"
|
20
20
|
|
21
21
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
22
|
|
@@ -56,10 +56,20 @@ module Google
|
|
56
56
|
NfsExportOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.NfsExportOptions").msgclass
|
57
57
|
NfsExportOptions::AccessMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.NfsExportOptions.AccessMode").enummodule
|
58
58
|
NfsExportOptions::SquashMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.NfsExportOptions.SquashMode").enummodule
|
59
|
+
ReplicaConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.ReplicaConfig").msgclass
|
60
|
+
ReplicaConfig::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.ReplicaConfig.State").enummodule
|
61
|
+
ReplicaConfig::StateReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.ReplicaConfig.StateReason").enummodule
|
62
|
+
Replication = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Replication").msgclass
|
63
|
+
Replication::Role = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Replication.Role").enummodule
|
59
64
|
Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Instance").msgclass
|
65
|
+
Instance::IOPSPerTB = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Instance.IOPSPerTB").msgclass
|
66
|
+
Instance::FixedIOPS = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Instance.FixedIOPS").msgclass
|
67
|
+
Instance::PerformanceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Instance.PerformanceConfig").msgclass
|
68
|
+
Instance::PerformanceLimits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Instance.PerformanceLimits").msgclass
|
60
69
|
Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Instance.State").enummodule
|
61
70
|
Instance::Tier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Instance.Tier").enummodule
|
62
71
|
Instance::SuspensionReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Instance.SuspensionReason").enummodule
|
72
|
+
Instance::FileProtocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Instance.FileProtocol").enummodule
|
63
73
|
CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.CreateInstanceRequest").msgclass
|
64
74
|
GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.GetInstanceRequest").msgclass
|
65
75
|
UpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.UpdateInstanceRequest").msgclass
|
@@ -81,6 +91,7 @@ module Google
|
|
81
91
|
CreateBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.CreateBackupRequest").msgclass
|
82
92
|
DeleteBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.DeleteBackupRequest").msgclass
|
83
93
|
UpdateBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.UpdateBackupRequest").msgclass
|
94
|
+
PromoteReplicaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.PromoteReplicaRequest").msgclass
|
84
95
|
GetBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.GetBackupRequest").msgclass
|
85
96
|
ListBackupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.ListBackupsRequest").msgclass
|
86
97
|
ListBackupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.ListBackupsResponse").msgclass
|
@@ -24,6 +24,8 @@ module Google
|
|
24
24
|
module Filestore
|
25
25
|
module V1
|
26
26
|
module CloudFilestoreManager
|
27
|
+
# LINT: LEGACY_NAMES
|
28
|
+
#
|
27
29
|
# Configures and manages Filestore resources.
|
28
30
|
#
|
29
31
|
# Filestore Manager v1.
|
@@ -95,6 +97,8 @@ module Google
|
|
95
97
|
rpc :DeleteBackup, ::Google::Cloud::Filestore::V1::DeleteBackupRequest, ::Google::Longrunning::Operation
|
96
98
|
# Updates the settings of a specific backup.
|
97
99
|
rpc :UpdateBackup, ::Google::Cloud::Filestore::V1::UpdateBackupRequest, ::Google::Longrunning::Operation
|
100
|
+
# Promote the standby instance (replica).
|
101
|
+
rpc :PromoteReplica, ::Google::Cloud::Filestore::V1::PromoteReplicaRequest, ::Google::Longrunning::Operation
|
98
102
|
end
|
99
103
|
|
100
104
|
Stub = Service.rpc_stub_class
|
@@ -221,6 +221,12 @@ module Google
|
|
221
221
|
# Pythonic which are included in `protobuf>=5.29.x`. This feature will be
|
222
222
|
# enabled by default 1 month after launching the feature in preview
|
223
223
|
# packages.
|
224
|
+
# @!attribute [rw] unversioned_package_disabled
|
225
|
+
# @return [::Boolean]
|
226
|
+
# Disables generation of an unversioned Python package for this client
|
227
|
+
# library. This means that the module names will need to be versioned in
|
228
|
+
# import statements. For example `import google.cloud.library_v2` instead
|
229
|
+
# of `import google.cloud.library`.
|
224
230
|
class ExperimentalFeatures
|
225
231
|
include ::Google::Protobuf::MessageExts
|
226
232
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -176,6 +176,85 @@ module Google
|
|
176
176
|
end
|
177
177
|
end
|
178
178
|
|
179
|
+
# Replica configuration for the instance.
|
180
|
+
# @!attribute [r] state
|
181
|
+
# @return [::Google::Cloud::Filestore::V1::ReplicaConfig::State]
|
182
|
+
# Output only. The replica state.
|
183
|
+
# @!attribute [r] state_reasons
|
184
|
+
# @return [::Array<::Google::Cloud::Filestore::V1::ReplicaConfig::StateReason>]
|
185
|
+
# Output only. Additional information about the replication state, if
|
186
|
+
# available.
|
187
|
+
# @!attribute [rw] peer_instance
|
188
|
+
# @return [::String]
|
189
|
+
# Optional. The peer instance.
|
190
|
+
# @!attribute [r] last_active_sync_time
|
191
|
+
# @return [::Google::Protobuf::Timestamp]
|
192
|
+
# Output only. The timestamp of the latest replication snapshot taken on the
|
193
|
+
# active instance and is already replicated safely.
|
194
|
+
class ReplicaConfig
|
195
|
+
include ::Google::Protobuf::MessageExts
|
196
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
197
|
+
|
198
|
+
# The replica state.
|
199
|
+
module State
|
200
|
+
# State not set.
|
201
|
+
STATE_UNSPECIFIED = 0
|
202
|
+
|
203
|
+
# The replica is being created.
|
204
|
+
CREATING = 1
|
205
|
+
|
206
|
+
# The replica is ready.
|
207
|
+
READY = 3
|
208
|
+
|
209
|
+
# The replica is being removed.
|
210
|
+
REMOVING = 4
|
211
|
+
|
212
|
+
# The replica is experiencing an issue and might be unusable. You can get
|
213
|
+
# further details from the `stateReasons` field of the `ReplicaConfig`
|
214
|
+
# object.
|
215
|
+
FAILED = 5
|
216
|
+
end
|
217
|
+
|
218
|
+
# Additional information about the replication state, if available.
|
219
|
+
module StateReason
|
220
|
+
# Reason not specified.
|
221
|
+
STATE_REASON_UNSPECIFIED = 0
|
222
|
+
|
223
|
+
# The peer instance is unreachable.
|
224
|
+
PEER_INSTANCE_UNREACHABLE = 1
|
225
|
+
|
226
|
+
# The remove replica peer instance operation failed.
|
227
|
+
REMOVE_FAILED = 2
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
# Replication specifications.
|
232
|
+
# @!attribute [rw] role
|
233
|
+
# @return [::Google::Cloud::Filestore::V1::Replication::Role]
|
234
|
+
# Optional. The replication role.
|
235
|
+
# @!attribute [rw] replicas
|
236
|
+
# @return [::Array<::Google::Cloud::Filestore::V1::ReplicaConfig>]
|
237
|
+
# Optional. Replication configuration for the replica instance associated
|
238
|
+
# with this instance. Only a single replica is supported.
|
239
|
+
class Replication
|
240
|
+
include ::Google::Protobuf::MessageExts
|
241
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
242
|
+
|
243
|
+
# Replication role.
|
244
|
+
module Role
|
245
|
+
# Role not set.
|
246
|
+
ROLE_UNSPECIFIED = 0
|
247
|
+
|
248
|
+
# The instance is the `ACTIVE` replication member, functions as
|
249
|
+
# the replication source instance.
|
250
|
+
ACTIVE = 1
|
251
|
+
|
252
|
+
# The instance is the `STANDBY` replication member, functions as
|
253
|
+
# the replication destination instance.
|
254
|
+
STANDBY = 2
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
179
258
|
# A Filestore instance.
|
180
259
|
# @!attribute [r] name
|
181
260
|
# @return [::String]
|
@@ -224,10 +303,128 @@ module Google
|
|
224
303
|
# @return [::Array<::Google::Cloud::Filestore::V1::Instance::SuspensionReason>]
|
225
304
|
# Output only. Field indicates all the reasons the instance is in "SUSPENDED"
|
226
305
|
# state.
|
306
|
+
# @!attribute [rw] replication
|
307
|
+
# @return [::Google::Cloud::Filestore::V1::Replication]
|
308
|
+
# Optional. Replication configuration.
|
309
|
+
# @!attribute [rw] tags
|
310
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
311
|
+
# Optional. Input only. Immutable. Tag key-value pairs bound to this
|
312
|
+
# resource. Each key must be a namespaced name and each value a short name.
|
313
|
+
# Example:
|
314
|
+
# "123456789012/environment" : "production",
|
315
|
+
# "123456789013/costCenter" : "marketing"
|
316
|
+
# See the documentation for more information:
|
317
|
+
# - Namespaced name:
|
318
|
+
# https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key
|
319
|
+
# - Short name:
|
320
|
+
# https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
|
321
|
+
# @!attribute [rw] protocol
|
322
|
+
# @return [::Google::Cloud::Filestore::V1::Instance::FileProtocol]
|
323
|
+
# Immutable. The protocol indicates the access protocol for all shares in the
|
324
|
+
# instance. This field is immutable and it cannot be changed after the
|
325
|
+
# instance has been created. Default value: `NFS_V3`.
|
326
|
+
# @!attribute [r] custom_performance_supported
|
327
|
+
# @return [::Boolean]
|
328
|
+
# Output only. Indicates whether this instance supports configuring its
|
329
|
+
# performance. If true, the user can configure the instance's performance by
|
330
|
+
# using the 'performance_config' field.
|
331
|
+
# @!attribute [rw] performance_config
|
332
|
+
# @return [::Google::Cloud::Filestore::V1::Instance::PerformanceConfig]
|
333
|
+
# Optional. Used to configure performance.
|
334
|
+
# @!attribute [r] performance_limits
|
335
|
+
# @return [::Google::Cloud::Filestore::V1::Instance::PerformanceLimits]
|
336
|
+
# Output only. Used for getting performance limits.
|
337
|
+
# @!attribute [rw] deletion_protection_enabled
|
338
|
+
# @return [::Boolean]
|
339
|
+
# Optional. Indicates whether the instance is protected against deletion.
|
340
|
+
# @!attribute [rw] deletion_protection_reason
|
341
|
+
# @return [::String]
|
342
|
+
# Optional. The reason for enabling deletion protection.
|
227
343
|
class Instance
|
228
344
|
include ::Google::Protobuf::MessageExts
|
229
345
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
230
346
|
|
347
|
+
# IOPS per TB.
|
348
|
+
# Filestore defines TB as 1024^4 bytes (TiB).
|
349
|
+
# @!attribute [rw] max_iops_per_tb
|
350
|
+
# @return [::Integer]
|
351
|
+
# Required. Maximum IOPS per TiB.
|
352
|
+
class IOPSPerTB
|
353
|
+
include ::Google::Protobuf::MessageExts
|
354
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
355
|
+
end
|
356
|
+
|
357
|
+
# Fixed IOPS (input/output operations per second) parameters.
|
358
|
+
# @!attribute [rw] max_iops
|
359
|
+
# @return [::Integer]
|
360
|
+
# Required. Maximum IOPS.
|
361
|
+
class FixedIOPS
|
362
|
+
include ::Google::Protobuf::MessageExts
|
363
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
364
|
+
end
|
365
|
+
|
366
|
+
# Used for setting the performance configuration.
|
367
|
+
# If the user doesn't specify PerformanceConfig, automatically provision
|
368
|
+
# the default performance settings as described in
|
369
|
+
# https://cloud.google.com/filestore/docs/performance. Larger instances will
|
370
|
+
# be linearly set to more IOPS. If the instance's capacity is increased or
|
371
|
+
# decreased, its performance will be automatically adjusted upwards or
|
372
|
+
# downwards accordingly (respectively).
|
373
|
+
# @!attribute [rw] iops_per_tb
|
374
|
+
# @return [::Google::Cloud::Filestore::V1::Instance::IOPSPerTB]
|
375
|
+
# Provision IOPS dynamically based on the capacity of the instance.
|
376
|
+
# Provisioned IOPS will be calculated by multiplying the capacity of the
|
377
|
+
# instance in TiB by the `iops_per_tb` value. For example, for a 2 TiB
|
378
|
+
# instance with an `iops_per_tb` value of 17000 the provisioned IOPS will
|
379
|
+
# be 34000.
|
380
|
+
#
|
381
|
+
# If the calculated value is outside the supported range for the
|
382
|
+
# instance's capacity during instance creation, instance creation will
|
383
|
+
# fail with an `InvalidArgument` error. Similarly, if an instance
|
384
|
+
# capacity update would result in a value outside the supported range,
|
385
|
+
# the update will fail with an `InvalidArgument` error.
|
386
|
+
#
|
387
|
+
# Note: The following fields are mutually exclusive: `iops_per_tb`, `fixed_iops`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
388
|
+
# @!attribute [rw] fixed_iops
|
389
|
+
# @return [::Google::Cloud::Filestore::V1::Instance::FixedIOPS]
|
390
|
+
# Choose a fixed provisioned IOPS value for the instance, which will
|
391
|
+
# remain constant regardless of instance capacity. Value must be a
|
392
|
+
# multiple of 1000.
|
393
|
+
#
|
394
|
+
# If the chosen value is outside the supported range for the instance's
|
395
|
+
# capacity during instance creation, instance creation will fail with an
|
396
|
+
# `InvalidArgument` error. Similarly, if an instance capacity update
|
397
|
+
# would result in a value outside the supported range, the update will
|
398
|
+
# fail with an `InvalidArgument` error.
|
399
|
+
#
|
400
|
+
# Note: The following fields are mutually exclusive: `fixed_iops`, `iops_per_tb`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
401
|
+
class PerformanceConfig
|
402
|
+
include ::Google::Protobuf::MessageExts
|
403
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
404
|
+
end
|
405
|
+
|
406
|
+
# The enforced performance limits, calculated from the instance's performance
|
407
|
+
# configuration.
|
408
|
+
# @!attribute [r] max_iops
|
409
|
+
# @return [::Integer]
|
410
|
+
# Output only. The max IOPS.
|
411
|
+
# @!attribute [r] max_read_iops
|
412
|
+
# @return [::Integer]
|
413
|
+
# Output only. The max read IOPS.
|
414
|
+
# @!attribute [r] max_write_iops
|
415
|
+
# @return [::Integer]
|
416
|
+
# Output only. The max write IOPS.
|
417
|
+
# @!attribute [r] max_read_throughput_bps
|
418
|
+
# @return [::Integer]
|
419
|
+
# Output only. The max read throughput in bytes per second.
|
420
|
+
# @!attribute [r] max_write_throughput_bps
|
421
|
+
# @return [::Integer]
|
422
|
+
# Output only. The max write throughput in bytes per second.
|
423
|
+
class PerformanceLimits
|
424
|
+
include ::Google::Protobuf::MessageExts
|
425
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
426
|
+
end
|
427
|
+
|
231
428
|
# @!attribute [rw] key
|
232
429
|
# @return [::String]
|
233
430
|
# @!attribute [rw] value
|
@@ -237,6 +434,15 @@ module Google
|
|
237
434
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
238
435
|
end
|
239
436
|
|
437
|
+
# @!attribute [rw] key
|
438
|
+
# @return [::String]
|
439
|
+
# @!attribute [rw] value
|
440
|
+
# @return [::String]
|
441
|
+
class TagsEntry
|
442
|
+
include ::Google::Protobuf::MessageExts
|
443
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
444
|
+
end
|
445
|
+
|
240
446
|
# The instance state.
|
241
447
|
module State
|
242
448
|
# State not set.
|
@@ -276,6 +482,9 @@ module Google
|
|
276
482
|
|
277
483
|
# The instance is reverting to a snapshot.
|
278
484
|
REVERTING = 12
|
485
|
+
|
486
|
+
# The replica instance is being promoted.
|
487
|
+
PROMOTING = 13
|
279
488
|
end
|
280
489
|
|
281
490
|
# Available service tiers.
|
@@ -324,6 +533,19 @@ module Google
|
|
324
533
|
# The KMS key used by the instance is either revoked or denied access to.
|
325
534
|
KMS_KEY_ISSUE = 1
|
326
535
|
end
|
536
|
+
|
537
|
+
# File access protocol.
|
538
|
+
module FileProtocol
|
539
|
+
# FILE_PROTOCOL_UNSPECIFIED serves a "not set" default value when
|
540
|
+
# a FileProtocol is a separate field in a message.
|
541
|
+
FILE_PROTOCOL_UNSPECIFIED = 0
|
542
|
+
|
543
|
+
# NFS 3.0.
|
544
|
+
NFS_V3 = 1
|
545
|
+
|
546
|
+
# NFS 4.1.
|
547
|
+
NFS_V4_1 = 2
|
548
|
+
end
|
327
549
|
end
|
328
550
|
|
329
551
|
# CreateInstanceRequest creates an instance.
|
@@ -364,6 +586,9 @@ module Google
|
|
364
586
|
# * "description"
|
365
587
|
# * "file_shares"
|
366
588
|
# * "labels"
|
589
|
+
# * "performance_config"
|
590
|
+
# * "deletion_protection_enabled"
|
591
|
+
# * "deletion_protection_reason"
|
367
592
|
# @!attribute [rw] instance
|
368
593
|
# @return [::Google::Cloud::Filestore::V1::Instance]
|
369
594
|
# Only fields specified in update_mask are updated.
|
@@ -395,9 +620,8 @@ module Google
|
|
395
620
|
# specified snapshot.
|
396
621
|
# @!attribute [rw] name
|
397
622
|
# @return [::String]
|
398
|
-
# Required.
|
623
|
+
# Required. The resource name of the instance, in the format
|
399
624
|
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
|
400
|
-
# The resource name of the instance, in the format
|
401
625
|
# @!attribute [rw] target_snapshot_id
|
402
626
|
# @return [::String]
|
403
627
|
# Required. The snapshot resource ID, in the format 'my-snapshot', where the
|
@@ -464,7 +688,7 @@ module Google
|
|
464
688
|
# if there are no more results in the list.
|
465
689
|
# @!attribute [rw] unreachable
|
466
690
|
# @return [::Array<::String>]
|
467
|
-
# Locations that could not be reached.
|
691
|
+
# Unordered list. Locations that could not be reached.
|
468
692
|
class ListInstancesResponse
|
469
693
|
include ::Google::Protobuf::MessageExts
|
470
694
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -492,6 +716,18 @@ module Google
|
|
492
716
|
# @return [::Integer]
|
493
717
|
# Output only. The amount of bytes needed to allocate a full copy of the
|
494
718
|
# snapshot content
|
719
|
+
# @!attribute [rw] tags
|
720
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
721
|
+
# Optional. Input only. Immutable. Tag key-value pairs bound to this
|
722
|
+
# resource. Each key must be a namespaced name and each value a short name.
|
723
|
+
# Example:
|
724
|
+
# "123456789012/environment" : "production",
|
725
|
+
# "123456789013/costCenter" : "marketing"
|
726
|
+
# See the documentation for more information:
|
727
|
+
# - Namespaced name:
|
728
|
+
# https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key
|
729
|
+
# - Short name:
|
730
|
+
# https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
|
495
731
|
class Snapshot
|
496
732
|
include ::Google::Protobuf::MessageExts
|
497
733
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -505,6 +741,15 @@ module Google
|
|
505
741
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
506
742
|
end
|
507
743
|
|
744
|
+
# @!attribute [rw] key
|
745
|
+
# @return [::String]
|
746
|
+
# @!attribute [rw] value
|
747
|
+
# @return [::String]
|
748
|
+
class TagsEntry
|
749
|
+
include ::Google::Protobuf::MessageExts
|
750
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
751
|
+
end
|
752
|
+
|
508
753
|
# The snapshot state.
|
509
754
|
module State
|
510
755
|
# State not set.
|
@@ -593,6 +838,10 @@ module Google
|
|
593
838
|
# @!attribute [rw] filter
|
594
839
|
# @return [::String]
|
595
840
|
# List filter.
|
841
|
+
# @!attribute [rw] return_partial_success
|
842
|
+
# @return [::Boolean]
|
843
|
+
# Optional. If true, allow partial responses for multi-regional Aggregated
|
844
|
+
# List requests.
|
596
845
|
class ListSnapshotsRequest
|
597
846
|
include ::Google::Protobuf::MessageExts
|
598
847
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -606,6 +855,9 @@ module Google
|
|
606
855
|
# @return [::String]
|
607
856
|
# The token you can use to retrieve the next page of results. Not returned
|
608
857
|
# if there are no more results in the list.
|
858
|
+
# @!attribute [rw] unreachable
|
859
|
+
# @return [::Array<::String>]
|
860
|
+
# Unordered list. Locations that could not be reached.
|
609
861
|
class ListSnapshotsResponse
|
610
862
|
include ::Google::Protobuf::MessageExts
|
611
863
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -663,6 +915,22 @@ module Google
|
|
663
915
|
# @!attribute [rw] kms_key
|
664
916
|
# @return [::String]
|
665
917
|
# Immutable. KMS key name used for data encryption.
|
918
|
+
# @!attribute [rw] tags
|
919
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
920
|
+
# Optional. Input only. Immutable. Tag key-value pairs bound to this
|
921
|
+
# resource. Each key must be a namespaced name and each value a short name.
|
922
|
+
# Example:
|
923
|
+
# "123456789012/environment" : "production",
|
924
|
+
# "123456789013/costCenter" : "marketing"
|
925
|
+
# See the documentation for more information:
|
926
|
+
# - Namespaced name:
|
927
|
+
# https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key
|
928
|
+
# - Short name:
|
929
|
+
# https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
|
930
|
+
# @!attribute [r] file_system_protocol
|
931
|
+
# @return [::Google::Cloud::Filestore::V1::Instance::FileProtocol]
|
932
|
+
# Output only. The file system protocol of the source Filestore instance that
|
933
|
+
# this backup is created from.
|
666
934
|
class Backup
|
667
935
|
include ::Google::Protobuf::MessageExts
|
668
936
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -676,6 +944,15 @@ module Google
|
|
676
944
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
677
945
|
end
|
678
946
|
|
947
|
+
# @!attribute [rw] key
|
948
|
+
# @return [::String]
|
949
|
+
# @!attribute [rw] value
|
950
|
+
# @return [::String]
|
951
|
+
class TagsEntry
|
952
|
+
include ::Google::Protobuf::MessageExts
|
953
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
954
|
+
end
|
955
|
+
|
679
956
|
# The backup state.
|
680
957
|
module State
|
681
958
|
# State not set.
|
@@ -746,6 +1023,22 @@ module Google
|
|
746
1023
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
747
1024
|
end
|
748
1025
|
|
1026
|
+
# PromoteReplicaRequest promotes a Filestore standby instance (replica).
|
1027
|
+
# @!attribute [rw] name
|
1028
|
+
# @return [::String]
|
1029
|
+
# Required. The resource name of the instance, in the format
|
1030
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
|
1031
|
+
# @!attribute [rw] peer_instance
|
1032
|
+
# @return [::String]
|
1033
|
+
# Optional. The resource name of the peer instance to promote, in the format
|
1034
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
|
1035
|
+
# The peer instance is required if the operation is called on an active
|
1036
|
+
# instance.
|
1037
|
+
class PromoteReplicaRequest
|
1038
|
+
include ::Google::Protobuf::MessageExts
|
1039
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1040
|
+
end
|
1041
|
+
|
749
1042
|
# GetBackupRequest gets the state of a backup.
|
750
1043
|
# @!attribute [rw] name
|
751
1044
|
# @return [::String]
|
@@ -799,7 +1092,7 @@ module Google
|
|
799
1092
|
# if there are no more results in the list.
|
800
1093
|
# @!attribute [rw] unreachable
|
801
1094
|
# @return [::Array<::String>]
|
802
|
-
# Locations that could not be reached.
|
1095
|
+
# Unordered list. Locations that could not be reached.
|
803
1096
|
class ListBackupsResponse
|
804
1097
|
include ::Google::Protobuf::MessageExts
|
805
1098
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-filestore-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-10 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: gapic-common
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
|
-
rubygems_version: 3.6.
|
144
|
+
rubygems_version: 3.6.5
|
145
145
|
specification_version: 4
|
146
146
|
summary: The Cloud Filestore API is used for creating and managing cloud file servers.
|
147
147
|
test_files: []
|