google-cloud-netapp-v1 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/netapp/v1/active_directory_pb.rb +1 -1
- data/lib/google/cloud/netapp/v1/backup_pb.rb +57 -0
- data/lib/google/cloud/netapp/v1/backup_policy_pb.rb +56 -0
- data/lib/google/cloud/netapp/v1/backup_vault_pb.rb +56 -0
- data/lib/google/cloud/netapp/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/netapp/v1/cloud_netapp_service_pb.rb +4 -1
- data/lib/google/cloud/netapp/v1/cloud_netapp_service_services_pb.rb +33 -0
- data/lib/google/cloud/netapp/v1/kms_pb.rb +1 -1
- data/lib/google/cloud/netapp/v1/netapp/client.rb +1742 -120
- data/lib/google/cloud/netapp/v1/netapp/operations.rb +10 -1
- data/lib/google/cloud/netapp/v1/netapp/paths.rb +59 -0
- data/lib/google/cloud/netapp/v1/netapp/rest/client.rb +2314 -40
- data/lib/google/cloud/netapp/v1/netapp/rest/operations.rb +80 -5
- data/lib/google/cloud/netapp/v1/netapp/rest/service_stub.rb +891 -0
- data/lib/google/cloud/netapp/v1/netapp/rest.rb +1 -0
- data/lib/google/cloud/netapp/v1/replication_pb.rb +1 -1
- data/lib/google/cloud/netapp/v1/rest.rb +1 -0
- data/lib/google/cloud/netapp/v1/snapshot_pb.rb +1 -1
- data/lib/google/cloud/netapp/v1/storage_pool_pb.rb +1 -1
- data/lib/google/cloud/netapp/v1/version.rb +1 -1
- data/lib/google/cloud/netapp/v1/volume_pb.rb +3 -1
- data/proto_docs/google/api/client.rb +13 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/netapp/v1/active_directory.rb +2 -2
- data/proto_docs/google/cloud/netapp/v1/backup.rb +231 -0
- data/proto_docs/google/cloud/netapp/v1/backup_policy.rb +190 -0
- data/proto_docs/google/cloud/netapp/v1/backup_vault.rb +177 -0
- data/proto_docs/google/cloud/netapp/v1/common.rb +3 -0
- data/proto_docs/google/cloud/netapp/v1/kms.rb +8 -2
- data/proto_docs/google/cloud/netapp/v1/replication.rb +2 -2
- data/proto_docs/google/cloud/netapp/v1/snapshot.rb +3 -2
- data/proto_docs/google/cloud/netapp/v1/storage_pool.rb +10 -3
- data/proto_docs/google/cloud/netapp/v1/volume.rb +43 -2
- metadata +12 -5
@@ -175,6 +175,54 @@ module Google
|
|
175
175
|
|
176
176
|
default_config.rpcs.reverse_replication_direction.timeout = 60.0
|
177
177
|
|
178
|
+
default_config.rpcs.create_backup_vault.timeout = 60.0
|
179
|
+
|
180
|
+
default_config.rpcs.get_backup_vault.timeout = 60.0
|
181
|
+
default_config.rpcs.get_backup_vault.retry_policy = {
|
182
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
183
|
+
}
|
184
|
+
|
185
|
+
default_config.rpcs.list_backup_vaults.timeout = 60.0
|
186
|
+
default_config.rpcs.list_backup_vaults.retry_policy = {
|
187
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
188
|
+
}
|
189
|
+
|
190
|
+
default_config.rpcs.update_backup_vault.timeout = 60.0
|
191
|
+
|
192
|
+
default_config.rpcs.delete_backup_vault.timeout = 60.0
|
193
|
+
|
194
|
+
default_config.rpcs.create_backup.timeout = 60.0
|
195
|
+
|
196
|
+
default_config.rpcs.get_backup.timeout = 60.0
|
197
|
+
default_config.rpcs.get_backup.retry_policy = {
|
198
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
199
|
+
}
|
200
|
+
|
201
|
+
default_config.rpcs.list_backups.timeout = 60.0
|
202
|
+
default_config.rpcs.list_backups.retry_policy = {
|
203
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
204
|
+
}
|
205
|
+
|
206
|
+
default_config.rpcs.delete_backup.timeout = 60.0
|
207
|
+
|
208
|
+
default_config.rpcs.update_backup.timeout = 60.0
|
209
|
+
|
210
|
+
default_config.rpcs.create_backup_policy.timeout = 60.0
|
211
|
+
|
212
|
+
default_config.rpcs.get_backup_policy.timeout = 60.0
|
213
|
+
default_config.rpcs.get_backup_policy.retry_policy = {
|
214
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
215
|
+
}
|
216
|
+
|
217
|
+
default_config.rpcs.list_backup_policies.timeout = 60.0
|
218
|
+
default_config.rpcs.list_backup_policies.retry_policy = {
|
219
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
220
|
+
}
|
221
|
+
|
222
|
+
default_config.rpcs.update_backup_policy.timeout = 60.0
|
223
|
+
|
224
|
+
default_config.rpcs.delete_backup_policy.timeout = 60.0
|
225
|
+
|
178
226
|
default_config
|
179
227
|
end
|
180
228
|
yield @configure if block_given?
|
@@ -249,6 +297,7 @@ module Google
|
|
249
297
|
config.credentials = credentials
|
250
298
|
config.quota_project = @quota_project_id
|
251
299
|
config.endpoint = @config.endpoint
|
300
|
+
config.bindings_override = @config.bindings_override
|
252
301
|
end
|
253
302
|
|
254
303
|
@net_app_stub = ::Google::Cloud::NetApp::V1::NetApp::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
@@ -306,6 +355,26 @@ module Google
|
|
306
355
|
# @return [::Google::Cloud::NetApp::V1::ListStoragePoolsResponse]
|
307
356
|
#
|
308
357
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
358
|
+
#
|
359
|
+
# @example Basic example
|
360
|
+
# require "google/cloud/netapp/v1"
|
361
|
+
#
|
362
|
+
# # Create a client object. The client can be reused for multiple calls.
|
363
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
364
|
+
#
|
365
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
366
|
+
# request = Google::Cloud::NetApp::V1::ListStoragePoolsRequest.new
|
367
|
+
#
|
368
|
+
# # Call the list_storage_pools method.
|
369
|
+
# result = client.list_storage_pools request
|
370
|
+
#
|
371
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
372
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
373
|
+
# result.each do |item|
|
374
|
+
# # Each element is of type ::Google::Cloud::NetApp::V1::StoragePool.
|
375
|
+
# p item
|
376
|
+
# end
|
377
|
+
#
|
309
378
|
def list_storage_pools request, options = nil
|
310
379
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
311
380
|
|
@@ -374,6 +443,29 @@ module Google
|
|
374
443
|
# @return [::Gapic::Operation]
|
375
444
|
#
|
376
445
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
446
|
+
#
|
447
|
+
# @example Basic example
|
448
|
+
# require "google/cloud/netapp/v1"
|
449
|
+
#
|
450
|
+
# # Create a client object. The client can be reused for multiple calls.
|
451
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
452
|
+
#
|
453
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
454
|
+
# request = Google::Cloud::NetApp::V1::CreateStoragePoolRequest.new
|
455
|
+
#
|
456
|
+
# # Call the create_storage_pool method.
|
457
|
+
# result = client.create_storage_pool request
|
458
|
+
#
|
459
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
460
|
+
# # check the status of an operation, cancel it, or wait for results.
|
461
|
+
# # Here is how to wait for a response.
|
462
|
+
# result.wait_until_done! timeout: 60
|
463
|
+
# if result.response?
|
464
|
+
# p result.response
|
465
|
+
# else
|
466
|
+
# puts "No response received."
|
467
|
+
# end
|
468
|
+
#
|
377
469
|
def create_storage_pool request, options = nil
|
378
470
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
379
471
|
|
@@ -437,6 +529,22 @@ module Google
|
|
437
529
|
# @return [::Google::Cloud::NetApp::V1::StoragePool]
|
438
530
|
#
|
439
531
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
532
|
+
#
|
533
|
+
# @example Basic example
|
534
|
+
# require "google/cloud/netapp/v1"
|
535
|
+
#
|
536
|
+
# # Create a client object. The client can be reused for multiple calls.
|
537
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
538
|
+
#
|
539
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
540
|
+
# request = Google::Cloud::NetApp::V1::GetStoragePoolRequest.new
|
541
|
+
#
|
542
|
+
# # Call the get_storage_pool method.
|
543
|
+
# result = client.get_storage_pool request
|
544
|
+
#
|
545
|
+
# # The returned object is of type Google::Cloud::NetApp::V1::StoragePool.
|
546
|
+
# p result
|
547
|
+
#
|
440
548
|
def get_storage_pool request, options = nil
|
441
549
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
442
550
|
|
@@ -505,6 +613,29 @@ module Google
|
|
505
613
|
# @return [::Gapic::Operation]
|
506
614
|
#
|
507
615
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
616
|
+
#
|
617
|
+
# @example Basic example
|
618
|
+
# require "google/cloud/netapp/v1"
|
619
|
+
#
|
620
|
+
# # Create a client object. The client can be reused for multiple calls.
|
621
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
622
|
+
#
|
623
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
624
|
+
# request = Google::Cloud::NetApp::V1::UpdateStoragePoolRequest.new
|
625
|
+
#
|
626
|
+
# # Call the update_storage_pool method.
|
627
|
+
# result = client.update_storage_pool request
|
628
|
+
#
|
629
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
630
|
+
# # check the status of an operation, cancel it, or wait for results.
|
631
|
+
# # Here is how to wait for a response.
|
632
|
+
# result.wait_until_done! timeout: 60
|
633
|
+
# if result.response?
|
634
|
+
# p result.response
|
635
|
+
# else
|
636
|
+
# puts "No response received."
|
637
|
+
# end
|
638
|
+
#
|
508
639
|
def update_storage_pool request, options = nil
|
509
640
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
510
641
|
|
@@ -568,6 +699,29 @@ module Google
|
|
568
699
|
# @return [::Gapic::Operation]
|
569
700
|
#
|
570
701
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
702
|
+
#
|
703
|
+
# @example Basic example
|
704
|
+
# require "google/cloud/netapp/v1"
|
705
|
+
#
|
706
|
+
# # Create a client object. The client can be reused for multiple calls.
|
707
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
708
|
+
#
|
709
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
710
|
+
# request = Google::Cloud::NetApp::V1::DeleteStoragePoolRequest.new
|
711
|
+
#
|
712
|
+
# # Call the delete_storage_pool method.
|
713
|
+
# result = client.delete_storage_pool request
|
714
|
+
#
|
715
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
716
|
+
# # check the status of an operation, cancel it, or wait for results.
|
717
|
+
# # Here is how to wait for a response.
|
718
|
+
# result.wait_until_done! timeout: 60
|
719
|
+
# if result.response?
|
720
|
+
# p result.response
|
721
|
+
# else
|
722
|
+
# puts "No response received."
|
723
|
+
# end
|
724
|
+
#
|
571
725
|
def delete_storage_pool request, options = nil
|
572
726
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
573
727
|
|
@@ -640,6 +794,26 @@ module Google
|
|
640
794
|
# @return [::Google::Cloud::NetApp::V1::ListVolumesResponse]
|
641
795
|
#
|
642
796
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
797
|
+
#
|
798
|
+
# @example Basic example
|
799
|
+
# require "google/cloud/netapp/v1"
|
800
|
+
#
|
801
|
+
# # Create a client object. The client can be reused for multiple calls.
|
802
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
803
|
+
#
|
804
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
805
|
+
# request = Google::Cloud::NetApp::V1::ListVolumesRequest.new
|
806
|
+
#
|
807
|
+
# # Call the list_volumes method.
|
808
|
+
# result = client.list_volumes request
|
809
|
+
#
|
810
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
811
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
812
|
+
# result.each do |item|
|
813
|
+
# # Each element is of type ::Google::Cloud::NetApp::V1::Volume.
|
814
|
+
# p item
|
815
|
+
# end
|
816
|
+
#
|
643
817
|
def list_volumes request, options = nil
|
644
818
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
645
819
|
|
@@ -702,6 +876,22 @@ module Google
|
|
702
876
|
# @return [::Google::Cloud::NetApp::V1::Volume]
|
703
877
|
#
|
704
878
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
879
|
+
#
|
880
|
+
# @example Basic example
|
881
|
+
# require "google/cloud/netapp/v1"
|
882
|
+
#
|
883
|
+
# # Create a client object. The client can be reused for multiple calls.
|
884
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
885
|
+
#
|
886
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
887
|
+
# request = Google::Cloud::NetApp::V1::GetVolumeRequest.new
|
888
|
+
#
|
889
|
+
# # Call the get_volume method.
|
890
|
+
# result = client.get_volume request
|
891
|
+
#
|
892
|
+
# # The returned object is of type Google::Cloud::NetApp::V1::Volume.
|
893
|
+
# p result
|
894
|
+
#
|
705
895
|
def get_volume request, options = nil
|
706
896
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
707
897
|
|
@@ -770,6 +960,29 @@ module Google
|
|
770
960
|
# @return [::Gapic::Operation]
|
771
961
|
#
|
772
962
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
963
|
+
#
|
964
|
+
# @example Basic example
|
965
|
+
# require "google/cloud/netapp/v1"
|
966
|
+
#
|
967
|
+
# # Create a client object. The client can be reused for multiple calls.
|
968
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
969
|
+
#
|
970
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
971
|
+
# request = Google::Cloud::NetApp::V1::CreateVolumeRequest.new
|
972
|
+
#
|
973
|
+
# # Call the create_volume method.
|
974
|
+
# result = client.create_volume request
|
975
|
+
#
|
976
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
977
|
+
# # check the status of an operation, cancel it, or wait for results.
|
978
|
+
# # Here is how to wait for a response.
|
979
|
+
# result.wait_until_done! timeout: 60
|
980
|
+
# if result.response?
|
981
|
+
# p result.response
|
982
|
+
# else
|
983
|
+
# puts "No response received."
|
984
|
+
# end
|
985
|
+
#
|
773
986
|
def create_volume request, options = nil
|
774
987
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
775
988
|
|
@@ -839,6 +1052,29 @@ module Google
|
|
839
1052
|
# @return [::Gapic::Operation]
|
840
1053
|
#
|
841
1054
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1055
|
+
#
|
1056
|
+
# @example Basic example
|
1057
|
+
# require "google/cloud/netapp/v1"
|
1058
|
+
#
|
1059
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1060
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1061
|
+
#
|
1062
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1063
|
+
# request = Google::Cloud::NetApp::V1::UpdateVolumeRequest.new
|
1064
|
+
#
|
1065
|
+
# # Call the update_volume method.
|
1066
|
+
# result = client.update_volume request
|
1067
|
+
#
|
1068
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1069
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1070
|
+
# # Here is how to wait for a response.
|
1071
|
+
# result.wait_until_done! timeout: 60
|
1072
|
+
# if result.response?
|
1073
|
+
# p result.response
|
1074
|
+
# else
|
1075
|
+
# puts "No response received."
|
1076
|
+
# end
|
1077
|
+
#
|
842
1078
|
def update_volume request, options = nil
|
843
1079
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
844
1080
|
|
@@ -906,6 +1142,29 @@ module Google
|
|
906
1142
|
# @return [::Gapic::Operation]
|
907
1143
|
#
|
908
1144
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1145
|
+
#
|
1146
|
+
# @example Basic example
|
1147
|
+
# require "google/cloud/netapp/v1"
|
1148
|
+
#
|
1149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1150
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1151
|
+
#
|
1152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1153
|
+
# request = Google::Cloud::NetApp::V1::DeleteVolumeRequest.new
|
1154
|
+
#
|
1155
|
+
# # Call the delete_volume method.
|
1156
|
+
# result = client.delete_volume request
|
1157
|
+
#
|
1158
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1159
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1160
|
+
# # Here is how to wait for a response.
|
1161
|
+
# result.wait_until_done! timeout: 60
|
1162
|
+
# if result.response?
|
1163
|
+
# p result.response
|
1164
|
+
# else
|
1165
|
+
# puts "No response received."
|
1166
|
+
# end
|
1167
|
+
#
|
909
1168
|
def delete_volume request, options = nil
|
910
1169
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
911
1170
|
|
@@ -976,6 +1235,29 @@ module Google
|
|
976
1235
|
# @return [::Gapic::Operation]
|
977
1236
|
#
|
978
1237
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1238
|
+
#
|
1239
|
+
# @example Basic example
|
1240
|
+
# require "google/cloud/netapp/v1"
|
1241
|
+
#
|
1242
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1243
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1244
|
+
#
|
1245
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1246
|
+
# request = Google::Cloud::NetApp::V1::RevertVolumeRequest.new
|
1247
|
+
#
|
1248
|
+
# # Call the revert_volume method.
|
1249
|
+
# result = client.revert_volume request
|
1250
|
+
#
|
1251
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1252
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1253
|
+
# # Here is how to wait for a response.
|
1254
|
+
# result.wait_until_done! timeout: 60
|
1255
|
+
# if result.response?
|
1256
|
+
# p result.response
|
1257
|
+
# else
|
1258
|
+
# puts "No response received."
|
1259
|
+
# end
|
1260
|
+
#
|
979
1261
|
def revert_volume request, options = nil
|
980
1262
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
981
1263
|
|
@@ -1050,6 +1332,26 @@ module Google
|
|
1050
1332
|
# @return [::Google::Cloud::NetApp::V1::ListSnapshotsResponse]
|
1051
1333
|
#
|
1052
1334
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1335
|
+
#
|
1336
|
+
# @example Basic example
|
1337
|
+
# require "google/cloud/netapp/v1"
|
1338
|
+
#
|
1339
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1340
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1341
|
+
#
|
1342
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1343
|
+
# request = Google::Cloud::NetApp::V1::ListSnapshotsRequest.new
|
1344
|
+
#
|
1345
|
+
# # Call the list_snapshots method.
|
1346
|
+
# result = client.list_snapshots request
|
1347
|
+
#
|
1348
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1349
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1350
|
+
# result.each do |item|
|
1351
|
+
# # Each element is of type ::Google::Cloud::NetApp::V1::Snapshot.
|
1352
|
+
# p item
|
1353
|
+
# end
|
1354
|
+
#
|
1053
1355
|
def list_snapshots request, options = nil
|
1054
1356
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1055
1357
|
|
@@ -1113,6 +1415,22 @@ module Google
|
|
1113
1415
|
# @return [::Google::Cloud::NetApp::V1::Snapshot]
|
1114
1416
|
#
|
1115
1417
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1418
|
+
#
|
1419
|
+
# @example Basic example
|
1420
|
+
# require "google/cloud/netapp/v1"
|
1421
|
+
#
|
1422
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1423
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1424
|
+
#
|
1425
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1426
|
+
# request = Google::Cloud::NetApp::V1::GetSnapshotRequest.new
|
1427
|
+
#
|
1428
|
+
# # Call the get_snapshot method.
|
1429
|
+
# result = client.get_snapshot request
|
1430
|
+
#
|
1431
|
+
# # The returned object is of type Google::Cloud::NetApp::V1::Snapshot.
|
1432
|
+
# p result
|
1433
|
+
#
|
1116
1434
|
def get_snapshot request, options = nil
|
1117
1435
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1118
1436
|
|
@@ -1182,6 +1500,29 @@ module Google
|
|
1182
1500
|
# @return [::Gapic::Operation]
|
1183
1501
|
#
|
1184
1502
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1503
|
+
#
|
1504
|
+
# @example Basic example
|
1505
|
+
# require "google/cloud/netapp/v1"
|
1506
|
+
#
|
1507
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1508
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1509
|
+
#
|
1510
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1511
|
+
# request = Google::Cloud::NetApp::V1::CreateSnapshotRequest.new
|
1512
|
+
#
|
1513
|
+
# # Call the create_snapshot method.
|
1514
|
+
# result = client.create_snapshot 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
|
+
#
|
1185
1526
|
def create_snapshot request, options = nil
|
1186
1527
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1187
1528
|
|
@@ -1246,6 +1587,29 @@ module Google
|
|
1246
1587
|
# @return [::Gapic::Operation]
|
1247
1588
|
#
|
1248
1589
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1590
|
+
#
|
1591
|
+
# @example Basic example
|
1592
|
+
# require "google/cloud/netapp/v1"
|
1593
|
+
#
|
1594
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1595
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1596
|
+
#
|
1597
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1598
|
+
# request = Google::Cloud::NetApp::V1::DeleteSnapshotRequest.new
|
1599
|
+
#
|
1600
|
+
# # Call the delete_snapshot method.
|
1601
|
+
# result = client.delete_snapshot request
|
1602
|
+
#
|
1603
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1604
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1605
|
+
# # Here is how to wait for a response.
|
1606
|
+
# result.wait_until_done! timeout: 60
|
1607
|
+
# if result.response?
|
1608
|
+
# p result.response
|
1609
|
+
# else
|
1610
|
+
# puts "No response received."
|
1611
|
+
# end
|
1612
|
+
#
|
1249
1613
|
def delete_snapshot request, options = nil
|
1250
1614
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1251
1615
|
|
@@ -1312,6 +1676,29 @@ module Google
|
|
1312
1676
|
# @return [::Gapic::Operation]
|
1313
1677
|
#
|
1314
1678
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1679
|
+
#
|
1680
|
+
# @example Basic example
|
1681
|
+
# require "google/cloud/netapp/v1"
|
1682
|
+
#
|
1683
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1684
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1685
|
+
#
|
1686
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1687
|
+
# request = Google::Cloud::NetApp::V1::UpdateSnapshotRequest.new
|
1688
|
+
#
|
1689
|
+
# # Call the update_snapshot method.
|
1690
|
+
# result = client.update_snapshot request
|
1691
|
+
#
|
1692
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1693
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1694
|
+
# # Here is how to wait for a response.
|
1695
|
+
# result.wait_until_done! timeout: 60
|
1696
|
+
# if result.response?
|
1697
|
+
# p result.response
|
1698
|
+
# else
|
1699
|
+
# puts "No response received."
|
1700
|
+
# end
|
1701
|
+
#
|
1315
1702
|
def update_snapshot request, options = nil
|
1316
1703
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1317
1704
|
|
@@ -1384,6 +1771,26 @@ module Google
|
|
1384
1771
|
# @return [::Google::Cloud::NetApp::V1::ListActiveDirectoriesResponse]
|
1385
1772
|
#
|
1386
1773
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1774
|
+
#
|
1775
|
+
# @example Basic example
|
1776
|
+
# require "google/cloud/netapp/v1"
|
1777
|
+
#
|
1778
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1779
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1780
|
+
#
|
1781
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1782
|
+
# request = Google::Cloud::NetApp::V1::ListActiveDirectoriesRequest.new
|
1783
|
+
#
|
1784
|
+
# # Call the list_active_directories method.
|
1785
|
+
# result = client.list_active_directories request
|
1786
|
+
#
|
1787
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1788
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1789
|
+
# result.each do |item|
|
1790
|
+
# # Each element is of type ::Google::Cloud::NetApp::V1::ActiveDirectory.
|
1791
|
+
# p item
|
1792
|
+
# end
|
1793
|
+
#
|
1387
1794
|
def list_active_directories request, options = nil
|
1388
1795
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1389
1796
|
|
@@ -1446,6 +1853,22 @@ module Google
|
|
1446
1853
|
# @return [::Google::Cloud::NetApp::V1::ActiveDirectory]
|
1447
1854
|
#
|
1448
1855
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1856
|
+
#
|
1857
|
+
# @example Basic example
|
1858
|
+
# require "google/cloud/netapp/v1"
|
1859
|
+
#
|
1860
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1861
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1862
|
+
#
|
1863
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1864
|
+
# request = Google::Cloud::NetApp::V1::GetActiveDirectoryRequest.new
|
1865
|
+
#
|
1866
|
+
# # Call the get_active_directory method.
|
1867
|
+
# result = client.get_active_directory request
|
1868
|
+
#
|
1869
|
+
# # The returned object is of type Google::Cloud::NetApp::V1::ActiveDirectory.
|
1870
|
+
# p result
|
1871
|
+
#
|
1449
1872
|
def get_active_directory request, options = nil
|
1450
1873
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1451
1874
|
|
@@ -1513,6 +1936,29 @@ module Google
|
|
1513
1936
|
# @return [::Gapic::Operation]
|
1514
1937
|
#
|
1515
1938
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1939
|
+
#
|
1940
|
+
# @example Basic example
|
1941
|
+
# require "google/cloud/netapp/v1"
|
1942
|
+
#
|
1943
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1944
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1945
|
+
#
|
1946
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1947
|
+
# request = Google::Cloud::NetApp::V1::CreateActiveDirectoryRequest.new
|
1948
|
+
#
|
1949
|
+
# # Call the create_active_directory method.
|
1950
|
+
# result = client.create_active_directory request
|
1951
|
+
#
|
1952
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1953
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1954
|
+
# # Here is how to wait for a response.
|
1955
|
+
# result.wait_until_done! timeout: 60
|
1956
|
+
# if result.response?
|
1957
|
+
# p result.response
|
1958
|
+
# else
|
1959
|
+
# puts "No response received."
|
1960
|
+
# end
|
1961
|
+
#
|
1516
1962
|
def create_active_directory request, options = nil
|
1517
1963
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1518
1964
|
|
@@ -1582,6 +2028,29 @@ module Google
|
|
1582
2028
|
# @return [::Gapic::Operation]
|
1583
2029
|
#
|
1584
2030
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2031
|
+
#
|
2032
|
+
# @example Basic example
|
2033
|
+
# require "google/cloud/netapp/v1"
|
2034
|
+
#
|
2035
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2036
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2037
|
+
#
|
2038
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2039
|
+
# request = Google::Cloud::NetApp::V1::UpdateActiveDirectoryRequest.new
|
2040
|
+
#
|
2041
|
+
# # Call the update_active_directory method.
|
2042
|
+
# result = client.update_active_directory request
|
2043
|
+
#
|
2044
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2045
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2046
|
+
# # Here is how to wait for a response.
|
2047
|
+
# result.wait_until_done! timeout: 60
|
2048
|
+
# if result.response?
|
2049
|
+
# p result.response
|
2050
|
+
# else
|
2051
|
+
# puts "No response received."
|
2052
|
+
# end
|
2053
|
+
#
|
1585
2054
|
def update_active_directory request, options = nil
|
1586
2055
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1587
2056
|
|
@@ -1645,6 +2114,29 @@ module Google
|
|
1645
2114
|
# @return [::Gapic::Operation]
|
1646
2115
|
#
|
1647
2116
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2117
|
+
#
|
2118
|
+
# @example Basic example
|
2119
|
+
# require "google/cloud/netapp/v1"
|
2120
|
+
#
|
2121
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2122
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2123
|
+
#
|
2124
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2125
|
+
# request = Google::Cloud::NetApp::V1::DeleteActiveDirectoryRequest.new
|
2126
|
+
#
|
2127
|
+
# # Call the delete_active_directory method.
|
2128
|
+
# result = client.delete_active_directory request
|
2129
|
+
#
|
2130
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2131
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2132
|
+
# # Here is how to wait for a response.
|
2133
|
+
# result.wait_until_done! timeout: 60
|
2134
|
+
# if result.response?
|
2135
|
+
# p result.response
|
2136
|
+
# else
|
2137
|
+
# puts "No response received."
|
2138
|
+
# end
|
2139
|
+
#
|
1648
2140
|
def delete_active_directory request, options = nil
|
1649
2141
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1650
2142
|
|
@@ -1717,6 +2209,26 @@ module Google
|
|
1717
2209
|
# @return [::Google::Cloud::NetApp::V1::ListKmsConfigsResponse]
|
1718
2210
|
#
|
1719
2211
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2212
|
+
#
|
2213
|
+
# @example Basic example
|
2214
|
+
# require "google/cloud/netapp/v1"
|
2215
|
+
#
|
2216
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2217
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2218
|
+
#
|
2219
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2220
|
+
# request = Google::Cloud::NetApp::V1::ListKmsConfigsRequest.new
|
2221
|
+
#
|
2222
|
+
# # Call the list_kms_configs method.
|
2223
|
+
# result = client.list_kms_configs request
|
2224
|
+
#
|
2225
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2226
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2227
|
+
# result.each do |item|
|
2228
|
+
# # Each element is of type ::Google::Cloud::NetApp::V1::KmsConfig.
|
2229
|
+
# p item
|
2230
|
+
# end
|
2231
|
+
#
|
1720
2232
|
def list_kms_configs request, options = nil
|
1721
2233
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1722
2234
|
|
@@ -1785,6 +2297,29 @@ module Google
|
|
1785
2297
|
# @return [::Gapic::Operation]
|
1786
2298
|
#
|
1787
2299
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2300
|
+
#
|
2301
|
+
# @example Basic example
|
2302
|
+
# require "google/cloud/netapp/v1"
|
2303
|
+
#
|
2304
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2305
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2306
|
+
#
|
2307
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2308
|
+
# request = Google::Cloud::NetApp::V1::CreateKmsConfigRequest.new
|
2309
|
+
#
|
2310
|
+
# # Call the create_kms_config method.
|
2311
|
+
# result = client.create_kms_config request
|
2312
|
+
#
|
2313
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2314
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2315
|
+
# # Here is how to wait for a response.
|
2316
|
+
# result.wait_until_done! timeout: 60
|
2317
|
+
# if result.response?
|
2318
|
+
# p result.response
|
2319
|
+
# else
|
2320
|
+
# puts "No response received."
|
2321
|
+
# end
|
2322
|
+
#
|
1788
2323
|
def create_kms_config request, options = nil
|
1789
2324
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1790
2325
|
|
@@ -1848,6 +2383,22 @@ module Google
|
|
1848
2383
|
# @return [::Google::Cloud::NetApp::V1::KmsConfig]
|
1849
2384
|
#
|
1850
2385
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2386
|
+
#
|
2387
|
+
# @example Basic example
|
2388
|
+
# require "google/cloud/netapp/v1"
|
2389
|
+
#
|
2390
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2391
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2392
|
+
#
|
2393
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2394
|
+
# request = Google::Cloud::NetApp::V1::GetKmsConfigRequest.new
|
2395
|
+
#
|
2396
|
+
# # Call the get_kms_config method.
|
2397
|
+
# result = client.get_kms_config request
|
2398
|
+
#
|
2399
|
+
# # The returned object is of type Google::Cloud::NetApp::V1::KmsConfig.
|
2400
|
+
# p result
|
2401
|
+
#
|
1851
2402
|
def get_kms_config request, options = nil
|
1852
2403
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1853
2404
|
|
@@ -1916,6 +2467,29 @@ module Google
|
|
1916
2467
|
# @return [::Gapic::Operation]
|
1917
2468
|
#
|
1918
2469
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2470
|
+
#
|
2471
|
+
# @example Basic example
|
2472
|
+
# require "google/cloud/netapp/v1"
|
2473
|
+
#
|
2474
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2475
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2476
|
+
#
|
2477
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2478
|
+
# request = Google::Cloud::NetApp::V1::UpdateKmsConfigRequest.new
|
2479
|
+
#
|
2480
|
+
# # Call the update_kms_config method.
|
2481
|
+
# result = client.update_kms_config request
|
2482
|
+
#
|
2483
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2484
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2485
|
+
# # Here is how to wait for a response.
|
2486
|
+
# result.wait_until_done! timeout: 60
|
2487
|
+
# if result.response?
|
2488
|
+
# p result.response
|
2489
|
+
# else
|
2490
|
+
# puts "No response received."
|
2491
|
+
# end
|
2492
|
+
#
|
1919
2493
|
def update_kms_config request, options = nil
|
1920
2494
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1921
2495
|
|
@@ -1980,6 +2554,29 @@ module Google
|
|
1980
2554
|
# @return [::Gapic::Operation]
|
1981
2555
|
#
|
1982
2556
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2557
|
+
#
|
2558
|
+
# @example Basic example
|
2559
|
+
# require "google/cloud/netapp/v1"
|
2560
|
+
#
|
2561
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2562
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2563
|
+
#
|
2564
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2565
|
+
# request = Google::Cloud::NetApp::V1::EncryptVolumesRequest.new
|
2566
|
+
#
|
2567
|
+
# # Call the encrypt_volumes method.
|
2568
|
+
# result = client.encrypt_volumes request
|
2569
|
+
#
|
2570
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2571
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2572
|
+
# # Here is how to wait for a response.
|
2573
|
+
# result.wait_until_done! timeout: 60
|
2574
|
+
# if result.response?
|
2575
|
+
# p result.response
|
2576
|
+
# else
|
2577
|
+
# puts "No response received."
|
2578
|
+
# end
|
2579
|
+
#
|
1983
2580
|
def encrypt_volumes request, options = nil
|
1984
2581
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1985
2582
|
|
@@ -2043,6 +2640,22 @@ module Google
|
|
2043
2640
|
# @return [::Google::Cloud::NetApp::V1::VerifyKmsConfigResponse]
|
2044
2641
|
#
|
2045
2642
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2643
|
+
#
|
2644
|
+
# @example Basic example
|
2645
|
+
# require "google/cloud/netapp/v1"
|
2646
|
+
#
|
2647
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2648
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2649
|
+
#
|
2650
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2651
|
+
# request = Google::Cloud::NetApp::V1::VerifyKmsConfigRequest.new
|
2652
|
+
#
|
2653
|
+
# # Call the verify_kms_config method.
|
2654
|
+
# result = client.verify_kms_config request
|
2655
|
+
#
|
2656
|
+
# # The returned object is of type Google::Cloud::NetApp::V1::VerifyKmsConfigResponse.
|
2657
|
+
# p result
|
2658
|
+
#
|
2046
2659
|
def verify_kms_config request, options = nil
|
2047
2660
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2048
2661
|
|
@@ -2105,6 +2718,29 @@ module Google
|
|
2105
2718
|
# @return [::Gapic::Operation]
|
2106
2719
|
#
|
2107
2720
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2721
|
+
#
|
2722
|
+
# @example Basic example
|
2723
|
+
# require "google/cloud/netapp/v1"
|
2724
|
+
#
|
2725
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2726
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2727
|
+
#
|
2728
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2729
|
+
# request = Google::Cloud::NetApp::V1::DeleteKmsConfigRequest.new
|
2730
|
+
#
|
2731
|
+
# # Call the delete_kms_config method.
|
2732
|
+
# result = client.delete_kms_config request
|
2733
|
+
#
|
2734
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2735
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2736
|
+
# # Here is how to wait for a response.
|
2737
|
+
# result.wait_until_done! timeout: 60
|
2738
|
+
# if result.response?
|
2739
|
+
# p result.response
|
2740
|
+
# else
|
2741
|
+
# puts "No response received."
|
2742
|
+
# end
|
2743
|
+
#
|
2108
2744
|
def delete_kms_config request, options = nil
|
2109
2745
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2110
2746
|
|
@@ -2179,6 +2815,26 @@ module Google
|
|
2179
2815
|
# @return [::Google::Cloud::NetApp::V1::ListReplicationsResponse]
|
2180
2816
|
#
|
2181
2817
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2818
|
+
#
|
2819
|
+
# @example Basic example
|
2820
|
+
# require "google/cloud/netapp/v1"
|
2821
|
+
#
|
2822
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2823
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2824
|
+
#
|
2825
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2826
|
+
# request = Google::Cloud::NetApp::V1::ListReplicationsRequest.new
|
2827
|
+
#
|
2828
|
+
# # Call the list_replications method.
|
2829
|
+
# result = client.list_replications request
|
2830
|
+
#
|
2831
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2832
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2833
|
+
# result.each do |item|
|
2834
|
+
# # Each element is of type ::Google::Cloud::NetApp::V1::Replication.
|
2835
|
+
# p item
|
2836
|
+
# end
|
2837
|
+
#
|
2182
2838
|
def list_replications request, options = nil
|
2183
2839
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2184
2840
|
|
@@ -2242,6 +2898,22 @@ module Google
|
|
2242
2898
|
# @return [::Google::Cloud::NetApp::V1::Replication]
|
2243
2899
|
#
|
2244
2900
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2901
|
+
#
|
2902
|
+
# @example Basic example
|
2903
|
+
# require "google/cloud/netapp/v1"
|
2904
|
+
#
|
2905
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2906
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2907
|
+
#
|
2908
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2909
|
+
# request = Google::Cloud::NetApp::V1::GetReplicationRequest.new
|
2910
|
+
#
|
2911
|
+
# # Call the get_replication method.
|
2912
|
+
# result = client.get_replication request
|
2913
|
+
#
|
2914
|
+
# # The returned object is of type Google::Cloud::NetApp::V1::Replication.
|
2915
|
+
# p result
|
2916
|
+
#
|
2245
2917
|
def get_replication request, options = nil
|
2246
2918
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2247
2919
|
|
@@ -2311,6 +2983,29 @@ module Google
|
|
2311
2983
|
# @return [::Gapic::Operation]
|
2312
2984
|
#
|
2313
2985
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2986
|
+
#
|
2987
|
+
# @example Basic example
|
2988
|
+
# require "google/cloud/netapp/v1"
|
2989
|
+
#
|
2990
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2991
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2992
|
+
#
|
2993
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2994
|
+
# request = Google::Cloud::NetApp::V1::CreateReplicationRequest.new
|
2995
|
+
#
|
2996
|
+
# # Call the create_replication method.
|
2997
|
+
# result = client.create_replication request
|
2998
|
+
#
|
2999
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3000
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3001
|
+
# # Here is how to wait for a response.
|
3002
|
+
# result.wait_until_done! timeout: 60
|
3003
|
+
# if result.response?
|
3004
|
+
# p result.response
|
3005
|
+
# else
|
3006
|
+
# puts "No response received."
|
3007
|
+
# end
|
3008
|
+
#
|
2314
3009
|
def create_replication request, options = nil
|
2315
3010
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2316
3011
|
|
@@ -2375,6 +3070,29 @@ module Google
|
|
2375
3070
|
# @return [::Gapic::Operation]
|
2376
3071
|
#
|
2377
3072
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3073
|
+
#
|
3074
|
+
# @example Basic example
|
3075
|
+
# require "google/cloud/netapp/v1"
|
3076
|
+
#
|
3077
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3078
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
3079
|
+
#
|
3080
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3081
|
+
# request = Google::Cloud::NetApp::V1::DeleteReplicationRequest.new
|
3082
|
+
#
|
3083
|
+
# # Call the delete_replication method.
|
3084
|
+
# result = client.delete_replication request
|
3085
|
+
#
|
3086
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3087
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3088
|
+
# # Here is how to wait for a response.
|
3089
|
+
# result.wait_until_done! timeout: 60
|
3090
|
+
# if result.response?
|
3091
|
+
# p result.response
|
3092
|
+
# else
|
3093
|
+
# puts "No response received."
|
3094
|
+
# end
|
3095
|
+
#
|
2378
3096
|
def delete_replication request, options = nil
|
2379
3097
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2380
3098
|
|
@@ -2441,6 +3159,29 @@ module Google
|
|
2441
3159
|
# @return [::Gapic::Operation]
|
2442
3160
|
#
|
2443
3161
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3162
|
+
#
|
3163
|
+
# @example Basic example
|
3164
|
+
# require "google/cloud/netapp/v1"
|
3165
|
+
#
|
3166
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3167
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
3168
|
+
#
|
3169
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3170
|
+
# request = Google::Cloud::NetApp::V1::UpdateReplicationRequest.new
|
3171
|
+
#
|
3172
|
+
# # Call the update_replication method.
|
3173
|
+
# result = client.update_replication request
|
3174
|
+
#
|
3175
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3176
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3177
|
+
# # Here is how to wait for a response.
|
3178
|
+
# result.wait_until_done! timeout: 60
|
3179
|
+
# if result.response?
|
3180
|
+
# p result.response
|
3181
|
+
# else
|
3182
|
+
# puts "No response received."
|
3183
|
+
# end
|
3184
|
+
#
|
2444
3185
|
def update_replication request, options = nil
|
2445
3186
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2446
3187
|
|
@@ -2512,16 +3253,1217 @@ module Google
|
|
2512
3253
|
# @return [::Gapic::Operation]
|
2513
3254
|
#
|
2514
3255
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2515
|
-
|
2516
|
-
|
2517
|
-
|
2518
|
-
|
2519
|
-
|
3256
|
+
#
|
3257
|
+
# @example Basic example
|
3258
|
+
# require "google/cloud/netapp/v1"
|
3259
|
+
#
|
3260
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3261
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
3262
|
+
#
|
3263
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3264
|
+
# request = Google::Cloud::NetApp::V1::StopReplicationRequest.new
|
3265
|
+
#
|
3266
|
+
# # Call the stop_replication method.
|
3267
|
+
# result = client.stop_replication request
|
3268
|
+
#
|
3269
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3270
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3271
|
+
# # Here is how to wait for a response.
|
3272
|
+
# result.wait_until_done! timeout: 60
|
3273
|
+
# if result.response?
|
3274
|
+
# p result.response
|
3275
|
+
# else
|
3276
|
+
# puts "No response received."
|
3277
|
+
# end
|
3278
|
+
#
|
3279
|
+
def stop_replication request, options = nil
|
3280
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3281
|
+
|
3282
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::StopReplicationRequest
|
3283
|
+
|
3284
|
+
# Converts hash and nil to an options object
|
3285
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3286
|
+
|
3287
|
+
# Customize the options with defaults
|
3288
|
+
call_metadata = @config.rpcs.stop_replication.metadata.to_h
|
3289
|
+
|
3290
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3291
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3292
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3293
|
+
gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
|
3294
|
+
transports_version_send: [:rest]
|
3295
|
+
|
3296
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3297
|
+
|
3298
|
+
options.apply_defaults timeout: @config.rpcs.stop_replication.timeout,
|
3299
|
+
metadata: call_metadata,
|
3300
|
+
retry_policy: @config.rpcs.stop_replication.retry_policy
|
3301
|
+
|
3302
|
+
options.apply_defaults timeout: @config.timeout,
|
3303
|
+
metadata: @config.metadata,
|
3304
|
+
retry_policy: @config.retry_policy
|
3305
|
+
|
3306
|
+
@net_app_stub.stop_replication request, options do |result, operation|
|
3307
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3308
|
+
yield result, operation if block_given?
|
3309
|
+
return result
|
3310
|
+
end
|
3311
|
+
rescue ::Gapic::Rest::Error => e
|
3312
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3313
|
+
end
|
3314
|
+
|
3315
|
+
##
|
3316
|
+
# Resume Cross Region Replication.
|
3317
|
+
#
|
3318
|
+
# @overload resume_replication(request, options = nil)
|
3319
|
+
# Pass arguments to `resume_replication` via a request object, either of type
|
3320
|
+
# {::Google::Cloud::NetApp::V1::ResumeReplicationRequest} or an equivalent Hash.
|
3321
|
+
#
|
3322
|
+
# @param request [::Google::Cloud::NetApp::V1::ResumeReplicationRequest, ::Hash]
|
3323
|
+
# A request object representing the call parameters. Required. To specify no
|
3324
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3325
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3326
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3327
|
+
#
|
3328
|
+
# @overload resume_replication(name: nil)
|
3329
|
+
# Pass arguments to `resume_replication` via keyword arguments. Note that at
|
3330
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3331
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3332
|
+
#
|
3333
|
+
# @param name [::String]
|
3334
|
+
# Required. The resource name of the replication, in the format of
|
3335
|
+
# projects/\\{project_id}/locations/\\{location}/volumes/\\{volume_id}/replications/\\{replication_id}.
|
3336
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3337
|
+
# @yieldparam result [::Gapic::Operation]
|
3338
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3339
|
+
#
|
3340
|
+
# @return [::Gapic::Operation]
|
3341
|
+
#
|
3342
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3343
|
+
#
|
3344
|
+
# @example Basic example
|
3345
|
+
# require "google/cloud/netapp/v1"
|
3346
|
+
#
|
3347
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3348
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
3349
|
+
#
|
3350
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3351
|
+
# request = Google::Cloud::NetApp::V1::ResumeReplicationRequest.new
|
3352
|
+
#
|
3353
|
+
# # Call the resume_replication method.
|
3354
|
+
# result = client.resume_replication request
|
3355
|
+
#
|
3356
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3357
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3358
|
+
# # Here is how to wait for a response.
|
3359
|
+
# result.wait_until_done! timeout: 60
|
3360
|
+
# if result.response?
|
3361
|
+
# p result.response
|
3362
|
+
# else
|
3363
|
+
# puts "No response received."
|
3364
|
+
# end
|
3365
|
+
#
|
3366
|
+
def resume_replication request, options = nil
|
3367
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3368
|
+
|
3369
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ResumeReplicationRequest
|
3370
|
+
|
3371
|
+
# Converts hash and nil to an options object
|
3372
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3373
|
+
|
3374
|
+
# Customize the options with defaults
|
3375
|
+
call_metadata = @config.rpcs.resume_replication.metadata.to_h
|
3376
|
+
|
3377
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3378
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3379
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3380
|
+
gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
|
3381
|
+
transports_version_send: [:rest]
|
3382
|
+
|
3383
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3384
|
+
|
3385
|
+
options.apply_defaults timeout: @config.rpcs.resume_replication.timeout,
|
3386
|
+
metadata: call_metadata,
|
3387
|
+
retry_policy: @config.rpcs.resume_replication.retry_policy
|
3388
|
+
|
3389
|
+
options.apply_defaults timeout: @config.timeout,
|
3390
|
+
metadata: @config.metadata,
|
3391
|
+
retry_policy: @config.retry_policy
|
3392
|
+
|
3393
|
+
@net_app_stub.resume_replication request, options do |result, operation|
|
3394
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3395
|
+
yield result, operation if block_given?
|
3396
|
+
return result
|
3397
|
+
end
|
3398
|
+
rescue ::Gapic::Rest::Error => e
|
3399
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3400
|
+
end
|
3401
|
+
|
3402
|
+
##
|
3403
|
+
# Reverses direction of replication. Source becomes destination and
|
3404
|
+
# destination becomes source.
|
3405
|
+
#
|
3406
|
+
# @overload reverse_replication_direction(request, options = nil)
|
3407
|
+
# Pass arguments to `reverse_replication_direction` via a request object, either of type
|
3408
|
+
# {::Google::Cloud::NetApp::V1::ReverseReplicationDirectionRequest} or an equivalent Hash.
|
3409
|
+
#
|
3410
|
+
# @param request [::Google::Cloud::NetApp::V1::ReverseReplicationDirectionRequest, ::Hash]
|
3411
|
+
# A request object representing the call parameters. Required. To specify no
|
3412
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3413
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3414
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3415
|
+
#
|
3416
|
+
# @overload reverse_replication_direction(name: nil)
|
3417
|
+
# Pass arguments to `reverse_replication_direction` via keyword arguments. Note that at
|
3418
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3419
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3420
|
+
#
|
3421
|
+
# @param name [::String]
|
3422
|
+
# Required. The resource name of the replication, in the format of
|
3423
|
+
# projects/\\{project_id}/locations/\\{location}/volumes/\\{volume_id}/replications/\\{replication_id}.
|
3424
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3425
|
+
# @yieldparam result [::Gapic::Operation]
|
3426
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3427
|
+
#
|
3428
|
+
# @return [::Gapic::Operation]
|
3429
|
+
#
|
3430
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3431
|
+
#
|
3432
|
+
# @example Basic example
|
3433
|
+
# require "google/cloud/netapp/v1"
|
3434
|
+
#
|
3435
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3436
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
3437
|
+
#
|
3438
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3439
|
+
# request = Google::Cloud::NetApp::V1::ReverseReplicationDirectionRequest.new
|
3440
|
+
#
|
3441
|
+
# # Call the reverse_replication_direction method.
|
3442
|
+
# result = client.reverse_replication_direction request
|
3443
|
+
#
|
3444
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3445
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3446
|
+
# # Here is how to wait for a response.
|
3447
|
+
# result.wait_until_done! timeout: 60
|
3448
|
+
# if result.response?
|
3449
|
+
# p result.response
|
3450
|
+
# else
|
3451
|
+
# puts "No response received."
|
3452
|
+
# end
|
3453
|
+
#
|
3454
|
+
def reverse_replication_direction request, options = nil
|
3455
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3456
|
+
|
3457
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ReverseReplicationDirectionRequest
|
3458
|
+
|
3459
|
+
# Converts hash and nil to an options object
|
3460
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3461
|
+
|
3462
|
+
# Customize the options with defaults
|
3463
|
+
call_metadata = @config.rpcs.reverse_replication_direction.metadata.to_h
|
3464
|
+
|
3465
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3466
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3467
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3468
|
+
gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
|
3469
|
+
transports_version_send: [:rest]
|
3470
|
+
|
3471
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3472
|
+
|
3473
|
+
options.apply_defaults timeout: @config.rpcs.reverse_replication_direction.timeout,
|
3474
|
+
metadata: call_metadata,
|
3475
|
+
retry_policy: @config.rpcs.reverse_replication_direction.retry_policy
|
3476
|
+
|
3477
|
+
options.apply_defaults timeout: @config.timeout,
|
3478
|
+
metadata: @config.metadata,
|
3479
|
+
retry_policy: @config.retry_policy
|
3480
|
+
|
3481
|
+
@net_app_stub.reverse_replication_direction request, options do |result, operation|
|
3482
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3483
|
+
yield result, operation if block_given?
|
3484
|
+
return result
|
3485
|
+
end
|
3486
|
+
rescue ::Gapic::Rest::Error => e
|
3487
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3488
|
+
end
|
3489
|
+
|
3490
|
+
##
|
3491
|
+
# Creates new backup vault
|
3492
|
+
#
|
3493
|
+
# @overload create_backup_vault(request, options = nil)
|
3494
|
+
# Pass arguments to `create_backup_vault` via a request object, either of type
|
3495
|
+
# {::Google::Cloud::NetApp::V1::CreateBackupVaultRequest} or an equivalent Hash.
|
3496
|
+
#
|
3497
|
+
# @param request [::Google::Cloud::NetApp::V1::CreateBackupVaultRequest, ::Hash]
|
3498
|
+
# A request object representing the call parameters. Required. To specify no
|
3499
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3500
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3501
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3502
|
+
#
|
3503
|
+
# @overload create_backup_vault(parent: nil, backup_vault_id: nil, backup_vault: nil)
|
3504
|
+
# Pass arguments to `create_backup_vault` via keyword arguments. Note that at
|
3505
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3506
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3507
|
+
#
|
3508
|
+
# @param parent [::String]
|
3509
|
+
# Required. The location to create the backup vaults, in the format
|
3510
|
+
# `projects/{project_id}/locations/{location}`
|
3511
|
+
# @param backup_vault_id [::String]
|
3512
|
+
# Required. The ID to use for the backupVault.
|
3513
|
+
# The ID must be unique within the specified location.
|
3514
|
+
# The max supported length is 63 characters.
|
3515
|
+
# This value must start with a lowercase letter followed by up to 62
|
3516
|
+
# lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
|
3517
|
+
# Values that do not match this pattern will trigger an INVALID_ARGUMENT
|
3518
|
+
# error.
|
3519
|
+
# @param backup_vault [::Google::Cloud::NetApp::V1::BackupVault, ::Hash]
|
3520
|
+
# Required. A backupVault resource
|
3521
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3522
|
+
# @yieldparam result [::Gapic::Operation]
|
3523
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3524
|
+
#
|
3525
|
+
# @return [::Gapic::Operation]
|
3526
|
+
#
|
3527
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3528
|
+
#
|
3529
|
+
# @example Basic example
|
3530
|
+
# require "google/cloud/netapp/v1"
|
3531
|
+
#
|
3532
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3533
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
3534
|
+
#
|
3535
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3536
|
+
# request = Google::Cloud::NetApp::V1::CreateBackupVaultRequest.new
|
3537
|
+
#
|
3538
|
+
# # Call the create_backup_vault method.
|
3539
|
+
# result = client.create_backup_vault request
|
3540
|
+
#
|
3541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3543
|
+
# # Here is how to wait for a response.
|
3544
|
+
# result.wait_until_done! timeout: 60
|
3545
|
+
# if result.response?
|
3546
|
+
# p result.response
|
3547
|
+
# else
|
3548
|
+
# puts "No response received."
|
3549
|
+
# end
|
3550
|
+
#
|
3551
|
+
def create_backup_vault request, options = nil
|
3552
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3553
|
+
|
3554
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::CreateBackupVaultRequest
|
3555
|
+
|
3556
|
+
# Converts hash and nil to an options object
|
3557
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3558
|
+
|
3559
|
+
# Customize the options with defaults
|
3560
|
+
call_metadata = @config.rpcs.create_backup_vault.metadata.to_h
|
3561
|
+
|
3562
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3563
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3564
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3565
|
+
gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
|
3566
|
+
transports_version_send: [:rest]
|
3567
|
+
|
3568
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3569
|
+
|
3570
|
+
options.apply_defaults timeout: @config.rpcs.create_backup_vault.timeout,
|
3571
|
+
metadata: call_metadata,
|
3572
|
+
retry_policy: @config.rpcs.create_backup_vault.retry_policy
|
3573
|
+
|
3574
|
+
options.apply_defaults timeout: @config.timeout,
|
3575
|
+
metadata: @config.metadata,
|
3576
|
+
retry_policy: @config.retry_policy
|
3577
|
+
|
3578
|
+
@net_app_stub.create_backup_vault request, options do |result, operation|
|
3579
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3580
|
+
yield result, operation if block_given?
|
3581
|
+
return result
|
3582
|
+
end
|
3583
|
+
rescue ::Gapic::Rest::Error => e
|
3584
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3585
|
+
end
|
3586
|
+
|
3587
|
+
##
|
3588
|
+
# Returns the description of the specified backup vault
|
3589
|
+
#
|
3590
|
+
# @overload get_backup_vault(request, options = nil)
|
3591
|
+
# Pass arguments to `get_backup_vault` via a request object, either of type
|
3592
|
+
# {::Google::Cloud::NetApp::V1::GetBackupVaultRequest} or an equivalent Hash.
|
3593
|
+
#
|
3594
|
+
# @param request [::Google::Cloud::NetApp::V1::GetBackupVaultRequest, ::Hash]
|
3595
|
+
# A request object representing the call parameters. Required. To specify no
|
3596
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3597
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3598
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3599
|
+
#
|
3600
|
+
# @overload get_backup_vault(name: nil)
|
3601
|
+
# Pass arguments to `get_backup_vault` via keyword arguments. Note that at
|
3602
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3603
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3604
|
+
#
|
3605
|
+
# @param name [::String]
|
3606
|
+
# Required. The backupVault resource name, in the format
|
3607
|
+
# `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`
|
3608
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3609
|
+
# @yieldparam result [::Google::Cloud::NetApp::V1::BackupVault]
|
3610
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3611
|
+
#
|
3612
|
+
# @return [::Google::Cloud::NetApp::V1::BackupVault]
|
3613
|
+
#
|
3614
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3615
|
+
#
|
3616
|
+
# @example Basic example
|
3617
|
+
# require "google/cloud/netapp/v1"
|
3618
|
+
#
|
3619
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3620
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
3621
|
+
#
|
3622
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3623
|
+
# request = Google::Cloud::NetApp::V1::GetBackupVaultRequest.new
|
3624
|
+
#
|
3625
|
+
# # Call the get_backup_vault method.
|
3626
|
+
# result = client.get_backup_vault request
|
3627
|
+
#
|
3628
|
+
# # The returned object is of type Google::Cloud::NetApp::V1::BackupVault.
|
3629
|
+
# p result
|
3630
|
+
#
|
3631
|
+
def get_backup_vault request, options = nil
|
3632
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3633
|
+
|
3634
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::GetBackupVaultRequest
|
3635
|
+
|
3636
|
+
# Converts hash and nil to an options object
|
3637
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3638
|
+
|
3639
|
+
# Customize the options with defaults
|
3640
|
+
call_metadata = @config.rpcs.get_backup_vault.metadata.to_h
|
3641
|
+
|
3642
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3643
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3644
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3645
|
+
gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
|
3646
|
+
transports_version_send: [:rest]
|
3647
|
+
|
3648
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3649
|
+
|
3650
|
+
options.apply_defaults timeout: @config.rpcs.get_backup_vault.timeout,
|
3651
|
+
metadata: call_metadata,
|
3652
|
+
retry_policy: @config.rpcs.get_backup_vault.retry_policy
|
3653
|
+
|
3654
|
+
options.apply_defaults timeout: @config.timeout,
|
3655
|
+
metadata: @config.metadata,
|
3656
|
+
retry_policy: @config.retry_policy
|
3657
|
+
|
3658
|
+
@net_app_stub.get_backup_vault request, options do |result, operation|
|
3659
|
+
yield result, operation if block_given?
|
3660
|
+
return result
|
3661
|
+
end
|
3662
|
+
rescue ::Gapic::Rest::Error => e
|
3663
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3664
|
+
end
|
3665
|
+
|
3666
|
+
##
|
3667
|
+
# Returns list of all available backup vaults.
|
3668
|
+
#
|
3669
|
+
# @overload list_backup_vaults(request, options = nil)
|
3670
|
+
# Pass arguments to `list_backup_vaults` via a request object, either of type
|
3671
|
+
# {::Google::Cloud::NetApp::V1::ListBackupVaultsRequest} or an equivalent Hash.
|
3672
|
+
#
|
3673
|
+
# @param request [::Google::Cloud::NetApp::V1::ListBackupVaultsRequest, ::Hash]
|
3674
|
+
# A request object representing the call parameters. Required. To specify no
|
3675
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3676
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3677
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3678
|
+
#
|
3679
|
+
# @overload list_backup_vaults(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
|
3680
|
+
# Pass arguments to `list_backup_vaults` via keyword arguments. Note that at
|
3681
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3682
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3683
|
+
#
|
3684
|
+
# @param parent [::String]
|
3685
|
+
# Required. The location for which to retrieve backupVault information,
|
3686
|
+
# in the format
|
3687
|
+
# `projects/{project_id}/locations/{location}`.
|
3688
|
+
# @param page_size [::Integer]
|
3689
|
+
# The maximum number of items to return.
|
3690
|
+
# @param page_token [::String]
|
3691
|
+
# The next_page_token value to use if there are additional
|
3692
|
+
# results to retrieve for this list request.
|
3693
|
+
# @param order_by [::String]
|
3694
|
+
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
|
3695
|
+
# @param filter [::String]
|
3696
|
+
# List filter.
|
3697
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3698
|
+
# @yieldparam result [::Google::Cloud::NetApp::V1::ListBackupVaultsResponse]
|
3699
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3700
|
+
#
|
3701
|
+
# @return [::Google::Cloud::NetApp::V1::ListBackupVaultsResponse]
|
3702
|
+
#
|
3703
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3704
|
+
#
|
3705
|
+
# @example Basic example
|
3706
|
+
# require "google/cloud/netapp/v1"
|
3707
|
+
#
|
3708
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3709
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
3710
|
+
#
|
3711
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3712
|
+
# request = Google::Cloud::NetApp::V1::ListBackupVaultsRequest.new
|
3713
|
+
#
|
3714
|
+
# # Call the list_backup_vaults method.
|
3715
|
+
# result = client.list_backup_vaults request
|
3716
|
+
#
|
3717
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3718
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3719
|
+
# result.each do |item|
|
3720
|
+
# # Each element is of type ::Google::Cloud::NetApp::V1::BackupVault.
|
3721
|
+
# p item
|
3722
|
+
# end
|
3723
|
+
#
|
3724
|
+
def list_backup_vaults request, options = nil
|
3725
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3726
|
+
|
3727
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ListBackupVaultsRequest
|
3728
|
+
|
3729
|
+
# Converts hash and nil to an options object
|
3730
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3731
|
+
|
3732
|
+
# Customize the options with defaults
|
3733
|
+
call_metadata = @config.rpcs.list_backup_vaults.metadata.to_h
|
3734
|
+
|
3735
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3736
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3737
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3738
|
+
gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
|
3739
|
+
transports_version_send: [:rest]
|
3740
|
+
|
3741
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3742
|
+
|
3743
|
+
options.apply_defaults timeout: @config.rpcs.list_backup_vaults.timeout,
|
3744
|
+
metadata: call_metadata,
|
3745
|
+
retry_policy: @config.rpcs.list_backup_vaults.retry_policy
|
3746
|
+
|
3747
|
+
options.apply_defaults timeout: @config.timeout,
|
3748
|
+
metadata: @config.metadata,
|
3749
|
+
retry_policy: @config.retry_policy
|
3750
|
+
|
3751
|
+
@net_app_stub.list_backup_vaults request, options do |result, operation|
|
3752
|
+
yield result, operation if block_given?
|
3753
|
+
return result
|
3754
|
+
end
|
3755
|
+
rescue ::Gapic::Rest::Error => e
|
3756
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3757
|
+
end
|
3758
|
+
|
3759
|
+
##
|
3760
|
+
# Updates the settings of a specific backup vault.
|
3761
|
+
#
|
3762
|
+
# @overload update_backup_vault(request, options = nil)
|
3763
|
+
# Pass arguments to `update_backup_vault` via a request object, either of type
|
3764
|
+
# {::Google::Cloud::NetApp::V1::UpdateBackupVaultRequest} or an equivalent Hash.
|
3765
|
+
#
|
3766
|
+
# @param request [::Google::Cloud::NetApp::V1::UpdateBackupVaultRequest, ::Hash]
|
3767
|
+
# A request object representing the call parameters. Required. To specify no
|
3768
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3769
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3770
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3771
|
+
#
|
3772
|
+
# @overload update_backup_vault(update_mask: nil, backup_vault: nil)
|
3773
|
+
# Pass arguments to `update_backup_vault` via keyword arguments. Note that at
|
3774
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3775
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3776
|
+
#
|
3777
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
3778
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
3779
|
+
# Backup resource to be updated.
|
3780
|
+
# The fields specified in the update_mask are relative to the resource, not
|
3781
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
3782
|
+
# user does not provide a mask then all fields will be overwritten.
|
3783
|
+
# @param backup_vault [::Google::Cloud::NetApp::V1::BackupVault, ::Hash]
|
3784
|
+
# Required. The backupVault being updated
|
3785
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3786
|
+
# @yieldparam result [::Gapic::Operation]
|
3787
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3788
|
+
#
|
3789
|
+
# @return [::Gapic::Operation]
|
3790
|
+
#
|
3791
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3792
|
+
#
|
3793
|
+
# @example Basic example
|
3794
|
+
# require "google/cloud/netapp/v1"
|
3795
|
+
#
|
3796
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3797
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
3798
|
+
#
|
3799
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3800
|
+
# request = Google::Cloud::NetApp::V1::UpdateBackupVaultRequest.new
|
3801
|
+
#
|
3802
|
+
# # Call the update_backup_vault method.
|
3803
|
+
# result = client.update_backup_vault request
|
3804
|
+
#
|
3805
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3806
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3807
|
+
# # Here is how to wait for a response.
|
3808
|
+
# result.wait_until_done! timeout: 60
|
3809
|
+
# if result.response?
|
3810
|
+
# p result.response
|
3811
|
+
# else
|
3812
|
+
# puts "No response received."
|
3813
|
+
# end
|
3814
|
+
#
|
3815
|
+
def update_backup_vault request, options = nil
|
3816
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3817
|
+
|
3818
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::UpdateBackupVaultRequest
|
3819
|
+
|
3820
|
+
# Converts hash and nil to an options object
|
3821
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3822
|
+
|
3823
|
+
# Customize the options with defaults
|
3824
|
+
call_metadata = @config.rpcs.update_backup_vault.metadata.to_h
|
3825
|
+
|
3826
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3827
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3828
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3829
|
+
gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
|
3830
|
+
transports_version_send: [:rest]
|
3831
|
+
|
3832
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3833
|
+
|
3834
|
+
options.apply_defaults timeout: @config.rpcs.update_backup_vault.timeout,
|
3835
|
+
metadata: call_metadata,
|
3836
|
+
retry_policy: @config.rpcs.update_backup_vault.retry_policy
|
3837
|
+
|
3838
|
+
options.apply_defaults timeout: @config.timeout,
|
3839
|
+
metadata: @config.metadata,
|
3840
|
+
retry_policy: @config.retry_policy
|
3841
|
+
|
3842
|
+
@net_app_stub.update_backup_vault request, options do |result, operation|
|
3843
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3844
|
+
yield result, operation if block_given?
|
3845
|
+
return result
|
3846
|
+
end
|
3847
|
+
rescue ::Gapic::Rest::Error => e
|
3848
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3849
|
+
end
|
3850
|
+
|
3851
|
+
##
|
3852
|
+
# Warning! This operation will permanently delete the backup vault.
|
3853
|
+
#
|
3854
|
+
# @overload delete_backup_vault(request, options = nil)
|
3855
|
+
# Pass arguments to `delete_backup_vault` via a request object, either of type
|
3856
|
+
# {::Google::Cloud::NetApp::V1::DeleteBackupVaultRequest} or an equivalent Hash.
|
3857
|
+
#
|
3858
|
+
# @param request [::Google::Cloud::NetApp::V1::DeleteBackupVaultRequest, ::Hash]
|
3859
|
+
# A request object representing the call parameters. Required. To specify no
|
3860
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3861
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3862
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3863
|
+
#
|
3864
|
+
# @overload delete_backup_vault(name: nil)
|
3865
|
+
# Pass arguments to `delete_backup_vault` via keyword arguments. Note that at
|
3866
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3867
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3868
|
+
#
|
3869
|
+
# @param name [::String]
|
3870
|
+
# Required. The backupVault resource name, in the format
|
3871
|
+
# `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`
|
3872
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3873
|
+
# @yieldparam result [::Gapic::Operation]
|
3874
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3875
|
+
#
|
3876
|
+
# @return [::Gapic::Operation]
|
3877
|
+
#
|
3878
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3879
|
+
#
|
3880
|
+
# @example Basic example
|
3881
|
+
# require "google/cloud/netapp/v1"
|
3882
|
+
#
|
3883
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3884
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
3885
|
+
#
|
3886
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3887
|
+
# request = Google::Cloud::NetApp::V1::DeleteBackupVaultRequest.new
|
3888
|
+
#
|
3889
|
+
# # Call the delete_backup_vault method.
|
3890
|
+
# result = client.delete_backup_vault request
|
3891
|
+
#
|
3892
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3893
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3894
|
+
# # Here is how to wait for a response.
|
3895
|
+
# result.wait_until_done! timeout: 60
|
3896
|
+
# if result.response?
|
3897
|
+
# p result.response
|
3898
|
+
# else
|
3899
|
+
# puts "No response received."
|
3900
|
+
# end
|
3901
|
+
#
|
3902
|
+
def delete_backup_vault request, options = nil
|
3903
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3904
|
+
|
3905
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::DeleteBackupVaultRequest
|
3906
|
+
|
3907
|
+
# Converts hash and nil to an options object
|
3908
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3909
|
+
|
3910
|
+
# Customize the options with defaults
|
3911
|
+
call_metadata = @config.rpcs.delete_backup_vault.metadata.to_h
|
3912
|
+
|
3913
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3914
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3915
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3916
|
+
gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
|
3917
|
+
transports_version_send: [:rest]
|
3918
|
+
|
3919
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3920
|
+
|
3921
|
+
options.apply_defaults timeout: @config.rpcs.delete_backup_vault.timeout,
|
3922
|
+
metadata: call_metadata,
|
3923
|
+
retry_policy: @config.rpcs.delete_backup_vault.retry_policy
|
3924
|
+
|
3925
|
+
options.apply_defaults timeout: @config.timeout,
|
3926
|
+
metadata: @config.metadata,
|
3927
|
+
retry_policy: @config.retry_policy
|
3928
|
+
|
3929
|
+
@net_app_stub.delete_backup_vault request, options do |result, operation|
|
3930
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3931
|
+
yield result, operation if block_given?
|
3932
|
+
return result
|
3933
|
+
end
|
3934
|
+
rescue ::Gapic::Rest::Error => e
|
3935
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3936
|
+
end
|
3937
|
+
|
3938
|
+
##
|
3939
|
+
# Creates a backup from the volume specified in the request
|
3940
|
+
# The backup can be created from the given snapshot if specified in the
|
3941
|
+
# request. If no snapshot specified, there'll be a new snapshot taken to
|
3942
|
+
# initiate the backup creation.
|
3943
|
+
#
|
3944
|
+
# @overload create_backup(request, options = nil)
|
3945
|
+
# Pass arguments to `create_backup` via a request object, either of type
|
3946
|
+
# {::Google::Cloud::NetApp::V1::CreateBackupRequest} or an equivalent Hash.
|
3947
|
+
#
|
3948
|
+
# @param request [::Google::Cloud::NetApp::V1::CreateBackupRequest, ::Hash]
|
3949
|
+
# A request object representing the call parameters. Required. To specify no
|
3950
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3951
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3952
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3953
|
+
#
|
3954
|
+
# @overload create_backup(parent: nil, backup_id: nil, backup: nil)
|
3955
|
+
# Pass arguments to `create_backup` via keyword arguments. Note that at
|
3956
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3957
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3958
|
+
#
|
3959
|
+
# @param parent [::String]
|
3960
|
+
# Required. The NetApp backupVault to create the backups of, in the format
|
3961
|
+
# `projects/*/locations/*/backupVaults/{backup_vault_id}`
|
3962
|
+
# @param backup_id [::String]
|
3963
|
+
# Required. The ID to use for the backup.
|
3964
|
+
# The ID must be unique within the specified backupVault.
|
3965
|
+
# This value must start with a lowercase letter followed by up to 62
|
3966
|
+
# lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
|
3967
|
+
# Values that do not match this pattern will trigger an INVALID_ARGUMENT
|
3968
|
+
# error.
|
3969
|
+
# @param backup [::Google::Cloud::NetApp::V1::Backup, ::Hash]
|
3970
|
+
# Required. A backup resource
|
3971
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3972
|
+
# @yieldparam result [::Gapic::Operation]
|
3973
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3974
|
+
#
|
3975
|
+
# @return [::Gapic::Operation]
|
3976
|
+
#
|
3977
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3978
|
+
#
|
3979
|
+
# @example Basic example
|
3980
|
+
# require "google/cloud/netapp/v1"
|
3981
|
+
#
|
3982
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3983
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
3984
|
+
#
|
3985
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3986
|
+
# request = Google::Cloud::NetApp::V1::CreateBackupRequest.new
|
3987
|
+
#
|
3988
|
+
# # Call the create_backup method.
|
3989
|
+
# result = client.create_backup request
|
3990
|
+
#
|
3991
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3992
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3993
|
+
# # Here is how to wait for a response.
|
3994
|
+
# result.wait_until_done! timeout: 60
|
3995
|
+
# if result.response?
|
3996
|
+
# p result.response
|
3997
|
+
# else
|
3998
|
+
# puts "No response received."
|
3999
|
+
# end
|
4000
|
+
#
|
4001
|
+
def create_backup request, options = nil
|
4002
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4003
|
+
|
4004
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::CreateBackupRequest
|
4005
|
+
|
4006
|
+
# Converts hash and nil to an options object
|
4007
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4008
|
+
|
4009
|
+
# Customize the options with defaults
|
4010
|
+
call_metadata = @config.rpcs.create_backup.metadata.to_h
|
4011
|
+
|
4012
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
4013
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4014
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4015
|
+
gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
|
4016
|
+
transports_version_send: [:rest]
|
4017
|
+
|
4018
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4019
|
+
|
4020
|
+
options.apply_defaults timeout: @config.rpcs.create_backup.timeout,
|
4021
|
+
metadata: call_metadata,
|
4022
|
+
retry_policy: @config.rpcs.create_backup.retry_policy
|
4023
|
+
|
4024
|
+
options.apply_defaults timeout: @config.timeout,
|
4025
|
+
metadata: @config.metadata,
|
4026
|
+
retry_policy: @config.retry_policy
|
4027
|
+
|
4028
|
+
@net_app_stub.create_backup request, options do |result, operation|
|
4029
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
4030
|
+
yield result, operation if block_given?
|
4031
|
+
return result
|
4032
|
+
end
|
4033
|
+
rescue ::Gapic::Rest::Error => e
|
4034
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4035
|
+
end
|
4036
|
+
|
4037
|
+
##
|
4038
|
+
# Returns the description of the specified backup
|
4039
|
+
#
|
4040
|
+
# @overload get_backup(request, options = nil)
|
4041
|
+
# Pass arguments to `get_backup` via a request object, either of type
|
4042
|
+
# {::Google::Cloud::NetApp::V1::GetBackupRequest} or an equivalent Hash.
|
4043
|
+
#
|
4044
|
+
# @param request [::Google::Cloud::NetApp::V1::GetBackupRequest, ::Hash]
|
4045
|
+
# A request object representing the call parameters. Required. To specify no
|
4046
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4047
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4048
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4049
|
+
#
|
4050
|
+
# @overload get_backup(name: nil)
|
4051
|
+
# Pass arguments to `get_backup` via keyword arguments. Note that at
|
4052
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4053
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4054
|
+
#
|
4055
|
+
# @param name [::String]
|
4056
|
+
# Required. The backup resource name, in the format
|
4057
|
+
# `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`
|
4058
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4059
|
+
# @yieldparam result [::Google::Cloud::NetApp::V1::Backup]
|
4060
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4061
|
+
#
|
4062
|
+
# @return [::Google::Cloud::NetApp::V1::Backup]
|
4063
|
+
#
|
4064
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4065
|
+
#
|
4066
|
+
# @example Basic example
|
4067
|
+
# require "google/cloud/netapp/v1"
|
4068
|
+
#
|
4069
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4070
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
4071
|
+
#
|
4072
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4073
|
+
# request = Google::Cloud::NetApp::V1::GetBackupRequest.new
|
4074
|
+
#
|
4075
|
+
# # Call the get_backup method.
|
4076
|
+
# result = client.get_backup request
|
4077
|
+
#
|
4078
|
+
# # The returned object is of type Google::Cloud::NetApp::V1::Backup.
|
4079
|
+
# p result
|
4080
|
+
#
|
4081
|
+
def get_backup request, options = nil
|
4082
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4083
|
+
|
4084
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::GetBackupRequest
|
4085
|
+
|
4086
|
+
# Converts hash and nil to an options object
|
4087
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4088
|
+
|
4089
|
+
# Customize the options with defaults
|
4090
|
+
call_metadata = @config.rpcs.get_backup.metadata.to_h
|
4091
|
+
|
4092
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
4093
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4094
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4095
|
+
gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
|
4096
|
+
transports_version_send: [:rest]
|
4097
|
+
|
4098
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4099
|
+
|
4100
|
+
options.apply_defaults timeout: @config.rpcs.get_backup.timeout,
|
4101
|
+
metadata: call_metadata,
|
4102
|
+
retry_policy: @config.rpcs.get_backup.retry_policy
|
4103
|
+
|
4104
|
+
options.apply_defaults timeout: @config.timeout,
|
4105
|
+
metadata: @config.metadata,
|
4106
|
+
retry_policy: @config.retry_policy
|
4107
|
+
|
4108
|
+
@net_app_stub.get_backup request, options do |result, operation|
|
4109
|
+
yield result, operation if block_given?
|
4110
|
+
return result
|
4111
|
+
end
|
4112
|
+
rescue ::Gapic::Rest::Error => e
|
4113
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4114
|
+
end
|
4115
|
+
|
4116
|
+
##
|
4117
|
+
# Returns descriptions of all backups for a backupVault.
|
4118
|
+
#
|
4119
|
+
# @overload list_backups(request, options = nil)
|
4120
|
+
# Pass arguments to `list_backups` via a request object, either of type
|
4121
|
+
# {::Google::Cloud::NetApp::V1::ListBackupsRequest} or an equivalent Hash.
|
4122
|
+
#
|
4123
|
+
# @param request [::Google::Cloud::NetApp::V1::ListBackupsRequest, ::Hash]
|
4124
|
+
# A request object representing the call parameters. Required. To specify no
|
4125
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4126
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4127
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4128
|
+
#
|
4129
|
+
# @overload list_backups(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
|
4130
|
+
# Pass arguments to `list_backups` via keyword arguments. Note that at
|
4131
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4132
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4133
|
+
#
|
4134
|
+
# @param parent [::String]
|
4135
|
+
# Required. The backupVault for which to retrieve backup information,
|
4136
|
+
# in the format
|
4137
|
+
# `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.
|
4138
|
+
# To retrieve backup information for all locations, use "-" for the
|
4139
|
+
# `{location}` value.
|
4140
|
+
# To retrieve backup information for all backupVaults, use "-" for the
|
4141
|
+
# `{backup_vault_id}` value.
|
4142
|
+
# To retrieve backup information for a volume, use "-" for the
|
4143
|
+
# `{backup_vault_id}` value and specify volume full name with the filter.
|
4144
|
+
# @param page_size [::Integer]
|
4145
|
+
# The maximum number of items to return. The service may return fewer
|
4146
|
+
# than this value. The maximum value
|
4147
|
+
# is 1000; values above 1000 will be coerced to 1000.
|
4148
|
+
# @param page_token [::String]
|
4149
|
+
# The next_page_token value to use if there are additional
|
4150
|
+
# results to retrieve for this list request.
|
4151
|
+
# @param order_by [::String]
|
4152
|
+
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
|
4153
|
+
# @param filter [::String]
|
4154
|
+
# The standard list filter.
|
4155
|
+
# If specified, backups will be returned based on the attribute name that
|
4156
|
+
# matches the filter expression. If empty, then no backups are filtered out.
|
4157
|
+
# See https://google.aip.dev/160
|
4158
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4159
|
+
# @yieldparam result [::Google::Cloud::NetApp::V1::ListBackupsResponse]
|
4160
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4161
|
+
#
|
4162
|
+
# @return [::Google::Cloud::NetApp::V1::ListBackupsResponse]
|
4163
|
+
#
|
4164
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4165
|
+
#
|
4166
|
+
# @example Basic example
|
4167
|
+
# require "google/cloud/netapp/v1"
|
4168
|
+
#
|
4169
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4170
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
4171
|
+
#
|
4172
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4173
|
+
# request = Google::Cloud::NetApp::V1::ListBackupsRequest.new
|
4174
|
+
#
|
4175
|
+
# # Call the list_backups method.
|
4176
|
+
# result = client.list_backups request
|
4177
|
+
#
|
4178
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
4179
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
4180
|
+
# result.each do |item|
|
4181
|
+
# # Each element is of type ::Google::Cloud::NetApp::V1::Backup.
|
4182
|
+
# p item
|
4183
|
+
# end
|
4184
|
+
#
|
4185
|
+
def list_backups request, options = nil
|
4186
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4187
|
+
|
4188
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ListBackupsRequest
|
4189
|
+
|
4190
|
+
# Converts hash and nil to an options object
|
4191
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4192
|
+
|
4193
|
+
# Customize the options with defaults
|
4194
|
+
call_metadata = @config.rpcs.list_backups.metadata.to_h
|
4195
|
+
|
4196
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
4197
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4198
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4199
|
+
gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
|
4200
|
+
transports_version_send: [:rest]
|
4201
|
+
|
4202
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4203
|
+
|
4204
|
+
options.apply_defaults timeout: @config.rpcs.list_backups.timeout,
|
4205
|
+
metadata: call_metadata,
|
4206
|
+
retry_policy: @config.rpcs.list_backups.retry_policy
|
4207
|
+
|
4208
|
+
options.apply_defaults timeout: @config.timeout,
|
4209
|
+
metadata: @config.metadata,
|
4210
|
+
retry_policy: @config.retry_policy
|
4211
|
+
|
4212
|
+
@net_app_stub.list_backups request, options do |result, operation|
|
4213
|
+
yield result, operation if block_given?
|
4214
|
+
return result
|
4215
|
+
end
|
4216
|
+
rescue ::Gapic::Rest::Error => e
|
4217
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4218
|
+
end
|
4219
|
+
|
4220
|
+
##
|
4221
|
+
# Warning! This operation will permanently delete the backup.
|
4222
|
+
#
|
4223
|
+
# @overload delete_backup(request, options = nil)
|
4224
|
+
# Pass arguments to `delete_backup` via a request object, either of type
|
4225
|
+
# {::Google::Cloud::NetApp::V1::DeleteBackupRequest} or an equivalent Hash.
|
4226
|
+
#
|
4227
|
+
# @param request [::Google::Cloud::NetApp::V1::DeleteBackupRequest, ::Hash]
|
4228
|
+
# A request object representing the call parameters. Required. To specify no
|
4229
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4230
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4231
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4232
|
+
#
|
4233
|
+
# @overload delete_backup(name: nil)
|
4234
|
+
# Pass arguments to `delete_backup` via keyword arguments. Note that at
|
4235
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4236
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4237
|
+
#
|
4238
|
+
# @param name [::String]
|
4239
|
+
# Required. The backup resource name, in the format
|
4240
|
+
# `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`
|
4241
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4242
|
+
# @yieldparam result [::Gapic::Operation]
|
4243
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4244
|
+
#
|
4245
|
+
# @return [::Gapic::Operation]
|
4246
|
+
#
|
4247
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4248
|
+
#
|
4249
|
+
# @example Basic example
|
4250
|
+
# require "google/cloud/netapp/v1"
|
4251
|
+
#
|
4252
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4253
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
4254
|
+
#
|
4255
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4256
|
+
# request = Google::Cloud::NetApp::V1::DeleteBackupRequest.new
|
4257
|
+
#
|
4258
|
+
# # Call the delete_backup method.
|
4259
|
+
# result = client.delete_backup request
|
4260
|
+
#
|
4261
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
4262
|
+
# # check the status of an operation, cancel it, or wait for results.
|
4263
|
+
# # Here is how to wait for a response.
|
4264
|
+
# result.wait_until_done! timeout: 60
|
4265
|
+
# if result.response?
|
4266
|
+
# p result.response
|
4267
|
+
# else
|
4268
|
+
# puts "No response received."
|
4269
|
+
# end
|
4270
|
+
#
|
4271
|
+
def delete_backup request, options = nil
|
4272
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4273
|
+
|
4274
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::DeleteBackupRequest
|
4275
|
+
|
4276
|
+
# Converts hash and nil to an options object
|
4277
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4278
|
+
|
4279
|
+
# Customize the options with defaults
|
4280
|
+
call_metadata = @config.rpcs.delete_backup.metadata.to_h
|
4281
|
+
|
4282
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
4283
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4284
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4285
|
+
gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
|
4286
|
+
transports_version_send: [:rest]
|
4287
|
+
|
4288
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4289
|
+
|
4290
|
+
options.apply_defaults timeout: @config.rpcs.delete_backup.timeout,
|
4291
|
+
metadata: call_metadata,
|
4292
|
+
retry_policy: @config.rpcs.delete_backup.retry_policy
|
4293
|
+
|
4294
|
+
options.apply_defaults timeout: @config.timeout,
|
4295
|
+
metadata: @config.metadata,
|
4296
|
+
retry_policy: @config.retry_policy
|
4297
|
+
|
4298
|
+
@net_app_stub.delete_backup request, options do |result, operation|
|
4299
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
4300
|
+
yield result, operation if block_given?
|
4301
|
+
return result
|
4302
|
+
end
|
4303
|
+
rescue ::Gapic::Rest::Error => e
|
4304
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4305
|
+
end
|
4306
|
+
|
4307
|
+
##
|
4308
|
+
# Update backup with full spec.
|
4309
|
+
#
|
4310
|
+
# @overload update_backup(request, options = nil)
|
4311
|
+
# Pass arguments to `update_backup` via a request object, either of type
|
4312
|
+
# {::Google::Cloud::NetApp::V1::UpdateBackupRequest} or an equivalent Hash.
|
4313
|
+
#
|
4314
|
+
# @param request [::Google::Cloud::NetApp::V1::UpdateBackupRequest, ::Hash]
|
4315
|
+
# A request object representing the call parameters. Required. To specify no
|
4316
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4317
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4318
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4319
|
+
#
|
4320
|
+
# @overload update_backup(update_mask: nil, backup: nil)
|
4321
|
+
# Pass arguments to `update_backup` via keyword arguments. Note that at
|
4322
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4323
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4324
|
+
#
|
4325
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
4326
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
4327
|
+
# Backup resource to be updated.
|
4328
|
+
# The fields specified in the update_mask are relative to the resource, not
|
4329
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
4330
|
+
# user does not provide a mask then all fields will be overwritten.
|
4331
|
+
# @param backup [::Google::Cloud::NetApp::V1::Backup, ::Hash]
|
4332
|
+
# Required. The backup being updated
|
4333
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4334
|
+
# @yieldparam result [::Gapic::Operation]
|
4335
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4336
|
+
#
|
4337
|
+
# @return [::Gapic::Operation]
|
4338
|
+
#
|
4339
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4340
|
+
#
|
4341
|
+
# @example Basic example
|
4342
|
+
# require "google/cloud/netapp/v1"
|
4343
|
+
#
|
4344
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4345
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
4346
|
+
#
|
4347
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4348
|
+
# request = Google::Cloud::NetApp::V1::UpdateBackupRequest.new
|
4349
|
+
#
|
4350
|
+
# # Call the update_backup method.
|
4351
|
+
# result = client.update_backup request
|
4352
|
+
#
|
4353
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
4354
|
+
# # check the status of an operation, cancel it, or wait for results.
|
4355
|
+
# # Here is how to wait for a response.
|
4356
|
+
# result.wait_until_done! timeout: 60
|
4357
|
+
# if result.response?
|
4358
|
+
# p result.response
|
4359
|
+
# else
|
4360
|
+
# puts "No response received."
|
4361
|
+
# end
|
4362
|
+
#
|
4363
|
+
def update_backup request, options = nil
|
4364
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4365
|
+
|
4366
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::UpdateBackupRequest
|
4367
|
+
|
4368
|
+
# Converts hash and nil to an options object
|
4369
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4370
|
+
|
4371
|
+
# Customize the options with defaults
|
4372
|
+
call_metadata = @config.rpcs.update_backup.metadata.to_h
|
4373
|
+
|
4374
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
4375
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4376
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4377
|
+
gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
|
4378
|
+
transports_version_send: [:rest]
|
4379
|
+
|
4380
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4381
|
+
|
4382
|
+
options.apply_defaults timeout: @config.rpcs.update_backup.timeout,
|
4383
|
+
metadata: call_metadata,
|
4384
|
+
retry_policy: @config.rpcs.update_backup.retry_policy
|
4385
|
+
|
4386
|
+
options.apply_defaults timeout: @config.timeout,
|
4387
|
+
metadata: @config.metadata,
|
4388
|
+
retry_policy: @config.retry_policy
|
4389
|
+
|
4390
|
+
@net_app_stub.update_backup request, options do |result, operation|
|
4391
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
4392
|
+
yield result, operation if block_given?
|
4393
|
+
return result
|
4394
|
+
end
|
4395
|
+
rescue ::Gapic::Rest::Error => e
|
4396
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4397
|
+
end
|
4398
|
+
|
4399
|
+
##
|
4400
|
+
# Creates new backup policy
|
4401
|
+
#
|
4402
|
+
# @overload create_backup_policy(request, options = nil)
|
4403
|
+
# Pass arguments to `create_backup_policy` via a request object, either of type
|
4404
|
+
# {::Google::Cloud::NetApp::V1::CreateBackupPolicyRequest} or an equivalent Hash.
|
4405
|
+
#
|
4406
|
+
# @param request [::Google::Cloud::NetApp::V1::CreateBackupPolicyRequest, ::Hash]
|
4407
|
+
# A request object representing the call parameters. Required. To specify no
|
4408
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4409
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4410
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4411
|
+
#
|
4412
|
+
# @overload create_backup_policy(parent: nil, backup_policy: nil, backup_policy_id: nil)
|
4413
|
+
# Pass arguments to `create_backup_policy` via keyword arguments. Note that at
|
4414
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4415
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4416
|
+
#
|
4417
|
+
# @param parent [::String]
|
4418
|
+
# Required. The location to create the backup policies of, in the format
|
4419
|
+
# `projects/{project_id}/locations/{location}`
|
4420
|
+
# @param backup_policy [::Google::Cloud::NetApp::V1::BackupPolicy, ::Hash]
|
4421
|
+
# Required. A backupPolicy resource
|
4422
|
+
# @param backup_policy_id [::String]
|
4423
|
+
# Required. The ID to use for the backup policy.
|
4424
|
+
# The ID must be unique within the specified location.
|
4425
|
+
# This value must start with a lowercase letter followed by up to 62
|
4426
|
+
# lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
|
4427
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4428
|
+
# @yieldparam result [::Gapic::Operation]
|
4429
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4430
|
+
#
|
4431
|
+
# @return [::Gapic::Operation]
|
4432
|
+
#
|
4433
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4434
|
+
#
|
4435
|
+
# @example Basic example
|
4436
|
+
# require "google/cloud/netapp/v1"
|
4437
|
+
#
|
4438
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4439
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
4440
|
+
#
|
4441
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4442
|
+
# request = Google::Cloud::NetApp::V1::CreateBackupPolicyRequest.new
|
4443
|
+
#
|
4444
|
+
# # Call the create_backup_policy method.
|
4445
|
+
# result = client.create_backup_policy request
|
4446
|
+
#
|
4447
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
4448
|
+
# # check the status of an operation, cancel it, or wait for results.
|
4449
|
+
# # Here is how to wait for a response.
|
4450
|
+
# result.wait_until_done! timeout: 60
|
4451
|
+
# if result.response?
|
4452
|
+
# p result.response
|
4453
|
+
# else
|
4454
|
+
# puts "No response received."
|
4455
|
+
# end
|
4456
|
+
#
|
4457
|
+
def create_backup_policy request, options = nil
|
4458
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4459
|
+
|
4460
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::CreateBackupPolicyRequest
|
4461
|
+
|
2520
4462
|
# Converts hash and nil to an options object
|
2521
4463
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2522
4464
|
|
2523
4465
|
# Customize the options with defaults
|
2524
|
-
call_metadata = @config.rpcs.
|
4466
|
+
call_metadata = @config.rpcs.create_backup_policy.metadata.to_h
|
2525
4467
|
|
2526
4468
|
# Set x-goog-api-client and x-goog-user-project headers
|
2527
4469
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -2531,15 +4473,15 @@ module Google
|
|
2531
4473
|
|
2532
4474
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2533
4475
|
|
2534
|
-
options.apply_defaults timeout: @config.rpcs.
|
4476
|
+
options.apply_defaults timeout: @config.rpcs.create_backup_policy.timeout,
|
2535
4477
|
metadata: call_metadata,
|
2536
|
-
retry_policy: @config.rpcs.
|
4478
|
+
retry_policy: @config.rpcs.create_backup_policy.retry_policy
|
2537
4479
|
|
2538
4480
|
options.apply_defaults timeout: @config.timeout,
|
2539
4481
|
metadata: @config.metadata,
|
2540
4482
|
retry_policy: @config.retry_policy
|
2541
4483
|
|
2542
|
-
@net_app_stub.
|
4484
|
+
@net_app_stub.create_backup_policy request, options do |result, operation|
|
2543
4485
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2544
4486
|
yield result, operation if block_given?
|
2545
4487
|
return result
|
@@ -2549,26 +4491,201 @@ module Google
|
|
2549
4491
|
end
|
2550
4492
|
|
2551
4493
|
##
|
2552
|
-
#
|
4494
|
+
# Returns the description of the specified backup policy by backup_policy_id.
|
2553
4495
|
#
|
2554
|
-
# @overload
|
2555
|
-
# Pass arguments to `
|
2556
|
-
# {::Google::Cloud::NetApp::V1::
|
4496
|
+
# @overload get_backup_policy(request, options = nil)
|
4497
|
+
# Pass arguments to `get_backup_policy` via a request object, either of type
|
4498
|
+
# {::Google::Cloud::NetApp::V1::GetBackupPolicyRequest} or an equivalent Hash.
|
2557
4499
|
#
|
2558
|
-
# @param request [::Google::Cloud::NetApp::V1::
|
4500
|
+
# @param request [::Google::Cloud::NetApp::V1::GetBackupPolicyRequest, ::Hash]
|
2559
4501
|
# A request object representing the call parameters. Required. To specify no
|
2560
4502
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2561
4503
|
# @param options [::Gapic::CallOptions, ::Hash]
|
2562
4504
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2563
4505
|
#
|
2564
|
-
# @overload
|
2565
|
-
# Pass arguments to `
|
4506
|
+
# @overload get_backup_policy(name: nil)
|
4507
|
+
# Pass arguments to `get_backup_policy` via keyword arguments. Note that at
|
2566
4508
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2567
4509
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2568
4510
|
#
|
2569
4511
|
# @param name [::String]
|
2570
|
-
# Required. The resource name
|
2571
|
-
# projects
|
4512
|
+
# Required. The backupPolicy resource name, in the format
|
4513
|
+
# `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`
|
4514
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4515
|
+
# @yieldparam result [::Google::Cloud::NetApp::V1::BackupPolicy]
|
4516
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4517
|
+
#
|
4518
|
+
# @return [::Google::Cloud::NetApp::V1::BackupPolicy]
|
4519
|
+
#
|
4520
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4521
|
+
#
|
4522
|
+
# @example Basic example
|
4523
|
+
# require "google/cloud/netapp/v1"
|
4524
|
+
#
|
4525
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4526
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
4527
|
+
#
|
4528
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4529
|
+
# request = Google::Cloud::NetApp::V1::GetBackupPolicyRequest.new
|
4530
|
+
#
|
4531
|
+
# # Call the get_backup_policy method.
|
4532
|
+
# result = client.get_backup_policy request
|
4533
|
+
#
|
4534
|
+
# # The returned object is of type Google::Cloud::NetApp::V1::BackupPolicy.
|
4535
|
+
# p result
|
4536
|
+
#
|
4537
|
+
def get_backup_policy request, options = nil
|
4538
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4539
|
+
|
4540
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::GetBackupPolicyRequest
|
4541
|
+
|
4542
|
+
# Converts hash and nil to an options object
|
4543
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4544
|
+
|
4545
|
+
# Customize the options with defaults
|
4546
|
+
call_metadata = @config.rpcs.get_backup_policy.metadata.to_h
|
4547
|
+
|
4548
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
4549
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4550
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4551
|
+
gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
|
4552
|
+
transports_version_send: [:rest]
|
4553
|
+
|
4554
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4555
|
+
|
4556
|
+
options.apply_defaults timeout: @config.rpcs.get_backup_policy.timeout,
|
4557
|
+
metadata: call_metadata,
|
4558
|
+
retry_policy: @config.rpcs.get_backup_policy.retry_policy
|
4559
|
+
|
4560
|
+
options.apply_defaults timeout: @config.timeout,
|
4561
|
+
metadata: @config.metadata,
|
4562
|
+
retry_policy: @config.retry_policy
|
4563
|
+
|
4564
|
+
@net_app_stub.get_backup_policy request, options do |result, operation|
|
4565
|
+
yield result, operation if block_given?
|
4566
|
+
return result
|
4567
|
+
end
|
4568
|
+
rescue ::Gapic::Rest::Error => e
|
4569
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4570
|
+
end
|
4571
|
+
|
4572
|
+
##
|
4573
|
+
# Returns list of all available backup policies.
|
4574
|
+
#
|
4575
|
+
# @overload list_backup_policies(request, options = nil)
|
4576
|
+
# Pass arguments to `list_backup_policies` via a request object, either of type
|
4577
|
+
# {::Google::Cloud::NetApp::V1::ListBackupPoliciesRequest} or an equivalent Hash.
|
4578
|
+
#
|
4579
|
+
# @param request [::Google::Cloud::NetApp::V1::ListBackupPoliciesRequest, ::Hash]
|
4580
|
+
# A request object representing the call parameters. Required. To specify no
|
4581
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4582
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4583
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4584
|
+
#
|
4585
|
+
# @overload list_backup_policies(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
4586
|
+
# Pass arguments to `list_backup_policies` via keyword arguments. Note that at
|
4587
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4588
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4589
|
+
#
|
4590
|
+
# @param parent [::String]
|
4591
|
+
# Required. Parent value for ListBackupPoliciesRequest
|
4592
|
+
# @param page_size [::Integer]
|
4593
|
+
# Requested page size. Server may return fewer items than requested.
|
4594
|
+
# If unspecified, the server will pick an appropriate default.
|
4595
|
+
# @param page_token [::String]
|
4596
|
+
# A token identifying a page of results the server should return.
|
4597
|
+
# @param filter [::String]
|
4598
|
+
# Filtering results
|
4599
|
+
# @param order_by [::String]
|
4600
|
+
# Hint for how to order the results
|
4601
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4602
|
+
# @yieldparam result [::Google::Cloud::NetApp::V1::ListBackupPoliciesResponse]
|
4603
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4604
|
+
#
|
4605
|
+
# @return [::Google::Cloud::NetApp::V1::ListBackupPoliciesResponse]
|
4606
|
+
#
|
4607
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4608
|
+
#
|
4609
|
+
# @example Basic example
|
4610
|
+
# require "google/cloud/netapp/v1"
|
4611
|
+
#
|
4612
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4613
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
4614
|
+
#
|
4615
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4616
|
+
# request = Google::Cloud::NetApp::V1::ListBackupPoliciesRequest.new
|
4617
|
+
#
|
4618
|
+
# # Call the list_backup_policies method.
|
4619
|
+
# result = client.list_backup_policies request
|
4620
|
+
#
|
4621
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
4622
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
4623
|
+
# result.each do |item|
|
4624
|
+
# # Each element is of type ::Google::Cloud::NetApp::V1::BackupPolicy.
|
4625
|
+
# p item
|
4626
|
+
# end
|
4627
|
+
#
|
4628
|
+
def list_backup_policies request, options = nil
|
4629
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4630
|
+
|
4631
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ListBackupPoliciesRequest
|
4632
|
+
|
4633
|
+
# Converts hash and nil to an options object
|
4634
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4635
|
+
|
4636
|
+
# Customize the options with defaults
|
4637
|
+
call_metadata = @config.rpcs.list_backup_policies.metadata.to_h
|
4638
|
+
|
4639
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
4640
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4641
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4642
|
+
gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
|
4643
|
+
transports_version_send: [:rest]
|
4644
|
+
|
4645
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4646
|
+
|
4647
|
+
options.apply_defaults timeout: @config.rpcs.list_backup_policies.timeout,
|
4648
|
+
metadata: call_metadata,
|
4649
|
+
retry_policy: @config.rpcs.list_backup_policies.retry_policy
|
4650
|
+
|
4651
|
+
options.apply_defaults timeout: @config.timeout,
|
4652
|
+
metadata: @config.metadata,
|
4653
|
+
retry_policy: @config.retry_policy
|
4654
|
+
|
4655
|
+
@net_app_stub.list_backup_policies request, options do |result, operation|
|
4656
|
+
yield result, operation if block_given?
|
4657
|
+
return result
|
4658
|
+
end
|
4659
|
+
rescue ::Gapic::Rest::Error => e
|
4660
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4661
|
+
end
|
4662
|
+
|
4663
|
+
##
|
4664
|
+
# Updates settings of a specific backup policy.
|
4665
|
+
#
|
4666
|
+
# @overload update_backup_policy(request, options = nil)
|
4667
|
+
# Pass arguments to `update_backup_policy` via a request object, either of type
|
4668
|
+
# {::Google::Cloud::NetApp::V1::UpdateBackupPolicyRequest} or an equivalent Hash.
|
4669
|
+
#
|
4670
|
+
# @param request [::Google::Cloud::NetApp::V1::UpdateBackupPolicyRequest, ::Hash]
|
4671
|
+
# A request object representing the call parameters. Required. To specify no
|
4672
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4673
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4674
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4675
|
+
#
|
4676
|
+
# @overload update_backup_policy(update_mask: nil, backup_policy: nil)
|
4677
|
+
# Pass arguments to `update_backup_policy` via keyword arguments. Note that at
|
4678
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4679
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4680
|
+
#
|
4681
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
4682
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
4683
|
+
# Backup Policy resource by the update.
|
4684
|
+
# The fields specified in the update_mask are relative to the resource, not
|
4685
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
4686
|
+
# user does not provide a mask then all fields will be overwritten.
|
4687
|
+
# @param backup_policy [::Google::Cloud::NetApp::V1::BackupPolicy, ::Hash]
|
4688
|
+
# Required. The backup policy being updated
|
2572
4689
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
2573
4690
|
# @yieldparam result [::Gapic::Operation]
|
2574
4691
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -2576,16 +4693,39 @@ module Google
|
|
2576
4693
|
# @return [::Gapic::Operation]
|
2577
4694
|
#
|
2578
4695
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2579
|
-
|
4696
|
+
#
|
4697
|
+
# @example Basic example
|
4698
|
+
# require "google/cloud/netapp/v1"
|
4699
|
+
#
|
4700
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4701
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
4702
|
+
#
|
4703
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4704
|
+
# request = Google::Cloud::NetApp::V1::UpdateBackupPolicyRequest.new
|
4705
|
+
#
|
4706
|
+
# # Call the update_backup_policy method.
|
4707
|
+
# result = client.update_backup_policy request
|
4708
|
+
#
|
4709
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
4710
|
+
# # check the status of an operation, cancel it, or wait for results.
|
4711
|
+
# # Here is how to wait for a response.
|
4712
|
+
# result.wait_until_done! timeout: 60
|
4713
|
+
# if result.response?
|
4714
|
+
# p result.response
|
4715
|
+
# else
|
4716
|
+
# puts "No response received."
|
4717
|
+
# end
|
4718
|
+
#
|
4719
|
+
def update_backup_policy request, options = nil
|
2580
4720
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2581
4721
|
|
2582
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::
|
4722
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::UpdateBackupPolicyRequest
|
2583
4723
|
|
2584
4724
|
# Converts hash and nil to an options object
|
2585
4725
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2586
4726
|
|
2587
4727
|
# Customize the options with defaults
|
2588
|
-
call_metadata = @config.rpcs.
|
4728
|
+
call_metadata = @config.rpcs.update_backup_policy.metadata.to_h
|
2589
4729
|
|
2590
4730
|
# Set x-goog-api-client and x-goog-user-project headers
|
2591
4731
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -2595,15 +4735,15 @@ module Google
|
|
2595
4735
|
|
2596
4736
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2597
4737
|
|
2598
|
-
options.apply_defaults timeout: @config.rpcs.
|
4738
|
+
options.apply_defaults timeout: @config.rpcs.update_backup_policy.timeout,
|
2599
4739
|
metadata: call_metadata,
|
2600
|
-
retry_policy: @config.rpcs.
|
4740
|
+
retry_policy: @config.rpcs.update_backup_policy.retry_policy
|
2601
4741
|
|
2602
4742
|
options.apply_defaults timeout: @config.timeout,
|
2603
4743
|
metadata: @config.metadata,
|
2604
4744
|
retry_policy: @config.retry_policy
|
2605
4745
|
|
2606
|
-
@net_app_stub.
|
4746
|
+
@net_app_stub.update_backup_policy request, options do |result, operation|
|
2607
4747
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2608
4748
|
yield result, operation if block_given?
|
2609
4749
|
return result
|
@@ -2613,27 +4753,26 @@ module Google
|
|
2613
4753
|
end
|
2614
4754
|
|
2615
4755
|
##
|
2616
|
-
#
|
2617
|
-
# destination becomes source.
|
4756
|
+
# Warning! This operation will permanently delete the backup policy.
|
2618
4757
|
#
|
2619
|
-
# @overload
|
2620
|
-
# Pass arguments to `
|
2621
|
-
# {::Google::Cloud::NetApp::V1::
|
4758
|
+
# @overload delete_backup_policy(request, options = nil)
|
4759
|
+
# Pass arguments to `delete_backup_policy` via a request object, either of type
|
4760
|
+
# {::Google::Cloud::NetApp::V1::DeleteBackupPolicyRequest} or an equivalent Hash.
|
2622
4761
|
#
|
2623
|
-
# @param request [::Google::Cloud::NetApp::V1::
|
4762
|
+
# @param request [::Google::Cloud::NetApp::V1::DeleteBackupPolicyRequest, ::Hash]
|
2624
4763
|
# A request object representing the call parameters. Required. To specify no
|
2625
4764
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2626
4765
|
# @param options [::Gapic::CallOptions, ::Hash]
|
2627
4766
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2628
4767
|
#
|
2629
|
-
# @overload
|
2630
|
-
# Pass arguments to `
|
4768
|
+
# @overload delete_backup_policy(name: nil)
|
4769
|
+
# Pass arguments to `delete_backup_policy` via keyword arguments. Note that at
|
2631
4770
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2632
4771
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2633
4772
|
#
|
2634
4773
|
# @param name [::String]
|
2635
|
-
# Required. The resource name
|
2636
|
-
# projects
|
4774
|
+
# Required. The backup policy resource name, in the format
|
4775
|
+
# `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`
|
2637
4776
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
2638
4777
|
# @yieldparam result [::Gapic::Operation]
|
2639
4778
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -2641,16 +4780,39 @@ module Google
|
|
2641
4780
|
# @return [::Gapic::Operation]
|
2642
4781
|
#
|
2643
4782
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2644
|
-
|
4783
|
+
#
|
4784
|
+
# @example Basic example
|
4785
|
+
# require "google/cloud/netapp/v1"
|
4786
|
+
#
|
4787
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4788
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
4789
|
+
#
|
4790
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4791
|
+
# request = Google::Cloud::NetApp::V1::DeleteBackupPolicyRequest.new
|
4792
|
+
#
|
4793
|
+
# # Call the delete_backup_policy method.
|
4794
|
+
# result = client.delete_backup_policy request
|
4795
|
+
#
|
4796
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
4797
|
+
# # check the status of an operation, cancel it, or wait for results.
|
4798
|
+
# # Here is how to wait for a response.
|
4799
|
+
# result.wait_until_done! timeout: 60
|
4800
|
+
# if result.response?
|
4801
|
+
# p result.response
|
4802
|
+
# else
|
4803
|
+
# puts "No response received."
|
4804
|
+
# end
|
4805
|
+
#
|
4806
|
+
def delete_backup_policy request, options = nil
|
2645
4807
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2646
4808
|
|
2647
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::
|
4809
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::DeleteBackupPolicyRequest
|
2648
4810
|
|
2649
4811
|
# Converts hash and nil to an options object
|
2650
4812
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2651
4813
|
|
2652
4814
|
# Customize the options with defaults
|
2653
|
-
call_metadata = @config.rpcs.
|
4815
|
+
call_metadata = @config.rpcs.delete_backup_policy.metadata.to_h
|
2654
4816
|
|
2655
4817
|
# Set x-goog-api-client and x-goog-user-project headers
|
2656
4818
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -2660,15 +4822,15 @@ module Google
|
|
2660
4822
|
|
2661
4823
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2662
4824
|
|
2663
|
-
options.apply_defaults timeout: @config.rpcs.
|
4825
|
+
options.apply_defaults timeout: @config.rpcs.delete_backup_policy.timeout,
|
2664
4826
|
metadata: call_metadata,
|
2665
|
-
retry_policy: @config.rpcs.
|
4827
|
+
retry_policy: @config.rpcs.delete_backup_policy.retry_policy
|
2666
4828
|
|
2667
4829
|
options.apply_defaults timeout: @config.timeout,
|
2668
4830
|
metadata: @config.metadata,
|
2669
4831
|
retry_policy: @config.retry_policy
|
2670
4832
|
|
2671
|
-
@net_app_stub.
|
4833
|
+
@net_app_stub.delete_backup_policy request, options do |result, operation|
|
2672
4834
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2673
4835
|
yield result, operation if block_given?
|
2674
4836
|
return result
|
@@ -2765,6 +4927,13 @@ module Google
|
|
2765
4927
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2766
4928
|
config_attr :quota_project, nil, ::String, nil
|
2767
4929
|
|
4930
|
+
# @private
|
4931
|
+
# Overrides for http bindings for the RPCs of this service
|
4932
|
+
# are only used when this service is used as mixin, and only
|
4933
|
+
# by the host service.
|
4934
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
4935
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
4936
|
+
|
2768
4937
|
# @private
|
2769
4938
|
def initialize parent_config = nil
|
2770
4939
|
@parent_config = parent_config unless parent_config.nil?
|
@@ -2982,6 +5151,81 @@ module Google
|
|
2982
5151
|
# @return [::Gapic::Config::Method]
|
2983
5152
|
#
|
2984
5153
|
attr_reader :reverse_replication_direction
|
5154
|
+
##
|
5155
|
+
# RPC-specific configuration for `create_backup_vault`
|
5156
|
+
# @return [::Gapic::Config::Method]
|
5157
|
+
#
|
5158
|
+
attr_reader :create_backup_vault
|
5159
|
+
##
|
5160
|
+
# RPC-specific configuration for `get_backup_vault`
|
5161
|
+
# @return [::Gapic::Config::Method]
|
5162
|
+
#
|
5163
|
+
attr_reader :get_backup_vault
|
5164
|
+
##
|
5165
|
+
# RPC-specific configuration for `list_backup_vaults`
|
5166
|
+
# @return [::Gapic::Config::Method]
|
5167
|
+
#
|
5168
|
+
attr_reader :list_backup_vaults
|
5169
|
+
##
|
5170
|
+
# RPC-specific configuration for `update_backup_vault`
|
5171
|
+
# @return [::Gapic::Config::Method]
|
5172
|
+
#
|
5173
|
+
attr_reader :update_backup_vault
|
5174
|
+
##
|
5175
|
+
# RPC-specific configuration for `delete_backup_vault`
|
5176
|
+
# @return [::Gapic::Config::Method]
|
5177
|
+
#
|
5178
|
+
attr_reader :delete_backup_vault
|
5179
|
+
##
|
5180
|
+
# RPC-specific configuration for `create_backup`
|
5181
|
+
# @return [::Gapic::Config::Method]
|
5182
|
+
#
|
5183
|
+
attr_reader :create_backup
|
5184
|
+
##
|
5185
|
+
# RPC-specific configuration for `get_backup`
|
5186
|
+
# @return [::Gapic::Config::Method]
|
5187
|
+
#
|
5188
|
+
attr_reader :get_backup
|
5189
|
+
##
|
5190
|
+
# RPC-specific configuration for `list_backups`
|
5191
|
+
# @return [::Gapic::Config::Method]
|
5192
|
+
#
|
5193
|
+
attr_reader :list_backups
|
5194
|
+
##
|
5195
|
+
# RPC-specific configuration for `delete_backup`
|
5196
|
+
# @return [::Gapic::Config::Method]
|
5197
|
+
#
|
5198
|
+
attr_reader :delete_backup
|
5199
|
+
##
|
5200
|
+
# RPC-specific configuration for `update_backup`
|
5201
|
+
# @return [::Gapic::Config::Method]
|
5202
|
+
#
|
5203
|
+
attr_reader :update_backup
|
5204
|
+
##
|
5205
|
+
# RPC-specific configuration for `create_backup_policy`
|
5206
|
+
# @return [::Gapic::Config::Method]
|
5207
|
+
#
|
5208
|
+
attr_reader :create_backup_policy
|
5209
|
+
##
|
5210
|
+
# RPC-specific configuration for `get_backup_policy`
|
5211
|
+
# @return [::Gapic::Config::Method]
|
5212
|
+
#
|
5213
|
+
attr_reader :get_backup_policy
|
5214
|
+
##
|
5215
|
+
# RPC-specific configuration for `list_backup_policies`
|
5216
|
+
# @return [::Gapic::Config::Method]
|
5217
|
+
#
|
5218
|
+
attr_reader :list_backup_policies
|
5219
|
+
##
|
5220
|
+
# RPC-specific configuration for `update_backup_policy`
|
5221
|
+
# @return [::Gapic::Config::Method]
|
5222
|
+
#
|
5223
|
+
attr_reader :update_backup_policy
|
5224
|
+
##
|
5225
|
+
# RPC-specific configuration for `delete_backup_policy`
|
5226
|
+
# @return [::Gapic::Config::Method]
|
5227
|
+
#
|
5228
|
+
attr_reader :delete_backup_policy
|
2985
5229
|
|
2986
5230
|
# @private
|
2987
5231
|
def initialize parent_rpcs = nil
|
@@ -3057,6 +5301,36 @@ module Google
|
|
3057
5301
|
@resume_replication = ::Gapic::Config::Method.new resume_replication_config
|
3058
5302
|
reverse_replication_direction_config = parent_rpcs.reverse_replication_direction if parent_rpcs.respond_to? :reverse_replication_direction
|
3059
5303
|
@reverse_replication_direction = ::Gapic::Config::Method.new reverse_replication_direction_config
|
5304
|
+
create_backup_vault_config = parent_rpcs.create_backup_vault if parent_rpcs.respond_to? :create_backup_vault
|
5305
|
+
@create_backup_vault = ::Gapic::Config::Method.new create_backup_vault_config
|
5306
|
+
get_backup_vault_config = parent_rpcs.get_backup_vault if parent_rpcs.respond_to? :get_backup_vault
|
5307
|
+
@get_backup_vault = ::Gapic::Config::Method.new get_backup_vault_config
|
5308
|
+
list_backup_vaults_config = parent_rpcs.list_backup_vaults if parent_rpcs.respond_to? :list_backup_vaults
|
5309
|
+
@list_backup_vaults = ::Gapic::Config::Method.new list_backup_vaults_config
|
5310
|
+
update_backup_vault_config = parent_rpcs.update_backup_vault if parent_rpcs.respond_to? :update_backup_vault
|
5311
|
+
@update_backup_vault = ::Gapic::Config::Method.new update_backup_vault_config
|
5312
|
+
delete_backup_vault_config = parent_rpcs.delete_backup_vault if parent_rpcs.respond_to? :delete_backup_vault
|
5313
|
+
@delete_backup_vault = ::Gapic::Config::Method.new delete_backup_vault_config
|
5314
|
+
create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
|
5315
|
+
@create_backup = ::Gapic::Config::Method.new create_backup_config
|
5316
|
+
get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
|
5317
|
+
@get_backup = ::Gapic::Config::Method.new get_backup_config
|
5318
|
+
list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
|
5319
|
+
@list_backups = ::Gapic::Config::Method.new list_backups_config
|
5320
|
+
delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
|
5321
|
+
@delete_backup = ::Gapic::Config::Method.new delete_backup_config
|
5322
|
+
update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
|
5323
|
+
@update_backup = ::Gapic::Config::Method.new update_backup_config
|
5324
|
+
create_backup_policy_config = parent_rpcs.create_backup_policy if parent_rpcs.respond_to? :create_backup_policy
|
5325
|
+
@create_backup_policy = ::Gapic::Config::Method.new create_backup_policy_config
|
5326
|
+
get_backup_policy_config = parent_rpcs.get_backup_policy if parent_rpcs.respond_to? :get_backup_policy
|
5327
|
+
@get_backup_policy = ::Gapic::Config::Method.new get_backup_policy_config
|
5328
|
+
list_backup_policies_config = parent_rpcs.list_backup_policies if parent_rpcs.respond_to? :list_backup_policies
|
5329
|
+
@list_backup_policies = ::Gapic::Config::Method.new list_backup_policies_config
|
5330
|
+
update_backup_policy_config = parent_rpcs.update_backup_policy if parent_rpcs.respond_to? :update_backup_policy
|
5331
|
+
@update_backup_policy = ::Gapic::Config::Method.new update_backup_policy_config
|
5332
|
+
delete_backup_policy_config = parent_rpcs.delete_backup_policy if parent_rpcs.respond_to? :delete_backup_policy
|
5333
|
+
@delete_backup_policy = ::Gapic::Config::Method.new delete_backup_policy_config
|
3060
5334
|
|
3061
5335
|
yield self if block_given?
|
3062
5336
|
end
|