google-cloud-network_services-v1 2.0.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/network_services/v1/network_services/client.rb +1188 -140
- data/lib/google/cloud/network_services/v1/network_services/paths.rb +175 -0
- data/lib/google/cloud/network_services/v1/network_services/rest/client.rb +1115 -137
- data/lib/google/cloud/network_services/v1/network_services/rest/service_stub.rb +613 -0
- data/lib/google/cloud/network_services/v1/version.rb +1 -1
- data/lib/google/cloud/networkservices/v1/common_pb.rb +2 -1
- data/lib/google/cloud/networkservices/v1/endpoint_policy_pb.rb +1 -1
- data/lib/google/cloud/networkservices/v1/gateway_pb.rb +4 -1
- data/lib/google/cloud/networkservices/v1/grpc_route_pb.rb +2 -1
- data/lib/google/cloud/networkservices/v1/http_route_pb.rb +3 -1
- data/lib/google/cloud/networkservices/v1/mesh_pb.rb +2 -1
- data/lib/google/cloud/networkservices/v1/network_services_pb.rb +4 -1
- data/lib/google/cloud/networkservices/v1/network_services_services_pb.rb +20 -0
- data/lib/google/cloud/networkservices/v1/route_view_pb.rb +52 -0
- data/lib/google/cloud/networkservices/v1/service_binding_pb.rb +4 -1
- data/lib/google/cloud/networkservices/v1/service_lb_policy_pb.rb +58 -0
- data/lib/google/cloud/networkservices/v1/tcp_route_pb.rb +3 -1
- data/lib/google/cloud/networkservices/v1/tls_route_pb.rb +3 -1
- data/proto_docs/google/cloud/networkservices/v1/common.rb +18 -1
- data/proto_docs/google/cloud/networkservices/v1/endpoint_policy.rb +12 -1
- data/proto_docs/google/cloud/networkservices/v1/gateway.rb +96 -8
- data/proto_docs/google/cloud/networkservices/v1/grpc_route.rb +51 -7
- data/proto_docs/google/cloud/networkservices/v1/http_route.rb +86 -1
- data/proto_docs/google/cloud/networkservices/v1/mesh.rb +16 -1
- data/proto_docs/google/cloud/networkservices/v1/route_view.rb +168 -0
- data/proto_docs/google/cloud/networkservices/v1/service_binding.rb +47 -10
- data/proto_docs/google/cloud/networkservices/v1/service_lb_policy.rb +217 -0
- data/proto_docs/google/cloud/networkservices/v1/tcp_route.rb +23 -7
- data/proto_docs/google/cloud/networkservices/v1/tls_route.rb +35 -6
- metadata +19 -33
@@ -1393,6 +1393,46 @@ module Google
|
|
1393
1393
|
end
|
1394
1394
|
end
|
1395
1395
|
|
1396
|
+
##
|
1397
|
+
# Baseline implementation for the update_service_binding REST call
|
1398
|
+
#
|
1399
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateServiceBindingRequest]
|
1400
|
+
# A request object representing the call parameters. Required.
|
1401
|
+
# @param options [::Gapic::CallOptions]
|
1402
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1403
|
+
#
|
1404
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1405
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1407
|
+
#
|
1408
|
+
# @return [::Google::Longrunning::Operation]
|
1409
|
+
# A result object deserialized from the server's reply
|
1410
|
+
def update_service_binding request_pb, options = nil
|
1411
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1412
|
+
|
1413
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_service_binding_request request_pb
|
1414
|
+
query_string_params = if query_string_params.any?
|
1415
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1416
|
+
else
|
1417
|
+
{}
|
1418
|
+
end
|
1419
|
+
|
1420
|
+
response = @client_stub.make_http_request(
|
1421
|
+
verb,
|
1422
|
+
uri: uri,
|
1423
|
+
body: body || "",
|
1424
|
+
params: query_string_params,
|
1425
|
+
method_name: "update_service_binding",
|
1426
|
+
options: options
|
1427
|
+
)
|
1428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1429
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1430
|
+
catch :response do
|
1431
|
+
yield result, operation if block_given?
|
1432
|
+
result
|
1433
|
+
end
|
1434
|
+
end
|
1435
|
+
|
1396
1436
|
##
|
1397
1437
|
# Baseline implementation for the delete_service_binding REST call
|
1398
1438
|
#
|
@@ -1633,6 +1673,366 @@ module Google
|
|
1633
1673
|
end
|
1634
1674
|
end
|
1635
1675
|
|
1676
|
+
##
|
1677
|
+
# Baseline implementation for the list_service_lb_policies REST call
|
1678
|
+
#
|
1679
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::ListServiceLbPoliciesRequest]
|
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::Cloud::NetworkServices::V1::ListServiceLbPoliciesResponse]
|
1686
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1687
|
+
#
|
1688
|
+
# @return [::Google::Cloud::NetworkServices::V1::ListServiceLbPoliciesResponse]
|
1689
|
+
# A result object deserialized from the server's reply
|
1690
|
+
def list_service_lb_policies 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_list_service_lb_policies_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: "list_service_lb_policies",
|
1706
|
+
options: options
|
1707
|
+
)
|
1708
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1709
|
+
result = ::Google::Cloud::NetworkServices::V1::ListServiceLbPoliciesResponse.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 get_service_lb_policy REST call
|
1718
|
+
#
|
1719
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::GetServiceLbPolicyRequest]
|
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::Cloud::NetworkServices::V1::ServiceLbPolicy]
|
1726
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1727
|
+
#
|
1728
|
+
# @return [::Google::Cloud::NetworkServices::V1::ServiceLbPolicy]
|
1729
|
+
# A result object deserialized from the server's reply
|
1730
|
+
def get_service_lb_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_get_service_lb_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: "get_service_lb_policy",
|
1746
|
+
options: options
|
1747
|
+
)
|
1748
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1749
|
+
result = ::Google::Cloud::NetworkServices::V1::ServiceLbPolicy.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_service_lb_policy REST call
|
1758
|
+
#
|
1759
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::CreateServiceLbPolicyRequest]
|
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_service_lb_policy 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_service_lb_policy_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_service_lb_policy",
|
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 update_service_lb_policy REST call
|
1798
|
+
#
|
1799
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateServiceLbPolicyRequest]
|
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::Longrunning::Operation]
|
1806
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1807
|
+
#
|
1808
|
+
# @return [::Google::Longrunning::Operation]
|
1809
|
+
# A result object deserialized from the server's reply
|
1810
|
+
def update_service_lb_policy 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_update_service_lb_policy_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: "update_service_lb_policy",
|
1826
|
+
options: options
|
1827
|
+
)
|
1828
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1829
|
+
result = ::Google::Longrunning::Operation.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 delete_service_lb_policy REST call
|
1838
|
+
#
|
1839
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteServiceLbPolicyRequest]
|
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::Longrunning::Operation]
|
1846
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1847
|
+
#
|
1848
|
+
# @return [::Google::Longrunning::Operation]
|
1849
|
+
# A result object deserialized from the server's reply
|
1850
|
+
def delete_service_lb_policy 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_delete_service_lb_policy_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: "delete_service_lb_policy",
|
1866
|
+
options: options
|
1867
|
+
)
|
1868
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1869
|
+
result = ::Google::Longrunning::Operation.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 get_gateway_route_view REST call
|
1878
|
+
#
|
1879
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::GetGatewayRouteViewRequest]
|
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::NetworkServices::V1::GatewayRouteView]
|
1886
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1887
|
+
#
|
1888
|
+
# @return [::Google::Cloud::NetworkServices::V1::GatewayRouteView]
|
1889
|
+
# A result object deserialized from the server's reply
|
1890
|
+
def get_gateway_route_view 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_get_gateway_route_view_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: "get_gateway_route_view",
|
1906
|
+
options: options
|
1907
|
+
)
|
1908
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1909
|
+
result = ::Google::Cloud::NetworkServices::V1::GatewayRouteView.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 get_mesh_route_view REST call
|
1918
|
+
#
|
1919
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::GetMeshRouteViewRequest]
|
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::Cloud::NetworkServices::V1::MeshRouteView]
|
1926
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1927
|
+
#
|
1928
|
+
# @return [::Google::Cloud::NetworkServices::V1::MeshRouteView]
|
1929
|
+
# A result object deserialized from the server's reply
|
1930
|
+
def get_mesh_route_view 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_get_mesh_route_view_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: "get_mesh_route_view",
|
1946
|
+
options: options
|
1947
|
+
)
|
1948
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1949
|
+
result = ::Google::Cloud::NetworkServices::V1::MeshRouteView.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_gateway_route_views REST call
|
1958
|
+
#
|
1959
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::ListGatewayRouteViewsRequest]
|
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::NetworkServices::V1::ListGatewayRouteViewsResponse]
|
1966
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1967
|
+
#
|
1968
|
+
# @return [::Google::Cloud::NetworkServices::V1::ListGatewayRouteViewsResponse]
|
1969
|
+
# A result object deserialized from the server's reply
|
1970
|
+
def list_gateway_route_views 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_gateway_route_views_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_gateway_route_views",
|
1986
|
+
options: options
|
1987
|
+
)
|
1988
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1989
|
+
result = ::Google::Cloud::NetworkServices::V1::ListGatewayRouteViewsResponse.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 list_mesh_route_views REST call
|
1998
|
+
#
|
1999
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::ListMeshRouteViewsRequest]
|
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::Cloud::NetworkServices::V1::ListMeshRouteViewsResponse]
|
2006
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2007
|
+
#
|
2008
|
+
# @return [::Google::Cloud::NetworkServices::V1::ListMeshRouteViewsResponse]
|
2009
|
+
# A result object deserialized from the server's reply
|
2010
|
+
def list_mesh_route_views 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_list_mesh_route_views_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: "list_mesh_route_views",
|
2026
|
+
options: options
|
2027
|
+
)
|
2028
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
2029
|
+
result = ::Google::Cloud::NetworkServices::V1::ListMeshRouteViewsResponse.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
|
+
|
1636
2036
|
##
|
1637
2037
|
# @private
|
1638
2038
|
#
|
@@ -2339,6 +2739,28 @@ module Google
|
|
2339
2739
|
transcoder.transcode request_pb
|
2340
2740
|
end
|
2341
2741
|
|
2742
|
+
##
|
2743
|
+
# @private
|
2744
|
+
#
|
2745
|
+
# GRPC transcoding helper method for the update_service_binding REST call
|
2746
|
+
#
|
2747
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateServiceBindingRequest]
|
2748
|
+
# A request object representing the call parameters. Required.
|
2749
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2750
|
+
# Uri, Body, Query string parameters
|
2751
|
+
def self.transcode_update_service_binding_request request_pb
|
2752
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2753
|
+
.with_bindings(
|
2754
|
+
uri_method: :patch,
|
2755
|
+
uri_template: "/v1/{service_binding.name}",
|
2756
|
+
body: "service_binding",
|
2757
|
+
matches: [
|
2758
|
+
["service_binding.name", %r{^projects/[^/]+/locations/[^/]+/serviceBindings/[^/]+/?$}, false]
|
2759
|
+
]
|
2760
|
+
)
|
2761
|
+
transcoder.transcode request_pb
|
2762
|
+
end
|
2763
|
+
|
2342
2764
|
##
|
2343
2765
|
# @private
|
2344
2766
|
#
|
@@ -2466,6 +2888,197 @@ module Google
|
|
2466
2888
|
)
|
2467
2889
|
transcoder.transcode request_pb
|
2468
2890
|
end
|
2891
|
+
|
2892
|
+
##
|
2893
|
+
# @private
|
2894
|
+
#
|
2895
|
+
# GRPC transcoding helper method for the list_service_lb_policies REST call
|
2896
|
+
#
|
2897
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::ListServiceLbPoliciesRequest]
|
2898
|
+
# A request object representing the call parameters. Required.
|
2899
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2900
|
+
# Uri, Body, Query string parameters
|
2901
|
+
def self.transcode_list_service_lb_policies_request request_pb
|
2902
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2903
|
+
.with_bindings(
|
2904
|
+
uri_method: :get,
|
2905
|
+
uri_template: "/v1/{parent}/serviceLbPolicies",
|
2906
|
+
matches: [
|
2907
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2908
|
+
]
|
2909
|
+
)
|
2910
|
+
transcoder.transcode request_pb
|
2911
|
+
end
|
2912
|
+
|
2913
|
+
##
|
2914
|
+
# @private
|
2915
|
+
#
|
2916
|
+
# GRPC transcoding helper method for the get_service_lb_policy REST call
|
2917
|
+
#
|
2918
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::GetServiceLbPolicyRequest]
|
2919
|
+
# A request object representing the call parameters. Required.
|
2920
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2921
|
+
# Uri, Body, Query string parameters
|
2922
|
+
def self.transcode_get_service_lb_policy_request request_pb
|
2923
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2924
|
+
.with_bindings(
|
2925
|
+
uri_method: :get,
|
2926
|
+
uri_template: "/v1/{name}",
|
2927
|
+
matches: [
|
2928
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+/?$}, false]
|
2929
|
+
]
|
2930
|
+
)
|
2931
|
+
transcoder.transcode request_pb
|
2932
|
+
end
|
2933
|
+
|
2934
|
+
##
|
2935
|
+
# @private
|
2936
|
+
#
|
2937
|
+
# GRPC transcoding helper method for the create_service_lb_policy REST call
|
2938
|
+
#
|
2939
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::CreateServiceLbPolicyRequest]
|
2940
|
+
# A request object representing the call parameters. Required.
|
2941
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2942
|
+
# Uri, Body, Query string parameters
|
2943
|
+
def self.transcode_create_service_lb_policy_request request_pb
|
2944
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2945
|
+
.with_bindings(
|
2946
|
+
uri_method: :post,
|
2947
|
+
uri_template: "/v1/{parent}/serviceLbPolicies",
|
2948
|
+
body: "service_lb_policy",
|
2949
|
+
matches: [
|
2950
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2951
|
+
]
|
2952
|
+
)
|
2953
|
+
transcoder.transcode request_pb
|
2954
|
+
end
|
2955
|
+
|
2956
|
+
##
|
2957
|
+
# @private
|
2958
|
+
#
|
2959
|
+
# GRPC transcoding helper method for the update_service_lb_policy REST call
|
2960
|
+
#
|
2961
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::UpdateServiceLbPolicyRequest]
|
2962
|
+
# A request object representing the call parameters. Required.
|
2963
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2964
|
+
# Uri, Body, Query string parameters
|
2965
|
+
def self.transcode_update_service_lb_policy_request request_pb
|
2966
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2967
|
+
.with_bindings(
|
2968
|
+
uri_method: :patch,
|
2969
|
+
uri_template: "/v1/{service_lb_policy.name}",
|
2970
|
+
body: "service_lb_policy",
|
2971
|
+
matches: [
|
2972
|
+
["service_lb_policy.name", %r{^projects/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+/?$}, false]
|
2973
|
+
]
|
2974
|
+
)
|
2975
|
+
transcoder.transcode request_pb
|
2976
|
+
end
|
2977
|
+
|
2978
|
+
##
|
2979
|
+
# @private
|
2980
|
+
#
|
2981
|
+
# GRPC transcoding helper method for the delete_service_lb_policy REST call
|
2982
|
+
#
|
2983
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::DeleteServiceLbPolicyRequest]
|
2984
|
+
# A request object representing the call parameters. Required.
|
2985
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2986
|
+
# Uri, Body, Query string parameters
|
2987
|
+
def self.transcode_delete_service_lb_policy_request request_pb
|
2988
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2989
|
+
.with_bindings(
|
2990
|
+
uri_method: :delete,
|
2991
|
+
uri_template: "/v1/{name}",
|
2992
|
+
matches: [
|
2993
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+/?$}, false]
|
2994
|
+
]
|
2995
|
+
)
|
2996
|
+
transcoder.transcode request_pb
|
2997
|
+
end
|
2998
|
+
|
2999
|
+
##
|
3000
|
+
# @private
|
3001
|
+
#
|
3002
|
+
# GRPC transcoding helper method for the get_gateway_route_view REST call
|
3003
|
+
#
|
3004
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::GetGatewayRouteViewRequest]
|
3005
|
+
# A request object representing the call parameters. Required.
|
3006
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3007
|
+
# Uri, Body, Query string parameters
|
3008
|
+
def self.transcode_get_gateway_route_view_request request_pb
|
3009
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3010
|
+
.with_bindings(
|
3011
|
+
uri_method: :get,
|
3012
|
+
uri_template: "/v1/{name}",
|
3013
|
+
matches: [
|
3014
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/gateways/[^/]+/routeViews/[^/]+/?$}, false]
|
3015
|
+
]
|
3016
|
+
)
|
3017
|
+
transcoder.transcode request_pb
|
3018
|
+
end
|
3019
|
+
|
3020
|
+
##
|
3021
|
+
# @private
|
3022
|
+
#
|
3023
|
+
# GRPC transcoding helper method for the get_mesh_route_view REST call
|
3024
|
+
#
|
3025
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::GetMeshRouteViewRequest]
|
3026
|
+
# A request object representing the call parameters. Required.
|
3027
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3028
|
+
# Uri, Body, Query string parameters
|
3029
|
+
def self.transcode_get_mesh_route_view_request request_pb
|
3030
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3031
|
+
.with_bindings(
|
3032
|
+
uri_method: :get,
|
3033
|
+
uri_template: "/v1/{name}",
|
3034
|
+
matches: [
|
3035
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/meshes/[^/]+/routeViews/[^/]+/?$}, false]
|
3036
|
+
]
|
3037
|
+
)
|
3038
|
+
transcoder.transcode request_pb
|
3039
|
+
end
|
3040
|
+
|
3041
|
+
##
|
3042
|
+
# @private
|
3043
|
+
#
|
3044
|
+
# GRPC transcoding helper method for the list_gateway_route_views REST call
|
3045
|
+
#
|
3046
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::ListGatewayRouteViewsRequest]
|
3047
|
+
# A request object representing the call parameters. Required.
|
3048
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3049
|
+
# Uri, Body, Query string parameters
|
3050
|
+
def self.transcode_list_gateway_route_views_request request_pb
|
3051
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3052
|
+
.with_bindings(
|
3053
|
+
uri_method: :get,
|
3054
|
+
uri_template: "/v1/{parent}/routeViews",
|
3055
|
+
matches: [
|
3056
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/gateways/[^/]+/?$}, false]
|
3057
|
+
]
|
3058
|
+
)
|
3059
|
+
transcoder.transcode request_pb
|
3060
|
+
end
|
3061
|
+
|
3062
|
+
##
|
3063
|
+
# @private
|
3064
|
+
#
|
3065
|
+
# GRPC transcoding helper method for the list_mesh_route_views REST call
|
3066
|
+
#
|
3067
|
+
# @param request_pb [::Google::Cloud::NetworkServices::V1::ListMeshRouteViewsRequest]
|
3068
|
+
# A request object representing the call parameters. Required.
|
3069
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
3070
|
+
# Uri, Body, Query string parameters
|
3071
|
+
def self.transcode_list_mesh_route_views_request request_pb
|
3072
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
3073
|
+
.with_bindings(
|
3074
|
+
uri_method: :get,
|
3075
|
+
uri_template: "/v1/{parent}/routeViews",
|
3076
|
+
matches: [
|
3077
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/meshes/[^/]+/?$}, false]
|
3078
|
+
]
|
3079
|
+
)
|
3080
|
+
transcoder.transcode request_pb
|
3081
|
+
end
|
2469
3082
|
end
|
2470
3083
|
end
|
2471
3084
|
end
|