google-cloud-backupdr-v1 1.12.0 → 1.13.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/README.md +4 -6
- data/lib/google/cloud/backupdr/v1/appliedautoprotectionpolicy_pb.rb +30 -0
- data/lib/google/cloud/backupdr/v1/autoprotectionpolicy_pb.rb +40 -0
- data/lib/google/cloud/backupdr/v1/autoprotectionpolicybinding_pb.rb +33 -0
- data/lib/google/cloud/backupdr/v1/backupdr/client.rb +3484 -150
- data/lib/google/cloud/backupdr/v1/backupdr/paths.rb +139 -0
- data/lib/google/cloud/backupdr/v1/backupdr/rest/client.rb +3268 -137
- data/lib/google/cloud/backupdr/v1/backupdr/rest/service_stub.rb +1989 -209
- data/lib/google/cloud/backupdr/v1/backupdr_pb.rb +9 -1
- data/lib/google/cloud/backupdr/v1/backupdr_services_pb.rb +69 -0
- data/lib/google/cloud/backupdr/v1/backupplanassociation_pb.rb +1 -1
- data/lib/google/cloud/backupdr/v1/backupvault_pb.rb +3 -1
- data/lib/google/cloud/backupdr/v1/bindingmatchingresource_pb.rb +30 -0
- data/lib/google/cloud/backupdr/v1/restore_template_common_pb.rb +28 -0
- data/lib/google/cloud/backupdr/v1/restore_template_execution_pb.rb +45 -0
- data/lib/google/cloud/backupdr/v1/restore_template_pb.rb +40 -0
- data/lib/google/cloud/backupdr/v1/restore_verification_plan_association_pb.rb +36 -0
- data/lib/google/cloud/backupdr/v1/restore_verification_plan_pb.rb +34 -0
- data/lib/google/cloud/backupdr/v1/version.rb +1 -1
- data/proto_docs/google/cloud/backupdr/v1/appliedautoprotectionpolicy.rb +123 -0
- data/proto_docs/google/cloud/backupdr/v1/autoprotectionpolicy.rb +307 -0
- data/proto_docs/google/cloud/backupdr/v1/autoprotectionpolicybinding.rb +207 -0
- data/proto_docs/google/cloud/backupdr/v1/backupplanassociation.rb +13 -1
- data/proto_docs/google/cloud/backupdr/v1/backupvault.rb +37 -0
- data/proto_docs/google/cloud/backupdr/v1/bindingmatchingresource.rb +149 -0
- data/proto_docs/google/cloud/backupdr/v1/restore_template.rb +292 -0
- data/proto_docs/google/cloud/backupdr/v1/restore_template_common.rb +80 -0
- data/proto_docs/google/cloud/backupdr/v1/restore_template_execution.rb +399 -0
- data/proto_docs/google/cloud/backupdr/v1/restore_verification_plan.rb +270 -0
- data/proto_docs/google/cloud/backupdr/v1/restore_verification_plan_association.rb +264 -0
- data/proto_docs/google/protobuf/struct.rb +108 -0
- metadata +20 -1
|
@@ -1553,20 +1553,1650 @@ module Google
|
|
|
1553
1553
|
end
|
|
1554
1554
|
end
|
|
1555
1555
|
|
|
1556
|
+
##
|
|
1557
|
+
# Baseline implementation for the create_auto_protection_policy REST call
|
|
1558
|
+
#
|
|
1559
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::CreateAutoProtectionPolicyRequest]
|
|
1560
|
+
# A request object representing the call parameters. Required.
|
|
1561
|
+
# @param options [::Gapic::CallOptions]
|
|
1562
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1563
|
+
#
|
|
1564
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1565
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
1566
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1567
|
+
#
|
|
1568
|
+
# @return [::Google::Longrunning::Operation]
|
|
1569
|
+
# A result object deserialized from the server's reply
|
|
1570
|
+
def create_auto_protection_policy request_pb, options = nil
|
|
1571
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1572
|
+
|
|
1573
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_auto_protection_policy_request request_pb
|
|
1574
|
+
query_string_params = if query_string_params.any?
|
|
1575
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1576
|
+
else
|
|
1577
|
+
{}
|
|
1578
|
+
end
|
|
1579
|
+
|
|
1580
|
+
response = @client_stub.make_http_request(
|
|
1581
|
+
verb,
|
|
1582
|
+
uri: uri,
|
|
1583
|
+
body: body || "",
|
|
1584
|
+
params: query_string_params,
|
|
1585
|
+
method_name: "create_auto_protection_policy",
|
|
1586
|
+
options: options
|
|
1587
|
+
)
|
|
1588
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1589
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
1590
|
+
catch :response do
|
|
1591
|
+
yield result, operation if block_given?
|
|
1592
|
+
result
|
|
1593
|
+
end
|
|
1594
|
+
end
|
|
1595
|
+
|
|
1596
|
+
##
|
|
1597
|
+
# Baseline implementation for the list_auto_protection_policies REST call
|
|
1598
|
+
#
|
|
1599
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListAutoProtectionPoliciesRequest]
|
|
1600
|
+
# A request object representing the call parameters. Required.
|
|
1601
|
+
# @param options [::Gapic::CallOptions]
|
|
1602
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1603
|
+
#
|
|
1604
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1605
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::ListAutoProtectionPoliciesResponse]
|
|
1606
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1607
|
+
#
|
|
1608
|
+
# @return [::Google::Cloud::BackupDR::V1::ListAutoProtectionPoliciesResponse]
|
|
1609
|
+
# A result object deserialized from the server's reply
|
|
1610
|
+
def list_auto_protection_policies request_pb, options = nil
|
|
1611
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1612
|
+
|
|
1613
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_auto_protection_policies_request request_pb
|
|
1614
|
+
query_string_params = if query_string_params.any?
|
|
1615
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1616
|
+
else
|
|
1617
|
+
{}
|
|
1618
|
+
end
|
|
1619
|
+
|
|
1620
|
+
response = @client_stub.make_http_request(
|
|
1621
|
+
verb,
|
|
1622
|
+
uri: uri,
|
|
1623
|
+
body: body || "",
|
|
1624
|
+
params: query_string_params,
|
|
1625
|
+
method_name: "list_auto_protection_policies",
|
|
1626
|
+
options: options
|
|
1627
|
+
)
|
|
1628
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1629
|
+
result = ::Google::Cloud::BackupDR::V1::ListAutoProtectionPoliciesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1630
|
+
catch :response do
|
|
1631
|
+
yield result, operation if block_given?
|
|
1632
|
+
result
|
|
1633
|
+
end
|
|
1634
|
+
end
|
|
1635
|
+
|
|
1636
|
+
##
|
|
1637
|
+
# Baseline implementation for the get_auto_protection_policy REST call
|
|
1638
|
+
#
|
|
1639
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetAutoProtectionPolicyRequest]
|
|
1640
|
+
# A request object representing the call parameters. Required.
|
|
1641
|
+
# @param options [::Gapic::CallOptions]
|
|
1642
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1643
|
+
#
|
|
1644
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1645
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::AutoProtectionPolicy]
|
|
1646
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1647
|
+
#
|
|
1648
|
+
# @return [::Google::Cloud::BackupDR::V1::AutoProtectionPolicy]
|
|
1649
|
+
# A result object deserialized from the server's reply
|
|
1650
|
+
def get_auto_protection_policy request_pb, options = nil
|
|
1651
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1652
|
+
|
|
1653
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_auto_protection_policy_request request_pb
|
|
1654
|
+
query_string_params = if query_string_params.any?
|
|
1655
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1656
|
+
else
|
|
1657
|
+
{}
|
|
1658
|
+
end
|
|
1659
|
+
|
|
1660
|
+
response = @client_stub.make_http_request(
|
|
1661
|
+
verb,
|
|
1662
|
+
uri: uri,
|
|
1663
|
+
body: body || "",
|
|
1664
|
+
params: query_string_params,
|
|
1665
|
+
method_name: "get_auto_protection_policy",
|
|
1666
|
+
options: options
|
|
1667
|
+
)
|
|
1668
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1669
|
+
result = ::Google::Cloud::BackupDR::V1::AutoProtectionPolicy.decode_json response.body, ignore_unknown_fields: true
|
|
1670
|
+
catch :response do
|
|
1671
|
+
yield result, operation if block_given?
|
|
1672
|
+
result
|
|
1673
|
+
end
|
|
1674
|
+
end
|
|
1675
|
+
|
|
1676
|
+
##
|
|
1677
|
+
# Baseline implementation for the update_auto_protection_policy REST call
|
|
1678
|
+
#
|
|
1679
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::UpdateAutoProtectionPolicyRequest]
|
|
1680
|
+
# A request object representing the call parameters. Required.
|
|
1681
|
+
# @param options [::Gapic::CallOptions]
|
|
1682
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1683
|
+
#
|
|
1684
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1685
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
1686
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1687
|
+
#
|
|
1688
|
+
# @return [::Google::Longrunning::Operation]
|
|
1689
|
+
# A result object deserialized from the server's reply
|
|
1690
|
+
def update_auto_protection_policy request_pb, options = nil
|
|
1691
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1692
|
+
|
|
1693
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_auto_protection_policy_request request_pb
|
|
1694
|
+
query_string_params = if query_string_params.any?
|
|
1695
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1696
|
+
else
|
|
1697
|
+
{}
|
|
1698
|
+
end
|
|
1699
|
+
|
|
1700
|
+
response = @client_stub.make_http_request(
|
|
1701
|
+
verb,
|
|
1702
|
+
uri: uri,
|
|
1703
|
+
body: body || "",
|
|
1704
|
+
params: query_string_params,
|
|
1705
|
+
method_name: "update_auto_protection_policy",
|
|
1706
|
+
options: options
|
|
1707
|
+
)
|
|
1708
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1709
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
1710
|
+
catch :response do
|
|
1711
|
+
yield result, operation if block_given?
|
|
1712
|
+
result
|
|
1713
|
+
end
|
|
1714
|
+
end
|
|
1715
|
+
|
|
1716
|
+
##
|
|
1717
|
+
# Baseline implementation for the delete_auto_protection_policy REST call
|
|
1718
|
+
#
|
|
1719
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::DeleteAutoProtectionPolicyRequest]
|
|
1720
|
+
# A request object representing the call parameters. Required.
|
|
1721
|
+
# @param options [::Gapic::CallOptions]
|
|
1722
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1723
|
+
#
|
|
1724
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1725
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
1726
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1727
|
+
#
|
|
1728
|
+
# @return [::Google::Longrunning::Operation]
|
|
1729
|
+
# A result object deserialized from the server's reply
|
|
1730
|
+
def delete_auto_protection_policy request_pb, options = nil
|
|
1731
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1732
|
+
|
|
1733
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_auto_protection_policy_request request_pb
|
|
1734
|
+
query_string_params = if query_string_params.any?
|
|
1735
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1736
|
+
else
|
|
1737
|
+
{}
|
|
1738
|
+
end
|
|
1739
|
+
|
|
1740
|
+
response = @client_stub.make_http_request(
|
|
1741
|
+
verb,
|
|
1742
|
+
uri: uri,
|
|
1743
|
+
body: body || "",
|
|
1744
|
+
params: query_string_params,
|
|
1745
|
+
method_name: "delete_auto_protection_policy",
|
|
1746
|
+
options: options
|
|
1747
|
+
)
|
|
1748
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1749
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
1750
|
+
catch :response do
|
|
1751
|
+
yield result, operation if block_given?
|
|
1752
|
+
result
|
|
1753
|
+
end
|
|
1754
|
+
end
|
|
1755
|
+
|
|
1756
|
+
##
|
|
1757
|
+
# Baseline implementation for the create_auto_protection_policy_binding REST call
|
|
1758
|
+
#
|
|
1759
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::CreateAutoProtectionPolicyBindingRequest]
|
|
1760
|
+
# A request object representing the call parameters. Required.
|
|
1761
|
+
# @param options [::Gapic::CallOptions]
|
|
1762
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1763
|
+
#
|
|
1764
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1765
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
1766
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1767
|
+
#
|
|
1768
|
+
# @return [::Google::Longrunning::Operation]
|
|
1769
|
+
# A result object deserialized from the server's reply
|
|
1770
|
+
def create_auto_protection_policy_binding request_pb, options = nil
|
|
1771
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1772
|
+
|
|
1773
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_auto_protection_policy_binding_request request_pb
|
|
1774
|
+
query_string_params = if query_string_params.any?
|
|
1775
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1776
|
+
else
|
|
1777
|
+
{}
|
|
1778
|
+
end
|
|
1779
|
+
|
|
1780
|
+
response = @client_stub.make_http_request(
|
|
1781
|
+
verb,
|
|
1782
|
+
uri: uri,
|
|
1783
|
+
body: body || "",
|
|
1784
|
+
params: query_string_params,
|
|
1785
|
+
method_name: "create_auto_protection_policy_binding",
|
|
1786
|
+
options: options
|
|
1787
|
+
)
|
|
1788
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1789
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
1790
|
+
catch :response do
|
|
1791
|
+
yield result, operation if block_given?
|
|
1792
|
+
result
|
|
1793
|
+
end
|
|
1794
|
+
end
|
|
1795
|
+
|
|
1796
|
+
##
|
|
1797
|
+
# Baseline implementation for the get_auto_protection_policy_binding REST call
|
|
1798
|
+
#
|
|
1799
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetAutoProtectionPolicyBindingRequest]
|
|
1800
|
+
# A request object representing the call parameters. Required.
|
|
1801
|
+
# @param options [::Gapic::CallOptions]
|
|
1802
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1803
|
+
#
|
|
1804
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1805
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::AutoProtectionPolicyBinding]
|
|
1806
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1807
|
+
#
|
|
1808
|
+
# @return [::Google::Cloud::BackupDR::V1::AutoProtectionPolicyBinding]
|
|
1809
|
+
# A result object deserialized from the server's reply
|
|
1810
|
+
def get_auto_protection_policy_binding request_pb, options = nil
|
|
1811
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1812
|
+
|
|
1813
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_auto_protection_policy_binding_request request_pb
|
|
1814
|
+
query_string_params = if query_string_params.any?
|
|
1815
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1816
|
+
else
|
|
1817
|
+
{}
|
|
1818
|
+
end
|
|
1819
|
+
|
|
1820
|
+
response = @client_stub.make_http_request(
|
|
1821
|
+
verb,
|
|
1822
|
+
uri: uri,
|
|
1823
|
+
body: body || "",
|
|
1824
|
+
params: query_string_params,
|
|
1825
|
+
method_name: "get_auto_protection_policy_binding",
|
|
1826
|
+
options: options
|
|
1827
|
+
)
|
|
1828
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1829
|
+
result = ::Google::Cloud::BackupDR::V1::AutoProtectionPolicyBinding.decode_json response.body, ignore_unknown_fields: true
|
|
1830
|
+
catch :response do
|
|
1831
|
+
yield result, operation if block_given?
|
|
1832
|
+
result
|
|
1833
|
+
end
|
|
1834
|
+
end
|
|
1835
|
+
|
|
1836
|
+
##
|
|
1837
|
+
# Baseline implementation for the list_auto_protection_policy_bindings REST call
|
|
1838
|
+
#
|
|
1839
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListAutoProtectionPolicyBindingsRequest]
|
|
1840
|
+
# A request object representing the call parameters. Required.
|
|
1841
|
+
# @param options [::Gapic::CallOptions]
|
|
1842
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1843
|
+
#
|
|
1844
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1845
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::ListAutoProtectionPolicyBindingsResponse]
|
|
1846
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1847
|
+
#
|
|
1848
|
+
# @return [::Google::Cloud::BackupDR::V1::ListAutoProtectionPolicyBindingsResponse]
|
|
1849
|
+
# A result object deserialized from the server's reply
|
|
1850
|
+
def list_auto_protection_policy_bindings request_pb, options = nil
|
|
1851
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1852
|
+
|
|
1853
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_auto_protection_policy_bindings_request request_pb
|
|
1854
|
+
query_string_params = if query_string_params.any?
|
|
1855
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1856
|
+
else
|
|
1857
|
+
{}
|
|
1858
|
+
end
|
|
1859
|
+
|
|
1860
|
+
response = @client_stub.make_http_request(
|
|
1861
|
+
verb,
|
|
1862
|
+
uri: uri,
|
|
1863
|
+
body: body || "",
|
|
1864
|
+
params: query_string_params,
|
|
1865
|
+
method_name: "list_auto_protection_policy_bindings",
|
|
1866
|
+
options: options
|
|
1867
|
+
)
|
|
1868
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1869
|
+
result = ::Google::Cloud::BackupDR::V1::ListAutoProtectionPolicyBindingsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1870
|
+
catch :response do
|
|
1871
|
+
yield result, operation if block_given?
|
|
1872
|
+
result
|
|
1873
|
+
end
|
|
1874
|
+
end
|
|
1875
|
+
|
|
1876
|
+
##
|
|
1877
|
+
# Baseline implementation for the list_applied_auto_protection_policies REST call
|
|
1878
|
+
#
|
|
1879
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListAppliedAutoProtectionPoliciesRequest]
|
|
1880
|
+
# A request object representing the call parameters. Required.
|
|
1881
|
+
# @param options [::Gapic::CallOptions]
|
|
1882
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1883
|
+
#
|
|
1884
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1885
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::ListAppliedAutoProtectionPoliciesResponse]
|
|
1886
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1887
|
+
#
|
|
1888
|
+
# @return [::Google::Cloud::BackupDR::V1::ListAppliedAutoProtectionPoliciesResponse]
|
|
1889
|
+
# A result object deserialized from the server's reply
|
|
1890
|
+
def list_applied_auto_protection_policies request_pb, options = nil
|
|
1891
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1892
|
+
|
|
1893
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_applied_auto_protection_policies_request request_pb
|
|
1894
|
+
query_string_params = if query_string_params.any?
|
|
1895
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1896
|
+
else
|
|
1897
|
+
{}
|
|
1898
|
+
end
|
|
1899
|
+
|
|
1900
|
+
response = @client_stub.make_http_request(
|
|
1901
|
+
verb,
|
|
1902
|
+
uri: uri,
|
|
1903
|
+
body: body || "",
|
|
1904
|
+
params: query_string_params,
|
|
1905
|
+
method_name: "list_applied_auto_protection_policies",
|
|
1906
|
+
options: options
|
|
1907
|
+
)
|
|
1908
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1909
|
+
result = ::Google::Cloud::BackupDR::V1::ListAppliedAutoProtectionPoliciesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1910
|
+
catch :response do
|
|
1911
|
+
yield result, operation if block_given?
|
|
1912
|
+
result
|
|
1913
|
+
end
|
|
1914
|
+
end
|
|
1915
|
+
|
|
1916
|
+
##
|
|
1917
|
+
# Baseline implementation for the initiate_delete_auto_protection_policy_binding REST call
|
|
1918
|
+
#
|
|
1919
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::InitiateDeleteAutoProtectionPolicyBindingRequest]
|
|
1920
|
+
# A request object representing the call parameters. Required.
|
|
1921
|
+
# @param options [::Gapic::CallOptions]
|
|
1922
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1923
|
+
#
|
|
1924
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1925
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
1926
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1927
|
+
#
|
|
1928
|
+
# @return [::Google::Longrunning::Operation]
|
|
1929
|
+
# A result object deserialized from the server's reply
|
|
1930
|
+
def initiate_delete_auto_protection_policy_binding request_pb, options = nil
|
|
1931
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1932
|
+
|
|
1933
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_initiate_delete_auto_protection_policy_binding_request request_pb
|
|
1934
|
+
query_string_params = if query_string_params.any?
|
|
1935
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1936
|
+
else
|
|
1937
|
+
{}
|
|
1938
|
+
end
|
|
1939
|
+
|
|
1940
|
+
response = @client_stub.make_http_request(
|
|
1941
|
+
verb,
|
|
1942
|
+
uri: uri,
|
|
1943
|
+
body: body || "",
|
|
1944
|
+
params: query_string_params,
|
|
1945
|
+
method_name: "initiate_delete_auto_protection_policy_binding",
|
|
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
|
+
catch :response do
|
|
1951
|
+
yield result, operation if block_given?
|
|
1952
|
+
result
|
|
1953
|
+
end
|
|
1954
|
+
end
|
|
1955
|
+
|
|
1956
|
+
##
|
|
1957
|
+
# Baseline implementation for the list_binding_matching_resources REST call
|
|
1958
|
+
#
|
|
1959
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListBindingMatchingResourcesRequest]
|
|
1960
|
+
# A request object representing the call parameters. Required.
|
|
1961
|
+
# @param options [::Gapic::CallOptions]
|
|
1962
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1963
|
+
#
|
|
1964
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1965
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::ListBindingMatchingResourcesResponse]
|
|
1966
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1967
|
+
#
|
|
1968
|
+
# @return [::Google::Cloud::BackupDR::V1::ListBindingMatchingResourcesResponse]
|
|
1969
|
+
# A result object deserialized from the server's reply
|
|
1970
|
+
def list_binding_matching_resources request_pb, options = nil
|
|
1971
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1972
|
+
|
|
1973
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_binding_matching_resources_request request_pb
|
|
1974
|
+
query_string_params = if query_string_params.any?
|
|
1975
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1976
|
+
else
|
|
1977
|
+
{}
|
|
1978
|
+
end
|
|
1979
|
+
|
|
1980
|
+
response = @client_stub.make_http_request(
|
|
1981
|
+
verb,
|
|
1982
|
+
uri: uri,
|
|
1983
|
+
body: body || "",
|
|
1984
|
+
params: query_string_params,
|
|
1985
|
+
method_name: "list_binding_matching_resources",
|
|
1986
|
+
options: options
|
|
1987
|
+
)
|
|
1988
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1989
|
+
result = ::Google::Cloud::BackupDR::V1::ListBindingMatchingResourcesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1990
|
+
catch :response do
|
|
1991
|
+
yield result, operation if block_given?
|
|
1992
|
+
result
|
|
1993
|
+
end
|
|
1994
|
+
end
|
|
1995
|
+
|
|
1996
|
+
##
|
|
1997
|
+
# Baseline implementation for the create_restore_template REST call
|
|
1998
|
+
#
|
|
1999
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::CreateRestoreTemplateRequest]
|
|
2000
|
+
# A request object representing the call parameters. Required.
|
|
2001
|
+
# @param options [::Gapic::CallOptions]
|
|
2002
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2003
|
+
#
|
|
2004
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2005
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
2006
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2007
|
+
#
|
|
2008
|
+
# @return [::Google::Longrunning::Operation]
|
|
2009
|
+
# A result object deserialized from the server's reply
|
|
2010
|
+
def create_restore_template request_pb, options = nil
|
|
2011
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2012
|
+
|
|
2013
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_restore_template_request request_pb
|
|
2014
|
+
query_string_params = if query_string_params.any?
|
|
2015
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2016
|
+
else
|
|
2017
|
+
{}
|
|
2018
|
+
end
|
|
2019
|
+
|
|
2020
|
+
response = @client_stub.make_http_request(
|
|
2021
|
+
verb,
|
|
2022
|
+
uri: uri,
|
|
2023
|
+
body: body || "",
|
|
2024
|
+
params: query_string_params,
|
|
2025
|
+
method_name: "create_restore_template",
|
|
2026
|
+
options: options
|
|
2027
|
+
)
|
|
2028
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2029
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
2030
|
+
catch :response do
|
|
2031
|
+
yield result, operation if block_given?
|
|
2032
|
+
result
|
|
2033
|
+
end
|
|
2034
|
+
end
|
|
2035
|
+
|
|
2036
|
+
##
|
|
2037
|
+
# Baseline implementation for the get_restore_template REST call
|
|
2038
|
+
#
|
|
2039
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetRestoreTemplateRequest]
|
|
2040
|
+
# A request object representing the call parameters. Required.
|
|
2041
|
+
# @param options [::Gapic::CallOptions]
|
|
2042
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2043
|
+
#
|
|
2044
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2045
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::RestoreTemplate]
|
|
2046
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2047
|
+
#
|
|
2048
|
+
# @return [::Google::Cloud::BackupDR::V1::RestoreTemplate]
|
|
2049
|
+
# A result object deserialized from the server's reply
|
|
2050
|
+
def get_restore_template request_pb, options = nil
|
|
2051
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2052
|
+
|
|
2053
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_restore_template_request request_pb
|
|
2054
|
+
query_string_params = if query_string_params.any?
|
|
2055
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2056
|
+
else
|
|
2057
|
+
{}
|
|
2058
|
+
end
|
|
2059
|
+
|
|
2060
|
+
response = @client_stub.make_http_request(
|
|
2061
|
+
verb,
|
|
2062
|
+
uri: uri,
|
|
2063
|
+
body: body || "",
|
|
2064
|
+
params: query_string_params,
|
|
2065
|
+
method_name: "get_restore_template",
|
|
2066
|
+
options: options
|
|
2067
|
+
)
|
|
2068
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2069
|
+
result = ::Google::Cloud::BackupDR::V1::RestoreTemplate.decode_json response.body, ignore_unknown_fields: true
|
|
2070
|
+
catch :response do
|
|
2071
|
+
yield result, operation if block_given?
|
|
2072
|
+
result
|
|
2073
|
+
end
|
|
2074
|
+
end
|
|
2075
|
+
|
|
2076
|
+
##
|
|
2077
|
+
# Baseline implementation for the list_restore_templates REST call
|
|
2078
|
+
#
|
|
2079
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListRestoreTemplatesRequest]
|
|
2080
|
+
# A request object representing the call parameters. Required.
|
|
2081
|
+
# @param options [::Gapic::CallOptions]
|
|
2082
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2083
|
+
#
|
|
2084
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2085
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::ListRestoreTemplatesResponse]
|
|
2086
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2087
|
+
#
|
|
2088
|
+
# @return [::Google::Cloud::BackupDR::V1::ListRestoreTemplatesResponse]
|
|
2089
|
+
# A result object deserialized from the server's reply
|
|
2090
|
+
def list_restore_templates request_pb, options = nil
|
|
2091
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2092
|
+
|
|
2093
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_restore_templates_request request_pb
|
|
2094
|
+
query_string_params = if query_string_params.any?
|
|
2095
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2096
|
+
else
|
|
2097
|
+
{}
|
|
2098
|
+
end
|
|
2099
|
+
|
|
2100
|
+
response = @client_stub.make_http_request(
|
|
2101
|
+
verb,
|
|
2102
|
+
uri: uri,
|
|
2103
|
+
body: body || "",
|
|
2104
|
+
params: query_string_params,
|
|
2105
|
+
method_name: "list_restore_templates",
|
|
2106
|
+
options: options
|
|
2107
|
+
)
|
|
2108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2109
|
+
result = ::Google::Cloud::BackupDR::V1::ListRestoreTemplatesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
2110
|
+
catch :response do
|
|
2111
|
+
yield result, operation if block_given?
|
|
2112
|
+
result
|
|
2113
|
+
end
|
|
2114
|
+
end
|
|
2115
|
+
|
|
2116
|
+
##
|
|
2117
|
+
# Baseline implementation for the update_restore_template REST call
|
|
2118
|
+
#
|
|
2119
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::UpdateRestoreTemplateRequest]
|
|
2120
|
+
# A request object representing the call parameters. Required.
|
|
2121
|
+
# @param options [::Gapic::CallOptions]
|
|
2122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2123
|
+
#
|
|
2124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2125
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
2126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2127
|
+
#
|
|
2128
|
+
# @return [::Google::Longrunning::Operation]
|
|
2129
|
+
# A result object deserialized from the server's reply
|
|
2130
|
+
def update_restore_template request_pb, options = nil
|
|
2131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2132
|
+
|
|
2133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_restore_template_request request_pb
|
|
2134
|
+
query_string_params = if query_string_params.any?
|
|
2135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2136
|
+
else
|
|
2137
|
+
{}
|
|
2138
|
+
end
|
|
2139
|
+
|
|
2140
|
+
response = @client_stub.make_http_request(
|
|
2141
|
+
verb,
|
|
2142
|
+
uri: uri,
|
|
2143
|
+
body: body || "",
|
|
2144
|
+
params: query_string_params,
|
|
2145
|
+
method_name: "update_restore_template",
|
|
2146
|
+
options: options
|
|
2147
|
+
)
|
|
2148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2149
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
2150
|
+
catch :response do
|
|
2151
|
+
yield result, operation if block_given?
|
|
2152
|
+
result
|
|
2153
|
+
end
|
|
2154
|
+
end
|
|
2155
|
+
|
|
2156
|
+
##
|
|
2157
|
+
# Baseline implementation for the delete_restore_template REST call
|
|
2158
|
+
#
|
|
2159
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::DeleteRestoreTemplateRequest]
|
|
2160
|
+
# A request object representing the call parameters. Required.
|
|
2161
|
+
# @param options [::Gapic::CallOptions]
|
|
2162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2163
|
+
#
|
|
2164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2165
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
2166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2167
|
+
#
|
|
2168
|
+
# @return [::Google::Longrunning::Operation]
|
|
2169
|
+
# A result object deserialized from the server's reply
|
|
2170
|
+
def delete_restore_template request_pb, options = nil
|
|
2171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2172
|
+
|
|
2173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_restore_template_request request_pb
|
|
2174
|
+
query_string_params = if query_string_params.any?
|
|
2175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2176
|
+
else
|
|
2177
|
+
{}
|
|
2178
|
+
end
|
|
2179
|
+
|
|
2180
|
+
response = @client_stub.make_http_request(
|
|
2181
|
+
verb,
|
|
2182
|
+
uri: uri,
|
|
2183
|
+
body: body || "",
|
|
2184
|
+
params: query_string_params,
|
|
2185
|
+
method_name: "delete_restore_template",
|
|
2186
|
+
options: options
|
|
2187
|
+
)
|
|
2188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2189
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
2190
|
+
catch :response do
|
|
2191
|
+
yield result, operation if block_given?
|
|
2192
|
+
result
|
|
2193
|
+
end
|
|
2194
|
+
end
|
|
2195
|
+
|
|
2196
|
+
##
|
|
2197
|
+
# Baseline implementation for the run_restore_template REST call
|
|
2198
|
+
#
|
|
2199
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::RunRestoreTemplateRequest]
|
|
2200
|
+
# A request object representing the call parameters. Required.
|
|
2201
|
+
# @param options [::Gapic::CallOptions]
|
|
2202
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2203
|
+
#
|
|
2204
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2205
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
2206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2207
|
+
#
|
|
2208
|
+
# @return [::Google::Longrunning::Operation]
|
|
2209
|
+
# A result object deserialized from the server's reply
|
|
2210
|
+
def run_restore_template request_pb, options = nil
|
|
2211
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2212
|
+
|
|
2213
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_run_restore_template_request request_pb
|
|
2214
|
+
query_string_params = if query_string_params.any?
|
|
2215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2216
|
+
else
|
|
2217
|
+
{}
|
|
2218
|
+
end
|
|
2219
|
+
|
|
2220
|
+
response = @client_stub.make_http_request(
|
|
2221
|
+
verb,
|
|
2222
|
+
uri: uri,
|
|
2223
|
+
body: body || "",
|
|
2224
|
+
params: query_string_params,
|
|
2225
|
+
method_name: "run_restore_template",
|
|
2226
|
+
options: options
|
|
2227
|
+
)
|
|
2228
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2229
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
2230
|
+
catch :response do
|
|
2231
|
+
yield result, operation if block_given?
|
|
2232
|
+
result
|
|
2233
|
+
end
|
|
2234
|
+
end
|
|
2235
|
+
|
|
2236
|
+
##
|
|
2237
|
+
# Baseline implementation for the get_restore_template_execution REST call
|
|
2238
|
+
#
|
|
2239
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetRestoreTemplateExecutionRequest]
|
|
2240
|
+
# A request object representing the call parameters. Required.
|
|
2241
|
+
# @param options [::Gapic::CallOptions]
|
|
2242
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2243
|
+
#
|
|
2244
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2245
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::RestoreTemplateExecution]
|
|
2246
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2247
|
+
#
|
|
2248
|
+
# @return [::Google::Cloud::BackupDR::V1::RestoreTemplateExecution]
|
|
2249
|
+
# A result object deserialized from the server's reply
|
|
2250
|
+
def get_restore_template_execution request_pb, options = nil
|
|
2251
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2252
|
+
|
|
2253
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_restore_template_execution_request request_pb
|
|
2254
|
+
query_string_params = if query_string_params.any?
|
|
2255
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2256
|
+
else
|
|
2257
|
+
{}
|
|
2258
|
+
end
|
|
2259
|
+
|
|
2260
|
+
response = @client_stub.make_http_request(
|
|
2261
|
+
verb,
|
|
2262
|
+
uri: uri,
|
|
2263
|
+
body: body || "",
|
|
2264
|
+
params: query_string_params,
|
|
2265
|
+
method_name: "get_restore_template_execution",
|
|
2266
|
+
options: options
|
|
2267
|
+
)
|
|
2268
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2269
|
+
result = ::Google::Cloud::BackupDR::V1::RestoreTemplateExecution.decode_json response.body, ignore_unknown_fields: true
|
|
2270
|
+
catch :response do
|
|
2271
|
+
yield result, operation if block_given?
|
|
2272
|
+
result
|
|
2273
|
+
end
|
|
2274
|
+
end
|
|
2275
|
+
|
|
2276
|
+
##
|
|
2277
|
+
# Baseline implementation for the list_restore_template_executions REST call
|
|
2278
|
+
#
|
|
2279
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListRestoreTemplateExecutionsRequest]
|
|
2280
|
+
# A request object representing the call parameters. Required.
|
|
2281
|
+
# @param options [::Gapic::CallOptions]
|
|
2282
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2283
|
+
#
|
|
2284
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2285
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::ListRestoreTemplateExecutionsResponse]
|
|
2286
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2287
|
+
#
|
|
2288
|
+
# @return [::Google::Cloud::BackupDR::V1::ListRestoreTemplateExecutionsResponse]
|
|
2289
|
+
# A result object deserialized from the server's reply
|
|
2290
|
+
def list_restore_template_executions request_pb, options = nil
|
|
2291
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2292
|
+
|
|
2293
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_restore_template_executions_request request_pb
|
|
2294
|
+
query_string_params = if query_string_params.any?
|
|
2295
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2296
|
+
else
|
|
2297
|
+
{}
|
|
2298
|
+
end
|
|
2299
|
+
|
|
2300
|
+
response = @client_stub.make_http_request(
|
|
2301
|
+
verb,
|
|
2302
|
+
uri: uri,
|
|
2303
|
+
body: body || "",
|
|
2304
|
+
params: query_string_params,
|
|
2305
|
+
method_name: "list_restore_template_executions",
|
|
2306
|
+
options: options
|
|
2307
|
+
)
|
|
2308
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2309
|
+
result = ::Google::Cloud::BackupDR::V1::ListRestoreTemplateExecutionsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
2310
|
+
catch :response do
|
|
2311
|
+
yield result, operation if block_given?
|
|
2312
|
+
result
|
|
2313
|
+
end
|
|
2314
|
+
end
|
|
2315
|
+
|
|
2316
|
+
##
|
|
2317
|
+
# Baseline implementation for the trigger_restore_cleanup REST call
|
|
2318
|
+
#
|
|
2319
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::TriggerRestoreCleanupRequest]
|
|
2320
|
+
# A request object representing the call parameters. Required.
|
|
2321
|
+
# @param options [::Gapic::CallOptions]
|
|
2322
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2323
|
+
#
|
|
2324
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2325
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
2326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2327
|
+
#
|
|
2328
|
+
# @return [::Google::Longrunning::Operation]
|
|
2329
|
+
# A result object deserialized from the server's reply
|
|
2330
|
+
def trigger_restore_cleanup request_pb, options = nil
|
|
2331
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2332
|
+
|
|
2333
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_trigger_restore_cleanup_request request_pb
|
|
2334
|
+
query_string_params = if query_string_params.any?
|
|
2335
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2336
|
+
else
|
|
2337
|
+
{}
|
|
2338
|
+
end
|
|
2339
|
+
|
|
2340
|
+
response = @client_stub.make_http_request(
|
|
2341
|
+
verb,
|
|
2342
|
+
uri: uri,
|
|
2343
|
+
body: body || "",
|
|
2344
|
+
params: query_string_params,
|
|
2345
|
+
method_name: "trigger_restore_cleanup",
|
|
2346
|
+
options: options
|
|
2347
|
+
)
|
|
2348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2349
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
2350
|
+
catch :response do
|
|
2351
|
+
yield result, operation if block_given?
|
|
2352
|
+
result
|
|
2353
|
+
end
|
|
2354
|
+
end
|
|
2355
|
+
|
|
2356
|
+
##
|
|
2357
|
+
# Baseline implementation for the create_restore_verification_plan REST call
|
|
2358
|
+
#
|
|
2359
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::CreateRestoreVerificationPlanRequest]
|
|
2360
|
+
# A request object representing the call parameters. Required.
|
|
2361
|
+
# @param options [::Gapic::CallOptions]
|
|
2362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2363
|
+
#
|
|
2364
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2365
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
2366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2367
|
+
#
|
|
2368
|
+
# @return [::Google::Longrunning::Operation]
|
|
2369
|
+
# A result object deserialized from the server's reply
|
|
2370
|
+
def create_restore_verification_plan request_pb, options = nil
|
|
2371
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2372
|
+
|
|
2373
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_restore_verification_plan_request request_pb
|
|
2374
|
+
query_string_params = if query_string_params.any?
|
|
2375
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2376
|
+
else
|
|
2377
|
+
{}
|
|
2378
|
+
end
|
|
2379
|
+
|
|
2380
|
+
response = @client_stub.make_http_request(
|
|
2381
|
+
verb,
|
|
2382
|
+
uri: uri,
|
|
2383
|
+
body: body || "",
|
|
2384
|
+
params: query_string_params,
|
|
2385
|
+
method_name: "create_restore_verification_plan",
|
|
2386
|
+
options: options
|
|
2387
|
+
)
|
|
2388
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2389
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
2390
|
+
catch :response do
|
|
2391
|
+
yield result, operation if block_given?
|
|
2392
|
+
result
|
|
2393
|
+
end
|
|
2394
|
+
end
|
|
2395
|
+
|
|
2396
|
+
##
|
|
2397
|
+
# Baseline implementation for the create_restore_verification_plan_association REST call
|
|
2398
|
+
#
|
|
2399
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::CreateRestoreVerificationPlanAssociationRequest]
|
|
2400
|
+
# A request object representing the call parameters. Required.
|
|
2401
|
+
# @param options [::Gapic::CallOptions]
|
|
2402
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2403
|
+
#
|
|
2404
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2405
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
2406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2407
|
+
#
|
|
2408
|
+
# @return [::Google::Longrunning::Operation]
|
|
2409
|
+
# A result object deserialized from the server's reply
|
|
2410
|
+
def create_restore_verification_plan_association request_pb, options = nil
|
|
2411
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2412
|
+
|
|
2413
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_restore_verification_plan_association_request request_pb
|
|
2414
|
+
query_string_params = if query_string_params.any?
|
|
2415
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2416
|
+
else
|
|
2417
|
+
{}
|
|
2418
|
+
end
|
|
2419
|
+
|
|
2420
|
+
response = @client_stub.make_http_request(
|
|
2421
|
+
verb,
|
|
2422
|
+
uri: uri,
|
|
2423
|
+
body: body || "",
|
|
2424
|
+
params: query_string_params,
|
|
2425
|
+
method_name: "create_restore_verification_plan_association",
|
|
2426
|
+
options: options
|
|
2427
|
+
)
|
|
2428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2429
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
2430
|
+
catch :response do
|
|
2431
|
+
yield result, operation if block_given?
|
|
2432
|
+
result
|
|
2433
|
+
end
|
|
2434
|
+
end
|
|
2435
|
+
|
|
2436
|
+
##
|
|
2437
|
+
# Baseline implementation for the get_restore_verification_plan_association REST call
|
|
2438
|
+
#
|
|
2439
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetRestoreVerificationPlanAssociationRequest]
|
|
2440
|
+
# A request object representing the call parameters. Required.
|
|
2441
|
+
# @param options [::Gapic::CallOptions]
|
|
2442
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2443
|
+
#
|
|
2444
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2445
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::RestoreVerificationPlanAssociation]
|
|
2446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2447
|
+
#
|
|
2448
|
+
# @return [::Google::Cloud::BackupDR::V1::RestoreVerificationPlanAssociation]
|
|
2449
|
+
# A result object deserialized from the server's reply
|
|
2450
|
+
def get_restore_verification_plan_association request_pb, options = nil
|
|
2451
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2452
|
+
|
|
2453
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_restore_verification_plan_association_request request_pb
|
|
2454
|
+
query_string_params = if query_string_params.any?
|
|
2455
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2456
|
+
else
|
|
2457
|
+
{}
|
|
2458
|
+
end
|
|
2459
|
+
|
|
2460
|
+
response = @client_stub.make_http_request(
|
|
2461
|
+
verb,
|
|
2462
|
+
uri: uri,
|
|
2463
|
+
body: body || "",
|
|
2464
|
+
params: query_string_params,
|
|
2465
|
+
method_name: "get_restore_verification_plan_association",
|
|
2466
|
+
options: options
|
|
2467
|
+
)
|
|
2468
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2469
|
+
result = ::Google::Cloud::BackupDR::V1::RestoreVerificationPlanAssociation.decode_json response.body, ignore_unknown_fields: true
|
|
2470
|
+
catch :response do
|
|
2471
|
+
yield result, operation if block_given?
|
|
2472
|
+
result
|
|
2473
|
+
end
|
|
2474
|
+
end
|
|
2475
|
+
|
|
2476
|
+
##
|
|
2477
|
+
# Baseline implementation for the list_restore_verification_plan_associations REST call
|
|
2478
|
+
#
|
|
2479
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlanAssociationsRequest]
|
|
2480
|
+
# A request object representing the call parameters. Required.
|
|
2481
|
+
# @param options [::Gapic::CallOptions]
|
|
2482
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2483
|
+
#
|
|
2484
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2485
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlanAssociationsResponse]
|
|
2486
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2487
|
+
#
|
|
2488
|
+
# @return [::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlanAssociationsResponse]
|
|
2489
|
+
# A result object deserialized from the server's reply
|
|
2490
|
+
def list_restore_verification_plan_associations request_pb, options = nil
|
|
2491
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2492
|
+
|
|
2493
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_restore_verification_plan_associations_request request_pb
|
|
2494
|
+
query_string_params = if query_string_params.any?
|
|
2495
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2496
|
+
else
|
|
2497
|
+
{}
|
|
2498
|
+
end
|
|
2499
|
+
|
|
2500
|
+
response = @client_stub.make_http_request(
|
|
2501
|
+
verb,
|
|
2502
|
+
uri: uri,
|
|
2503
|
+
body: body || "",
|
|
2504
|
+
params: query_string_params,
|
|
2505
|
+
method_name: "list_restore_verification_plan_associations",
|
|
2506
|
+
options: options
|
|
2507
|
+
)
|
|
2508
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2509
|
+
result = ::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlanAssociationsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
2510
|
+
catch :response do
|
|
2511
|
+
yield result, operation if block_given?
|
|
2512
|
+
result
|
|
2513
|
+
end
|
|
2514
|
+
end
|
|
2515
|
+
|
|
2516
|
+
##
|
|
2517
|
+
# Baseline implementation for the delete_restore_verification_plan_association REST call
|
|
2518
|
+
#
|
|
2519
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::DeleteRestoreVerificationPlanAssociationRequest]
|
|
2520
|
+
# A request object representing the call parameters. Required.
|
|
2521
|
+
# @param options [::Gapic::CallOptions]
|
|
2522
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2523
|
+
#
|
|
2524
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2525
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
2526
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2527
|
+
#
|
|
2528
|
+
# @return [::Google::Longrunning::Operation]
|
|
2529
|
+
# A result object deserialized from the server's reply
|
|
2530
|
+
def delete_restore_verification_plan_association request_pb, options = nil
|
|
2531
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2532
|
+
|
|
2533
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_restore_verification_plan_association_request request_pb
|
|
2534
|
+
query_string_params = if query_string_params.any?
|
|
2535
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2536
|
+
else
|
|
2537
|
+
{}
|
|
2538
|
+
end
|
|
2539
|
+
|
|
2540
|
+
response = @client_stub.make_http_request(
|
|
2541
|
+
verb,
|
|
2542
|
+
uri: uri,
|
|
2543
|
+
body: body || "",
|
|
2544
|
+
params: query_string_params,
|
|
2545
|
+
method_name: "delete_restore_verification_plan_association",
|
|
2546
|
+
options: options
|
|
2547
|
+
)
|
|
2548
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2549
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
2550
|
+
catch :response do
|
|
2551
|
+
yield result, operation if block_given?
|
|
2552
|
+
result
|
|
2553
|
+
end
|
|
2554
|
+
end
|
|
2555
|
+
|
|
2556
|
+
##
|
|
2557
|
+
# Baseline implementation for the trigger_restore_verification REST call
|
|
2558
|
+
#
|
|
2559
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::TriggerRestoreVerificationRequest]
|
|
2560
|
+
# A request object representing the call parameters. Required.
|
|
2561
|
+
# @param options [::Gapic::CallOptions]
|
|
2562
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2563
|
+
#
|
|
2564
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2565
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
2566
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2567
|
+
#
|
|
2568
|
+
# @return [::Google::Longrunning::Operation]
|
|
2569
|
+
# A result object deserialized from the server's reply
|
|
2570
|
+
def trigger_restore_verification request_pb, options = nil
|
|
2571
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2572
|
+
|
|
2573
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_trigger_restore_verification_request request_pb
|
|
2574
|
+
query_string_params = if query_string_params.any?
|
|
2575
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2576
|
+
else
|
|
2577
|
+
{}
|
|
2578
|
+
end
|
|
2579
|
+
|
|
2580
|
+
response = @client_stub.make_http_request(
|
|
2581
|
+
verb,
|
|
2582
|
+
uri: uri,
|
|
2583
|
+
body: body || "",
|
|
2584
|
+
params: query_string_params,
|
|
2585
|
+
method_name: "trigger_restore_verification",
|
|
2586
|
+
options: options
|
|
2587
|
+
)
|
|
2588
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2589
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
2590
|
+
catch :response do
|
|
2591
|
+
yield result, operation if block_given?
|
|
2592
|
+
result
|
|
2593
|
+
end
|
|
2594
|
+
end
|
|
2595
|
+
|
|
2596
|
+
##
|
|
2597
|
+
# Baseline implementation for the get_restore_verification_plan REST call
|
|
2598
|
+
#
|
|
2599
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetRestoreVerificationPlanRequest]
|
|
2600
|
+
# A request object representing the call parameters. Required.
|
|
2601
|
+
# @param options [::Gapic::CallOptions]
|
|
2602
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2603
|
+
#
|
|
2604
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2605
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::RestoreVerificationPlan]
|
|
2606
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2607
|
+
#
|
|
2608
|
+
# @return [::Google::Cloud::BackupDR::V1::RestoreVerificationPlan]
|
|
2609
|
+
# A result object deserialized from the server's reply
|
|
2610
|
+
def get_restore_verification_plan request_pb, options = nil
|
|
2611
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2612
|
+
|
|
2613
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_restore_verification_plan_request request_pb
|
|
2614
|
+
query_string_params = if query_string_params.any?
|
|
2615
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2616
|
+
else
|
|
2617
|
+
{}
|
|
2618
|
+
end
|
|
2619
|
+
|
|
2620
|
+
response = @client_stub.make_http_request(
|
|
2621
|
+
verb,
|
|
2622
|
+
uri: uri,
|
|
2623
|
+
body: body || "",
|
|
2624
|
+
params: query_string_params,
|
|
2625
|
+
method_name: "get_restore_verification_plan",
|
|
2626
|
+
options: options
|
|
2627
|
+
)
|
|
2628
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2629
|
+
result = ::Google::Cloud::BackupDR::V1::RestoreVerificationPlan.decode_json response.body, ignore_unknown_fields: true
|
|
2630
|
+
catch :response do
|
|
2631
|
+
yield result, operation if block_given?
|
|
2632
|
+
result
|
|
2633
|
+
end
|
|
2634
|
+
end
|
|
2635
|
+
|
|
2636
|
+
##
|
|
2637
|
+
# Baseline implementation for the list_restore_verification_plans REST call
|
|
2638
|
+
#
|
|
2639
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlansRequest]
|
|
2640
|
+
# A request object representing the call parameters. Required.
|
|
2641
|
+
# @param options [::Gapic::CallOptions]
|
|
2642
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2643
|
+
#
|
|
2644
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2645
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlansResponse]
|
|
2646
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2647
|
+
#
|
|
2648
|
+
# @return [::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlansResponse]
|
|
2649
|
+
# A result object deserialized from the server's reply
|
|
2650
|
+
def list_restore_verification_plans request_pb, options = nil
|
|
2651
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2652
|
+
|
|
2653
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_restore_verification_plans_request request_pb
|
|
2654
|
+
query_string_params = if query_string_params.any?
|
|
2655
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2656
|
+
else
|
|
2657
|
+
{}
|
|
2658
|
+
end
|
|
2659
|
+
|
|
2660
|
+
response = @client_stub.make_http_request(
|
|
2661
|
+
verb,
|
|
2662
|
+
uri: uri,
|
|
2663
|
+
body: body || "",
|
|
2664
|
+
params: query_string_params,
|
|
2665
|
+
method_name: "list_restore_verification_plans",
|
|
2666
|
+
options: options
|
|
2667
|
+
)
|
|
2668
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2669
|
+
result = ::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlansResponse.decode_json response.body, ignore_unknown_fields: true
|
|
2670
|
+
catch :response do
|
|
2671
|
+
yield result, operation if block_given?
|
|
2672
|
+
result
|
|
2673
|
+
end
|
|
2674
|
+
end
|
|
2675
|
+
|
|
2676
|
+
##
|
|
2677
|
+
# Baseline implementation for the delete_restore_verification_plan REST call
|
|
2678
|
+
#
|
|
2679
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::DeleteRestoreVerificationPlanRequest]
|
|
2680
|
+
# A request object representing the call parameters. Required.
|
|
2681
|
+
# @param options [::Gapic::CallOptions]
|
|
2682
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2683
|
+
#
|
|
2684
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2685
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
2686
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2687
|
+
#
|
|
2688
|
+
# @return [::Google::Longrunning::Operation]
|
|
2689
|
+
# A result object deserialized from the server's reply
|
|
2690
|
+
def delete_restore_verification_plan request_pb, options = nil
|
|
2691
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2692
|
+
|
|
2693
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_restore_verification_plan_request request_pb
|
|
2694
|
+
query_string_params = if query_string_params.any?
|
|
2695
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2696
|
+
else
|
|
2697
|
+
{}
|
|
2698
|
+
end
|
|
2699
|
+
|
|
2700
|
+
response = @client_stub.make_http_request(
|
|
2701
|
+
verb,
|
|
2702
|
+
uri: uri,
|
|
2703
|
+
body: body || "",
|
|
2704
|
+
params: query_string_params,
|
|
2705
|
+
method_name: "delete_restore_verification_plan",
|
|
2706
|
+
options: options
|
|
2707
|
+
)
|
|
2708
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2709
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
2710
|
+
catch :response do
|
|
2711
|
+
yield result, operation if block_given?
|
|
2712
|
+
result
|
|
2713
|
+
end
|
|
2714
|
+
end
|
|
2715
|
+
|
|
2716
|
+
##
|
|
2717
|
+
# @private
|
|
2718
|
+
#
|
|
2719
|
+
# GRPC transcoding helper method for the list_management_servers REST call
|
|
2720
|
+
#
|
|
2721
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListManagementServersRequest]
|
|
2722
|
+
# A request object representing the call parameters. Required.
|
|
2723
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2724
|
+
# Uri, Body, Query string parameters
|
|
2725
|
+
def self.transcode_list_management_servers_request request_pb
|
|
2726
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2727
|
+
.with_bindings(
|
|
2728
|
+
uri_method: :get,
|
|
2729
|
+
uri_template: "/v1/{parent}/managementServers",
|
|
2730
|
+
matches: [
|
|
2731
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
2732
|
+
]
|
|
2733
|
+
)
|
|
2734
|
+
transcoder.transcode request_pb
|
|
2735
|
+
end
|
|
2736
|
+
|
|
2737
|
+
##
|
|
2738
|
+
# @private
|
|
2739
|
+
#
|
|
2740
|
+
# GRPC transcoding helper method for the get_management_server REST call
|
|
2741
|
+
#
|
|
2742
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetManagementServerRequest]
|
|
2743
|
+
# A request object representing the call parameters. Required.
|
|
2744
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2745
|
+
# Uri, Body, Query string parameters
|
|
2746
|
+
def self.transcode_get_management_server_request request_pb
|
|
2747
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2748
|
+
.with_bindings(
|
|
2749
|
+
uri_method: :get,
|
|
2750
|
+
uri_template: "/v1/{name}",
|
|
2751
|
+
matches: [
|
|
2752
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/managementServers/[^/]+/?$}, false]
|
|
2753
|
+
]
|
|
2754
|
+
)
|
|
2755
|
+
transcoder.transcode request_pb
|
|
2756
|
+
end
|
|
2757
|
+
|
|
2758
|
+
##
|
|
2759
|
+
# @private
|
|
2760
|
+
#
|
|
2761
|
+
# GRPC transcoding helper method for the create_management_server REST call
|
|
2762
|
+
#
|
|
2763
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::CreateManagementServerRequest]
|
|
2764
|
+
# A request object representing the call parameters. Required.
|
|
2765
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2766
|
+
# Uri, Body, Query string parameters
|
|
2767
|
+
def self.transcode_create_management_server_request request_pb
|
|
2768
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2769
|
+
.with_bindings(
|
|
2770
|
+
uri_method: :post,
|
|
2771
|
+
uri_template: "/v1/{parent}/managementServers",
|
|
2772
|
+
body: "management_server",
|
|
2773
|
+
matches: [
|
|
2774
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
2775
|
+
]
|
|
2776
|
+
)
|
|
2777
|
+
transcoder.transcode request_pb
|
|
2778
|
+
end
|
|
2779
|
+
|
|
2780
|
+
##
|
|
2781
|
+
# @private
|
|
2782
|
+
#
|
|
2783
|
+
# GRPC transcoding helper method for the delete_management_server REST call
|
|
2784
|
+
#
|
|
2785
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::DeleteManagementServerRequest]
|
|
2786
|
+
# A request object representing the call parameters. Required.
|
|
2787
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2788
|
+
# Uri, Body, Query string parameters
|
|
2789
|
+
def self.transcode_delete_management_server_request request_pb
|
|
2790
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2791
|
+
.with_bindings(
|
|
2792
|
+
uri_method: :delete,
|
|
2793
|
+
uri_template: "/v1/{name}",
|
|
2794
|
+
matches: [
|
|
2795
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/managementServers/[^/]+/?$}, false]
|
|
2796
|
+
]
|
|
2797
|
+
)
|
|
2798
|
+
transcoder.transcode request_pb
|
|
2799
|
+
end
|
|
2800
|
+
|
|
2801
|
+
##
|
|
2802
|
+
# @private
|
|
2803
|
+
#
|
|
2804
|
+
# GRPC transcoding helper method for the create_backup_vault REST call
|
|
2805
|
+
#
|
|
2806
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::CreateBackupVaultRequest]
|
|
2807
|
+
# A request object representing the call parameters. Required.
|
|
2808
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2809
|
+
# Uri, Body, Query string parameters
|
|
2810
|
+
def self.transcode_create_backup_vault_request request_pb
|
|
2811
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2812
|
+
.with_bindings(
|
|
2813
|
+
uri_method: :post,
|
|
2814
|
+
uri_template: "/v1/{parent}/backupVaults",
|
|
2815
|
+
body: "backup_vault",
|
|
2816
|
+
matches: [
|
|
2817
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
2818
|
+
]
|
|
2819
|
+
)
|
|
2820
|
+
transcoder.transcode request_pb
|
|
2821
|
+
end
|
|
2822
|
+
|
|
2823
|
+
##
|
|
2824
|
+
# @private
|
|
2825
|
+
#
|
|
2826
|
+
# GRPC transcoding helper method for the list_backup_vaults REST call
|
|
2827
|
+
#
|
|
2828
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListBackupVaultsRequest]
|
|
2829
|
+
# A request object representing the call parameters. Required.
|
|
2830
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2831
|
+
# Uri, Body, Query string parameters
|
|
2832
|
+
def self.transcode_list_backup_vaults_request request_pb
|
|
2833
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2834
|
+
.with_bindings(
|
|
2835
|
+
uri_method: :get,
|
|
2836
|
+
uri_template: "/v1/{parent}/backupVaults",
|
|
2837
|
+
matches: [
|
|
2838
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
2839
|
+
]
|
|
2840
|
+
)
|
|
2841
|
+
transcoder.transcode request_pb
|
|
2842
|
+
end
|
|
2843
|
+
|
|
2844
|
+
##
|
|
2845
|
+
# @private
|
|
2846
|
+
#
|
|
2847
|
+
# GRPC transcoding helper method for the fetch_usable_backup_vaults REST call
|
|
2848
|
+
#
|
|
2849
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::FetchUsableBackupVaultsRequest]
|
|
2850
|
+
# A request object representing the call parameters. Required.
|
|
2851
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2852
|
+
# Uri, Body, Query string parameters
|
|
2853
|
+
def self.transcode_fetch_usable_backup_vaults_request request_pb
|
|
2854
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2855
|
+
.with_bindings(
|
|
2856
|
+
uri_method: :get,
|
|
2857
|
+
uri_template: "/v1/{parent}/backupVaults:fetchUsable",
|
|
2858
|
+
matches: [
|
|
2859
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
2860
|
+
]
|
|
2861
|
+
)
|
|
2862
|
+
transcoder.transcode request_pb
|
|
2863
|
+
end
|
|
2864
|
+
|
|
2865
|
+
##
|
|
2866
|
+
# @private
|
|
2867
|
+
#
|
|
2868
|
+
# GRPC transcoding helper method for the get_backup_vault REST call
|
|
2869
|
+
#
|
|
2870
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetBackupVaultRequest]
|
|
2871
|
+
# A request object representing the call parameters. Required.
|
|
2872
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2873
|
+
# Uri, Body, Query string parameters
|
|
2874
|
+
def self.transcode_get_backup_vault_request request_pb
|
|
2875
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2876
|
+
.with_bindings(
|
|
2877
|
+
uri_method: :get,
|
|
2878
|
+
uri_template: "/v1/{name}",
|
|
2879
|
+
matches: [
|
|
2880
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/?$}, false]
|
|
2881
|
+
]
|
|
2882
|
+
)
|
|
2883
|
+
transcoder.transcode request_pb
|
|
2884
|
+
end
|
|
2885
|
+
|
|
2886
|
+
##
|
|
2887
|
+
# @private
|
|
2888
|
+
#
|
|
2889
|
+
# GRPC transcoding helper method for the update_backup_vault REST call
|
|
2890
|
+
#
|
|
2891
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::UpdateBackupVaultRequest]
|
|
2892
|
+
# A request object representing the call parameters. Required.
|
|
2893
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2894
|
+
# Uri, Body, Query string parameters
|
|
2895
|
+
def self.transcode_update_backup_vault_request request_pb
|
|
2896
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2897
|
+
.with_bindings(
|
|
2898
|
+
uri_method: :patch,
|
|
2899
|
+
uri_template: "/v1/{backup_vault.name}",
|
|
2900
|
+
body: "backup_vault",
|
|
2901
|
+
matches: [
|
|
2902
|
+
["backup_vault.name", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/?$}, false]
|
|
2903
|
+
]
|
|
2904
|
+
)
|
|
2905
|
+
transcoder.transcode request_pb
|
|
2906
|
+
end
|
|
2907
|
+
|
|
2908
|
+
##
|
|
2909
|
+
# @private
|
|
2910
|
+
#
|
|
2911
|
+
# GRPC transcoding helper method for the delete_backup_vault REST call
|
|
2912
|
+
#
|
|
2913
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::DeleteBackupVaultRequest]
|
|
2914
|
+
# A request object representing the call parameters. Required.
|
|
2915
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2916
|
+
# Uri, Body, Query string parameters
|
|
2917
|
+
def self.transcode_delete_backup_vault_request request_pb
|
|
2918
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2919
|
+
.with_bindings(
|
|
2920
|
+
uri_method: :delete,
|
|
2921
|
+
uri_template: "/v1/{name}",
|
|
2922
|
+
matches: [
|
|
2923
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/?$}, false]
|
|
2924
|
+
]
|
|
2925
|
+
)
|
|
2926
|
+
transcoder.transcode request_pb
|
|
2927
|
+
end
|
|
2928
|
+
|
|
2929
|
+
##
|
|
2930
|
+
# @private
|
|
2931
|
+
#
|
|
2932
|
+
# GRPC transcoding helper method for the list_data_sources REST call
|
|
2933
|
+
#
|
|
2934
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListDataSourcesRequest]
|
|
2935
|
+
# A request object representing the call parameters. Required.
|
|
2936
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2937
|
+
# Uri, Body, Query string parameters
|
|
2938
|
+
def self.transcode_list_data_sources_request request_pb
|
|
2939
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2940
|
+
.with_bindings(
|
|
2941
|
+
uri_method: :get,
|
|
2942
|
+
uri_template: "/v1/{parent}/dataSources",
|
|
2943
|
+
matches: [
|
|
2944
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/?$}, false]
|
|
2945
|
+
]
|
|
2946
|
+
)
|
|
2947
|
+
transcoder.transcode request_pb
|
|
2948
|
+
end
|
|
2949
|
+
|
|
2950
|
+
##
|
|
2951
|
+
# @private
|
|
2952
|
+
#
|
|
2953
|
+
# GRPC transcoding helper method for the get_data_source REST call
|
|
2954
|
+
#
|
|
2955
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetDataSourceRequest]
|
|
2956
|
+
# A request object representing the call parameters. Required.
|
|
2957
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2958
|
+
# Uri, Body, Query string parameters
|
|
2959
|
+
def self.transcode_get_data_source_request request_pb
|
|
2960
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2961
|
+
.with_bindings(
|
|
2962
|
+
uri_method: :get,
|
|
2963
|
+
uri_template: "/v1/{name}",
|
|
2964
|
+
matches: [
|
|
2965
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+/?$}, false]
|
|
2966
|
+
]
|
|
2967
|
+
)
|
|
2968
|
+
transcoder.transcode request_pb
|
|
2969
|
+
end
|
|
2970
|
+
|
|
2971
|
+
##
|
|
2972
|
+
# @private
|
|
2973
|
+
#
|
|
2974
|
+
# GRPC transcoding helper method for the update_data_source REST call
|
|
2975
|
+
#
|
|
2976
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::UpdateDataSourceRequest]
|
|
2977
|
+
# A request object representing the call parameters. Required.
|
|
2978
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2979
|
+
# Uri, Body, Query string parameters
|
|
2980
|
+
def self.transcode_update_data_source_request request_pb
|
|
2981
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2982
|
+
.with_bindings(
|
|
2983
|
+
uri_method: :patch,
|
|
2984
|
+
uri_template: "/v1/{data_source.name}",
|
|
2985
|
+
body: "data_source",
|
|
2986
|
+
matches: [
|
|
2987
|
+
["data_source.name", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+/?$}, false]
|
|
2988
|
+
]
|
|
2989
|
+
)
|
|
2990
|
+
transcoder.transcode request_pb
|
|
2991
|
+
end
|
|
2992
|
+
|
|
2993
|
+
##
|
|
2994
|
+
# @private
|
|
2995
|
+
#
|
|
2996
|
+
# GRPC transcoding helper method for the list_backups REST call
|
|
2997
|
+
#
|
|
2998
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListBackupsRequest]
|
|
2999
|
+
# A request object representing the call parameters. Required.
|
|
3000
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3001
|
+
# Uri, Body, Query string parameters
|
|
3002
|
+
def self.transcode_list_backups_request request_pb
|
|
3003
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3004
|
+
.with_bindings(
|
|
3005
|
+
uri_method: :get,
|
|
3006
|
+
uri_template: "/v1/{parent}/backups",
|
|
3007
|
+
matches: [
|
|
3008
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+/?$}, false]
|
|
3009
|
+
]
|
|
3010
|
+
)
|
|
3011
|
+
transcoder.transcode request_pb
|
|
3012
|
+
end
|
|
3013
|
+
|
|
3014
|
+
##
|
|
3015
|
+
# @private
|
|
3016
|
+
#
|
|
3017
|
+
# GRPC transcoding helper method for the fetch_backups_for_resource_type REST call
|
|
3018
|
+
#
|
|
3019
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::FetchBackupsForResourceTypeRequest]
|
|
3020
|
+
# A request object representing the call parameters. Required.
|
|
3021
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3022
|
+
# Uri, Body, Query string parameters
|
|
3023
|
+
def self.transcode_fetch_backups_for_resource_type_request request_pb
|
|
3024
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3025
|
+
.with_bindings(
|
|
3026
|
+
uri_method: :get,
|
|
3027
|
+
uri_template: "/v1/{parent}/backups:fetchForResourceType",
|
|
3028
|
+
matches: [
|
|
3029
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+/?$}, false]
|
|
3030
|
+
]
|
|
3031
|
+
)
|
|
3032
|
+
transcoder.transcode request_pb
|
|
3033
|
+
end
|
|
3034
|
+
|
|
3035
|
+
##
|
|
3036
|
+
# @private
|
|
3037
|
+
#
|
|
3038
|
+
# GRPC transcoding helper method for the get_backup REST call
|
|
3039
|
+
#
|
|
3040
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetBackupRequest]
|
|
3041
|
+
# A request object representing the call parameters. Required.
|
|
3042
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3043
|
+
# Uri, Body, Query string parameters
|
|
3044
|
+
def self.transcode_get_backup_request request_pb
|
|
3045
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3046
|
+
.with_bindings(
|
|
3047
|
+
uri_method: :get,
|
|
3048
|
+
uri_template: "/v1/{name}",
|
|
3049
|
+
matches: [
|
|
3050
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+/backups/[^/]+/?$}, false]
|
|
3051
|
+
]
|
|
3052
|
+
)
|
|
3053
|
+
transcoder.transcode request_pb
|
|
3054
|
+
end
|
|
3055
|
+
|
|
3056
|
+
##
|
|
3057
|
+
# @private
|
|
3058
|
+
#
|
|
3059
|
+
# GRPC transcoding helper method for the update_backup REST call
|
|
3060
|
+
#
|
|
3061
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::UpdateBackupRequest]
|
|
3062
|
+
# A request object representing the call parameters. Required.
|
|
3063
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3064
|
+
# Uri, Body, Query string parameters
|
|
3065
|
+
def self.transcode_update_backup_request request_pb
|
|
3066
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3067
|
+
.with_bindings(
|
|
3068
|
+
uri_method: :patch,
|
|
3069
|
+
uri_template: "/v1/{backup.name}",
|
|
3070
|
+
body: "backup",
|
|
3071
|
+
matches: [
|
|
3072
|
+
["backup.name", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+/backups/[^/]+/?$}, false]
|
|
3073
|
+
]
|
|
3074
|
+
)
|
|
3075
|
+
transcoder.transcode request_pb
|
|
3076
|
+
end
|
|
3077
|
+
|
|
3078
|
+
##
|
|
3079
|
+
# @private
|
|
3080
|
+
#
|
|
3081
|
+
# GRPC transcoding helper method for the delete_backup REST call
|
|
3082
|
+
#
|
|
3083
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::DeleteBackupRequest]
|
|
3084
|
+
# A request object representing the call parameters. Required.
|
|
3085
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3086
|
+
# Uri, Body, Query string parameters
|
|
3087
|
+
def self.transcode_delete_backup_request request_pb
|
|
3088
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3089
|
+
.with_bindings(
|
|
3090
|
+
uri_method: :delete,
|
|
3091
|
+
uri_template: "/v1/{name}",
|
|
3092
|
+
matches: [
|
|
3093
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+/backups/[^/]+/?$}, false]
|
|
3094
|
+
]
|
|
3095
|
+
)
|
|
3096
|
+
transcoder.transcode request_pb
|
|
3097
|
+
end
|
|
3098
|
+
|
|
3099
|
+
##
|
|
3100
|
+
# @private
|
|
3101
|
+
#
|
|
3102
|
+
# GRPC transcoding helper method for the restore_backup REST call
|
|
3103
|
+
#
|
|
3104
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::RestoreBackupRequest]
|
|
3105
|
+
# A request object representing the call parameters. Required.
|
|
3106
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3107
|
+
# Uri, Body, Query string parameters
|
|
3108
|
+
def self.transcode_restore_backup_request request_pb
|
|
3109
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3110
|
+
.with_bindings(
|
|
3111
|
+
uri_method: :post,
|
|
3112
|
+
uri_template: "/v1/{name}:restore",
|
|
3113
|
+
body: "*",
|
|
3114
|
+
matches: [
|
|
3115
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+/backups/[^/]+/?$}, false]
|
|
3116
|
+
]
|
|
3117
|
+
)
|
|
3118
|
+
transcoder.transcode request_pb
|
|
3119
|
+
end
|
|
3120
|
+
|
|
1556
3121
|
##
|
|
1557
3122
|
# @private
|
|
1558
3123
|
#
|
|
1559
|
-
# GRPC transcoding helper method for the
|
|
3124
|
+
# GRPC transcoding helper method for the create_backup_plan REST call
|
|
1560
3125
|
#
|
|
1561
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3126
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::CreateBackupPlanRequest]
|
|
1562
3127
|
# A request object representing the call parameters. Required.
|
|
1563
3128
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1564
3129
|
# Uri, Body, Query string parameters
|
|
1565
|
-
def self.
|
|
3130
|
+
def self.transcode_create_backup_plan_request request_pb
|
|
3131
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3132
|
+
.with_bindings(
|
|
3133
|
+
uri_method: :post,
|
|
3134
|
+
uri_template: "/v1/{parent}/backupPlans",
|
|
3135
|
+
body: "backup_plan",
|
|
3136
|
+
matches: [
|
|
3137
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
3138
|
+
]
|
|
3139
|
+
)
|
|
3140
|
+
transcoder.transcode request_pb
|
|
3141
|
+
end
|
|
3142
|
+
|
|
3143
|
+
##
|
|
3144
|
+
# @private
|
|
3145
|
+
#
|
|
3146
|
+
# GRPC transcoding helper method for the update_backup_plan REST call
|
|
3147
|
+
#
|
|
3148
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::UpdateBackupPlanRequest]
|
|
3149
|
+
# A request object representing the call parameters. Required.
|
|
3150
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3151
|
+
# Uri, Body, Query string parameters
|
|
3152
|
+
def self.transcode_update_backup_plan_request request_pb
|
|
3153
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3154
|
+
.with_bindings(
|
|
3155
|
+
uri_method: :patch,
|
|
3156
|
+
uri_template: "/v1/{backup_plan.name}",
|
|
3157
|
+
body: "backup_plan",
|
|
3158
|
+
matches: [
|
|
3159
|
+
["backup_plan.name", %r{^projects/[^/]+/locations/[^/]+/backupPlans/[^/]+/?$}, false]
|
|
3160
|
+
]
|
|
3161
|
+
)
|
|
3162
|
+
transcoder.transcode request_pb
|
|
3163
|
+
end
|
|
3164
|
+
|
|
3165
|
+
##
|
|
3166
|
+
# @private
|
|
3167
|
+
#
|
|
3168
|
+
# GRPC transcoding helper method for the get_backup_plan REST call
|
|
3169
|
+
#
|
|
3170
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetBackupPlanRequest]
|
|
3171
|
+
# A request object representing the call parameters. Required.
|
|
3172
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3173
|
+
# Uri, Body, Query string parameters
|
|
3174
|
+
def self.transcode_get_backup_plan_request request_pb
|
|
1566
3175
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1567
3176
|
.with_bindings(
|
|
1568
3177
|
uri_method: :get,
|
|
1569
|
-
uri_template: "/v1/{
|
|
3178
|
+
uri_template: "/v1/{name}",
|
|
3179
|
+
matches: [
|
|
3180
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupPlans/[^/]+/?$}, false]
|
|
3181
|
+
]
|
|
3182
|
+
)
|
|
3183
|
+
transcoder.transcode request_pb
|
|
3184
|
+
end
|
|
3185
|
+
|
|
3186
|
+
##
|
|
3187
|
+
# @private
|
|
3188
|
+
#
|
|
3189
|
+
# GRPC transcoding helper method for the list_backup_plans REST call
|
|
3190
|
+
#
|
|
3191
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListBackupPlansRequest]
|
|
3192
|
+
# A request object representing the call parameters. Required.
|
|
3193
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3194
|
+
# Uri, Body, Query string parameters
|
|
3195
|
+
def self.transcode_list_backup_plans_request request_pb
|
|
3196
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3197
|
+
.with_bindings(
|
|
3198
|
+
uri_method: :get,
|
|
3199
|
+
uri_template: "/v1/{parent}/backupPlans",
|
|
1570
3200
|
matches: [
|
|
1571
3201
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1572
3202
|
]
|
|
@@ -1577,19 +3207,40 @@ module Google
|
|
|
1577
3207
|
##
|
|
1578
3208
|
# @private
|
|
1579
3209
|
#
|
|
1580
|
-
# GRPC transcoding helper method for the
|
|
3210
|
+
# GRPC transcoding helper method for the delete_backup_plan REST call
|
|
1581
3211
|
#
|
|
1582
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3212
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::DeleteBackupPlanRequest]
|
|
1583
3213
|
# A request object representing the call parameters. Required.
|
|
1584
3214
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1585
3215
|
# Uri, Body, Query string parameters
|
|
1586
|
-
def self.
|
|
3216
|
+
def self.transcode_delete_backup_plan_request request_pb
|
|
3217
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3218
|
+
.with_bindings(
|
|
3219
|
+
uri_method: :delete,
|
|
3220
|
+
uri_template: "/v1/{name}",
|
|
3221
|
+
matches: [
|
|
3222
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupPlans/[^/]+/?$}, false]
|
|
3223
|
+
]
|
|
3224
|
+
)
|
|
3225
|
+
transcoder.transcode request_pb
|
|
3226
|
+
end
|
|
3227
|
+
|
|
3228
|
+
##
|
|
3229
|
+
# @private
|
|
3230
|
+
#
|
|
3231
|
+
# GRPC transcoding helper method for the get_backup_plan_revision REST call
|
|
3232
|
+
#
|
|
3233
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetBackupPlanRevisionRequest]
|
|
3234
|
+
# A request object representing the call parameters. Required.
|
|
3235
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3236
|
+
# Uri, Body, Query string parameters
|
|
3237
|
+
def self.transcode_get_backup_plan_revision_request request_pb
|
|
1587
3238
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1588
3239
|
.with_bindings(
|
|
1589
3240
|
uri_method: :get,
|
|
1590
3241
|
uri_template: "/v1/{name}",
|
|
1591
3242
|
matches: [
|
|
1592
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
|
3243
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupPlans/[^/]+/revisions/[^/]+/?$}, false]
|
|
1593
3244
|
]
|
|
1594
3245
|
)
|
|
1595
3246
|
transcoder.transcode request_pb
|
|
@@ -1598,18 +3249,39 @@ module Google
|
|
|
1598
3249
|
##
|
|
1599
3250
|
# @private
|
|
1600
3251
|
#
|
|
1601
|
-
# GRPC transcoding helper method for the
|
|
3252
|
+
# GRPC transcoding helper method for the list_backup_plan_revisions REST call
|
|
1602
3253
|
#
|
|
1603
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3254
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListBackupPlanRevisionsRequest]
|
|
1604
3255
|
# A request object representing the call parameters. Required.
|
|
1605
3256
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1606
3257
|
# Uri, Body, Query string parameters
|
|
1607
|
-
def self.
|
|
3258
|
+
def self.transcode_list_backup_plan_revisions_request request_pb
|
|
3259
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3260
|
+
.with_bindings(
|
|
3261
|
+
uri_method: :get,
|
|
3262
|
+
uri_template: "/v1/{parent}/revisions",
|
|
3263
|
+
matches: [
|
|
3264
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/backupPlans/[^/]+/?$}, false]
|
|
3265
|
+
]
|
|
3266
|
+
)
|
|
3267
|
+
transcoder.transcode request_pb
|
|
3268
|
+
end
|
|
3269
|
+
|
|
3270
|
+
##
|
|
3271
|
+
# @private
|
|
3272
|
+
#
|
|
3273
|
+
# GRPC transcoding helper method for the create_backup_plan_association REST call
|
|
3274
|
+
#
|
|
3275
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::CreateBackupPlanAssociationRequest]
|
|
3276
|
+
# A request object representing the call parameters. Required.
|
|
3277
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3278
|
+
# Uri, Body, Query string parameters
|
|
3279
|
+
def self.transcode_create_backup_plan_association_request request_pb
|
|
1608
3280
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1609
3281
|
.with_bindings(
|
|
1610
3282
|
uri_method: :post,
|
|
1611
|
-
uri_template: "/v1/{parent}/
|
|
1612
|
-
body: "
|
|
3283
|
+
uri_template: "/v1/{parent}/backupPlanAssociations",
|
|
3284
|
+
body: "backup_plan_association",
|
|
1613
3285
|
matches: [
|
|
1614
3286
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1615
3287
|
]
|
|
@@ -1620,19 +3292,126 @@ module Google
|
|
|
1620
3292
|
##
|
|
1621
3293
|
# @private
|
|
1622
3294
|
#
|
|
1623
|
-
# GRPC transcoding helper method for the
|
|
3295
|
+
# GRPC transcoding helper method for the update_backup_plan_association REST call
|
|
1624
3296
|
#
|
|
1625
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3297
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::UpdateBackupPlanAssociationRequest]
|
|
1626
3298
|
# A request object representing the call parameters. Required.
|
|
1627
3299
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1628
3300
|
# Uri, Body, Query string parameters
|
|
1629
|
-
def self.
|
|
3301
|
+
def self.transcode_update_backup_plan_association_request request_pb
|
|
3302
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3303
|
+
.with_bindings(
|
|
3304
|
+
uri_method: :patch,
|
|
3305
|
+
uri_template: "/v1/{backup_plan_association.name}",
|
|
3306
|
+
body: "backup_plan_association",
|
|
3307
|
+
matches: [
|
|
3308
|
+
["backup_plan_association.name", %r{^projects/[^/]+/locations/[^/]+/backupPlanAssociations/[^/]+/?$}, false]
|
|
3309
|
+
]
|
|
3310
|
+
)
|
|
3311
|
+
transcoder.transcode request_pb
|
|
3312
|
+
end
|
|
3313
|
+
|
|
3314
|
+
##
|
|
3315
|
+
# @private
|
|
3316
|
+
#
|
|
3317
|
+
# GRPC transcoding helper method for the get_backup_plan_association REST call
|
|
3318
|
+
#
|
|
3319
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetBackupPlanAssociationRequest]
|
|
3320
|
+
# A request object representing the call parameters. Required.
|
|
3321
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3322
|
+
# Uri, Body, Query string parameters
|
|
3323
|
+
def self.transcode_get_backup_plan_association_request request_pb
|
|
3324
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3325
|
+
.with_bindings(
|
|
3326
|
+
uri_method: :get,
|
|
3327
|
+
uri_template: "/v1/{name}",
|
|
3328
|
+
matches: [
|
|
3329
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupPlanAssociations/[^/]+/?$}, false]
|
|
3330
|
+
]
|
|
3331
|
+
)
|
|
3332
|
+
transcoder.transcode request_pb
|
|
3333
|
+
end
|
|
3334
|
+
|
|
3335
|
+
##
|
|
3336
|
+
# @private
|
|
3337
|
+
#
|
|
3338
|
+
# GRPC transcoding helper method for the list_backup_plan_associations REST call
|
|
3339
|
+
#
|
|
3340
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListBackupPlanAssociationsRequest]
|
|
3341
|
+
# A request object representing the call parameters. Required.
|
|
3342
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3343
|
+
# Uri, Body, Query string parameters
|
|
3344
|
+
def self.transcode_list_backup_plan_associations_request request_pb
|
|
3345
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3346
|
+
.with_bindings(
|
|
3347
|
+
uri_method: :get,
|
|
3348
|
+
uri_template: "/v1/{parent}/backupPlanAssociations",
|
|
3349
|
+
matches: [
|
|
3350
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
3351
|
+
]
|
|
3352
|
+
)
|
|
3353
|
+
transcoder.transcode request_pb
|
|
3354
|
+
end
|
|
3355
|
+
|
|
3356
|
+
##
|
|
3357
|
+
# @private
|
|
3358
|
+
#
|
|
3359
|
+
# GRPC transcoding helper method for the fetch_backup_plan_associations_for_resource_type REST call
|
|
3360
|
+
#
|
|
3361
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::FetchBackupPlanAssociationsForResourceTypeRequest]
|
|
3362
|
+
# A request object representing the call parameters. Required.
|
|
3363
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3364
|
+
# Uri, Body, Query string parameters
|
|
3365
|
+
def self.transcode_fetch_backup_plan_associations_for_resource_type_request request_pb
|
|
3366
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3367
|
+
.with_bindings(
|
|
3368
|
+
uri_method: :get,
|
|
3369
|
+
uri_template: "/v1/{parent}/backupPlanAssociations:fetchForResourceType",
|
|
3370
|
+
matches: [
|
|
3371
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
3372
|
+
]
|
|
3373
|
+
)
|
|
3374
|
+
transcoder.transcode request_pb
|
|
3375
|
+
end
|
|
3376
|
+
|
|
3377
|
+
##
|
|
3378
|
+
# @private
|
|
3379
|
+
#
|
|
3380
|
+
# GRPC transcoding helper method for the delete_backup_plan_association REST call
|
|
3381
|
+
#
|
|
3382
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::DeleteBackupPlanAssociationRequest]
|
|
3383
|
+
# A request object representing the call parameters. Required.
|
|
3384
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3385
|
+
# Uri, Body, Query string parameters
|
|
3386
|
+
def self.transcode_delete_backup_plan_association_request request_pb
|
|
1630
3387
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1631
3388
|
.with_bindings(
|
|
1632
3389
|
uri_method: :delete,
|
|
1633
3390
|
uri_template: "/v1/{name}",
|
|
1634
3391
|
matches: [
|
|
1635
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
|
3392
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupPlanAssociations/[^/]+/?$}, false]
|
|
3393
|
+
]
|
|
3394
|
+
)
|
|
3395
|
+
transcoder.transcode request_pb
|
|
3396
|
+
end
|
|
3397
|
+
|
|
3398
|
+
##
|
|
3399
|
+
# @private
|
|
3400
|
+
#
|
|
3401
|
+
# GRPC transcoding helper method for the trigger_backup REST call
|
|
3402
|
+
#
|
|
3403
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::TriggerBackupRequest]
|
|
3404
|
+
# A request object representing the call parameters. Required.
|
|
3405
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3406
|
+
# Uri, Body, Query string parameters
|
|
3407
|
+
def self.transcode_trigger_backup_request request_pb
|
|
3408
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3409
|
+
.with_bindings(
|
|
3410
|
+
uri_method: :post,
|
|
3411
|
+
uri_template: "/v1/{name}:triggerBackup",
|
|
3412
|
+
body: "*",
|
|
3413
|
+
matches: [
|
|
3414
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupPlanAssociations/[^/]+/?$}, false]
|
|
1636
3415
|
]
|
|
1637
3416
|
)
|
|
1638
3417
|
transcoder.transcode request_pb
|
|
@@ -1641,20 +3420,19 @@ module Google
|
|
|
1641
3420
|
##
|
|
1642
3421
|
# @private
|
|
1643
3422
|
#
|
|
1644
|
-
# GRPC transcoding helper method for the
|
|
3423
|
+
# GRPC transcoding helper method for the get_data_source_reference REST call
|
|
1645
3424
|
#
|
|
1646
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3425
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetDataSourceReferenceRequest]
|
|
1647
3426
|
# A request object representing the call parameters. Required.
|
|
1648
3427
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1649
3428
|
# Uri, Body, Query string parameters
|
|
1650
|
-
def self.
|
|
3429
|
+
def self.transcode_get_data_source_reference_request request_pb
|
|
1651
3430
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1652
3431
|
.with_bindings(
|
|
1653
|
-
uri_method: :
|
|
1654
|
-
uri_template: "/v1/{
|
|
1655
|
-
body: "backup_vault",
|
|
3432
|
+
uri_method: :get,
|
|
3433
|
+
uri_template: "/v1/{name}",
|
|
1656
3434
|
matches: [
|
|
1657
|
-
["
|
|
3435
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/dataSourceReferences/[^/]+/?$}, false]
|
|
1658
3436
|
]
|
|
1659
3437
|
)
|
|
1660
3438
|
transcoder.transcode request_pb
|
|
@@ -1663,17 +3441,17 @@ module Google
|
|
|
1663
3441
|
##
|
|
1664
3442
|
# @private
|
|
1665
3443
|
#
|
|
1666
|
-
# GRPC transcoding helper method for the
|
|
3444
|
+
# GRPC transcoding helper method for the list_data_source_references REST call
|
|
1667
3445
|
#
|
|
1668
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3446
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListDataSourceReferencesRequest]
|
|
1669
3447
|
# A request object representing the call parameters. Required.
|
|
1670
3448
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1671
3449
|
# Uri, Body, Query string parameters
|
|
1672
|
-
def self.
|
|
3450
|
+
def self.transcode_list_data_source_references_request request_pb
|
|
1673
3451
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1674
3452
|
.with_bindings(
|
|
1675
3453
|
uri_method: :get,
|
|
1676
|
-
uri_template: "/v1/{parent}/
|
|
3454
|
+
uri_template: "/v1/{parent}/dataSourceReferences",
|
|
1677
3455
|
matches: [
|
|
1678
3456
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1679
3457
|
]
|
|
@@ -1684,17 +3462,17 @@ module Google
|
|
|
1684
3462
|
##
|
|
1685
3463
|
# @private
|
|
1686
3464
|
#
|
|
1687
|
-
# GRPC transcoding helper method for the
|
|
3465
|
+
# GRPC transcoding helper method for the fetch_data_source_references_for_resource_type REST call
|
|
1688
3466
|
#
|
|
1689
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3467
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::FetchDataSourceReferencesForResourceTypeRequest]
|
|
1690
3468
|
# A request object representing the call parameters. Required.
|
|
1691
3469
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1692
3470
|
# Uri, Body, Query string parameters
|
|
1693
|
-
def self.
|
|
3471
|
+
def self.transcode_fetch_data_source_references_for_resource_type_request request_pb
|
|
1694
3472
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1695
3473
|
.with_bindings(
|
|
1696
3474
|
uri_method: :get,
|
|
1697
|
-
uri_template: "/v1/{parent}/
|
|
3475
|
+
uri_template: "/v1/{parent}/dataSourceReferences:fetchForResourceType",
|
|
1698
3476
|
matches: [
|
|
1699
3477
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1700
3478
|
]
|
|
@@ -1705,19 +3483,20 @@ module Google
|
|
|
1705
3483
|
##
|
|
1706
3484
|
# @private
|
|
1707
3485
|
#
|
|
1708
|
-
# GRPC transcoding helper method for the
|
|
3486
|
+
# GRPC transcoding helper method for the initialize_service REST call
|
|
1709
3487
|
#
|
|
1710
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3488
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::InitializeServiceRequest]
|
|
1711
3489
|
# A request object representing the call parameters. Required.
|
|
1712
3490
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1713
3491
|
# Uri, Body, Query string parameters
|
|
1714
|
-
def self.
|
|
3492
|
+
def self.transcode_initialize_service_request request_pb
|
|
1715
3493
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1716
3494
|
.with_bindings(
|
|
1717
|
-
uri_method: :
|
|
1718
|
-
uri_template: "/v1/{name}",
|
|
3495
|
+
uri_method: :post,
|
|
3496
|
+
uri_template: "/v1/{name}:initialize",
|
|
3497
|
+
body: "*",
|
|
1719
3498
|
matches: [
|
|
1720
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
|
3499
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/serviceConfig/?$}, false]
|
|
1721
3500
|
]
|
|
1722
3501
|
)
|
|
1723
3502
|
transcoder.transcode request_pb
|
|
@@ -1726,20 +3505,20 @@ module Google
|
|
|
1726
3505
|
##
|
|
1727
3506
|
# @private
|
|
1728
3507
|
#
|
|
1729
|
-
# GRPC transcoding helper method for the
|
|
3508
|
+
# GRPC transcoding helper method for the create_auto_protection_policy REST call
|
|
1730
3509
|
#
|
|
1731
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3510
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::CreateAutoProtectionPolicyRequest]
|
|
1732
3511
|
# A request object representing the call parameters. Required.
|
|
1733
3512
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1734
3513
|
# Uri, Body, Query string parameters
|
|
1735
|
-
def self.
|
|
3514
|
+
def self.transcode_create_auto_protection_policy_request request_pb
|
|
1736
3515
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1737
3516
|
.with_bindings(
|
|
1738
|
-
uri_method: :
|
|
1739
|
-
uri_template: "/v1/{
|
|
1740
|
-
body: "
|
|
3517
|
+
uri_method: :post,
|
|
3518
|
+
uri_template: "/v1/{parent}/autoProtectionPolicies",
|
|
3519
|
+
body: "auto_protection_policy",
|
|
1741
3520
|
matches: [
|
|
1742
|
-
["
|
|
3521
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1743
3522
|
]
|
|
1744
3523
|
)
|
|
1745
3524
|
transcoder.transcode request_pb
|
|
@@ -1748,19 +3527,19 @@ module Google
|
|
|
1748
3527
|
##
|
|
1749
3528
|
# @private
|
|
1750
3529
|
#
|
|
1751
|
-
# GRPC transcoding helper method for the
|
|
3530
|
+
# GRPC transcoding helper method for the list_auto_protection_policies REST call
|
|
1752
3531
|
#
|
|
1753
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3532
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListAutoProtectionPoliciesRequest]
|
|
1754
3533
|
# A request object representing the call parameters. Required.
|
|
1755
3534
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1756
3535
|
# Uri, Body, Query string parameters
|
|
1757
|
-
def self.
|
|
3536
|
+
def self.transcode_list_auto_protection_policies_request request_pb
|
|
1758
3537
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1759
3538
|
.with_bindings(
|
|
1760
|
-
uri_method: :
|
|
1761
|
-
uri_template: "/v1/{
|
|
3539
|
+
uri_method: :get,
|
|
3540
|
+
uri_template: "/v1/{parent}/autoProtectionPolicies",
|
|
1762
3541
|
matches: [
|
|
1763
|
-
["
|
|
3542
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1764
3543
|
]
|
|
1765
3544
|
)
|
|
1766
3545
|
transcoder.transcode request_pb
|
|
@@ -1769,19 +3548,19 @@ module Google
|
|
|
1769
3548
|
##
|
|
1770
3549
|
# @private
|
|
1771
3550
|
#
|
|
1772
|
-
# GRPC transcoding helper method for the
|
|
3551
|
+
# GRPC transcoding helper method for the get_auto_protection_policy REST call
|
|
1773
3552
|
#
|
|
1774
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3553
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetAutoProtectionPolicyRequest]
|
|
1775
3554
|
# A request object representing the call parameters. Required.
|
|
1776
3555
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1777
3556
|
# Uri, Body, Query string parameters
|
|
1778
|
-
def self.
|
|
3557
|
+
def self.transcode_get_auto_protection_policy_request request_pb
|
|
1779
3558
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1780
3559
|
.with_bindings(
|
|
1781
3560
|
uri_method: :get,
|
|
1782
|
-
uri_template: "/v1/{
|
|
3561
|
+
uri_template: "/v1/{name}",
|
|
1783
3562
|
matches: [
|
|
1784
|
-
["
|
|
3563
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/autoProtectionPolicies/[^/]+/?$}, false]
|
|
1785
3564
|
]
|
|
1786
3565
|
)
|
|
1787
3566
|
transcoder.transcode request_pb
|
|
@@ -1790,19 +3569,20 @@ module Google
|
|
|
1790
3569
|
##
|
|
1791
3570
|
# @private
|
|
1792
3571
|
#
|
|
1793
|
-
# GRPC transcoding helper method for the
|
|
3572
|
+
# GRPC transcoding helper method for the update_auto_protection_policy REST call
|
|
1794
3573
|
#
|
|
1795
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3574
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::UpdateAutoProtectionPolicyRequest]
|
|
1796
3575
|
# A request object representing the call parameters. Required.
|
|
1797
3576
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1798
3577
|
# Uri, Body, Query string parameters
|
|
1799
|
-
def self.
|
|
3578
|
+
def self.transcode_update_auto_protection_policy_request request_pb
|
|
1800
3579
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1801
3580
|
.with_bindings(
|
|
1802
|
-
uri_method: :
|
|
1803
|
-
uri_template: "/v1/{name}",
|
|
3581
|
+
uri_method: :patch,
|
|
3582
|
+
uri_template: "/v1/{auto_protection_policy.name}",
|
|
3583
|
+
body: "auto_protection_policy",
|
|
1804
3584
|
matches: [
|
|
1805
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
|
3585
|
+
["auto_protection_policy.name", %r{^projects/[^/]+/locations/[^/]+/autoProtectionPolicies/[^/]+/?$}, false]
|
|
1806
3586
|
]
|
|
1807
3587
|
)
|
|
1808
3588
|
transcoder.transcode request_pb
|
|
@@ -1811,20 +3591,19 @@ module Google
|
|
|
1811
3591
|
##
|
|
1812
3592
|
# @private
|
|
1813
3593
|
#
|
|
1814
|
-
# GRPC transcoding helper method for the
|
|
3594
|
+
# GRPC transcoding helper method for the delete_auto_protection_policy REST call
|
|
1815
3595
|
#
|
|
1816
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3596
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::DeleteAutoProtectionPolicyRequest]
|
|
1817
3597
|
# A request object representing the call parameters. Required.
|
|
1818
3598
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1819
3599
|
# Uri, Body, Query string parameters
|
|
1820
|
-
def self.
|
|
3600
|
+
def self.transcode_delete_auto_protection_policy_request request_pb
|
|
1821
3601
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1822
3602
|
.with_bindings(
|
|
1823
|
-
uri_method: :
|
|
1824
|
-
uri_template: "/v1/{
|
|
1825
|
-
body: "data_source",
|
|
3603
|
+
uri_method: :delete,
|
|
3604
|
+
uri_template: "/v1/{name}",
|
|
1826
3605
|
matches: [
|
|
1827
|
-
["
|
|
3606
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/autoProtectionPolicies/[^/]+/?$}, false]
|
|
1828
3607
|
]
|
|
1829
3608
|
)
|
|
1830
3609
|
transcoder.transcode request_pb
|
|
@@ -1833,19 +3612,20 @@ module Google
|
|
|
1833
3612
|
##
|
|
1834
3613
|
# @private
|
|
1835
3614
|
#
|
|
1836
|
-
# GRPC transcoding helper method for the
|
|
3615
|
+
# GRPC transcoding helper method for the create_auto_protection_policy_binding REST call
|
|
1837
3616
|
#
|
|
1838
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3617
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::CreateAutoProtectionPolicyBindingRequest]
|
|
1839
3618
|
# A request object representing the call parameters. Required.
|
|
1840
3619
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1841
3620
|
# Uri, Body, Query string parameters
|
|
1842
|
-
def self.
|
|
3621
|
+
def self.transcode_create_auto_protection_policy_binding_request request_pb
|
|
1843
3622
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1844
3623
|
.with_bindings(
|
|
1845
|
-
uri_method: :
|
|
1846
|
-
uri_template: "/v1/{parent}/
|
|
3624
|
+
uri_method: :post,
|
|
3625
|
+
uri_template: "/v1/{parent}/bindings",
|
|
3626
|
+
body: "auto_protection_policy_binding",
|
|
1847
3627
|
matches: [
|
|
1848
|
-
["parent", %r{^projects/[^/]+/locations/[^/]+/
|
|
3628
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/autoProtectionPolicies/[^/]+/?$}, false]
|
|
1849
3629
|
]
|
|
1850
3630
|
)
|
|
1851
3631
|
transcoder.transcode request_pb
|
|
@@ -1854,19 +3634,19 @@ module Google
|
|
|
1854
3634
|
##
|
|
1855
3635
|
# @private
|
|
1856
3636
|
#
|
|
1857
|
-
# GRPC transcoding helper method for the
|
|
3637
|
+
# GRPC transcoding helper method for the get_auto_protection_policy_binding REST call
|
|
1858
3638
|
#
|
|
1859
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3639
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetAutoProtectionPolicyBindingRequest]
|
|
1860
3640
|
# A request object representing the call parameters. Required.
|
|
1861
3641
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1862
3642
|
# Uri, Body, Query string parameters
|
|
1863
|
-
def self.
|
|
3643
|
+
def self.transcode_get_auto_protection_policy_binding_request request_pb
|
|
1864
3644
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1865
3645
|
.with_bindings(
|
|
1866
3646
|
uri_method: :get,
|
|
1867
|
-
uri_template: "/v1/{
|
|
3647
|
+
uri_template: "/v1/{name}",
|
|
1868
3648
|
matches: [
|
|
1869
|
-
["
|
|
3649
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/autoProtectionPolicies/[^/]+/bindings/[^/]+/?$}, false]
|
|
1870
3650
|
]
|
|
1871
3651
|
)
|
|
1872
3652
|
transcoder.transcode request_pb
|
|
@@ -1875,19 +3655,19 @@ module Google
|
|
|
1875
3655
|
##
|
|
1876
3656
|
# @private
|
|
1877
3657
|
#
|
|
1878
|
-
# GRPC transcoding helper method for the
|
|
3658
|
+
# GRPC transcoding helper method for the list_auto_protection_policy_bindings REST call
|
|
1879
3659
|
#
|
|
1880
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3660
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListAutoProtectionPolicyBindingsRequest]
|
|
1881
3661
|
# A request object representing the call parameters. Required.
|
|
1882
3662
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1883
3663
|
# Uri, Body, Query string parameters
|
|
1884
|
-
def self.
|
|
3664
|
+
def self.transcode_list_auto_protection_policy_bindings_request request_pb
|
|
1885
3665
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1886
3666
|
.with_bindings(
|
|
1887
3667
|
uri_method: :get,
|
|
1888
|
-
uri_template: "/v1/{
|
|
3668
|
+
uri_template: "/v1/{parent}/bindings",
|
|
1889
3669
|
matches: [
|
|
1890
|
-
["
|
|
3670
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/autoProtectionPolicies/[^/]+/?$}, false]
|
|
1891
3671
|
]
|
|
1892
3672
|
)
|
|
1893
3673
|
transcoder.transcode request_pb
|
|
@@ -1896,20 +3676,19 @@ module Google
|
|
|
1896
3676
|
##
|
|
1897
3677
|
# @private
|
|
1898
3678
|
#
|
|
1899
|
-
# GRPC transcoding helper method for the
|
|
3679
|
+
# GRPC transcoding helper method for the list_applied_auto_protection_policies REST call
|
|
1900
3680
|
#
|
|
1901
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3681
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListAppliedAutoProtectionPoliciesRequest]
|
|
1902
3682
|
# A request object representing the call parameters. Required.
|
|
1903
3683
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1904
3684
|
# Uri, Body, Query string parameters
|
|
1905
|
-
def self.
|
|
3685
|
+
def self.transcode_list_applied_auto_protection_policies_request request_pb
|
|
1906
3686
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1907
3687
|
.with_bindings(
|
|
1908
|
-
uri_method: :
|
|
1909
|
-
uri_template: "/v1/{
|
|
1910
|
-
body: "backup",
|
|
3688
|
+
uri_method: :get,
|
|
3689
|
+
uri_template: "/v1/{parent}/appliedAutoProtectionPolicies",
|
|
1911
3690
|
matches: [
|
|
1912
|
-
["
|
|
3691
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1913
3692
|
]
|
|
1914
3693
|
)
|
|
1915
3694
|
transcoder.transcode request_pb
|
|
@@ -1918,19 +3697,20 @@ module Google
|
|
|
1918
3697
|
##
|
|
1919
3698
|
# @private
|
|
1920
3699
|
#
|
|
1921
|
-
# GRPC transcoding helper method for the
|
|
3700
|
+
# GRPC transcoding helper method for the initiate_delete_auto_protection_policy_binding REST call
|
|
1922
3701
|
#
|
|
1923
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3702
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::InitiateDeleteAutoProtectionPolicyBindingRequest]
|
|
1924
3703
|
# A request object representing the call parameters. Required.
|
|
1925
3704
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1926
3705
|
# Uri, Body, Query string parameters
|
|
1927
|
-
def self.
|
|
3706
|
+
def self.transcode_initiate_delete_auto_protection_policy_binding_request request_pb
|
|
1928
3707
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1929
3708
|
.with_bindings(
|
|
1930
|
-
uri_method: :
|
|
1931
|
-
uri_template: "/v1/{name}",
|
|
3709
|
+
uri_method: :post,
|
|
3710
|
+
uri_template: "/v1/{name}:initiateDelete",
|
|
3711
|
+
body: "*",
|
|
1932
3712
|
matches: [
|
|
1933
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
|
3713
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/autoProtectionPolicies/[^/]+/bindings/[^/]+/?$}, false]
|
|
1934
3714
|
]
|
|
1935
3715
|
)
|
|
1936
3716
|
transcoder.transcode request_pb
|
|
@@ -1939,20 +3719,19 @@ module Google
|
|
|
1939
3719
|
##
|
|
1940
3720
|
# @private
|
|
1941
3721
|
#
|
|
1942
|
-
# GRPC transcoding helper method for the
|
|
3722
|
+
# GRPC transcoding helper method for the list_binding_matching_resources REST call
|
|
1943
3723
|
#
|
|
1944
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3724
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListBindingMatchingResourcesRequest]
|
|
1945
3725
|
# A request object representing the call parameters. Required.
|
|
1946
3726
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1947
3727
|
# Uri, Body, Query string parameters
|
|
1948
|
-
def self.
|
|
3728
|
+
def self.transcode_list_binding_matching_resources_request request_pb
|
|
1949
3729
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1950
3730
|
.with_bindings(
|
|
1951
|
-
uri_method: :
|
|
1952
|
-
uri_template: "/v1/{
|
|
1953
|
-
body: "*",
|
|
3731
|
+
uri_method: :get,
|
|
3732
|
+
uri_template: "/v1/{parent}/matchingResources",
|
|
1954
3733
|
matches: [
|
|
1955
|
-
["
|
|
3734
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/autoProtectionPolicies/[^/]+/bindings/[^/]+/?$}, false]
|
|
1956
3735
|
]
|
|
1957
3736
|
)
|
|
1958
3737
|
transcoder.transcode request_pb
|
|
@@ -1961,18 +3740,18 @@ module Google
|
|
|
1961
3740
|
##
|
|
1962
3741
|
# @private
|
|
1963
3742
|
#
|
|
1964
|
-
# GRPC transcoding helper method for the
|
|
3743
|
+
# GRPC transcoding helper method for the create_restore_template REST call
|
|
1965
3744
|
#
|
|
1966
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3745
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::CreateRestoreTemplateRequest]
|
|
1967
3746
|
# A request object representing the call parameters. Required.
|
|
1968
3747
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1969
3748
|
# Uri, Body, Query string parameters
|
|
1970
|
-
def self.
|
|
3749
|
+
def self.transcode_create_restore_template_request request_pb
|
|
1971
3750
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1972
3751
|
.with_bindings(
|
|
1973
3752
|
uri_method: :post,
|
|
1974
|
-
uri_template: "/v1/{parent}/
|
|
1975
|
-
body: "
|
|
3753
|
+
uri_template: "/v1/{parent}/restoreTemplates",
|
|
3754
|
+
body: "restore_template",
|
|
1976
3755
|
matches: [
|
|
1977
3756
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1978
3757
|
]
|
|
@@ -1983,20 +3762,19 @@ module Google
|
|
|
1983
3762
|
##
|
|
1984
3763
|
# @private
|
|
1985
3764
|
#
|
|
1986
|
-
# GRPC transcoding helper method for the
|
|
3765
|
+
# GRPC transcoding helper method for the get_restore_template REST call
|
|
1987
3766
|
#
|
|
1988
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3767
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetRestoreTemplateRequest]
|
|
1989
3768
|
# A request object representing the call parameters. Required.
|
|
1990
3769
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1991
3770
|
# Uri, Body, Query string parameters
|
|
1992
|
-
def self.
|
|
3771
|
+
def self.transcode_get_restore_template_request request_pb
|
|
1993
3772
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1994
3773
|
.with_bindings(
|
|
1995
|
-
uri_method: :
|
|
1996
|
-
uri_template: "/v1/{
|
|
1997
|
-
body: "backup_plan",
|
|
3774
|
+
uri_method: :get,
|
|
3775
|
+
uri_template: "/v1/{name}",
|
|
1998
3776
|
matches: [
|
|
1999
|
-
["
|
|
3777
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/restoreTemplates/[^/]+/?$}, false]
|
|
2000
3778
|
]
|
|
2001
3779
|
)
|
|
2002
3780
|
transcoder.transcode request_pb
|
|
@@ -2005,19 +3783,19 @@ module Google
|
|
|
2005
3783
|
##
|
|
2006
3784
|
# @private
|
|
2007
3785
|
#
|
|
2008
|
-
# GRPC transcoding helper method for the
|
|
3786
|
+
# GRPC transcoding helper method for the list_restore_templates REST call
|
|
2009
3787
|
#
|
|
2010
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3788
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListRestoreTemplatesRequest]
|
|
2011
3789
|
# A request object representing the call parameters. Required.
|
|
2012
3790
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2013
3791
|
# Uri, Body, Query string parameters
|
|
2014
|
-
def self.
|
|
3792
|
+
def self.transcode_list_restore_templates_request request_pb
|
|
2015
3793
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2016
3794
|
.with_bindings(
|
|
2017
3795
|
uri_method: :get,
|
|
2018
|
-
uri_template: "/v1/{
|
|
3796
|
+
uri_template: "/v1/{parent}/restoreTemplates",
|
|
2019
3797
|
matches: [
|
|
2020
|
-
["
|
|
3798
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
2021
3799
|
]
|
|
2022
3800
|
)
|
|
2023
3801
|
transcoder.transcode request_pb
|
|
@@ -2026,19 +3804,20 @@ module Google
|
|
|
2026
3804
|
##
|
|
2027
3805
|
# @private
|
|
2028
3806
|
#
|
|
2029
|
-
# GRPC transcoding helper method for the
|
|
3807
|
+
# GRPC transcoding helper method for the update_restore_template REST call
|
|
2030
3808
|
#
|
|
2031
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3809
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::UpdateRestoreTemplateRequest]
|
|
2032
3810
|
# A request object representing the call parameters. Required.
|
|
2033
3811
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2034
3812
|
# Uri, Body, Query string parameters
|
|
2035
|
-
def self.
|
|
3813
|
+
def self.transcode_update_restore_template_request request_pb
|
|
2036
3814
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2037
3815
|
.with_bindings(
|
|
2038
|
-
uri_method: :
|
|
2039
|
-
uri_template: "/v1/{
|
|
3816
|
+
uri_method: :patch,
|
|
3817
|
+
uri_template: "/v1/{restore_template.name}",
|
|
3818
|
+
body: "restore_template",
|
|
2040
3819
|
matches: [
|
|
2041
|
-
["
|
|
3820
|
+
["restore_template.name", %r{^projects/[^/]+/locations/[^/]+/restoreTemplates/[^/]+/?$}, false]
|
|
2042
3821
|
]
|
|
2043
3822
|
)
|
|
2044
3823
|
transcoder.transcode request_pb
|
|
@@ -2047,19 +3826,19 @@ module Google
|
|
|
2047
3826
|
##
|
|
2048
3827
|
# @private
|
|
2049
3828
|
#
|
|
2050
|
-
# GRPC transcoding helper method for the
|
|
3829
|
+
# GRPC transcoding helper method for the delete_restore_template REST call
|
|
2051
3830
|
#
|
|
2052
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3831
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::DeleteRestoreTemplateRequest]
|
|
2053
3832
|
# A request object representing the call parameters. Required.
|
|
2054
3833
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2055
3834
|
# Uri, Body, Query string parameters
|
|
2056
|
-
def self.
|
|
3835
|
+
def self.transcode_delete_restore_template_request request_pb
|
|
2057
3836
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2058
3837
|
.with_bindings(
|
|
2059
3838
|
uri_method: :delete,
|
|
2060
3839
|
uri_template: "/v1/{name}",
|
|
2061
3840
|
matches: [
|
|
2062
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
|
3841
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/restoreTemplates/[^/]+/?$}, false]
|
|
2063
3842
|
]
|
|
2064
3843
|
)
|
|
2065
3844
|
transcoder.transcode request_pb
|
|
@@ -2068,19 +3847,20 @@ module Google
|
|
|
2068
3847
|
##
|
|
2069
3848
|
# @private
|
|
2070
3849
|
#
|
|
2071
|
-
# GRPC transcoding helper method for the
|
|
3850
|
+
# GRPC transcoding helper method for the run_restore_template REST call
|
|
2072
3851
|
#
|
|
2073
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3852
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::RunRestoreTemplateRequest]
|
|
2074
3853
|
# A request object representing the call parameters. Required.
|
|
2075
3854
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2076
3855
|
# Uri, Body, Query string parameters
|
|
2077
|
-
def self.
|
|
3856
|
+
def self.transcode_run_restore_template_request request_pb
|
|
2078
3857
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2079
3858
|
.with_bindings(
|
|
2080
|
-
uri_method: :
|
|
2081
|
-
uri_template: "/v1/{name}",
|
|
3859
|
+
uri_method: :post,
|
|
3860
|
+
uri_template: "/v1/{name}:run",
|
|
3861
|
+
body: "*",
|
|
2082
3862
|
matches: [
|
|
2083
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
|
3863
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/restoreTemplates/[^/]+/?$}, false]
|
|
2084
3864
|
]
|
|
2085
3865
|
)
|
|
2086
3866
|
transcoder.transcode request_pb
|
|
@@ -2089,19 +3869,19 @@ module Google
|
|
|
2089
3869
|
##
|
|
2090
3870
|
# @private
|
|
2091
3871
|
#
|
|
2092
|
-
# GRPC transcoding helper method for the
|
|
3872
|
+
# GRPC transcoding helper method for the get_restore_template_execution REST call
|
|
2093
3873
|
#
|
|
2094
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3874
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetRestoreTemplateExecutionRequest]
|
|
2095
3875
|
# A request object representing the call parameters. Required.
|
|
2096
3876
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2097
3877
|
# Uri, Body, Query string parameters
|
|
2098
|
-
def self.
|
|
3878
|
+
def self.transcode_get_restore_template_execution_request request_pb
|
|
2099
3879
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2100
3880
|
.with_bindings(
|
|
2101
3881
|
uri_method: :get,
|
|
2102
|
-
uri_template: "/v1/{
|
|
3882
|
+
uri_template: "/v1/{name}",
|
|
2103
3883
|
matches: [
|
|
2104
|
-
["
|
|
3884
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/restoreTemplates/[^/]+/executions/[^/]+/?$}, false]
|
|
2105
3885
|
]
|
|
2106
3886
|
)
|
|
2107
3887
|
transcoder.transcode request_pb
|
|
@@ -2110,20 +3890,19 @@ module Google
|
|
|
2110
3890
|
##
|
|
2111
3891
|
# @private
|
|
2112
3892
|
#
|
|
2113
|
-
# GRPC transcoding helper method for the
|
|
3893
|
+
# GRPC transcoding helper method for the list_restore_template_executions REST call
|
|
2114
3894
|
#
|
|
2115
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3895
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListRestoreTemplateExecutionsRequest]
|
|
2116
3896
|
# A request object representing the call parameters. Required.
|
|
2117
3897
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2118
3898
|
# Uri, Body, Query string parameters
|
|
2119
|
-
def self.
|
|
3899
|
+
def self.transcode_list_restore_template_executions_request request_pb
|
|
2120
3900
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2121
3901
|
.with_bindings(
|
|
2122
|
-
uri_method: :
|
|
2123
|
-
uri_template: "/v1/{parent}/
|
|
2124
|
-
body: "backup_plan_association",
|
|
3902
|
+
uri_method: :get,
|
|
3903
|
+
uri_template: "/v1/{parent}/executions",
|
|
2125
3904
|
matches: [
|
|
2126
|
-
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
3905
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/restoreTemplates/[^/]+/?$}, false]
|
|
2127
3906
|
]
|
|
2128
3907
|
)
|
|
2129
3908
|
transcoder.transcode request_pb
|
|
@@ -2132,20 +3911,20 @@ module Google
|
|
|
2132
3911
|
##
|
|
2133
3912
|
# @private
|
|
2134
3913
|
#
|
|
2135
|
-
# GRPC transcoding helper method for the
|
|
3914
|
+
# GRPC transcoding helper method for the trigger_restore_cleanup REST call
|
|
2136
3915
|
#
|
|
2137
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3916
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::TriggerRestoreCleanupRequest]
|
|
2138
3917
|
# A request object representing the call parameters. Required.
|
|
2139
3918
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2140
3919
|
# Uri, Body, Query string parameters
|
|
2141
|
-
def self.
|
|
3920
|
+
def self.transcode_trigger_restore_cleanup_request request_pb
|
|
2142
3921
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2143
3922
|
.with_bindings(
|
|
2144
|
-
uri_method: :
|
|
2145
|
-
uri_template: "/v1/{
|
|
2146
|
-
body: "
|
|
3923
|
+
uri_method: :post,
|
|
3924
|
+
uri_template: "/v1/{name}:triggerRestoreCleanup",
|
|
3925
|
+
body: "*",
|
|
2147
3926
|
matches: [
|
|
2148
|
-
["
|
|
3927
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/restoreTemplates/[^/]+/executions/[^/]+/?$}, false]
|
|
2149
3928
|
]
|
|
2150
3929
|
)
|
|
2151
3930
|
transcoder.transcode request_pb
|
|
@@ -2154,19 +3933,20 @@ module Google
|
|
|
2154
3933
|
##
|
|
2155
3934
|
# @private
|
|
2156
3935
|
#
|
|
2157
|
-
# GRPC transcoding helper method for the
|
|
3936
|
+
# GRPC transcoding helper method for the create_restore_verification_plan REST call
|
|
2158
3937
|
#
|
|
2159
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3938
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::CreateRestoreVerificationPlanRequest]
|
|
2160
3939
|
# A request object representing the call parameters. Required.
|
|
2161
3940
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2162
3941
|
# Uri, Body, Query string parameters
|
|
2163
|
-
def self.
|
|
3942
|
+
def self.transcode_create_restore_verification_plan_request request_pb
|
|
2164
3943
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2165
3944
|
.with_bindings(
|
|
2166
|
-
uri_method: :
|
|
2167
|
-
uri_template: "/v1/{
|
|
3945
|
+
uri_method: :post,
|
|
3946
|
+
uri_template: "/v1/{parent}/restoreVerificationPlans",
|
|
3947
|
+
body: "restore_verification_plan",
|
|
2168
3948
|
matches: [
|
|
2169
|
-
["
|
|
3949
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
2170
3950
|
]
|
|
2171
3951
|
)
|
|
2172
3952
|
transcoder.transcode request_pb
|
|
@@ -2175,19 +3955,20 @@ module Google
|
|
|
2175
3955
|
##
|
|
2176
3956
|
# @private
|
|
2177
3957
|
#
|
|
2178
|
-
# GRPC transcoding helper method for the
|
|
3958
|
+
# GRPC transcoding helper method for the create_restore_verification_plan_association REST call
|
|
2179
3959
|
#
|
|
2180
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3960
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::CreateRestoreVerificationPlanAssociationRequest]
|
|
2181
3961
|
# A request object representing the call parameters. Required.
|
|
2182
3962
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2183
3963
|
# Uri, Body, Query string parameters
|
|
2184
|
-
def self.
|
|
3964
|
+
def self.transcode_create_restore_verification_plan_association_request request_pb
|
|
2185
3965
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2186
3966
|
.with_bindings(
|
|
2187
|
-
uri_method: :
|
|
2188
|
-
uri_template: "/v1/{parent}/
|
|
3967
|
+
uri_method: :post,
|
|
3968
|
+
uri_template: "/v1/{parent}/associations",
|
|
3969
|
+
body: "restore_verification_plan_association",
|
|
2189
3970
|
matches: [
|
|
2190
|
-
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
3971
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/restoreVerificationPlans/[^/]+/?$}, false]
|
|
2191
3972
|
]
|
|
2192
3973
|
)
|
|
2193
3974
|
transcoder.transcode request_pb
|
|
@@ -2196,19 +3977,19 @@ module Google
|
|
|
2196
3977
|
##
|
|
2197
3978
|
# @private
|
|
2198
3979
|
#
|
|
2199
|
-
# GRPC transcoding helper method for the
|
|
3980
|
+
# GRPC transcoding helper method for the get_restore_verification_plan_association REST call
|
|
2200
3981
|
#
|
|
2201
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
3982
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetRestoreVerificationPlanAssociationRequest]
|
|
2202
3983
|
# A request object representing the call parameters. Required.
|
|
2203
3984
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2204
3985
|
# Uri, Body, Query string parameters
|
|
2205
|
-
def self.
|
|
3986
|
+
def self.transcode_get_restore_verification_plan_association_request request_pb
|
|
2206
3987
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2207
3988
|
.with_bindings(
|
|
2208
3989
|
uri_method: :get,
|
|
2209
|
-
uri_template: "/v1/{
|
|
3990
|
+
uri_template: "/v1/{name}",
|
|
2210
3991
|
matches: [
|
|
2211
|
-
["
|
|
3992
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+/?$}, false]
|
|
2212
3993
|
]
|
|
2213
3994
|
)
|
|
2214
3995
|
transcoder.transcode request_pb
|
|
@@ -2217,19 +3998,19 @@ module Google
|
|
|
2217
3998
|
##
|
|
2218
3999
|
# @private
|
|
2219
4000
|
#
|
|
2220
|
-
# GRPC transcoding helper method for the
|
|
4001
|
+
# GRPC transcoding helper method for the list_restore_verification_plan_associations REST call
|
|
2221
4002
|
#
|
|
2222
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
4003
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlanAssociationsRequest]
|
|
2223
4004
|
# A request object representing the call parameters. Required.
|
|
2224
4005
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2225
4006
|
# Uri, Body, Query string parameters
|
|
2226
|
-
def self.
|
|
4007
|
+
def self.transcode_list_restore_verification_plan_associations_request request_pb
|
|
2227
4008
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2228
4009
|
.with_bindings(
|
|
2229
|
-
uri_method: :
|
|
2230
|
-
uri_template: "/v1/{
|
|
4010
|
+
uri_method: :get,
|
|
4011
|
+
uri_template: "/v1/{parent}/associations",
|
|
2231
4012
|
matches: [
|
|
2232
|
-
["
|
|
4013
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/restoreVerificationPlans/[^/]+/?$}, false]
|
|
2233
4014
|
]
|
|
2234
4015
|
)
|
|
2235
4016
|
transcoder.transcode request_pb
|
|
@@ -2238,20 +4019,19 @@ module Google
|
|
|
2238
4019
|
##
|
|
2239
4020
|
# @private
|
|
2240
4021
|
#
|
|
2241
|
-
# GRPC transcoding helper method for the
|
|
4022
|
+
# GRPC transcoding helper method for the delete_restore_verification_plan_association REST call
|
|
2242
4023
|
#
|
|
2243
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
4024
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::DeleteRestoreVerificationPlanAssociationRequest]
|
|
2244
4025
|
# A request object representing the call parameters. Required.
|
|
2245
4026
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2246
4027
|
# Uri, Body, Query string parameters
|
|
2247
|
-
def self.
|
|
4028
|
+
def self.transcode_delete_restore_verification_plan_association_request request_pb
|
|
2248
4029
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2249
4030
|
.with_bindings(
|
|
2250
|
-
uri_method: :
|
|
2251
|
-
uri_template: "/v1/{name}
|
|
2252
|
-
body: "*",
|
|
4031
|
+
uri_method: :delete,
|
|
4032
|
+
uri_template: "/v1/{name}",
|
|
2253
4033
|
matches: [
|
|
2254
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
|
4034
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+/?$}, false]
|
|
2255
4035
|
]
|
|
2256
4036
|
)
|
|
2257
4037
|
transcoder.transcode request_pb
|
|
@@ -2260,19 +4040,20 @@ module Google
|
|
|
2260
4040
|
##
|
|
2261
4041
|
# @private
|
|
2262
4042
|
#
|
|
2263
|
-
# GRPC transcoding helper method for the
|
|
4043
|
+
# GRPC transcoding helper method for the trigger_restore_verification REST call
|
|
2264
4044
|
#
|
|
2265
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
4045
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::TriggerRestoreVerificationRequest]
|
|
2266
4046
|
# A request object representing the call parameters. Required.
|
|
2267
4047
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2268
4048
|
# Uri, Body, Query string parameters
|
|
2269
|
-
def self.
|
|
4049
|
+
def self.transcode_trigger_restore_verification_request request_pb
|
|
2270
4050
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2271
4051
|
.with_bindings(
|
|
2272
|
-
uri_method: :
|
|
2273
|
-
uri_template: "/v1/{name}",
|
|
4052
|
+
uri_method: :post,
|
|
4053
|
+
uri_template: "/v1/{name}:triggerRestoreVerification",
|
|
4054
|
+
body: "*",
|
|
2274
4055
|
matches: [
|
|
2275
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
|
4056
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+/?$}, false]
|
|
2276
4057
|
]
|
|
2277
4058
|
)
|
|
2278
4059
|
transcoder.transcode request_pb
|
|
@@ -2281,19 +4062,19 @@ module Google
|
|
|
2281
4062
|
##
|
|
2282
4063
|
# @private
|
|
2283
4064
|
#
|
|
2284
|
-
# GRPC transcoding helper method for the
|
|
4065
|
+
# GRPC transcoding helper method for the get_restore_verification_plan REST call
|
|
2285
4066
|
#
|
|
2286
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
4067
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::GetRestoreVerificationPlanRequest]
|
|
2287
4068
|
# A request object representing the call parameters. Required.
|
|
2288
4069
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2289
4070
|
# Uri, Body, Query string parameters
|
|
2290
|
-
def self.
|
|
4071
|
+
def self.transcode_get_restore_verification_plan_request request_pb
|
|
2291
4072
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2292
4073
|
.with_bindings(
|
|
2293
4074
|
uri_method: :get,
|
|
2294
|
-
uri_template: "/v1/{
|
|
4075
|
+
uri_template: "/v1/{name}",
|
|
2295
4076
|
matches: [
|
|
2296
|
-
["
|
|
4077
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/restoreVerificationPlans/[^/]+/?$}, false]
|
|
2297
4078
|
]
|
|
2298
4079
|
)
|
|
2299
4080
|
transcoder.transcode request_pb
|
|
@@ -2302,17 +4083,17 @@ module Google
|
|
|
2302
4083
|
##
|
|
2303
4084
|
# @private
|
|
2304
4085
|
#
|
|
2305
|
-
# GRPC transcoding helper method for the
|
|
4086
|
+
# GRPC transcoding helper method for the list_restore_verification_plans REST call
|
|
2306
4087
|
#
|
|
2307
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
4088
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlansRequest]
|
|
2308
4089
|
# A request object representing the call parameters. Required.
|
|
2309
4090
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2310
4091
|
# Uri, Body, Query string parameters
|
|
2311
|
-
def self.
|
|
4092
|
+
def self.transcode_list_restore_verification_plans_request request_pb
|
|
2312
4093
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2313
4094
|
.with_bindings(
|
|
2314
4095
|
uri_method: :get,
|
|
2315
|
-
uri_template: "/v1/{parent}/
|
|
4096
|
+
uri_template: "/v1/{parent}/restoreVerificationPlans",
|
|
2316
4097
|
matches: [
|
|
2317
4098
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
2318
4099
|
]
|
|
@@ -2323,20 +4104,19 @@ module Google
|
|
|
2323
4104
|
##
|
|
2324
4105
|
# @private
|
|
2325
4106
|
#
|
|
2326
|
-
# GRPC transcoding helper method for the
|
|
4107
|
+
# GRPC transcoding helper method for the delete_restore_verification_plan REST call
|
|
2327
4108
|
#
|
|
2328
|
-
# @param request_pb [::Google::Cloud::BackupDR::V1::
|
|
4109
|
+
# @param request_pb [::Google::Cloud::BackupDR::V1::DeleteRestoreVerificationPlanRequest]
|
|
2329
4110
|
# A request object representing the call parameters. Required.
|
|
2330
4111
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2331
4112
|
# Uri, Body, Query string parameters
|
|
2332
|
-
def self.
|
|
4113
|
+
def self.transcode_delete_restore_verification_plan_request request_pb
|
|
2333
4114
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2334
4115
|
.with_bindings(
|
|
2335
|
-
uri_method: :
|
|
2336
|
-
uri_template: "/v1/{name}
|
|
2337
|
-
body: "*",
|
|
4116
|
+
uri_method: :delete,
|
|
4117
|
+
uri_template: "/v1/{name}",
|
|
2338
4118
|
matches: [
|
|
2339
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
|
4119
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/restoreVerificationPlans/[^/]+/?$}, false]
|
|
2340
4120
|
]
|
|
2341
4121
|
)
|
|
2342
4122
|
transcoder.transcode request_pb
|