google-cloud-filestore-v1 0.4.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e66d9efdb82a331068ad07602444b3f1a832a9442cceb8f975294b00175f0c1
4
- data.tar.gz: 3ad00864d45f3626975ddcffe8145a3fbd012f8f05c64e7ea9e6b45a3e9a0136
3
+ metadata.gz: dff524885f07f68754853fdd50a32f1f94d9df7374c9a2d6d7c983611e8bed4b
4
+ data.tar.gz: 815300149fcd02ae6477af17fd09ad1b21f32047a531cba7b44c8b599879c202
5
5
  SHA512:
6
- metadata.gz: 8ba7ac43b2bd4afb2f2422df690374099b77eba7667a7f24b478b3043a7c4791af2357801343ddee8ef9f0e179c9b390999c415577939c11ae46d5f7c0025584
7
- data.tar.gz: 0c7253ff084efbe4f5c967164a6b63d5212f4f083a2f6a0d255888aef83f57d6af1005251ff07627a526140a8a0c684f7683a865f7856b302a8446ed024a161d
6
+ metadata.gz: 96089e8c7e0bec69c64ba6080f006d9f66827977abebc41f54c7edf1571afe486ed82e5cfe778a74332945c45492bad0d72985e3a355ac14799f6efc91ca14df
7
+ data.tar.gz: 4fe3124039b0a509374c7c2c0470bcf1c7ff439875a702654e170f440ca81f3262f49ffc359b462081d90e20f63311996614def3bab772fa96b09f83cfd9a050
@@ -175,7 +175,7 @@ module Google
175
175
  credentials = @config.credentials
176
176
  # Use self-signed JWT if the endpoint is unchanged from default,
177
177
  # but only if the default endpoint does not have a region prefix.
178
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
178
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
179
179
  !@config.endpoint.split(".").first.include?("-")
180
180
  credentials ||= Credentials.default scope: @config.scope,
181
181
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -196,7 +196,8 @@ module Google
196
196
  credentials: credentials,
197
197
  endpoint: @config.endpoint,
198
198
  channel_args: @config.channel_args,
199
- interceptors: @config.interceptors
199
+ interceptors: @config.interceptors,
200
+ channel_pool_config: @config.channel_pool
200
201
  )
201
202
  end
202
203
 
@@ -1853,7 +1854,9 @@ module Google
1853
1854
  class Configuration
1854
1855
  extend ::Gapic::Config
1855
1856
 
1856
- config_attr :endpoint, "file.googleapis.com", ::String
1857
+ DEFAULT_ENDPOINT = "file.googleapis.com"
1858
+
1859
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1857
1860
  config_attr :credentials, nil do |value|
1858
1861
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1859
1862
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -1888,6 +1891,14 @@ module Google
1888
1891
  end
1889
1892
  end
1890
1893
 
1894
+ ##
1895
+ # Configuration for the channel pool
1896
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1897
+ #
1898
+ def channel_pool
1899
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1900
+ end
1901
+
1891
1902
  ##
1892
1903
  # Configuration RPC class for the CloudFilestoreManager API.
1893
1904
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -664,7 +665,9 @@ module Google
664
665
  class Configuration
665
666
  extend ::Gapic::Config
666
667
 
667
- config_attr :endpoint, "file.googleapis.com", ::String
668
+ DEFAULT_ENDPOINT = "file.googleapis.com"
669
+
670
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
671
  config_attr :credentials, nil do |value|
669
672
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
673
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -699,6 +702,14 @@ module Google
699
702
  end
700
703
  end
701
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
702
713
  ##
703
714
  # Configuration RPC class for the Operations API.
704
715
  #
@@ -171,7 +171,7 @@ module Google
171
171
  credentials = @config.credentials
172
172
  # Use self-signed JWT if the endpoint is unchanged from default,
173
173
  # but only if the default endpoint does not have a region prefix.
174
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
174
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
175
175
  !@config.endpoint.split(".").first.include?("-")
176
176
  credentials ||= Credentials.default scope: @config.scope,
177
177
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -242,6 +242,26 @@ module Google
242
242
  # @return [::Google::Cloud::Filestore::V1::ListInstancesResponse]
243
243
  #
244
244
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
245
+ #
246
+ # @example Basic example
247
+ # require "google/cloud/filestore/v1"
248
+ #
249
+ # # Create a client object. The client can be reused for multiple calls.
250
+ # client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
251
+ #
252
+ # # Create a request. To set request fields, pass in keyword arguments.
253
+ # request = Google::Cloud::Filestore::V1::ListInstancesRequest.new
254
+ #
255
+ # # Call the list_instances method.
256
+ # result = client.list_instances request
257
+ #
258
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
259
+ # # over elements, and API calls will be issued to fetch pages as needed.
260
+ # result.each do |item|
261
+ # # Each element is of type ::Google::Cloud::Filestore::V1::Instance.
262
+ # p item
263
+ # end
264
+ #
245
265
  def list_instances request, options = nil
246
266
  raise ::ArgumentError, "request must be provided" if request.nil?
247
267
 
@@ -305,6 +325,22 @@ module Google
305
325
  # @return [::Google::Cloud::Filestore::V1::Instance]
306
326
  #
307
327
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
328
+ #
329
+ # @example Basic example
330
+ # require "google/cloud/filestore/v1"
331
+ #
332
+ # # Create a client object. The client can be reused for multiple calls.
333
+ # client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
334
+ #
335
+ # # Create a request. To set request fields, pass in keyword arguments.
336
+ # request = Google::Cloud::Filestore::V1::GetInstanceRequest.new
337
+ #
338
+ # # Call the get_instance method.
339
+ # result = client.get_instance request
340
+ #
341
+ # # The returned object is of type Google::Cloud::Filestore::V1::Instance.
342
+ # p result
343
+ #
308
344
  def get_instance request, options = nil
