google-cloud-netapp-v1 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +72 -99
- 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/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 +1758 -120
- data/lib/google/cloud/netapp/v1/netapp/operations.rb +28 -6
- data/lib/google/cloud/netapp/v1/netapp/paths.rb +59 -0
- data/lib/google/cloud/netapp/v1/netapp/rest/client.rb +1649 -116
- data/lib/google/cloud/netapp/v1/netapp/rest/operations.rb +33 -8
- data/lib/google/cloud/netapp/v1/netapp/rest/service_stub.rb +1054 -151
- data/lib/google/cloud/netapp/v1/replication_pb.rb +1 -1
- 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 +2 -1
- data/proto_docs/google/api/client.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 +2 -2
- data/proto_docs/google/cloud/netapp/v1/replication.rb +2 -2
- data/proto_docs/google/cloud/netapp/v1/snapshot.rb +2 -2
- data/proto_docs/google/cloud/netapp/v1/storage_pool.rb +5 -3
- data/proto_docs/google/cloud/netapp/v1/volume.rb +31 -2
- metadata +13 -7
@@ -30,16 +30,28 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
def initialize endpoint:, credentials:
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
34
34
|
# These require statements are intentionally placed here to initialize
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
39
|
+
endpoint_template: endpoint_template,
|
40
|
+
universe_domain: universe_domain,
|
41
|
+
credentials: credentials,
|
39
42
|
numeric_enums: true,
|
40
43
|
raise_faraday_errors: false
|
41
44
|
end
|
42
45
|
|
46
|
+
##
|
47
|
+
# The effective universe domain
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
def universe_domain
|
52
|
+
@client_stub.universe_domain
|
53
|
+
end
|
54
|
+
|
43
55
|
##
|
44
56
|
# Baseline implementation for the list_storage_pools REST call
|
45
57
|
#
|
@@ -1409,185 +1421,755 @@ module Google
|
|
1409
1421
|
end
|
1410
1422
|
|
1411
1423
|
##
|
1412
|
-
#
|
1413
|
-
#
|
1414
|
-
# GRPC transcoding helper method for the list_storage_pools REST call
|
1424
|
+
# Baseline implementation for the create_backup_vault REST call
|
1415
1425
|
#
|
1416
|
-
# @param request_pb [::Google::Cloud::NetApp::V1::
|
1426
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::CreateBackupVaultRequest]
|
1417
1427
|
# A request object representing the call parameters. Required.
|
1418
|
-
# @
|
1419
|
-
#
|
1420
|
-
def self.transcode_list_storage_pools_request request_pb
|
1421
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1422
|
-
.with_bindings(
|
1423
|
-
uri_method: :get,
|
1424
|
-
uri_template: "/v1/{parent}/storagePools",
|
1425
|
-
matches: [
|
1426
|
-
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1427
|
-
]
|
1428
|
-
)
|
1429
|
-
transcoder.transcode request_pb
|
1430
|
-
end
|
1431
|
-
|
1432
|
-
##
|
1433
|
-
# @private
|
1428
|
+
# @param options [::Gapic::CallOptions]
|
1429
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1434
1430
|
#
|
1435
|
-
#
|
1431
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1432
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1433
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1436
1434
|
#
|
1437
|
-
# @
|
1438
|
-
# A
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1435
|
+
# @return [::Google::Longrunning::Operation]
|
1436
|
+
# A result object deserialized from the server's reply
|
1437
|
+
def create_backup_vault request_pb, options = nil
|
1438
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1439
|
+
|
1440
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_vault_request request_pb
|
1441
|
+
query_string_params = if query_string_params.any?
|
1442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1443
|
+
else
|
1444
|
+
{}
|
1445
|
+
end
|
1446
|
+
|
1447
|
+
response = @client_stub.make_http_request(
|
1448
|
+
verb,
|
1449
|
+
uri: uri,
|
1450
|
+
body: body || "",
|
1451
|
+
params: query_string_params,
|
1452
|
+
options: options
|
1453
|
+
)
|
1454
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1455
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1456
|
+
|
1457
|
+
yield result, operation if block_given?
|
1458
|
+
result
|
1452
1459
|
end
|
1453
1460
|
|
1454
1461
|
##
|
1455
|
-
#
|
1456
|
-
#
|
1457
|
-
# GRPC transcoding helper method for the get_storage_pool REST call
|
1462
|
+
# Baseline implementation for the get_backup_vault REST call
|
1458
1463
|
#
|
1459
|
-
# @param request_pb [::Google::Cloud::NetApp::V1::
|
1464
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::GetBackupVaultRequest]
|
1460
1465
|
# A request object representing the call parameters. Required.
|
1461
|
-
# @
|
1462
|
-
#
|
1463
|
-
def self.transcode_get_storage_pool_request request_pb
|
1464
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1465
|
-
.with_bindings(
|
1466
|
-
uri_method: :get,
|
1467
|
-
uri_template: "/v1/{name}",
|
1468
|
-
matches: [
|
1469
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/storagePools/[^/]+/?$}, false]
|
1470
|
-
]
|
1471
|
-
)
|
1472
|
-
transcoder.transcode request_pb
|
1473
|
-
end
|
1474
|
-
|
1475
|
-
##
|
1476
|
-
# @private
|
1466
|
+
# @param options [::Gapic::CallOptions]
|
1467
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1477
1468
|
#
|
1478
|
-
#
|
1469
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1470
|
+
# @yieldparam result [::Google::Cloud::NetApp::V1::BackupVault]
|
1471
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1479
1472
|
#
|
1480
|
-
# @
|
1481
|
-
# A
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1473
|
+
# @return [::Google::Cloud::NetApp::V1::BackupVault]
|
1474
|
+
# A result object deserialized from the server's reply
|
1475
|
+
def get_backup_vault request_pb, options = nil
|
1476
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1477
|
+
|
1478
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_vault_request request_pb
|
1479
|
+
query_string_params = if query_string_params.any?
|
1480
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1481
|
+
else
|
1482
|
+
{}
|
1483
|
+
end
|
1484
|
+
|
1485
|
+
response = @client_stub.make_http_request(
|
1486
|
+
verb,
|
1487
|
+
uri: uri,
|
1488
|
+
body: body || "",
|
1489
|
+
params: query_string_params,
|
1490
|
+
options: options
|
1491
|
+
)
|
1492
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1493
|
+
result = ::Google::Cloud::NetApp::V1::BackupVault.decode_json response.body, ignore_unknown_fields: true
|
1494
|
+
|
1495
|
+
yield result, operation if block_given?
|
1496
|
+
result
|
1495
1497
|
end
|
1496
1498
|
|
1497
1499
|
##
|
1498
|
-
#
|
1499
|
-
#
|
1500
|
-
# GRPC transcoding helper method for the delete_storage_pool REST call
|
1500
|
+
# Baseline implementation for the list_backup_vaults REST call
|
1501
1501
|
#
|
1502
|
-
# @param request_pb [::Google::Cloud::NetApp::V1::
|
1502
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::ListBackupVaultsRequest]
|
1503
1503
|
# A request object representing the call parameters. Required.
|
1504
|
-
# @
|
1505
|
-
#
|
1506
|
-
def self.transcode_delete_storage_pool_request request_pb
|
1507
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1508
|
-
.with_bindings(
|
1509
|
-
uri_method: :delete,
|
1510
|
-
uri_template: "/v1/{name}",
|
1511
|
-
matches: [
|
1512
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/storagePools/[^/]+/?$}, false]
|
1513
|
-
]
|
1514
|
-
)
|
1515
|
-
transcoder.transcode request_pb
|
1516
|
-
end
|
1517
|
-
|
1518
|
-
##
|
1519
|
-
# @private
|
1504
|
+
# @param options [::Gapic::CallOptions]
|
1505
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1520
1506
|
#
|
1521
|
-
#
|
1507
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1508
|
+
# @yieldparam result [::Google::Cloud::NetApp::V1::ListBackupVaultsResponse]
|
1509
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1522
1510
|
#
|
1523
|
-
# @
|
1524
|
-
# A
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1511
|
+
# @return [::Google::Cloud::NetApp::V1::ListBackupVaultsResponse]
|
1512
|
+
# A result object deserialized from the server's reply
|
1513
|
+
def list_backup_vaults request_pb, options = nil
|
1514
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1515
|
+
|
1516
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_backup_vaults_request request_pb
|
1517
|
+
query_string_params = if query_string_params.any?
|
1518
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1519
|
+
else
|
1520
|
+
{}
|
1521
|
+
end
|
1522
|
+
|
1523
|
+
response = @client_stub.make_http_request(
|
1524
|
+
verb,
|
1525
|
+
uri: uri,
|
1526
|
+
body: body || "",
|
1527
|
+
params: query_string_params,
|
1528
|
+
options: options
|
1529
|
+
)
|
1530
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1531
|
+
result = ::Google::Cloud::NetApp::V1::ListBackupVaultsResponse.decode_json response.body, ignore_unknown_fields: true
|
1532
|
+
|
1533
|
+
yield result, operation if block_given?
|
1534
|
+
result
|
1537
1535
|
end
|
1538
1536
|
|
1539
1537
|
##
|
1540
|
-
#
|
1538
|
+
# Baseline implementation for the update_backup_vault REST call
|
1541
1539
|
#
|
1542
|
-
#
|
1543
|
-
#
|
1544
|
-
# @param request_pb [::Google::Cloud::NetApp::V1::GetVolumeRequest]
|
1540
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::UpdateBackupVaultRequest]
|
1545
1541
|
# A request object representing the call parameters. Required.
|
1546
|
-
# @
|
1547
|
-
#
|
1548
|
-
def self.transcode_get_volume_request request_pb
|
1549
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1550
|
-
.with_bindings(
|
1551
|
-
uri_method: :get,
|
1552
|
-
uri_template: "/v1/{name}",
|
1553
|
-
matches: [
|
1554
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/?$}, false]
|
1555
|
-
]
|
1556
|
-
)
|
1557
|
-
transcoder.transcode request_pb
|
1558
|
-
end
|
1559
|
-
|
1560
|
-
##
|
1561
|
-
# @private
|
1542
|
+
# @param options [::Gapic::CallOptions]
|
1543
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1562
1544
|
#
|
1563
|
-
#
|
1545
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1546
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1547
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1564
1548
|
#
|
1565
|
-
# @
|
1566
|
-
# A
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1549
|
+
# @return [::Google::Longrunning::Operation]
|
1550
|
+
# A result object deserialized from the server's reply
|
1551
|
+
def update_backup_vault request_pb, options = nil
|
1552
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1553
|
+
|
1554
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_vault_request request_pb
|
1555
|
+
query_string_params = if query_string_params.any?
|
1556
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1557
|
+
else
|
1558
|
+
{}
|
1559
|
+
end
|
1560
|
+
|
1561
|
+
response = @client_stub.make_http_request(
|
1562
|
+
verb,
|
1563
|
+
uri: uri,
|
1564
|
+
body: body || "",
|
1565
|
+
params: query_string_params,
|
1566
|
+
options: options
|
1567
|
+
)
|
1568
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1569
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1570
|
+
|
1571
|
+
yield result, operation if block_given?
|
1572
|
+
result
|
1580
1573
|
end
|
1581
1574
|
|
1582
1575
|
##
|
1583
|
-
#
|
1584
|
-
#
|
1585
|
-
# GRPC transcoding helper method for the update_volume REST call
|
1576
|
+
# Baseline implementation for the delete_backup_vault REST call
|
1586
1577
|
#
|
1587
|
-
# @param request_pb [::Google::Cloud::NetApp::V1::
|
1578
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::DeleteBackupVaultRequest]
|
1588
1579
|
# A request object representing the call parameters. Required.
|
1589
|
-
# @
|
1590
|
-
#
|
1580
|
+
# @param options [::Gapic::CallOptions]
|
1581
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1582
|
+
#
|
1583
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1584
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1585
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1586
|
+
#
|
1587
|
+
# @return [::Google::Longrunning::Operation]
|
1588
|
+
# A result object deserialized from the server's reply
|
1589
|
+
def delete_backup_vault request_pb, options = nil
|
1590
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1591
|
+
|
1592
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_vault_request request_pb
|
1593
|
+
query_string_params = if query_string_params.any?
|
1594
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1595
|
+
else
|
1596
|
+
{}
|
1597
|
+
end
|
1598
|
+
|
1599
|
+
response = @client_stub.make_http_request(
|
1600
|
+
verb,
|
1601
|
+
uri: uri,
|
1602
|
+
body: body || "",
|
1603
|
+
params: query_string_params,
|
1604
|
+
options: options
|
1605
|
+
)
|
1606
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1607
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1608
|
+
|
1609
|
+
yield result, operation if block_given?
|
1610
|
+
result
|
1611
|
+
end
|
1612
|
+
|
1613
|
+
##
|
1614
|
+
# Baseline implementation for the create_backup REST call
|
1615
|
+
#
|
1616
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::CreateBackupRequest]
|
1617
|
+
# A request object representing the call parameters. Required.
|
1618
|
+
# @param options [::Gapic::CallOptions]
|
1619
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1620
|
+
#
|
1621
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1622
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1623
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1624
|
+
#
|
1625
|
+
# @return [::Google::Longrunning::Operation]
|
1626
|
+
# A result object deserialized from the server's reply
|
1627
|
+
def create_backup request_pb, options = nil
|
1628
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1629
|
+
|
1630
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_request request_pb
|
1631
|
+
query_string_params = if query_string_params.any?
|
1632
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1633
|
+
else
|
1634
|
+
{}
|
1635
|
+
end
|
1636
|
+
|
1637
|
+
response = @client_stub.make_http_request(
|
1638
|
+
verb,
|
1639
|
+
uri: uri,
|
1640
|
+
body: body || "",
|
1641
|
+
params: query_string_params,
|
1642
|
+
options: options
|
1643
|
+
)
|
1644
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1645
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1646
|
+
|
1647
|
+
yield result, operation if block_given?
|
1648
|
+
result
|
1649
|
+
end
|
1650
|
+
|
1651
|
+
##
|
1652
|
+
# Baseline implementation for the get_backup REST call
|
1653
|
+
#
|
1654
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::GetBackupRequest]
|
1655
|
+
# A request object representing the call parameters. Required.
|
1656
|
+
# @param options [::Gapic::CallOptions]
|
1657
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1658
|
+
#
|
1659
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1660
|
+
# @yieldparam result [::Google::Cloud::NetApp::V1::Backup]
|
1661
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1662
|
+
#
|
1663
|
+
# @return [::Google::Cloud::NetApp::V1::Backup]
|
1664
|
+
# A result object deserialized from the server's reply
|
1665
|
+
def get_backup request_pb, options = nil
|
1666
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1667
|
+
|
1668
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_request request_pb
|
1669
|
+
query_string_params = if query_string_params.any?
|
1670
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1671
|
+
else
|
1672
|
+
{}
|
1673
|
+
end
|
1674
|
+
|
1675
|
+
response = @client_stub.make_http_request(
|
1676
|
+
verb,
|
1677
|
+
uri: uri,
|
1678
|
+
body: body || "",
|
1679
|
+
params: query_string_params,
|
1680
|
+
options: options
|
1681
|
+
)
|
1682
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1683
|
+
result = ::Google::Cloud::NetApp::V1::Backup.decode_json response.body, ignore_unknown_fields: true
|
1684
|
+
|
1685
|
+
yield result, operation if block_given?
|
1686
|
+
result
|
1687
|
+
end
|
1688
|
+
|
1689
|
+
##
|
1690
|
+
# Baseline implementation for the list_backups REST call
|
1691
|
+
#
|
1692
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::ListBackupsRequest]
|
1693
|
+
# A request object representing the call parameters. Required.
|
1694
|
+
# @param options [::Gapic::CallOptions]
|
1695
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1696
|
+
#
|
1697
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1698
|
+
# @yieldparam result [::Google::Cloud::NetApp::V1::ListBackupsResponse]
|
1699
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1700
|
+
#
|
1701
|
+
# @return [::Google::Cloud::NetApp::V1::ListBackupsResponse]
|
1702
|
+
# A result object deserialized from the server's reply
|
1703
|
+
def list_backups request_pb, options = nil
|
1704
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1705
|
+
|
1706
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_backups_request request_pb
|
1707
|
+
query_string_params = if query_string_params.any?
|
1708
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1709
|
+
else
|
1710
|
+
{}
|
1711
|
+
end
|
1712
|
+
|
1713
|
+
response = @client_stub.make_http_request(
|
1714
|
+
verb,
|
1715
|
+
uri: uri,
|
1716
|
+
body: body || "",
|
1717
|
+
params: query_string_params,
|
1718
|
+
options: options
|
1719
|
+
)
|
1720
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1721
|
+
result = ::Google::Cloud::NetApp::V1::ListBackupsResponse.decode_json response.body, ignore_unknown_fields: true
|
1722
|
+
|
1723
|
+
yield result, operation if block_given?
|
1724
|
+
result
|
1725
|
+
end
|
1726
|
+
|
1727
|
+
##
|
1728
|
+
# Baseline implementation for the delete_backup REST call
|
1729
|
+
#
|
1730
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::DeleteBackupRequest]
|
1731
|
+
# A request object representing the call parameters. Required.
|
1732
|
+
# @param options [::Gapic::CallOptions]
|
1733
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1734
|
+
#
|
1735
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1736
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1737
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1738
|
+
#
|
1739
|
+
# @return [::Google::Longrunning::Operation]
|
1740
|
+
# A result object deserialized from the server's reply
|
1741
|
+
def delete_backup request_pb, options = nil
|
1742
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1743
|
+
|
1744
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_request request_pb
|
1745
|
+
query_string_params = if query_string_params.any?
|
1746
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1747
|
+
else
|
1748
|
+
{}
|
1749
|
+
end
|
1750
|
+
|
1751
|
+
response = @client_stub.make_http_request(
|
1752
|
+
verb,
|
1753
|
+
uri: uri,
|
1754
|
+
body: body || "",
|
1755
|
+
params: query_string_params,
|
1756
|
+
options: options
|
1757
|
+
)
|
1758
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1759
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1760
|
+
|
1761
|
+
yield result, operation if block_given?
|
1762
|
+
result
|
1763
|
+
end
|
1764
|
+
|
1765
|
+
##
|
1766
|
+
# Baseline implementation for the update_backup REST call
|
1767
|
+
#
|
1768
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::UpdateBackupRequest]
|
1769
|
+
# A request object representing the call parameters. Required.
|
1770
|
+
# @param options [::Gapic::CallOptions]
|
1771
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1772
|
+
#
|
1773
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1774
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1775
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1776
|
+
#
|
1777
|
+
# @return [::Google::Longrunning::Operation]
|
1778
|
+
# A result object deserialized from the server's reply
|
1779
|
+
def update_backup request_pb, options = nil
|
1780
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1781
|
+
|
1782
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_request request_pb
|
1783
|
+
query_string_params = if query_string_params.any?
|
1784
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1785
|
+
else
|
1786
|
+
{}
|
1787
|
+
end
|
1788
|
+
|
1789
|
+
response = @client_stub.make_http_request(
|
1790
|
+
verb,
|
1791
|
+
uri: uri,
|
1792
|
+
body: body || "",
|
1793
|
+
params: query_string_params,
|
1794
|
+
options: options
|
1795
|
+
)
|
1796
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1797
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1798
|
+
|
1799
|
+
yield result, operation if block_given?
|
1800
|
+
result
|
1801
|
+
end
|
1802
|
+
|
1803
|
+
##
|
1804
|
+
# Baseline implementation for the create_backup_policy REST call
|
1805
|
+
#
|
1806
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::CreateBackupPolicyRequest]
|
1807
|
+
# A request object representing the call parameters. Required.
|
1808
|
+
# @param options [::Gapic::CallOptions]
|
1809
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1810
|
+
#
|
1811
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1812
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1813
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1814
|
+
#
|
1815
|
+
# @return [::Google::Longrunning::Operation]
|
1816
|
+
# A result object deserialized from the server's reply
|
1817
|
+
def create_backup_policy request_pb, options = nil
|
1818
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1819
|
+
|
1820
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_policy_request request_pb
|
1821
|
+
query_string_params = if query_string_params.any?
|
1822
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1823
|
+
else
|
1824
|
+
{}
|
1825
|
+
end
|
1826
|
+
|
1827
|
+
response = @client_stub.make_http_request(
|
1828
|
+
verb,
|
1829
|
+
uri: uri,
|
1830
|
+
body: body || "",
|
1831
|
+
params: query_string_params,
|
1832
|
+
options: options
|
1833
|
+
)
|
1834
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1835
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1836
|
+
|
1837
|
+
yield result, operation if block_given?
|
1838
|
+
result
|
1839
|
+
end
|
1840
|
+
|
1841
|
+
##
|
1842
|
+
# Baseline implementation for the get_backup_policy REST call
|
1843
|
+
#
|
1844
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::GetBackupPolicyRequest]
|
1845
|
+
# A request object representing the call parameters. Required.
|
1846
|
+
# @param options [::Gapic::CallOptions]
|
1847
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1848
|
+
#
|
1849
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1850
|
+
# @yieldparam result [::Google::Cloud::NetApp::V1::BackupPolicy]
|
1851
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1852
|
+
#
|
1853
|
+
# @return [::Google::Cloud::NetApp::V1::BackupPolicy]
|
1854
|
+
# A result object deserialized from the server's reply
|
1855
|
+
def get_backup_policy request_pb, options = nil
|
1856
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1857
|
+
|
1858
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_policy_request request_pb
|
1859
|
+
query_string_params = if query_string_params.any?
|
1860
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1861
|
+
else
|
1862
|
+
{}
|
1863
|
+
end
|
1864
|
+
|
1865
|
+
response = @client_stub.make_http_request(
|
1866
|
+
verb,
|
1867
|
+
uri: uri,
|
1868
|
+
body: body || "",
|
1869
|
+
params: query_string_params,
|
1870
|
+
options: options
|
1871
|
+
)
|
1872
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1873
|
+
result = ::Google::Cloud::NetApp::V1::BackupPolicy.decode_json response.body, ignore_unknown_fields: true
|
1874
|
+
|
1875
|
+
yield result, operation if block_given?
|
1876
|
+
result
|
1877
|
+
end
|
1878
|
+
|
1879
|
+
##
|
1880
|
+
# Baseline implementation for the list_backup_policies REST call
|
1881
|
+
#
|
1882
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::ListBackupPoliciesRequest]
|
1883
|
+
# A request object representing the call parameters. Required.
|
1884
|
+
# @param options [::Gapic::CallOptions]
|
1885
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1886
|
+
#
|
1887
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1888
|
+
# @yieldparam result [::Google::Cloud::NetApp::V1::ListBackupPoliciesResponse]
|
1889
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1890
|
+
#
|
1891
|
+
# @return [::Google::Cloud::NetApp::V1::ListBackupPoliciesResponse]
|
1892
|
+
# A result object deserialized from the server's reply
|
1893
|
+
def list_backup_policies request_pb, options = nil
|
1894
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1895
|
+
|
1896
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_backup_policies_request request_pb
|
1897
|
+
query_string_params = if query_string_params.any?
|
1898
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1899
|
+
else
|
1900
|
+
{}
|
1901
|
+
end
|
1902
|
+
|
1903
|
+
response = @client_stub.make_http_request(
|
1904
|
+
verb,
|
1905
|
+
uri: uri,
|
1906
|
+
body: body || "",
|
1907
|
+
params: query_string_params,
|
1908
|
+
options: options
|
1909
|
+
)
|
1910
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1911
|
+
result = ::Google::Cloud::NetApp::V1::ListBackupPoliciesResponse.decode_json response.body, ignore_unknown_fields: true
|
1912
|
+
|
1913
|
+
yield result, operation if block_given?
|
1914
|
+
result
|
1915
|
+
end
|
1916
|
+
|
1917
|
+
##
|
1918
|
+
# Baseline implementation for the update_backup_policy REST call
|
1919
|
+
#
|
1920
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::UpdateBackupPolicyRequest]
|
1921
|
+
# A request object representing the call parameters. Required.
|
1922
|
+
# @param options [::Gapic::CallOptions]
|
1923
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1924
|
+
#
|
1925
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1926
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1927
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1928
|
+
#
|
1929
|
+
# @return [::Google::Longrunning::Operation]
|
1930
|
+
# A result object deserialized from the server's reply
|
1931
|
+
def update_backup_policy request_pb, options = nil
|
1932
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1933
|
+
|
1934
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_policy_request request_pb
|
1935
|
+
query_string_params = if query_string_params.any?
|
1936
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1937
|
+
else
|
1938
|
+
{}
|
1939
|
+
end
|
1940
|
+
|
1941
|
+
response = @client_stub.make_http_request(
|
1942
|
+
verb,
|
1943
|
+
uri: uri,
|
1944
|
+
body: body || "",
|
1945
|
+
params: query_string_params,
|
1946
|
+
options: options
|
1947
|
+
)
|
1948
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1949
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1950
|
+
|
1951
|
+
yield result, operation if block_given?
|
1952
|
+
result
|
1953
|
+
end
|
1954
|
+
|
1955
|
+
##
|
1956
|
+
# Baseline implementation for the delete_backup_policy REST call
|
1957
|
+
#
|
1958
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::DeleteBackupPolicyRequest]
|
1959
|
+
# A request object representing the call parameters. Required.
|
1960
|
+
# @param options [::Gapic::CallOptions]
|
1961
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1962
|
+
#
|
1963
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1964
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1965
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1966
|
+
#
|
1967
|
+
# @return [::Google::Longrunning::Operation]
|
1968
|
+
# A result object deserialized from the server's reply
|
1969
|
+
def delete_backup_policy request_pb, options = nil
|
1970
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1971
|
+
|
1972
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_policy_request request_pb
|
1973
|
+
query_string_params = if query_string_params.any?
|
1974
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1975
|
+
else
|
1976
|
+
{}
|
1977
|
+
end
|
1978
|
+
|
1979
|
+
response = @client_stub.make_http_request(
|
1980
|
+
verb,
|
1981
|
+
uri: uri,
|
1982
|
+
body: body || "",
|
1983
|
+
params: query_string_params,
|
1984
|
+
options: options
|
1985
|
+
)
|
1986
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1987
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1988
|
+
|
1989
|
+
yield result, operation if block_given?
|
1990
|
+
result
|
1991
|
+
end
|
1992
|
+
|
1993
|
+
##
|
1994
|
+
# @private
|
1995
|
+
#
|
1996
|
+
# GRPC transcoding helper method for the list_storage_pools REST call
|
1997
|
+
#
|
1998
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::ListStoragePoolsRequest]
|
1999
|
+
# A request object representing the call parameters. Required.
|
2000
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2001
|
+
# Uri, Body, Query string parameters
|
2002
|
+
def self.transcode_list_storage_pools_request request_pb
|
2003
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2004
|
+
.with_bindings(
|
2005
|
+
uri_method: :get,
|
2006
|
+
uri_template: "/v1/{parent}/storagePools",
|
2007
|
+
matches: [
|
2008
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2009
|
+
]
|
2010
|
+
)
|
2011
|
+
transcoder.transcode request_pb
|
2012
|
+
end
|
2013
|
+
|
2014
|
+
##
|
2015
|
+
# @private
|
2016
|
+
#
|
2017
|
+
# GRPC transcoding helper method for the create_storage_pool REST call
|
2018
|
+
#
|
2019
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::CreateStoragePoolRequest]
|
2020
|
+
# A request object representing the call parameters. Required.
|
2021
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2022
|
+
# Uri, Body, Query string parameters
|
2023
|
+
def self.transcode_create_storage_pool_request request_pb
|
2024
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2025
|
+
.with_bindings(
|
2026
|
+
uri_method: :post,
|
2027
|
+
uri_template: "/v1/{parent}/storagePools",
|
2028
|
+
body: "storage_pool",
|
2029
|
+
matches: [
|
2030
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2031
|
+
]
|
2032
|
+
)
|
2033
|
+
transcoder.transcode request_pb
|
2034
|
+
end
|
2035
|
+
|
2036
|
+
##
|
2037
|
+
# @private
|
2038
|
+
#
|
2039
|
+
# GRPC transcoding helper method for the get_storage_pool REST call
|
2040
|
+
#
|
2041
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::GetStoragePoolRequest]
|
2042
|
+
# A request object representing the call parameters. Required.
|
2043
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2044
|
+
# Uri, Body, Query string parameters
|
2045
|
+
def self.transcode_get_storage_pool_request request_pb
|
2046
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2047
|
+
.with_bindings(
|
2048
|
+
uri_method: :get,
|
2049
|
+
uri_template: "/v1/{name}",
|
2050
|
+
matches: [
|
2051
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/storagePools/[^/]+/?$}, false]
|
2052
|
+
]
|
2053
|
+
)
|
2054
|
+
transcoder.transcode request_pb
|
2055
|
+
end
|
2056
|
+
|
2057
|
+
##
|
2058
|
+
# @private
|
2059
|
+
#
|
2060
|
+
# GRPC transcoding helper method for the update_storage_pool REST call
|
2061
|
+
#
|
2062
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::UpdateStoragePoolRequest]
|
2063
|
+
# A request object representing the call parameters. Required.
|
2064
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2065
|
+
# Uri, Body, Query string parameters
|
2066
|
+
def self.transcode_update_storage_pool_request request_pb
|
2067
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2068
|
+
.with_bindings(
|
2069
|
+
uri_method: :patch,
|
2070
|
+
uri_template: "/v1/{storage_pool.name}",
|
2071
|
+
body: "storage_pool",
|
2072
|
+
matches: [
|
2073
|
+
["storage_pool.name", %r{^projects/[^/]+/locations/[^/]+/storagePools/[^/]+/?$}, false]
|
2074
|
+
]
|
2075
|
+
)
|
2076
|
+
transcoder.transcode request_pb
|
2077
|
+
end
|
2078
|
+
|
2079
|
+
##
|
2080
|
+
# @private
|
2081
|
+
#
|
2082
|
+
# GRPC transcoding helper method for the delete_storage_pool REST call
|
2083
|
+
#
|
2084
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::DeleteStoragePoolRequest]
|
2085
|
+
# A request object representing the call parameters. Required.
|
2086
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2087
|
+
# Uri, Body, Query string parameters
|
2088
|
+
def self.transcode_delete_storage_pool_request request_pb
|
2089
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2090
|
+
.with_bindings(
|
2091
|
+
uri_method: :delete,
|
2092
|
+
uri_template: "/v1/{name}",
|
2093
|
+
matches: [
|
2094
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/storagePools/[^/]+/?$}, false]
|
2095
|
+
]
|
2096
|
+
)
|
2097
|
+
transcoder.transcode request_pb
|
2098
|
+
end
|
2099
|
+
|
2100
|
+
##
|
2101
|
+
# @private
|
2102
|
+
#
|
2103
|
+
# GRPC transcoding helper method for the list_volumes REST call
|
2104
|
+
#
|
2105
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::ListVolumesRequest]
|
2106
|
+
# A request object representing the call parameters. Required.
|
2107
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2108
|
+
# Uri, Body, Query string parameters
|
2109
|
+
def self.transcode_list_volumes_request request_pb
|
2110
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2111
|
+
.with_bindings(
|
2112
|
+
uri_method: :get,
|
2113
|
+
uri_template: "/v1/{parent}/volumes",
|
2114
|
+
matches: [
|
2115
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2116
|
+
]
|
2117
|
+
)
|
2118
|
+
transcoder.transcode request_pb
|
2119
|
+
end
|
2120
|
+
|
2121
|
+
##
|
2122
|
+
# @private
|
2123
|
+
#
|
2124
|
+
# GRPC transcoding helper method for the get_volume REST call
|
2125
|
+
#
|
2126
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::GetVolumeRequest]
|
2127
|
+
# A request object representing the call parameters. Required.
|
2128
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2129
|
+
# Uri, Body, Query string parameters
|
2130
|
+
def self.transcode_get_volume_request request_pb
|
2131
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2132
|
+
.with_bindings(
|
2133
|
+
uri_method: :get,
|
2134
|
+
uri_template: "/v1/{name}",
|
2135
|
+
matches: [
|
2136
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/?$}, false]
|
2137
|
+
]
|
2138
|
+
)
|
2139
|
+
transcoder.transcode request_pb
|
2140
|
+
end
|
2141
|
+
|
2142
|
+
##
|
2143
|
+
# @private
|
2144
|
+
#
|
2145
|
+
# GRPC transcoding helper method for the create_volume REST call
|
2146
|
+
#
|
2147
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::CreateVolumeRequest]
|
2148
|
+
# A request object representing the call parameters. Required.
|
2149
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2150
|
+
# Uri, Body, Query string parameters
|
2151
|
+
def self.transcode_create_volume_request request_pb
|
2152
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2153
|
+
.with_bindings(
|
2154
|
+
uri_method: :post,
|
2155
|
+
uri_template: "/v1/{parent}/volumes",
|
2156
|
+
body: "volume",
|
2157
|
+
matches: [
|
2158
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2159
|
+
]
|
2160
|
+
)
|
2161
|
+
transcoder.transcode request_pb
|
2162
|
+
end
|
2163
|
+
|
2164
|
+
##
|
2165
|
+
# @private
|
2166
|
+
#
|
2167
|
+
# GRPC transcoding helper method for the update_volume REST call
|
2168
|
+
#
|
2169
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::UpdateVolumeRequest]
|
2170
|
+
# A request object representing the call parameters. Required.
|
2171
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2172
|
+
# Uri, Body, Query string parameters
|
1591
2173
|
def self.transcode_update_volume_request request_pb
|
1592
2174
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1593
2175
|
.with_bindings(
|
@@ -2181,6 +2763,327 @@ module Google
|
|
2181
2763
|
)
|
2182
2764
|
transcoder.transcode request_pb
|
2183
2765
|
end
|
2766
|
+
|
2767
|
+
##
|
2768
|
+
# @private
|
2769
|
+
#
|
2770
|
+
# GRPC transcoding helper method for the create_backup_vault REST call
|
2771
|
+
#
|
2772
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::CreateBackupVaultRequest]
|
2773
|
+
# A request object representing the call parameters. Required.
|
2774
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2775
|
+
# Uri, Body, Query string parameters
|
2776
|
+
def self.transcode_create_backup_vault_request request_pb
|
2777
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2778
|
+
.with_bindings(
|
2779
|
+
uri_method: :post,
|
2780
|
+
uri_template: "/v1/{parent}/backupVaults",
|
2781
|
+
body: "backup_vault",
|
2782
|
+
matches: [
|
2783
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2784
|
+
]
|
2785
|
+
)
|
2786
|
+
transcoder.transcode request_pb
|
2787
|
+
end
|
2788
|
+
|
2789
|
+
##
|
2790
|
+
# @private
|
2791
|
+
#
|
2792
|
+
# GRPC transcoding helper method for the get_backup_vault REST call
|
2793
|
+
#
|
2794
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::GetBackupVaultRequest]
|
2795
|
+
# A request object representing the call parameters. Required.
|
2796
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2797
|
+
# Uri, Body, Query string parameters
|
2798
|
+
def self.transcode_get_backup_vault_request request_pb
|
2799
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2800
|
+
.with_bindings(
|
2801
|
+
uri_method: :get,
|
2802
|
+
uri_template: "/v1/{name}",
|
2803
|
+
matches: [
|
2804
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/?$}, false]
|
2805
|
+
]
|
2806
|
+
)
|
2807
|
+
transcoder.transcode request_pb
|
2808
|
+
end
|
2809
|
+
|
2810
|
+
##
|
2811
|
+
# @private
|
2812
|
+
#
|
2813
|
+
# GRPC transcoding helper method for the list_backup_vaults REST call
|
2814
|
+
#
|
2815
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::ListBackupVaultsRequest]
|
2816
|
+
# A request object representing the call parameters. Required.
|
2817
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2818
|
+
# Uri, Body, Query string parameters
|
2819
|
+
def self.transcode_list_backup_vaults_request request_pb
|
2820
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2821
|
+
.with_bindings(
|
2822
|
+
uri_method: :get,
|
2823
|
+
uri_template: "/v1/{parent}/backupVaults",
|
2824
|
+
matches: [
|
2825
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2826
|
+
]
|
2827
|
+
)
|
2828
|
+
transcoder.transcode request_pb
|
2829
|
+
end
|
2830
|
+
|
2831
|
+
##
|
2832
|
+
# @private
|
2833
|
+
#
|
2834
|
+
# GRPC transcoding helper method for the update_backup_vault REST call
|
2835
|
+
#
|
2836
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::UpdateBackupVaultRequest]
|
2837
|
+
# A request object representing the call parameters. Required.
|
2838
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2839
|
+
# Uri, Body, Query string parameters
|
2840
|
+
def self.transcode_update_backup_vault_request request_pb
|
2841
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2842
|
+
.with_bindings(
|
2843
|
+
uri_method: :patch,
|
2844
|
+
uri_template: "/v1/{backup_vault.name}",
|
2845
|
+
body: "backup_vault",
|
2846
|
+
matches: [
|
2847
|
+
["backup_vault.name", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/?$}, false]
|
2848
|
+
]
|
2849
|
+
)
|
2850
|
+
transcoder.transcode request_pb
|
2851
|
+
end
|
2852
|
+
|
2853
|
+
##
|
2854
|
+
# @private
|
2855
|
+
#
|
2856
|
+
# GRPC transcoding helper method for the delete_backup_vault REST call
|
2857
|
+
#
|
2858
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::DeleteBackupVaultRequest]
|
2859
|
+
# A request object representing the call parameters. Required.
|
2860
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2861
|
+
# Uri, Body, Query string parameters
|
2862
|
+
def self.transcode_delete_backup_vault_request request_pb
|
2863
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2864
|
+
.with_bindings(
|
2865
|
+
uri_method: :delete,
|
2866
|
+
uri_template: "/v1/{name}",
|
2867
|
+
matches: [
|
2868
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/?$}, false]
|
2869
|
+
]
|
2870
|
+
)
|
2871
|
+
transcoder.transcode request_pb
|
2872
|
+
end
|
2873
|
+
|
2874
|
+
##
|
2875
|
+
# @private
|
2876
|
+
#
|
2877
|
+
# GRPC transcoding helper method for the create_backup REST call
|
2878
|
+
#
|
2879
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::CreateBackupRequest]
|
2880
|
+
# A request object representing the call parameters. Required.
|
2881
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2882
|
+
# Uri, Body, Query string parameters
|
2883
|
+
def self.transcode_create_backup_request request_pb
|
2884
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2885
|
+
.with_bindings(
|
2886
|
+
uri_method: :post,
|
2887
|
+
uri_template: "/v1/{parent}/backups",
|
2888
|
+
body: "backup",
|
2889
|
+
matches: [
|
2890
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/?$}, false]
|
2891
|
+
]
|
2892
|
+
)
|
2893
|
+
transcoder.transcode request_pb
|
2894
|
+
end
|
2895
|
+
|
2896
|
+
##
|
2897
|
+
# @private
|
2898
|
+
#
|
2899
|
+
# GRPC transcoding helper method for the get_backup REST call
|
2900
|
+
#
|
2901
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::GetBackupRequest]
|
2902
|
+
# A request object representing the call parameters. Required.
|
2903
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2904
|
+
# Uri, Body, Query string parameters
|
2905
|
+
def self.transcode_get_backup_request request_pb
|
2906
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2907
|
+
.with_bindings(
|
2908
|
+
uri_method: :get,
|
2909
|
+
uri_template: "/v1/{name}",
|
2910
|
+
matches: [
|
2911
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/backups/[^/]+/?$}, false]
|
2912
|
+
]
|
2913
|
+
)
|
2914
|
+
transcoder.transcode request_pb
|
2915
|
+
end
|
2916
|
+
|
2917
|
+
##
|
2918
|
+
# @private
|
2919
|
+
#
|
2920
|
+
# GRPC transcoding helper method for the list_backups REST call
|
2921
|
+
#
|
2922
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::ListBackupsRequest]
|
2923
|
+
# A request object representing the call parameters. Required.
|
2924
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2925
|
+
# Uri, Body, Query string parameters
|
2926
|
+
def self.transcode_list_backups_request request_pb
|
2927
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2928
|
+
.with_bindings(
|
2929
|
+
uri_method: :get,
|
2930
|
+
uri_template: "/v1/{parent}/backups",
|
2931
|
+
matches: [
|
2932
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/?$}, false]
|
2933
|
+
]
|
2934
|
+
)
|
2935
|
+
transcoder.transcode request_pb
|
2936
|
+
end
|
2937
|
+
|
2938
|
+
##
|
2939
|
+
# @private
|
2940
|
+
#
|
2941
|
+
# GRPC transcoding helper method for the delete_backup REST call
|
2942
|
+
#
|
2943
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::DeleteBackupRequest]
|
2944
|
+
# A request object representing the call parameters. Required.
|
2945
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2946
|
+
# Uri, Body, Query string parameters
|
2947
|
+
def self.transcode_delete_backup_request request_pb
|
2948
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2949
|
+
.with_bindings(
|
2950
|
+
uri_method: :delete,
|
2951
|
+
uri_template: "/v1/{name}",
|
2952
|
+
matches: [
|
2953
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/backups/[^/]+/?$}, false]
|
2954
|
+
]
|
2955
|
+
)
|
2956
|
+
transcoder.transcode request_pb
|
2957
|
+
end
|
2958
|
+
|
2959
|
+
##
|
2960
|
+
# @private
|
2961
|
+
#
|
2962
|
+
# GRPC transcoding helper method for the update_backup REST call
|
2963
|
+
#
|
2964
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::UpdateBackupRequest]
|
2965
|
+
# A request object representing the call parameters. Required.
|
2966
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2967
|
+
# Uri, Body, Query string parameters
|
2968
|
+
def self.transcode_update_backup_request request_pb
|
2969
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2970
|
+
.with_bindings(
|
2971
|
+
uri_method: :patch,
|
2972
|
+
uri_template: "/v1/{backup.name}",
|
2973
|
+
body: "backup",
|
2974
|
+
matches: [
|
2975
|
+
["backup.name", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/backups/[^/]+/?$}, false]
|
2976
|
+
]
|
2977
|
+
)
|
2978
|
+
transcoder.transcode request_pb
|
2979
|
+
end
|
2980
|
+
|
2981
|
+
##
|
2982
|
+
# @private
|
2983
|
+
#
|
2984
|
+
# GRPC transcoding helper method for the create_backup_policy REST call
|
2985
|
+
#
|
2986
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::CreateBackupPolicyRequest]
|
2987
|
+
# A request object representing the call parameters. Required.
|
2988
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2989
|
+
# Uri, Body, Query string parameters
|
2990
|
+
def self.transcode_create_backup_policy_request request_pb
|
2991
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2992
|
+
.with_bindings(
|
2993
|
+
uri_method: :post,
|
2994
|
+
uri_template: "/v1/{parent}/backupPolicies",
|
2995
|
+
body: "backup_policy",
|
2996
|
+
matches: [
|
2997
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2998
|
+
]
|
2999
|
+
)
|
3000
|
+
transcoder.transcode request_pb
|
3001
|
+
end
|
3002
|
+
|
3003
|
+
##
|
3004
|
+
# @private
|
3005
|
+
#
|
3006
|
+
# GRPC transcoding helper method for the get_backup_policy REST call
|
3007
|
+
#
|
3008
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::GetBackupPolicyRequest]
|
3009
|
+
# A request object representing the call parameters. Required.
|
3010
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3011
|
+
# Uri, Body, Query string parameters
|
3012
|
+
def self.transcode_get_backup_policy_request request_pb
|
3013
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3014
|
+
.with_bindings(
|
3015
|
+
uri_method: :get,
|
3016
|
+
uri_template: "/v1/{name}",
|
3017
|
+
matches: [
|
3018
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupPolicies/[^/]+/?$}, false]
|
3019
|
+
]
|
3020
|
+
)
|
3021
|
+
transcoder.transcode request_pb
|
3022
|
+
end
|
3023
|
+
|
3024
|
+
##
|
3025
|
+
# @private
|
3026
|
+
#
|
3027
|
+
# GRPC transcoding helper method for the list_backup_policies REST call
|
3028
|
+
#
|
3029
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::ListBackupPoliciesRequest]
|
3030
|
+
# A request object representing the call parameters. Required.
|
3031
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3032
|
+
# Uri, Body, Query string parameters
|
3033
|
+
def self.transcode_list_backup_policies_request request_pb
|
3034
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3035
|
+
.with_bindings(
|
3036
|
+
uri_method: :get,
|
3037
|
+
uri_template: "/v1/{parent}/backupPolicies",
|
3038
|
+
matches: [
|
3039
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
3040
|
+
]
|
3041
|
+
)
|
3042
|
+
transcoder.transcode request_pb
|
3043
|
+
end
|
3044
|
+
|
3045
|
+
##
|
3046
|
+
# @private
|
3047
|
+
#
|
3048
|
+
# GRPC transcoding helper method for the update_backup_policy REST call
|
3049
|
+
#
|
3050
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::UpdateBackupPolicyRequest]
|
3051
|
+
# A request object representing the call parameters. Required.
|
3052
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3053
|
+
# Uri, Body, Query string parameters
|
3054
|
+
def self.transcode_update_backup_policy_request request_pb
|
3055
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3056
|
+
.with_bindings(
|
3057
|
+
uri_method: :patch,
|
3058
|
+
uri_template: "/v1/{backup_policy.name}",
|
3059
|
+
body: "backup_policy",
|
3060
|
+
matches: [
|
3061
|
+
["backup_policy.name", %r{^projects/[^/]+/locations/[^/]+/backupPolicies/[^/]+/?$}, false]
|
3062
|
+
]
|
3063
|
+
)
|
3064
|
+
transcoder.transcode request_pb
|
3065
|
+
end
|
3066
|
+
|
3067
|
+
##
|
3068
|
+
# @private
|
3069
|
+
#
|
3070
|
+
# GRPC transcoding helper method for the delete_backup_policy REST call
|
3071
|
+
#
|
3072
|
+
# @param request_pb [::Google::Cloud::NetApp::V1::DeleteBackupPolicyRequest]
|
3073
|
+
# A request object representing the call parameters. Required.
|
3074
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3075
|
+
# Uri, Body, Query string parameters
|
3076
|
+
def self.transcode_delete_backup_policy_request request_pb
|
3077
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3078
|
+
.with_bindings(
|
3079
|
+
uri_method: :delete,
|
3080
|
+
uri_template: "/v1/{name}",
|
3081
|
+
matches: [
|
3082
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupPolicies/[^/]+/?$}, false]
|
3083
|
+
]
|
3084
|
+
)
|
3085
|
+
transcoder.transcode request_pb
|
3086
|
+
end
|
2184
3087
|
end
|
2185
3088
|
end
|
2186
3089
|
end
|