google-cloud-config_service-v1 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1689,6 +1689,487 @@ module Google
1689
1689
  raise ::Google::Cloud::Error.from_error(e)
1690
1690
  end
1691
1691
 
1692
+ ##
1693
+ # Creates a {::Google::Cloud::ConfigService::V1::Preview Preview}.
1694
+ #
1695
+ # @overload create_preview(request, options = nil)
1696
+ # Pass arguments to `create_preview` via a request object, either of type
1697
+ # {::Google::Cloud::ConfigService::V1::CreatePreviewRequest} or an equivalent Hash.
1698
+ #
1699
+ # @param request [::Google::Cloud::ConfigService::V1::CreatePreviewRequest, ::Hash]
1700
+ # A request object representing the call parameters. Required. To specify no
1701
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1702
+ # @param options [::Gapic::CallOptions, ::Hash]
1703
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1704
+ #
1705
+ # @overload create_preview(parent: nil, preview_id: nil, preview: nil, request_id: nil)
1706
+ # Pass arguments to `create_preview` via keyword arguments. Note that at
1707
+ # least one keyword argument is required. To specify no parameters, or to keep all
1708
+ # the default parameter values, pass an empty Hash as a request object (see above).
1709
+ #
1710
+ # @param parent [::String]
1711
+ # Required. The parent in whose context the Preview is created. The parent
1712
+ # value is in the format: 'projects/\\{project_id}/locations/\\{location}'.
1713
+ # @param preview_id [::String]
1714
+ # Optional. The preview ID.
1715
+ # @param preview [::Google::Cloud::ConfigService::V1::Preview, ::Hash]
1716
+ # Required. {::Google::Cloud::ConfigService::V1::Preview Preview} resource to be created.
1717
+ # @param request_id [::String]
1718
+ # Optional. An optional request ID to identify requests. Specify a unique
1719
+ # request ID so that if you must retry your request, the server will know to
1720
+ # ignore the request if it has already been completed. The server will
1721
+ # guarantee that for at least 60 minutes since the first request.
1722
+ #
1723
+ # For example, consider a situation where you make an initial request and the
1724
+ # request times out. If you make the request again with the same request ID,
1725
+ # the server can check if original operation with the same request ID was
1726
+ # received, and if so, will ignore the second request. This prevents clients
1727
+ # from accidentally creating duplicate commitments.
1728
+ #
1729
+ # The request ID must be a valid UUID with the exception that zero UUID is
1730
+ # not supported (00000000-0000-0000-0000-000000000000).
1731
+ # @yield [result, operation] Access the result along with the TransportOperation object
1732
+ # @yieldparam result [::Gapic::Operation]
1733
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1734
+ #
1735
+ # @return [::Gapic::Operation]
1736
+ #
1737
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1738
+ #
1739
+ # @example Basic example
1740
+ # require "google/cloud/config_service/v1"
1741
+ #
1742
+ # # Create a client object. The client can be reused for multiple calls.
1743
+ # client = Google::Cloud::ConfigService::V1::Config::Rest::Client.new
1744
+ #
1745
+ # # Create a request. To set request fields, pass in keyword arguments.
1746
+ # request = Google::Cloud::ConfigService::V1::CreatePreviewRequest.new
1747
+ #
1748
+ # # Call the create_preview method.
1749
+ # result = client.create_preview request
1750
+ #
1751
+ # # The returned object is of type Gapic::Operation. You can use it to
1752
+ # # check the status of an operation, cancel it, or wait for results.
1753
+ # # Here is how to wait for a response.
1754
+ # result.wait_until_done! timeout: 60
1755
+ # if result.response?
1756
+ # p result.response
1757
+ # else
1758
+ # puts "No response received."
1759
+ # end
1760
+ #
1761
+ def create_preview request, options = nil
1762
+ raise ::ArgumentError, "request must be provided" if request.nil?
1763
+
1764
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::CreatePreviewRequest
1765
+
1766
+ # Converts hash and nil to an options object
1767
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1768
+
1769
+ # Customize the options with defaults
1770
+ call_metadata = @config.rpcs.create_preview.metadata.to_h
1771
+
1772
+ # Set x-goog-api-client and x-goog-user-project headers
1773
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1774
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1775
+ gapic_version: ::Google::Cloud::ConfigService::V1::VERSION,
1776
+ transports_version_send: [:rest]
1777
+
1778
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1779
+
1780
+ options.apply_defaults timeout: @config.rpcs.create_preview.timeout,
1781
+ metadata: call_metadata,
1782
+ retry_policy: @config.rpcs.create_preview.retry_policy
1783
+
1784
+ options.apply_defaults timeout: @config.timeout,
1785
+ metadata: @config.metadata,
1786
+ retry_policy: @config.retry_policy
1787
+
1788
+ @config_stub.create_preview request, options do |result, operation|
1789
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1790
+ yield result, operation if block_given?
1791
+ return result
1792
+ end
1793
+ rescue ::Gapic::Rest::Error => e
1794
+ raise ::Google::Cloud::Error.from_error(e)
1795
+ end
1796
+
1797
+ ##
1798
+ # Gets details about a {::Google::Cloud::ConfigService::V1::Preview Preview}.
1799
+ #
1800
+ # @overload get_preview(request, options = nil)
1801
+ # Pass arguments to `get_preview` via a request object, either of type
1802
+ # {::Google::Cloud::ConfigService::V1::GetPreviewRequest} or an equivalent Hash.
1803
+ #
1804
+ # @param request [::Google::Cloud::ConfigService::V1::GetPreviewRequest, ::Hash]
1805
+ # A request object representing the call parameters. Required. To specify no
1806
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1807
+ # @param options [::Gapic::CallOptions, ::Hash]
1808
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1809
+ #
1810
+ # @overload get_preview(name: nil)
1811
+ # Pass arguments to `get_preview` via keyword arguments. Note that at
1812
+ # least one keyword argument is required. To specify no parameters, or to keep all
1813
+ # the default parameter values, pass an empty Hash as a request object (see above).
1814
+ #
1815
+ # @param name [::String]
1816
+ # Required. The name of the preview. Format:
1817
+ # 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}'.
1818
+ # @yield [result, operation] Access the result along with the TransportOperation object
1819
+ # @yieldparam result [::Google::Cloud::ConfigService::V1::Preview]
1820
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1821
+ #
1822
+ # @return [::Google::Cloud::ConfigService::V1::Preview]
1823
+ #
1824
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1825
+ #
1826
+ # @example Basic example
1827
+ # require "google/cloud/config_service/v1"
1828
+ #
1829
+ # # Create a client object. The client can be reused for multiple calls.
1830
+ # client = Google::Cloud::ConfigService::V1::Config::Rest::Client.new
1831
+ #
1832
+ # # Create a request. To set request fields, pass in keyword arguments.
1833
+ # request = Google::Cloud::ConfigService::V1::GetPreviewRequest.new
1834
+ #
1835
+ # # Call the get_preview method.
1836
+ # result = client.get_preview request
1837
+ #
1838
+ # # The returned object is of type Google::Cloud::ConfigService::V1::Preview.
1839
+ # p result
1840
+ #
1841
+ def get_preview request, options = nil
1842
+ raise ::ArgumentError, "request must be provided" if request.nil?
1843
+
1844
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::GetPreviewRequest
1845
+
1846
+ # Converts hash and nil to an options object
1847
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1848
+
1849
+ # Customize the options with defaults
1850
+ call_metadata = @config.rpcs.get_preview.metadata.to_h
1851
+
1852
+ # Set x-goog-api-client and x-goog-user-project headers
1853
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1854
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1855
+ gapic_version: ::Google::Cloud::ConfigService::V1::VERSION,
1856
+ transports_version_send: [:rest]
1857
+
1858
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1859
+
1860
+ options.apply_defaults timeout: @config.rpcs.get_preview.timeout,
1861
+ metadata: call_metadata,
1862
+ retry_policy: @config.rpcs.get_preview.retry_policy
1863
+
1864
+ options.apply_defaults timeout: @config.timeout,
1865
+ metadata: @config.metadata,
1866
+ retry_policy: @config.retry_policy
1867
+
1868
+ @config_stub.get_preview request, options do |result, operation|
1869
+ yield result, operation if block_given?
1870
+ return result
1871
+ end
1872
+ rescue ::Gapic::Rest::Error => e
1873
+ raise ::Google::Cloud::Error.from_error(e)
1874
+ end
1875
+
1876
+ ##
1877
+ # Lists {::Google::Cloud::ConfigService::V1::Preview Preview}s in a given project and
1878
+ # location.
1879
+ #
1880
+ # @overload list_previews(request, options = nil)
1881
+ # Pass arguments to `list_previews` via a request object, either of type
1882
+ # {::Google::Cloud::ConfigService::V1::ListPreviewsRequest} or an equivalent Hash.
1883
+ #
1884
+ # @param request [::Google::Cloud::ConfigService::V1::ListPreviewsRequest, ::Hash]
1885
+ # A request object representing the call parameters. Required. To specify no
1886
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1887
+ # @param options [::Gapic::CallOptions, ::Hash]
1888
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1889
+ #
1890
+ # @overload list_previews(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
1891
+ # Pass arguments to `list_previews` via keyword arguments. Note that at
1892
+ # least one keyword argument is required. To specify no parameters, or to keep all
1893
+ # the default parameter values, pass an empty Hash as a request object (see above).
1894
+ #
1895
+ # @param parent [::String]
1896
+ # Required. The parent in whose context the Previews are listed. The parent
1897
+ # value is in the format: 'projects/\\{project_id}/locations/\\{location}'.
1898
+ # @param page_size [::Integer]
1899
+ # Optional. When requesting a page of resources, 'page_size' specifies number
1900
+ # of resources to return. If unspecified or set to 0, all resources will be
1901
+ # returned.
1902
+ # @param page_token [::String]
1903
+ # Optional. Token returned by previous call to 'ListDeployments' which
1904
+ # specifies the position in the list from where to continue listing the
1905
+ # resources.
1906
+ # @param filter [::String]
1907
+ # Optional. Lists the Deployments that match the filter expression. A filter
1908
+ # expression filters the resources listed in the response. The expression
1909
+ # must be of the form '\\{field} \\{operator} \\{value}' where operators: '<', '>',
1910
+ # '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS
1911
+ # operator which is roughly synonymous with equality). \\{field} can refer to a
1912
+ # proto or JSON field, or a synthetic field. Field names can be camelCase or
1913
+ # snake_case.
1914
+ #
1915
+ # Examples:
1916
+ # - Filter by name:
1917
+ # name = "projects/foo/locations/us-central1/deployments/bar
1918
+ #
1919
+ # - Filter by labels:
1920
+ # - Resources that have a key called 'foo'
1921
+ # labels.foo:*
1922
+ # - Resources that have a key called 'foo' whose value is 'bar'
1923
+ # labels.foo = bar
1924
+ #
1925
+ # - Filter by state:
1926
+ # - Deployments in CREATING state.
1927
+ # state=CREATING
1928
+ # @param order_by [::String]
1929
+ # Optional. Field to use to sort the list.
1930
+ # @yield [result, operation] Access the result along with the TransportOperation object
1931
+ # @yieldparam result [::Google::Cloud::ConfigService::V1::ListPreviewsResponse]
1932
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1933
+ #
1934
+ # @return [::Google::Cloud::ConfigService::V1::ListPreviewsResponse]
1935
+ #
1936
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1937
+ #
1938
+ # @example Basic example
1939
+ # require "google/cloud/config_service/v1"
1940
+ #
1941
+ # # Create a client object. The client can be reused for multiple calls.
1942
+ # client = Google::Cloud::ConfigService::V1::Config::Rest::Client.new
1943
+ #
1944
+ # # Create a request. To set request fields, pass in keyword arguments.
1945
+ # request = Google::Cloud::ConfigService::V1::ListPreviewsRequest.new
1946
+ #
1947
+ # # Call the list_previews method.
1948
+ # result = client.list_previews request
1949
+ #
1950
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1951
+ # # over elements, and API calls will be issued to fetch pages as needed.
1952
+ # result.each do |item|
1953
+ # # Each element is of type ::Google::Cloud::ConfigService::V1::Preview.
1954
+ # p item
1955
+ # end
1956
+ #
1957
+ def list_previews request, options = nil
1958
+ raise ::ArgumentError, "request must be provided" if request.nil?
1959
+
1960
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::ListPreviewsRequest
1961
+
1962
+ # Converts hash and nil to an options object
1963
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1964
+
1965
+ # Customize the options with defaults
1966
+ call_metadata = @config.rpcs.list_previews.metadata.to_h
1967
+
1968
+ # Set x-goog-api-client and x-goog-user-project headers
1969
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1970
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1971
+ gapic_version: ::Google::Cloud::ConfigService::V1::VERSION,
1972
+ transports_version_send: [:rest]
1973
+
1974
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1975
+
1976
+ options.apply_defaults timeout: @config.rpcs.list_previews.timeout,
1977
+ metadata: call_metadata,
1978
+ retry_policy: @config.rpcs.list_previews.retry_policy
1979
+
1980
+ options.apply_defaults timeout: @config.timeout,
1981
+ metadata: @config.metadata,
1982
+ retry_policy: @config.retry_policy
1983
+
1984
+ @config_stub.list_previews request, options do |result, operation|
1985
+ yield result, operation if block_given?
1986
+ return result
1987
+ end
1988
+ rescue ::Gapic::Rest::Error => e
1989
+ raise ::Google::Cloud::Error.from_error(e)
1990
+ end
1991
+
1992
+ ##
1993
+ # Deletes a {::Google::Cloud::ConfigService::V1::Preview Preview}.
1994
+ #
1995
+ # @overload delete_preview(request, options = nil)
1996
+ # Pass arguments to `delete_preview` via a request object, either of type
1997
+ # {::Google::Cloud::ConfigService::V1::DeletePreviewRequest} or an equivalent Hash.
1998
+ #
1999
+ # @param request [::Google::Cloud::ConfigService::V1::DeletePreviewRequest, ::Hash]
2000
+ # A request object representing the call parameters. Required. To specify no
2001
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2002
+ # @param options [::Gapic::CallOptions, ::Hash]
2003
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2004
+ #
2005
+ # @overload delete_preview(name: nil, request_id: nil)
2006
+ # Pass arguments to `delete_preview` via keyword arguments. Note that at
2007
+ # least one keyword argument is required. To specify no parameters, or to keep all
2008
+ # the default parameter values, pass an empty Hash as a request object (see above).
2009
+ #
2010
+ # @param name [::String]
2011
+ # Required. The name of the Preview in the format:
2012
+ # 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}'.
2013
+ # @param request_id [::String]
2014
+ # Optional. An optional request ID to identify requests. Specify a unique
2015
+ # request ID so that if you must retry your request, the server will know to
2016
+ # ignore the request if it has already been completed. The server will
2017
+ # guarantee that for at least 60 minutes after the first request.
2018
+ #
2019
+ # For example, consider a situation where you make an initial request and the
2020
+ # request times out. If you make the request again with the same request ID,
2021
+ # the server can check if original operation with the same request ID was
2022
+ # received, and if so, will ignore the second request. This prevents clients
2023
+ # from accidentally creating duplicate commitments.
2024
+ #
2025
+ # The request ID must be a valid UUID with the exception that zero UUID is
2026
+ # not supported (00000000-0000-0000-0000-000000000000).
2027
+ # @yield [result, operation] Access the result along with the TransportOperation object
2028
+ # @yieldparam result [::Gapic::Operation]
2029
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2030
+ #
2031
+ # @return [::Gapic::Operation]
2032
+ #
2033
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2034
+ #
2035
+ # @example Basic example
2036
+ # require "google/cloud/config_service/v1"
2037
+ #
2038
+ # # Create a client object. The client can be reused for multiple calls.
2039
+ # client = Google::Cloud::ConfigService::V1::Config::Rest::Client.new
2040
+ #
2041
+ # # Create a request. To set request fields, pass in keyword arguments.
2042
+ # request = Google::Cloud::ConfigService::V1::DeletePreviewRequest.new
2043
+ #
2044
+ # # Call the delete_preview method.
2045
+ # result = client.delete_preview request
2046
+ #
2047
+ # # The returned object is of type Gapic::Operation. You can use it to
2048
+ # # check the status of an operation, cancel it, or wait for results.
2049
+ # # Here is how to wait for a response.
2050
+ # result.wait_until_done! timeout: 60
2051
+ # if result.response?
2052
+ # p result.response
2053
+ # else
2054
+ # puts "No response received."
2055
+ # end
2056
+ #
2057
+ def delete_preview request, options = nil
2058
+ raise ::ArgumentError, "request must be provided" if request.nil?
2059
+
2060
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::DeletePreviewRequest
2061
+
2062
+ # Converts hash and nil to an options object
2063
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2064
+
2065
+ # Customize the options with defaults
2066
+ call_metadata = @config.rpcs.delete_preview.metadata.to_h
2067
+
2068
+ # Set x-goog-api-client and x-goog-user-project headers
2069
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2070
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2071
+ gapic_version: ::Google::Cloud::ConfigService::V1::VERSION,
2072
+ transports_version_send: [:rest]
2073
+
2074
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2075
+
2076
+ options.apply_defaults timeout: @config.rpcs.delete_preview.timeout,
2077
+ metadata: call_metadata,
2078
+ retry_policy: @config.rpcs.delete_preview.retry_policy
2079
+
2080
+ options.apply_defaults timeout: @config.timeout,
2081
+ metadata: @config.metadata,
2082
+ retry_policy: @config.retry_policy
2083
+
2084
+ @config_stub.delete_preview request, options do |result, operation|
2085
+ result = ::Gapic::Operation.new result, @operations_client, options: options
2086
+ yield result, operation if block_given?
2087
+ return result
2088
+ end
2089
+ rescue ::Gapic::Rest::Error => e
2090
+ raise ::Google::Cloud::Error.from_error(e)
2091
+ end
2092
+
2093
+ ##
2094
+ # Export {::Google::Cloud::ConfigService::V1::Preview Preview} results.
2095
+ #
2096
+ # @overload export_preview_result(request, options = nil)
2097
+ # Pass arguments to `export_preview_result` via a request object, either of type
2098
+ # {::Google::Cloud::ConfigService::V1::ExportPreviewResultRequest} or an equivalent Hash.
2099
+ #
2100
+ # @param request [::Google::Cloud::ConfigService::V1::ExportPreviewResultRequest, ::Hash]
2101
+ # A request object representing the call parameters. Required. To specify no
2102
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2103
+ # @param options [::Gapic::CallOptions, ::Hash]
2104
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2105
+ #
2106
+ # @overload export_preview_result(parent: nil)
2107
+ # Pass arguments to `export_preview_result` via keyword arguments. Note that at
2108
+ # least one keyword argument is required. To specify no parameters, or to keep all
2109
+ # the default parameter values, pass an empty Hash as a request object (see above).
2110
+ #
2111
+ # @param parent [::String]
2112
+ # Required. The preview whose results should be exported. The preview value
2113
+ # is in the format:
2114
+ # 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}'.
2115
+ # @yield [result, operation] Access the result along with the TransportOperation object
2116
+ # @yieldparam result [::Google::Cloud::ConfigService::V1::ExportPreviewResultResponse]
2117
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2118
+ #
2119
+ # @return [::Google::Cloud::ConfigService::V1::ExportPreviewResultResponse]
2120
+ #
2121
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2122
+ #
2123
+ # @example Basic example
2124
+ # require "google/cloud/config_service/v1"
2125
+ #
2126
+ # # Create a client object. The client can be reused for multiple calls.
2127
+ # client = Google::Cloud::ConfigService::V1::Config::Rest::Client.new
2128
+ #
2129
+ # # Create a request. To set request fields, pass in keyword arguments.
2130
+ # request = Google::Cloud::ConfigService::V1::ExportPreviewResultRequest.new
2131
+ #
2132
+ # # Call the export_preview_result method.
2133
+ # result = client.export_preview_result request
2134
+ #
2135
+ # # The returned object is of type Google::Cloud::ConfigService::V1::ExportPreviewResultResponse.
2136
+ # p result
2137
+ #
2138
+ def export_preview_result request, options = nil
2139
+ raise ::ArgumentError, "request must be provided" if request.nil?
2140
+
2141
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ConfigService::V1::ExportPreviewResultRequest
2142
+
2143
+ # Converts hash and nil to an options object
2144
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2145
+
2146
+ # Customize the options with defaults
2147
+ call_metadata = @config.rpcs.export_preview_result.metadata.to_h
2148
+
2149
+ # Set x-goog-api-client and x-goog-user-project headers
2150
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2151
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2152
+ gapic_version: ::Google::Cloud::ConfigService::V1::VERSION,
2153
+ transports_version_send: [:rest]
2154
+
2155
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2156
+
2157
+ options.apply_defaults timeout: @config.rpcs.export_preview_result.timeout,
2158
+ metadata: call_metadata,
2159
+ retry_policy: @config.rpcs.export_preview_result.retry_policy
2160
+
2161
+ options.apply_defaults timeout: @config.timeout,
2162
+ metadata: @config.metadata,
2163
+ retry_policy: @config.retry_policy
2164
+
2165
+ @config_stub.export_preview_result request, options do |result, operation|
2166
+ yield result, operation if block_given?
2167
+ return result
2168
+ end
2169
+ rescue ::Gapic::Rest::Error => e
2170
+ raise ::Google::Cloud::Error.from_error(e)
2171
+ end
2172
+
1692
2173
  ##