309
345
  raise ::ArgumentError, "request must be provided" if request.nil?
310
346
 
@@ -377,6 +413,29 @@ module Google
377
413
  # @return [::Gapic::Operation]
378
414
  #
379
415
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
416
+ #
417
+ # @example Basic example
418
+ # require "google/cloud/filestore/v1"
419
+ #
420
+ # # Create a client object. The client can be reused for multiple calls.
421
+ # client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
422
+ #
423
+ # # Create a request. To set request fields, pass in keyword arguments.
424
+ # request = Google::Cloud::Filestore::V1::CreateInstanceRequest.new
425
+ #
426
+ # # Call the create_instance method.
427
+ # result = client.create_instance request
428
+ #
429
+ # # The returned object is of type Gapic::Operation. You can use it to
430
+ # # check the status of an operation, cancel it, or wait for results.
431
+ # # Here is how to wait for a response.
432
+ # result.wait_until_done! timeout: 60
433
+ # if result.response?
434
+ # p result.response
435
+ # else
436
+ # puts "No response received."
437
+ # end
438
+ #
380
439
  def create_instance request, options = nil
381
440
  raise ::ArgumentError, "request must be provided" if request.nil?
382
441
 
@@ -448,6 +507,29 @@ module Google
448
507
  # @return [::Gapic::Operation]
449
508
  #
450
509
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
510
+ #
511
+ # @example Basic example
512
+ # require "google/cloud/filestore/v1"
513
+ #
514
+ # # Create a client object. The client can be reused for multiple calls.
515
+ # client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
516
+ #
517
+ # # Create a request. To set request fields, pass in keyword arguments.
518
+ # request = Google::Cloud::Filestore::V1::UpdateInstanceRequest.new
519
+ #
520
+ # # Call the update_instance method.
521
+ # result = client.update_instance request
522
+ #
523
+ # # The returned object is of type Gapic::Operation. You can use it to
524
+ # # check the status of an operation, cancel it, or wait for results.
525
+ # # Here is how to wait for a response.
526
+ # result.wait_until_done! timeout: 60
527
+ # if result.response?
528
+ # p result.response
529
+ # else
530
+ # puts "No response received."
531
+ # end
532
+ #
451
533
  def update_instance request, options = nil
452
534
  raise ::ArgumentError, "request must be provided" if request.nil?
453
535
 
@@ -522,6 +604,29 @@ module Google
522
604
  # @return [::Gapic::Operation]
523
605
  #
524
606
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
607
+ #
608
+ # @example Basic example
609
+ # require "google/cloud/filestore/v1"
610
+ #
611
+ # # Create a client object. The client can be reused for multiple calls.
612
+ # client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
613
+ #
614
+ # # Create a request. To set request fields, pass in keyword arguments.
615
+ # request = Google::Cloud::Filestore::V1::RestoreInstanceRequest.new
616
+ #
617
+ # # Call the restore_instance method.
618
+ # result = client.restore_instance request
619
+ #
620
+ # # The returned object is of type Gapic::Operation. You can use it to
621
+ # # check the status of an operation, cancel it, or wait for results.
622
+ # # Here is how to wait for a response.
623
+ # result.wait_until_done! timeout: 60
624
+ # if result.response?
625
+ # p result.response
626
+ # else
627
+ # puts "No response received."
628
+ # end
629
+ #
525
630
  def restore_instance request, options = nil
526
631
  raise ::ArgumentError, "request must be provided" if request.nil?
527
632
 
@@ -589,6 +694,29 @@ module Google
589
694
  # @return [::Gapic::Operation]
590
695
  #
591
696
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
697
+ #
698
+ # @example Basic example
699
+ # require "google/cloud/filestore/v1"
700
+ #
701
+ # # Create a client object. The client can be reused for multiple calls.
702
+ # client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
703
+ #
704
+ # # Create a request. To set request fields, pass in keyword arguments.
705
+ # request = Google::Cloud::Filestore::V1::DeleteInstanceRequest.new
706
+ #
707
+ # # Call the delete_instance method.
708
+ # result = client.delete_instance request
709
+ #
710
+ # # The returned object is of type Gapic::Operation. You can use it to
711
+ # # check the status of an operation, cancel it, or wait for results.
712
+ # # Here is how to wait for a response.
713
+ # result.wait_until_done! timeout: 60
714
+ # if result.response?
715
+ # p result.response
716
+ # else
717
+ # puts "No response received."
718
+ # end
719
+ #
592
720
  def delete_instance request, options = nil
593
721
  raise ::ArgumentError, "request must be provided" if request.nil?
594
722
 
@@ -664,6 +792,26 @@ module Google
664
792
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Filestore::V1::Snapshot>]
665
793
  #
666
794
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
795
+ #
796
+ # @example Basic example
797
+ # require "google/cloud/filestore/v1"
798
+ #
799
+ # # Create a client object. The client can be reused for multiple calls.
800
+ # client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
801
+ #
802
+ # # Create a request. To set request fields, pass in keyword arguments.
803
+ # request = Google::Cloud::Filestore::V1::ListSnapshotsRequest.new
804
+ #
805
+ # # Call the list_snapshots method.
806
+ # result = client.list_snapshots request
807
+ #
808
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
809
+ # # over elements, and API calls will be issued to fetch pages as needed.
810
+ # result.each do |item|
811
+ # # Each element is of type ::Google::Cloud::Filestore::V1::Snapshot.
812
+ # p item
813
+ # end
814
+ #
667
815
  def list_snapshots request, options = nil