1693
2174
  # Configuration class for the Config REST API.
1694
2175
  #
@@ -1909,6 +2390,31 @@ module Google
1909
2390
  # @return [::Gapic::Config::Method]
1910
2391
  #
1911
2392
  attr_reader :export_lock_info
2393
+ ##
2394
+ # RPC-specific configuration for `create_preview`
2395
+ # @return [::Gapic::Config::Method]
2396
+ #
2397
+ attr_reader :create_preview
2398
+ ##
2399
+ # RPC-specific configuration for `get_preview`
2400
+ # @return [::Gapic::Config::Method]
2401
+ #
2402
+ attr_reader :get_preview
2403
+ ##
2404
+ # RPC-specific configuration for `list_previews`
2405
+ # @return [::Gapic::Config::Method]
2406
+ #
2407
+ attr_reader :list_previews
2408
+ ##
2409
+ # RPC-specific configuration for `delete_preview`
2410
+ # @return [::Gapic::Config::Method]
2411
+ #
2412
+ attr_reader :delete_preview
2413
+ ##
2414
+ # RPC-specific configuration for `export_preview_result`
2415
+ # @return [::Gapic::Config::Method]
2416
+ #
2417
+ attr_reader :export_preview_result
1912
2418
 
1913
2419
  # @private
1914
2420
  def initialize parent_rpcs = nil