668
816
  raise ::ArgumentError, "request must be provided" if request.nil?
669
817
 
@@ -728,6 +876,22 @@ module Google
728
876
  # @return [::Google::Cloud::Filestore::V1::Snapshot]
729
877
  #
730
878
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
879
+ #
880
+ # @example Basic example
881
+ # require "google/cloud/filestore/v1"
882
+ #
883
+ # # Create a client object. The client can be reused for multiple calls.
884
+ # client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
885
+ #
886
+ # # Create a request. To set request fields, pass in keyword arguments.
887
+ # request = Google::Cloud::Filestore::V1::GetSnapshotRequest.new
888
+ #
889
+ # # Call the get_snapshot method.
890
+ # result = client.get_snapshot request
891
+ #
892
+ # # The returned object is of type Google::Cloud::Filestore::V1::Snapshot.
893
+ # p result
894
+ #
731
895
  def get_snapshot request, options = nil
732
896
  raise ::ArgumentError, "request must be provided" if request.nil?
733
897
 
@@ -799,6 +963,29 @@ module Google
799
963
  # @return [::Gapic::Operation]
800
964
  #
801
965
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
966
+ #
967
+ # @example Basic example
968
+ # require "google/cloud/filestore/v1"
969
+ #
970
+ # # Create a client object. The client can be reused for multiple calls.
971
+ # client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
972
+ #
973
+ # # Create a request. To set request fields, pass in keyword arguments.
974
+ # request = Google::Cloud::Filestore::V1::CreateSnapshotRequest.new
975
+ #
976
+ # # Call the create_snapshot method.
977
+ # result = client.create_snapshot request
978
+ #
979
+ # # The returned object is of type Gapic::Operation. You can use it to
980
+ # # check the status of an operation, cancel it, or wait for results.
981
+ # # Here is how to wait for a response.
982
+ # result.wait_until_done! timeout: 60
983
+ # if result.response?
984
+ # p result.response
985
+ # else
986
+ # puts "No response received."
987
+ # end
988
+ #
802
989
  def create_snapshot request, options = nil
803
990
  raise ::ArgumentError, "request must be provided" if request.nil?
804
991
 
@@ -863,6 +1050,29 @@ module Google
863
1050
  # @return [::Gapic::Operation]
864
1051
  #
865
1052
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1053
+ #
1054
+ # @example Basic example
1055
+ # require "google/cloud/filestore/v1"
1056
+ #
1057
+ # # Create a client object. The client can be reused for multiple calls.
1058
+ # client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
1059
+ #
1060
+ # # Create a request. To set request fields, pass in keyword arguments.
1061
+ # request = Google::Cloud::Filestore::V1::DeleteSnapshotRequest.new
1062
+ #
1063
+ # # Call the delete_snapshot method.
1064
+ # result = client.delete_snapshot request
1065
+ #
1066
+ # # The returned object is of type Gapic::Operation. You can use it to
1067
+ # # check the status of an operation, cancel it, or wait for results.
1068
+ # # Here is how to wait for a response.
1069
+ # result.wait_until_done! timeout: 60
1070
+ # if result.response?
1071
+ # p result.response
1072
+ # else
1073
+ # puts "No response received."
1074
+ # end
1075
+ #
866
1076
  def delete_snapshot request, options = nil
867
1077
  raise ::ArgumentError, "request must be provided" if request.nil?
868
1078
 
@@ -929,6 +1139,29 @@ module Google
929
1139
  # @return [::Gapic::Operation]
930
1140
  #
931
1141
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1142
+ #
1143
+ # @example Basic example
1144
+ # require "google/cloud/filestore/v1"
1145
+ #
1146
+ # # Create a client object. The client can be reused for multiple calls.
1147
+ # client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
1148
+ #
1149
+ # # Create a request. To set request fields, pass in keyword arguments.
1150
+ # request = Google::Cloud::Filestore::V1::UpdateSnapshotRequest.new
1151
+ #
1152
+ # # Call the update_snapshot method.
1153
+ # result = client.update_snapshot request
1154
+ #
1155
+ # # The returned object is of type Gapic::Operation. You can use it to
1156
+ # # check the status of an operation, cancel it, or wait for results.
1157
+ # # Here is how to wait for a response.
1158
+ # result.wait_until_done! timeout: 60
1159
+ # if result.response?
1160
+ # p result.response
1161
+ # else
1162
+ # puts "No response received."
1163
+ # end
1164
+ #
932
1165
  def update_snapshot request, options = nil
933
1166
  raise ::ArgumentError, "request must be provided" if request.nil?
934
1167
 
@@ -1007,6 +1240,26 @@ module Google
1007
1240
  # @return [::Google::Cloud::Filestore::V1::ListBackupsResponse]
1008
1241
  #
1009
1242
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1243
+ #
1244
+ # @example Basic example
1245
+ # require "google/cloud/filestore/v1"
1246
+ #
1247
+ # # Create a client object. The client can be reused for multiple calls.
1248
+ # client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
1249
+ #
1250
+ # # Create a request. To set request fields, pass in keyword arguments.
1251
+ # request = Google::Cloud::Filestore::V1::ListBackupsRequest.new
1252
+ #
1253
+ # # Call the list_backups method.
1254
+ # result = client.list_backups request
1255
+ #
1256
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1257
+ # # over elements, and API calls will be issued to fetch pages as needed.
1258
+ # result.each do |item|
1259
+ # # Each element is of type ::Google::Cloud::Filestore::V1::Backup.
1260
+ # p item
1261
+ # end
1262
+ #
1010
1263
  def list_backups request, options = nil
1011
1264
  raise ::ArgumentError, "request must be provided" if request.nil?
1012
1265
 
@@ -1070,6 +1323,22 @@ module Google
1070
1323
  # @return [::Google::Cloud::Filestore::V1::Backup]
1071
1324
  #
1072
1325
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1326
+ #
1327
+ # @example Basic example
1328
+ # require "google/cloud/filestore/v1"
1329
+ #
1330
+ # # Create a client object. The client can be reused for multiple calls.
1331
+ # client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
1332
+ #
1333
+ # # Create a request. To set request fields, pass in keyword arguments.
1334
+ # request = Google::Cloud::Filestore::V1::GetBackupRequest.new
1335
+ #
1336
+ # # Call the get_backup method.
1337
+ # result = client.get_backup request
1338
+ #
1339
+ # # The returned object is of type Google::Cloud::Filestore::V1::Backup.
1340
+ # p result
1341
+ #
1073
1342
  def get_backup request, options = nil
1074
1343
  raise ::ArgumentError, "request must be provided" if request.nil?
1075
1344
 
@@ -1144,6 +1413,29 @@ module Google
1144
1413
  # @return [::Gapic::Operation]
1145
1414
  #
1146
1415
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1416
+ #
1417
+ # @example Basic example
1418
+ # require "google/cloud/filestore/v1"
1419
+ #
1420
+ # # Create a client object. The client can be reused for multiple calls.
1421
+ # client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
1422
+ #
1423
+ # # Create a request. To set request fields, pass in keyword arguments.
1424
+ # request = Google::Cloud::Filestore::V1::CreateBackupRequest.new
1425
+ #
1426
+ # # Call the create_backup method.
1427
+ # result = client.create_backup request
1428
+ #
1429
+ # # The returned object is of type Gapic::Operation. You can use it to
1430
+ # # check the status of an operation, cancel it, or wait for results.
1431
+ # # Here is how to wait for a response.
1432
+ # result.wait_until_done! timeout: 60
1433
+ # if result.response?
1434
+ # p result.response
1435
+ # else
1436
+ # puts "No response received."
1437
+ # end
1438
+ #
1147
1439
  def create_backup request, options = nil
1148
1440
  raise ::ArgumentError, "request must be provided" if request.nil?
1149
1441
 
@@ -1208,6 +1500,29 @@ module Google
1208
1500
  # @return [::Gapic::Operation]
1209
1501
  #
1210
1502
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1503
+ #
1504
+ # @example Basic example
1505
+ # require "google/cloud/filestore/v1"
1506
+ #
1507
+ # # Create a client object. The client can be reused for multiple calls.
1508
+ # client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
1509
+ #
1510
+ # # Create a request. To set request fields, pass in keyword arguments.
1511
+ # request = Google::Cloud::Filestore::V1::DeleteBackupRequest.new
1512
+ #
1513
+ # # Call the delete_backup method.
1514
+ # result = client.delete_backup request
1515
+ #
1516
+ # # The returned object is of type Gapic::Operation. You can use it to
1517
+ # # check the status of an operation, cancel it, or wait for results.
1518
+ # # Here is how to wait for a response.
1519
+ # result.wait_until_done! timeout: 60
1520
+ # if result.response?
1521
+ # p result.response
1522
+ # else
1523
+ # puts "No response received."
1524
+ # end
1525
+ #
1211
1526
  def delete_backup request, options = nil
1212
1527
  raise ::ArgumentError, "request must be provided" if request.nil?
1213
1528
 
@@ -1274,6 +1589,29 @@ module Google
1274
1589
  # @return [::Gapic::Operation]
1275
1590
  #
1276
1591
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1592
+ #
1593
+ # @example Basic example
1594
+ # require "google/cloud/filestore/v1"
1595
+ #
1596
+ # # Create a client object. The client can be reused for multiple calls.
1597
+ # client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
1598
+ #
1599
+ # # Create a request. To set request fields, pass in keyword arguments.
1600
+ # request = Google::Cloud::Filestore::V1::UpdateBackupRequest.new
1601
+ #
1602
+ # # Call the update_backup method.
1603
+ # result = client.update_backup request
1604
+ #
1605
+ # # The returned object is of type Gapic::Operation. You can use it to
1606
+ # # check the status of an operation, cancel it, or wait for results.
1607
+ # # Here is how to wait for a response.
1608
+ # result.wait_until_done! timeout: 60
1609
+ # if result.response?
1610
+ # p result.response
1611
+ # else
1612
+ # puts "No response received."
1613
+ # end
1614
+ #
1277
1615
  def update_backup request, options = nil
1278
1616
  raise ::ArgumentError, "request must be provided" if request.nil?
1279
1617
 
@@ -1383,7 +1721,9 @@ module Google
1383
1721
  class Configuration
1384
1722
  extend ::Gapic::Config
1385
1723
 
1386
- config_attr :endpoint, "file.googleapis.com", ::String
1724
+ DEFAULT_ENDPOINT = "file.googleapis.com"
1725
+
1726
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1387
1727
  config_attr :credentials, nil do |value|
1388
1728
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1389
1729
  allowed.any? { |klass| klass === value }
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -446,7 +521,9 @@ module Google
446
521
  class Configuration
447
522
  extend ::Gapic::Config
448
523
 
449
- config_attr :endpoint, "file.googleapis.com", ::String
524
+ DEFAULT_ENDPOINT = "file.googleapis.com"
525
+
526
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
527
  config_attr :credentials, nil do |value|
451
528
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
529
  allowed.any? { |klass| klass === value }
@@ -567,7 +644,7 @@ module Google
567
644
 
568
645
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
646
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
647
+ query_string_params.to_h { |p| p.split "=", 2 }
571
648
  else