@@ -1944,6 +2450,16 @@ module Google
1944
2450
  @unlock_deployment = ::Gapic::Config::Method.new unlock_deployment_config
1945
2451
  export_lock_info_config = parent_rpcs.export_lock_info if parent_rpcs.respond_to? :export_lock_info
1946
2452
  @export_lock_info = ::Gapic::Config::Method.new export_lock_info_config
2453
+ create_preview_config = parent_rpcs.create_preview if parent_rpcs.respond_to? :create_preview
2454
+ @create_preview = ::Gapic::Config::Method.new create_preview_config
2455
+ get_preview_config = parent_rpcs.get_preview if parent_rpcs.respond_to? :get_preview
2456
+ @get_preview = ::Gapic::Config::Method.new get_preview_config
2457
+ list_previews_config = parent_rpcs.list_previews if parent_rpcs.respond_to? :list_previews
2458
+ @list_previews = ::Gapic::Config::Method.new list_previews_config
2459
+ delete_preview_config = parent_rpcs.delete_preview if parent_rpcs.respond_to? :delete_preview
2460
+ @delete_preview = ::Gapic::Config::Method.new delete_preview_config
2461
+ export_preview_result_config = parent_rpcs.export_preview_result if parent_rpcs.respond_to? :export_preview_result
2462
+ @export_preview_result = ::Gapic::Config::Method.new export_preview_result_config
1947
2463
 
1948
2464
  yield self if block_given?
1949
2465
  end