572
649
  {}
573
650
  end
@@ -605,7 +682,7 @@ module Google
605
682
 
606
683
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
684
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
685
+ query_string_params.to_h { |p| p.split "=", 2 }
609
686
  else
610
687
  {}
611
688
  end
@@ -643,7 +720,7 @@ module Google
643
720
 
644
721
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
722
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
723
+ query_string_params.to_h { |p| p.split "=", 2 }
647
724
  else
648
725
  {}
649
726
  end
@@ -681,7 +758,7 @@ module Google
681
758
 
682
759
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
760
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
761
+ query_string_params.to_h { |p| p.split "=", 2 }
685
762
  else
686
763
  {}
687
764
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_instances_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_instance_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_create_instance_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_update_instance_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_restore_instance_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_instance_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_list_snapshots_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_get_snapshot_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_create_snapshot_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -401,7 +401,7 @@ module Google
401
401
 
402
402
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_snapshot_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
404
+ query_string_params.to_h { |p| p.split "=", 2 }
405
405
  else
406
406
  {}
407
407
  end
@@ -439,7 +439,7 @@ module Google
439
439
 
440
440
  verb, uri, query_string_params, body = ServiceStub.transcode_update_snapshot_request request_pb
441
441
  query_string_params = if query_string_params.any?
442
- query_string_params.to_h { |p| p.split("=", 2) }
442
+ query_string_params.to_h { |p| p.split "=", 2 }
443
443
  else
444
444
  {}
445
445
  end
@@ -477,7 +477,7 @@ module Google
477
477
 
478
478
  verb, uri, query_string_params, body = ServiceStub.transcode_list_backups_request request_pb
479
479
  query_string_params = if query_string_params.any?
480
- query_string_params.to_h { |p| p.split("=", 2) }
480
+ query_string_params.to_h { |p| p.split "=", 2 }
481
481
  else
482
482
  {}
483
483
  end
@@ -515,7 +515,7 @@ module Google
515
515
 
516
516
  verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_request request_pb
517
517
  query_string_params = if query_string_params.any?
518
- query_string_params.to_h { |p| p.split("=", 2) }
518
+ query_string_params.to_h { |p| p.split "=", 2 }
519
519
  else
520
520
  {}
521
521
  end
@@ -553,7 +553,7 @@ module Google
553
553
 
554
554
  verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_request request_pb
555
555
  query_string_params = if query_string_params.any?
556
- query_string_params.to_h { |p| p.split("=", 2) }
556
+ query_string_params.to_h { |p| p.split "=", 2 }
557
557
  else
558
558
  {}
559
559
  end
@@ -591,7 +591,7 @@ module Google
591
591
 
592
592
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_request request_pb
593
593
  query_string_params = if query_string_params.any?
594
- query_string_params.to_h { |p| p.split("=", 2) }
594
+ query_string_params.to_h { |p| p.split "=", 2 }
595
595
  else
596
596
  {}
597
597
  end
@@ -629,7 +629,7 @@ module Google
629
629
 
630
630
  verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_request request_pb
631
631
  query_string_params = if query_string_params.any?
632
- query_string_params.to_h { |p| p.split("=", 2) }
632
+ query_string_params.to_h { |p| p.split "=", 2 }
633
633
  else
634
634
  {}
635
635
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/filestore/v1/cloud_filestore_service.proto
3
4
 
@@ -14,214 +15,34 @@ require 'google/protobuf/field_mask_pb'
14
15
  require 'google/protobuf/timestamp_pb'
15
16
  require 'google/protobuf/wrappers_pb'
16
17
 
17
- Google::Protobuf::DescriptorPool.generated_pool.build do
18
- add_file("google/cloud/filestore/v1/cloud_filestore_service.proto", :syntax => :proto3) do
19
- add_message "google.cloud.filestore.v1.NetworkConfig" do
20
- optional :network, :string, 1
21
- repeated :modes, :enum, 3, "google.cloud.filestore.v1.NetworkConfig.AddressMode"
22
- optional :reserved_ip_range, :string, 4
23
- repeated :ip_addresses, :string, 5
24
- optional :connect_mode, :enum, 6, "google.cloud.filestore.v1.NetworkConfig.ConnectMode"
25
- end
26
- add_enum "google.cloud.filestore.v1.NetworkConfig.AddressMode" do
27
- value :ADDRESS_MODE_UNSPECIFIED, 0
28
- value :MODE_IPV4, 1
29
- end
30
- add_enum "google.cloud.filestore.v1.NetworkConfig.ConnectMode" do
31
- value :CONNECT_MODE_UNSPECIFIED, 0
32
- value :DIRECT_PEERING, 1
33
- value :PRIVATE_SERVICE_ACCESS, 2
34
- end
35
- add_message "google.cloud.filestore.v1.FileShareConfig" do
36
- optional :name, :string, 1
37
- optional :capacity_gb, :int64, 2
38
- repeated :nfs_export_options, :message, 7, "google.cloud.filestore.v1.NfsExportOptions"
39
- oneof :source do
40
- optional :source_backup, :string, 8
41
- end
42
- end
43
- add_message "google.cloud.filestore.v1.NfsExportOptions" do
44
- repeated :ip_ranges, :string, 1
45
- optional :access_mode, :enum, 2, "google.cloud.filestore.v1.NfsExportOptions.AccessMode"
46
- optional :squash_mode, :enum, 3, "google.cloud.filestore.v1.NfsExportOptions.SquashMode"
47
- optional :anon_uid, :int64, 4
48
- optional :anon_gid, :int64, 5
49
- end
50
- add_enum "google.cloud.filestore.v1.NfsExportOptions.AccessMode" do
51
- value :ACCESS_MODE_UNSPECIFIED, 0
52
- value :READ_ONLY, 1
53
- value :READ_WRITE, 2
54
- end
55
- add_enum "google.cloud.filestore.v1.NfsExportOptions.SquashMode" do
56
- value :SQUASH_MODE_UNSPECIFIED, 0
57
- value :NO_ROOT_SQUASH, 1
58
- value :ROOT_SQUASH, 2
59
- end
60
- add_message "google.cloud.filestore.v1.Instance" do
61
- optional :name, :string, 1
62
- optional :description, :string, 2
63
- optional :state, :enum, 5, "google.cloud.filestore.v1.Instance.State"
64
- optional :status_message, :string, 6
65
- optional :create_time, :message, 7, "google.protobuf.Timestamp"
66
- optional :tier, :enum, 8, "google.cloud.filestore.v1.Instance.Tier"
67
- map :labels, :string, :string, 9
68
- repeated :file_shares, :message, 10, "google.cloud.filestore.v1.FileShareConfig"
69
- repeated :networks, :message, 11, "google.cloud.filestore.v1.NetworkConfig"
70
- optional :etag, :string, 12
71
- optional :satisfies_pzs, :message, 13, "google.protobuf.BoolValue"
72
- optional :kms_key_name, :string, 14
73
- repeated :suspension_reasons, :enum, 15, "google.cloud.filestore.v1.Instance.SuspensionReason"
74
- end
75
- add_enum "google.cloud.filestore.v1.Instance.State" do
76
- value :STATE_UNSPECIFIED, 0
77
- value :CREATING, 1
78
- value :READY, 2
79
- value :REPAIRING, 3
80
- value :DELETING, 4
81
- value :ERROR, 6
82
- value :RESTORING, 7
83
- value :SUSPENDED, 8
84
- value :SUSPENDING, 9
85
- value :RESUMING, 10
86
- end
87
- add_enum "google.cloud.filestore.v1.Instance.Tier" do
88
- value :TIER_UNSPECIFIED, 0
89
- value :STANDARD, 1
90
- value :PREMIUM, 2
91
- value :BASIC_HDD, 3
92
- value :BASIC_SSD, 4
93
- value :HIGH_SCALE_SSD, 5
94
- value :ENTERPRISE, 6
95
- end
96
- add_enum "google.cloud.filestore.v1.Instance.SuspensionReason" do
97
- value :SUSPENSION_REASON_UNSPECIFIED, 0
98
- value :KMS_KEY_ISSUE, 1
99
- end
100
- add_message "google.cloud.filestore.v1.CreateInstanceRequest" do
101
- optional :parent, :string, 1
102
- optional :instance_id, :string, 2
103
- optional :instance, :message, 3, "google.cloud.filestore.v1.Instance"
104
- end
105
- add_message "google.cloud.filestore.v1.GetInstanceRequest" do
106
- optional :name, :string, 1
107
- end
108
- add_message "google.cloud.filestore.v1.UpdateInstanceRequest" do
109
- optional :update_mask, :message, 1, "google.protobuf.FieldMask"
110
- optional :instance, :message, 2, "google.cloud.filestore.v1.Instance"
111
- end
112
- add_message "google.cloud.filestore.v1.RestoreInstanceRequest" do
113
- optional :name, :string, 1
114
- optional :file_share, :string, 2
115
- oneof :source do
116
- optional :source_backup, :string, 3
117
- end
118
- end
119
- add_message "google.cloud.filestore.v1.DeleteInstanceRequest" do
120
- optional :name, :string, 1
121
- optional :force, :bool, 2
122
- end
123
- add_message "google.cloud.filestore.v1.ListInstancesRequest" do
124
- optional :parent, :string, 1
125
- optional :page_size, :int32, 2
126
- optional :page_token, :string, 3
127
- optional :order_by, :string, 4
128
- optional :filter, :string, 5
129
- end
130
- add_message "google.cloud.filestore.v1.ListInstancesResponse" do
131
- repeated :instances, :message, 1, "google.cloud.filestore.v1.Instance"
132
- optional :next_page_token, :string, 2
133
- repeated :unreachable, :string, 3
134
- end
135
- add_message "google.cloud.filestore.v1.Snapshot" do
136
- optional :name, :string, 1
137
- optional :description, :string, 2
138
- optional :state, :enum, 3, "google.cloud.filestore.v1.Snapshot.State"
139
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
140
- map :labels, :string, :string, 5
141
- optional :filesystem_used_bytes, :int64, 6
142
- end
143
- add_enum "google.cloud.filestore.v1.Snapshot.State" do
144
- value :STATE_UNSPECIFIED, 0
145
- value :CREATING, 1
146
- value :READY, 2
147
- value :DELETING, 3
148
- end
149
- add_message "google.cloud.filestore.v1.CreateSnapshotRequest" do
150
- optional :parent, :string, 1
151
- optional :snapshot_id, :string, 2
152
- optional :snapshot, :message, 3, "google.cloud.filestore.v1.Snapshot"
153
- end
154
- add_message "google.cloud.filestore.v1.GetSnapshotRequest" do
155
- optional :name, :string, 1
156
- end
157
- add_message "google.cloud.filestore.v1.DeleteSnapshotRequest" do
158
- optional :name, :string, 1
159
- end
160
- add_message "google.cloud.filestore.v1.UpdateSnapshotRequest" do
161
- optional :update_mask, :message, 1, "google.protobuf.FieldMask"
162
- optional :snapshot, :message, 2, "google.cloud.filestore.v1.Snapshot"
163
- end
164
- add_message "google.cloud.filestore.v1.ListSnapshotsRequest" do
165
- optional :parent, :string, 1
166
- optional :page_size, :int32, 2
167
- optional :page_token, :string, 3
168
- optional :order_by, :string, 4
169
- optional :filter, :string, 5
170
- end
171
- add_message "google.cloud.filestore.v1.ListSnapshotsResponse" do
172
- repeated :snapshots, :message, 1, "google.cloud.filestore.v1.Snapshot"
173
- optional :next_page_token, :string, 2
174
- end
175
- add_message "google.cloud.filestore.v1.Backup" do
176
- optional :name, :string, 1
177
- optional :description, :string, 2
178
- optional :state, :enum, 3, "google.cloud.filestore.v1.Backup.State"
179
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
180
- map :labels, :string, :string, 5
181
- optional :capacity_gb, :int64, 6
182
- optional :storage_bytes, :int64, 7
183
- optional :source_instance, :string, 8
184
- optional :source_file_share, :string, 9
185
- optional :source_instance_tier, :enum, 10, "google.cloud.filestore.v1.Instance.Tier"
186
- optional :download_bytes, :int64, 11
187
- optional :satisfies_pzs, :message, 12, "google.protobuf.BoolValue"
188
- optional :kms_key, :string, 13
189
- end
190
- add_enum "google.cloud.filestore.v1.Backup.State" do
191
- value :STATE_UNSPECIFIED, 0
192
- value :CREATING, 1
193
- value :FINALIZING, 2
194
- value :READY, 3
195
- value :DELETING, 4
196
- end
197
- add_message "google.cloud.filestore.v1.CreateBackupRequest" do
198
- optional :parent, :string, 1
199
- optional :backup, :message, 2, "google.cloud.filestore.v1.Backup"
200
- optional :backup_id, :string, 3
201
- end
202
- add_message "google.cloud.filestore.v1.DeleteBackupRequest" do
203
- optional :name, :string, 1
204
- end
205
- add_message "google.cloud.filestore.v1.UpdateBackupRequest" do
206
- optional :backup, :message, 1, "google.cloud.filestore.v1.Backup"
207
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
208
- end
209
- add_message "google.cloud.filestore.v1.GetBackupRequest" do
210
- optional :name, :string, 1
211
- end
212
- add_message "google.cloud.filestore.v1.ListBackupsRequest" do
213
- optional :parent, :string, 1
214
- optional :page_size, :int32, 2
215
- optional :page_token, :string, 3
216
- optional :order_by, :string, 4
217
- optional :filter, :string, 5
218
- end
219
- add_message "google.cloud.filestore.v1.ListBackupsResponse" do
220
- repeated :backups, :message, 1, "google.cloud.filestore.v1.Backup"
221
- optional :next_page_token, :string, 2
222
- repeated :unreachable, :string, 3
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\"\xe0\x08\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\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\"\x9b\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\"y\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\"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\"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\"\x88\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\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\"U\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: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\xcb\x1b\n\x15\x43loudFilestoreManager\x12\xb2\x01\n\rListInstances\x12/.google.cloud.filestore.v1.ListInstancesRequest\x1a\x30.google.cloud.filestore.v1.ListInstancesResponse\">\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/instances\xda\x41\x06parent\x12\x9f\x01\n\x0bGetInstance\x12-.google.cloud.filestore.v1.GetInstanceRequest\x1a#.google.cloud.filestore.v1.Instance\"<\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/instances/*}\xda\x41\x04name\x12\xf5\x01\n\x0e\x43reateInstance\x12\x30.google.cloud.filestore.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x91\x01\x82\xd3\xe4\x93\x02\x39\"-/v1/{parent=projects/*/locations/*}/instances:\x08instance\xda\x41\x1bparent,instance,instance_id\xca\x41\x31\n\x08Instance\x12%google.cloud.common.OperationMetadata\x12\xf7\x01\n\x0eUpdateInstance\x12\x30.google.cloud.filestore.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x93\x01\x82\xd3\xe4\x93\x02\x42\x32\x36/v1/{instance.name=projects/*/locations/*/instances/*}:\x08instance\xda\x41\x14instance,update_mask\xca\x41\x31\n\x08Instance\x12%google.cloud.common.OperationMetadata\x12\xd9\x01\n\x0fRestoreInstance\x12\x31.google.cloud.filestore.v1.RestoreInstanceRequest\x1a\x1d.google.longrunning.Operation\"t\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/instances/*}:restore:\x01*\xca\x41\x31\n\x08Instance\x12%google.cloud.common.OperationMetadata\x12\xe0\x01\n\x0e\x44\x65leteInstance\x12\x30.google.cloud.filestore.v1.DeleteInstanceRequest\x1a\x1d.google.longrunning.Operation\"}\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/instances/*}\xda\x41\x04name\xca\x41>\n\x15google.protobuf.Empty\x12%google.cloud.common.OperationMetadata\x12\xbe\x01\n\rListSnapshots\x12/.google.cloud.filestore.v1.ListSnapshotsRequest\x1a\x30.google.cloud.filestore.v1.ListSnapshotsResponse\"J\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*/instances/*}/snapshots\xda\x41\x06parent\x12\xab\x01\n\x0bGetSnapshot\x12-.google.cloud.filestore.v1.GetSnapshotRequest\x1a#.google.cloud.filestore.v1.Snapshot\"H\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/instances/*/snapshots/*}\xda\x41\x04name\x12\x81\x02\n\x0e\x43reateSnapshot\x12\x30.google.cloud.filestore.v1.CreateSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x9d\x01\x82\xd3\xe4\x93\x02\x45\"9/v1/{parent=projects/*/locations/*/instances/*}/snapshots:\x08snapshot\xda\x41\x1bparent,snapshot,snapshot_id\xca\x41\x31\n\x08Snapshot\x12%google.cloud.common.OperationMetadata\x12\xed\x01\n\x0e\x44\x65leteSnapshot\x12\x30.google.cloud.filestore.v1.DeleteSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\x82\xd3\xe4\x93\x02;*9/v1/{name=projects/*/locations/*/instances/*/snapshots/*}\xda\x41\x04name\xca\x41>\n\x15google.protobuf.Empty\x12%google.cloud.common.OperationMetadata\x12\x83\x02\n\x0eUpdateSnapshot\x12\x30.google.cloud.filestore.v1.UpdateSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x9f\x01\x82\xd3\xe4\x93\x02N2B/v1/{snapshot.name=projects/*/locations/*/instances/*/snapshots/*}:\x08snapshot\xda\x41\x14snapshot,update_mask\xca\x41\x31\n\x08Snapshot\x12%google.cloud.common.OperationMetadata\x12\xaa\x01\n\x0bListBackups\x12-.google.cloud.filestore.v1.ListBackupsRequest\x1a..google.cloud.filestore.v1.ListBackupsResponse\"<\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/backups\xda\x41\x06parent\x12\x97\x01\n\tGetBackup\x12+.google.cloud.filestore.v1.GetBackupRequest\x1a!.google.cloud.filestore.v1.Backup\":\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/backups/*}\xda\x41\x04name\x12\xe7\x01\n\x0c\x43reateBackup\x12..google.cloud.filestore.v1.CreateBackupRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\x82\xd3\xe4\x93\x02\x35\"+/v1/{parent=projects/*/locations/*}/backups:\x06\x62\x61\x63kup\xda\x41\x17parent,backup,backup_id\xca\x41/\n\x06\x42\x61\x63kup\x12%google.cloud.common.OperationMetadata\x12\xda\x01\n\x0c\x44\x65leteBackup\x12..google.cloud.filestore.v1.DeleteBackupRequest\x1a\x1d.google.longrunning.Operation\"{\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/backups/*}\xda\x41\x04name\xca\x41>\n\x15google.protobuf.Empty\x12%google.cloud.common.OperationMetadata\x12\xe9\x01\n\x0cUpdateBackup\x12..google.cloud.filestore.v1.UpdateBackupRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\x82\xd3\xe4\x93\x02<22/v1/{backup.name=projects/*/locations/*/backups/*}:\x06\x62\x61\x63kup\xda\x41\x12\x62\x61\x63kup,update_mask\xca\x41/\n\x06\x42\x61\x63kup\x12%google.cloud.common.OperationMetadata\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
+
21
+ pool = Google::Protobuf::DescriptorPool.generated_pool
22
+
23
+ begin
24
+ pool.add_serialized_file(descriptor_data)
25
+ rescue TypeError => e
26
+ # Compatibility code: will be removed in the next major version.
27
+ require 'google/protobuf/descriptor_pb'
28
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
29
+ parsed.clear_dependency
30
+ serialized = parsed.class.encode(parsed)
31
+ file = pool.add_serialized_file(serialized)
32
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
33
+ imports = [
34
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
35
+ ["google.protobuf.BoolValue", "google/protobuf/wrappers.proto"],
36
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
37
+ ]
38
+ imports.each do |type_name, expected_filename|
39
+ import_file = pool.lookup(type_name).file_descriptor
40
+ if import_file.name != expected_filename
41
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
223
42
  end
224
43
  end
44
+ warn "Each proto file must use a consistent fully-qualified name."
45
+ warn "This will become an error in the next major version."
225
46
  end
226
47
 
227
48
  module Google
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Filestore
23
23
  module V1
24
- VERSION = "0.4.1"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -83,7 +83,7 @@ module Google
83
83
  # long-running operation pattern.
84
84
  # @!attribute [rw] new_issue_uri
85
85
  # @return [::String]
86
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
87
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
88
88
  # @!attribute [rw] documentation_uri
89
89
  # @return [::String]
@@ -353,6 +353,15 @@ module Google
353
353
 
354
354
  # Street View Org.
355
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
356
365
  end
357
366
 
358
367
  # To where should client libraries be published?
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
@@ -43,8 +43,12 @@ module Google
43
43
  # if (any.is(Foo.class)) {
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
46
50
  #
47
- # Example 3: Pack and unpack a message in Python.
51
+ # Example 3: Pack and unpack a message in Python.
48
52
  #
49
53
  # foo = Foo(...)
50
54
  # any = Any()
@@ -54,7 +58,7 @@ module Google
54
58
  # any.Unpack(foo)
55
59
  # ...
56
60
  #
57
- # Example 4: Pack and unpack a message in Go
61
+ # Example 4: Pack and unpack a message in Go
58
62
  #
59
63
  # foo := &pb.Foo{...}
60
64
  # any, err := anypb.New(foo)
@@ -73,9 +77,8 @@ module Google
73
77
  # in the type URL, for example "foo.bar.com/x/y.z" will yield type
74
78
  # name "y.z".
75
79
  #
76
- #
77
80
  # JSON
78
- #
81
+ # ====
79
82
  # The JSON representation of an `Any` value uses the regular
80
83
  # representation of the deserialized, embedded message, with an
81
84
  # additional field `@type` which contains the type URL. Example:
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-filestore-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-21 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  - !ruby/object:Gem::Version
235
235
  version: '0'
236
236
  requirements: []
237
- rubygems_version: 3.4.2
237
+ rubygems_version: 3.4.19
238
238
  signing_key:
239
239
  specification_version: 4
240
240
  summary: The Cloud Filestore API is used for creating and managing cloud file servers.