google-cloud-video-live_stream-v1 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/video/live_stream/v1/livestream_service/client.rb +441 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service/paths.rb +21 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service/rest/client.rb +412 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service/rest/service_stub.rb +237 -0
- data/lib/google/cloud/video/live_stream/v1/version.rb +1 -1
- data/lib/google/cloud/video/livestream/v1/outputs_pb.rb +1 -1
- data/lib/google/cloud/video/livestream/v1/resources_pb.rb +10 -1
- data/lib/google/cloud/video/livestream/v1/service_pb.rb +7 -1
- data/lib/google/cloud/video/livestream/v1/service_services_pb.rb +9 -0
- data/proto_docs/google/api/client.rb +14 -10
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/video/livestream/v1/outputs.rb +15 -2
- data/proto_docs/google/cloud/video/livestream/v1/resources.rb +224 -9
- data/proto_docs/google/cloud/video/livestream/v1/service.rb +106 -0
- metadata +3 -2
@@ -1834,6 +1834,390 @@ module Google
|
|
1834
1834
|
raise ::Google::Cloud::Error.from_error(e)
|
1835
1835
|
end
|
1836
1836
|
|
1837
|
+
##
|
1838
|
+
# Returns a list of all clips in the specified channel.
|
1839
|
+
#
|
1840
|
+
# @overload list_clips(request, options = nil)
|
1841
|
+
# Pass arguments to `list_clips` via a request object, either of type
|
1842
|
+
# {::Google::Cloud::Video::LiveStream::V1::ListClipsRequest} or an equivalent Hash.
|
1843
|
+
#
|
1844
|
+
# @param request [::Google::Cloud::Video::LiveStream::V1::ListClipsRequest, ::Hash]
|
1845
|
+
# A request object representing the call parameters. Required. To specify no
|
1846
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1847
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1848
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1849
|
+
#
|
1850
|
+
# @overload list_clips(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
1851
|
+
# Pass arguments to `list_clips` via keyword arguments. Note that at
|
1852
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1853
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1854
|
+
#
|
1855
|
+
# @param parent [::String]
|
1856
|
+
# Required. Parent value for ListClipsRequest
|
1857
|
+
# @param page_size [::Integer]
|
1858
|
+
# Requested page size. Server may return fewer items than requested.
|
1859
|
+
# If unspecified, server will pick an appropriate default.
|
1860
|
+
# @param page_token [::String]
|
1861
|
+
# A token identifying a page of results the server should return.
|
1862
|
+
# @param filter [::String]
|
1863
|
+
# Filtering results
|
1864
|
+
# @param order_by [::String]
|
1865
|
+
# Hint for how to order the results
|
1866
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1867
|
+
# @yieldparam result [::Google::Cloud::Video::LiveStream::V1::ListClipsResponse]
|
1868
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1869
|
+
#
|
1870
|
+
# @return [::Google::Cloud::Video::LiveStream::V1::ListClipsResponse]
|
1871
|
+
#
|
1872
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1873
|
+
#
|
1874
|
+
# @example Basic example
|
1875
|
+
# require "google/cloud/video/live_stream/v1"
|
1876
|
+
#
|
1877
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1878
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1879
|
+
#
|
1880
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1881
|
+
# request = Google::Cloud::Video::LiveStream::V1::ListClipsRequest.new
|
1882
|
+
#
|
1883
|
+
# # Call the list_clips method.
|
1884
|
+
# result = client.list_clips request
|
1885
|
+
#
|
1886
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1887
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1888
|
+
# result.each do |item|
|
1889
|
+
# # Each element is of type ::Google::Cloud::Video::LiveStream::V1::Clip.
|
1890
|
+
# p item
|
1891
|
+
# end
|
1892
|
+
#
|
1893
|
+
def list_clips request, options = nil
|
1894
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1895
|
+
|
1896
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Video::LiveStream::V1::ListClipsRequest
|
1897
|
+
|
1898
|
+
# Converts hash and nil to an options object
|
1899
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1900
|
+
|
1901
|
+
# Customize the options with defaults
|
1902
|
+
call_metadata = @config.rpcs.list_clips.metadata.to_h
|
1903
|
+
|
1904
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1905
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1906
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1907
|
+
gapic_version: ::Google::Cloud::Video::LiveStream::V1::VERSION,
|
1908
|
+
transports_version_send: [:rest]
|
1909
|
+
|
1910
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1911
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1912
|
+
|
1913
|
+
options.apply_defaults timeout: @config.rpcs.list_clips.timeout,
|
1914
|
+
metadata: call_metadata,
|
1915
|
+
retry_policy: @config.rpcs.list_clips.retry_policy
|
1916
|
+
|
1917
|
+
options.apply_defaults timeout: @config.timeout,
|
1918
|
+
metadata: @config.metadata,
|
1919
|
+
retry_policy: @config.retry_policy
|
1920
|
+
|
1921
|
+
@livestream_service_stub.list_clips request, options do |result, operation|
|
1922
|
+
yield result, operation if block_given?
|
1923
|
+
return result
|
1924
|
+
end
|
1925
|
+
rescue ::Gapic::Rest::Error => e
|
1926
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1927
|
+
end
|
1928
|
+
|
1929
|
+
##
|
1930
|
+
# Returns the specified clip.
|
1931
|
+
#
|
1932
|
+
# @overload get_clip(request, options = nil)
|
1933
|
+
# Pass arguments to `get_clip` via a request object, either of type
|
1934
|
+
# {::Google::Cloud::Video::LiveStream::V1::GetClipRequest} or an equivalent Hash.
|
1935
|
+
#
|
1936
|
+
# @param request [::Google::Cloud::Video::LiveStream::V1::GetClipRequest, ::Hash]
|
1937
|
+
# A request object representing the call parameters. Required. To specify no
|
1938
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1939
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1940
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1941
|
+
#
|
1942
|
+
# @overload get_clip(name: nil)
|
1943
|
+
# Pass arguments to `get_clip` via keyword arguments. Note that at
|
1944
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1945
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1946
|
+
#
|
1947
|
+
# @param name [::String]
|
1948
|
+
# Required. Name of the resource, in the following form:
|
1949
|
+
# `projects/{project}/locations/{location}/channels/{channel}/clips/{clip}`.
|
1950
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1951
|
+
# @yieldparam result [::Google::Cloud::Video::LiveStream::V1::Clip]
|
1952
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1953
|
+
#
|
1954
|
+
# @return [::Google::Cloud::Video::LiveStream::V1::Clip]
|
1955
|
+
#
|
1956
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1957
|
+
#
|
1958
|
+
# @example Basic example
|
1959
|
+
# require "google/cloud/video/live_stream/v1"
|
1960
|
+
#
|
1961
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1962
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1963
|
+
#
|
1964
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1965
|
+
# request = Google::Cloud::Video::LiveStream::V1::GetClipRequest.new
|
1966
|
+
#
|
1967
|
+
# # Call the get_clip method.
|
1968
|
+
# result = client.get_clip request
|
1969
|
+
#
|
1970
|
+
# # The returned object is of type Google::Cloud::Video::LiveStream::V1::Clip.
|
1971
|
+
# p result
|
1972
|
+
#
|
1973
|
+
def get_clip request, options = nil
|
1974
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1975
|
+
|
1976
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Video::LiveStream::V1::GetClipRequest
|
1977
|
+
|
1978
|
+
# Converts hash and nil to an options object
|
1979
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1980
|
+
|
1981
|
+
# Customize the options with defaults
|
1982
|
+
call_metadata = @config.rpcs.get_clip.metadata.to_h
|
1983
|
+
|
1984
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1985
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1986
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1987
|
+
gapic_version: ::Google::Cloud::Video::LiveStream::V1::VERSION,
|
1988
|
+
transports_version_send: [:rest]
|
1989
|
+
|
1990
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1991
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1992
|
+
|
1993
|
+
options.apply_defaults timeout: @config.rpcs.get_clip.timeout,
|
1994
|
+
metadata: call_metadata,
|
1995
|
+
retry_policy: @config.rpcs.get_clip.retry_policy
|
1996
|
+
|
1997
|
+
options.apply_defaults timeout: @config.timeout,
|
1998
|
+
metadata: @config.metadata,
|
1999
|
+
retry_policy: @config.retry_policy
|
2000
|
+
|
2001
|
+
@livestream_service_stub.get_clip request, options do |result, operation|
|
2002
|
+
yield result, operation if block_given?
|
2003
|
+
return result
|
2004
|
+
end
|
2005
|
+
rescue ::Gapic::Rest::Error => e
|
2006
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2007
|
+
end
|
2008
|
+
|
2009
|
+
##
|
2010
|
+
# Creates a clip with the provided clip ID in the specified channel.
|
2011
|
+
#
|
2012
|
+
# @overload create_clip(request, options = nil)
|
2013
|
+
# Pass arguments to `create_clip` via a request object, either of type
|
2014
|
+
# {::Google::Cloud::Video::LiveStream::V1::CreateClipRequest} or an equivalent Hash.
|
2015
|
+
#
|
2016
|
+
# @param request [::Google::Cloud::Video::LiveStream::V1::CreateClipRequest, ::Hash]
|
2017
|
+
# A request object representing the call parameters. Required. To specify no
|
2018
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2019
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2020
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2021
|
+
#
|
2022
|
+
# @overload create_clip(parent: nil, clip_id: nil, clip: nil, request_id: nil)
|
2023
|
+
# Pass arguments to `create_clip` via keyword arguments. Note that at
|
2024
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2025
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2026
|
+
#
|
2027
|
+
# @param parent [::String]
|
2028
|
+
# Required. The parent resource name, in the following form:
|
2029
|
+
# `projects/{project}/locations/{location}/channels/{channel}`.
|
2030
|
+
# @param clip_id [::String]
|
2031
|
+
# Required. Id of the requesting object in the following form:
|
2032
|
+
#
|
2033
|
+
# 1. 1 character minimum, 63 characters maximum
|
2034
|
+
# 2. Only contains letters, digits, underscores, and hyphens
|
2035
|
+
# @param clip [::Google::Cloud::Video::LiveStream::V1::Clip, ::Hash]
|
2036
|
+
# Required. The resource being created
|
2037
|
+
# @param request_id [::String]
|
2038
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
2039
|
+
# request ID so that if you must retry your request, the server will know to
|
2040
|
+
# ignore the request if it has already been completed. The server will
|
2041
|
+
# guarantee that for at least 60 minutes since the first request.
|
2042
|
+
#
|
2043
|
+
# For example, consider a situation where you make an initial request and
|
2044
|
+
# the request times out. If you make the request again with the same request
|
2045
|
+
# ID, the server can check if original operation with the same request ID
|
2046
|
+
# was received, and if so, will ignore the second request. This prevents
|
2047
|
+
# clients from accidentally creating duplicate commitments.
|
2048
|
+
#
|
2049
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
2050
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
2051
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2052
|
+
# @yieldparam result [::Gapic::Operation]
|
2053
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2054
|
+
#
|
2055
|
+
# @return [::Gapic::Operation]
|
2056
|
+
#
|
2057
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2058
|
+
#
|
2059
|
+
# @example Basic example
|
2060
|
+
# require "google/cloud/video/live_stream/v1"
|
2061
|
+
#
|
2062
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2063
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
2064
|
+
#
|
2065
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2066
|
+
# request = Google::Cloud::Video::LiveStream::V1::CreateClipRequest.new
|
2067
|
+
#
|
2068
|
+
# # Call the create_clip method.
|
2069
|
+
# result = client.create_clip request
|
2070
|
+
#
|
2071
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2072
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2073
|
+
# # Here is how to wait for a response.
|
2074
|
+
# result.wait_until_done! timeout: 60
|
2075
|
+
# if result.response?
|
2076
|
+
# p result.response
|
2077
|
+
# else
|
2078
|
+
# puts "No response received."
|
2079
|
+
# end
|
2080
|
+
#
|
2081
|
+
def create_clip request, options = nil
|
2082
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2083
|
+
|
2084
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Video::LiveStream::V1::CreateClipRequest
|
2085
|
+
|
2086
|
+
# Converts hash and nil to an options object
|
2087
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2088
|
+
|
2089
|
+
# Customize the options with defaults
|
2090
|
+
call_metadata = @config.rpcs.create_clip.metadata.to_h
|
2091
|
+
|
2092
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2093
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2094
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2095
|
+
gapic_version: ::Google::Cloud::Video::LiveStream::V1::VERSION,
|
2096
|
+
transports_version_send: [:rest]
|
2097
|
+
|
2098
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2099
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2100
|
+
|
2101
|
+
options.apply_defaults timeout: @config.rpcs.create_clip.timeout,
|
2102
|
+
metadata: call_metadata,
|
2103
|
+
retry_policy: @config.rpcs.create_clip.retry_policy
|
2104
|
+
|
2105
|
+
options.apply_defaults timeout: @config.timeout,
|
2106
|
+
metadata: @config.metadata,
|
2107
|
+
retry_policy: @config.retry_policy
|
2108
|
+
|
2109
|
+
@livestream_service_stub.create_clip request, options do |result, operation|
|
2110
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2111
|
+
yield result, operation if block_given?
|
2112
|
+
return result
|
2113
|
+
end
|
2114
|
+
rescue ::Gapic::Rest::Error => e
|
2115
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2116
|
+
end
|
2117
|
+
|
2118
|
+
##
|
2119
|
+
# Deletes the specified clip job resource. This method only deletes the clip
|
2120
|
+
# job and does not delete the VOD clip stored in the GCS.
|
2121
|
+
#
|
2122
|
+
# @overload delete_clip(request, options = nil)
|
2123
|
+
# Pass arguments to `delete_clip` via a request object, either of type
|
2124
|
+
# {::Google::Cloud::Video::LiveStream::V1::DeleteClipRequest} or an equivalent Hash.
|
2125
|
+
#
|
2126
|
+
# @param request [::Google::Cloud::Video::LiveStream::V1::DeleteClipRequest, ::Hash]
|
2127
|
+
# A request object representing the call parameters. Required. To specify no
|
2128
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2129
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2130
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2131
|
+
#
|
2132
|
+
# @overload delete_clip(name: nil, request_id: nil)
|
2133
|
+
# Pass arguments to `delete_clip` via keyword arguments. Note that at
|
2134
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2135
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2136
|
+
#
|
2137
|
+
# @param name [::String]
|
2138
|
+
# Required. The name of the clip resource, in the form of:
|
2139
|
+
# `projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`.
|
2140
|
+
# @param request_id [::String]
|
2141
|
+
# Optional. A request ID to identify requests. Specify a unique request ID
|
2142
|
+
# so that if you must retry your request, the server will know to ignore
|
2143
|
+
# the request if it has already been completed. The server will guarantee
|
2144
|
+
# that for at least 60 minutes since the first request.
|
2145
|
+
#
|
2146
|
+
# For example, consider a situation where you make an initial request and the
|
2147
|
+
# request times out. If you make the request again with the same request ID,
|
2148
|
+
# the server can check if original operation with the same request ID was
|
2149
|
+
# received, and if so, will ignore the second request. This prevents clients
|
2150
|
+
# from accidentally creating duplicate commitments.
|
2151
|
+
#
|
2152
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
2153
|
+
# not supported `(00000000-0000-0000-0000-000000000000)`.
|
2154
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2155
|
+
# @yieldparam result [::Gapic::Operation]
|
2156
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2157
|
+
#
|
2158
|
+
# @return [::Gapic::Operation]
|
2159
|
+
#
|
2160
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2161
|
+
#
|
2162
|
+
# @example Basic example
|
2163
|
+
# require "google/cloud/video/live_stream/v1"
|
2164
|
+
#
|
2165
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2166
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
2167
|
+
#
|
2168
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2169
|
+
# request = Google::Cloud::Video::LiveStream::V1::DeleteClipRequest.new
|
2170
|
+
#
|
2171
|
+
# # Call the delete_clip method.
|
2172
|
+
# result = client.delete_clip request
|
2173
|
+
#
|
2174
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2175
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2176
|
+
# # Here is how to wait for a response.
|
2177
|
+
# result.wait_until_done! timeout: 60
|
2178
|
+
# if result.response?
|
2179
|
+
# p result.response
|
2180
|
+
# else
|
2181
|
+
# puts "No response received."
|
2182
|
+
# end
|
2183
|
+
#
|
2184
|
+
def delete_clip request, options = nil
|
2185
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2186
|
+
|
2187
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Video::LiveStream::V1::DeleteClipRequest
|
2188
|
+
|
2189
|
+
# Converts hash and nil to an options object
|
2190
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2191
|
+
|
2192
|
+
# Customize the options with defaults
|
2193
|
+
call_metadata = @config.rpcs.delete_clip.metadata.to_h
|
2194
|
+
|
2195
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2196
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2197
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2198
|
+
gapic_version: ::Google::Cloud::Video::LiveStream::V1::VERSION,
|
2199
|
+
transports_version_send: [:rest]
|
2200
|
+
|
2201
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2202
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2203
|
+
|
2204
|
+
options.apply_defaults timeout: @config.rpcs.delete_clip.timeout,
|
2205
|
+
metadata: call_metadata,
|
2206
|
+
retry_policy: @config.rpcs.delete_clip.retry_policy
|
2207
|
+
|
2208
|
+
options.apply_defaults timeout: @config.timeout,
|
2209
|
+
metadata: @config.metadata,
|
2210
|
+
retry_policy: @config.retry_policy
|
2211
|
+
|
2212
|
+
@livestream_service_stub.delete_clip request, options do |result, operation|
|
2213
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2214
|
+
yield result, operation if block_given?
|
2215
|
+
return result
|
2216
|
+
end
|
2217
|
+
rescue ::Gapic::Rest::Error => e
|
2218
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2219
|
+
end
|
2220
|
+
|
1837
2221
|
##
|
1838
2222
|
# Creates a Asset with the provided unique ID in the specified
|
1839
2223
|
# region.
|
@@ -2628,6 +3012,26 @@ module Google
|
|
2628
3012
|
#
|
2629
3013
|
attr_reader :delete_event
|
2630
3014
|
##
|
3015
|
+
# RPC-specific configuration for `list_clips`
|
3016
|
+
# @return [::Gapic::Config::Method]
|
3017
|
+
#
|
3018
|
+
attr_reader :list_clips
|
3019
|
+
##
|
3020
|
+
# RPC-specific configuration for `get_clip`
|
3021
|
+
# @return [::Gapic::Config::Method]
|
3022
|
+
#
|
3023
|
+
attr_reader :get_clip
|
3024
|
+
##
|
3025
|
+
# RPC-specific configuration for `create_clip`
|
3026
|
+
# @return [::Gapic::Config::Method]
|
3027
|
+
#
|
3028
|
+
attr_reader :create_clip
|
3029
|
+
##
|
3030
|
+
# RPC-specific configuration for `delete_clip`
|
3031
|
+
# @return [::Gapic::Config::Method]
|
3032
|
+
#
|
3033
|
+
attr_reader :delete_clip
|
3034
|
+
##
|
2631
3035
|
# RPC-specific configuration for `create_asset`
|
2632
3036
|
# @return [::Gapic::Config::Method]
|
2633
3037
|
#
|
@@ -2692,6 +3096,14 @@ module Google
|
|
2692
3096
|
@get_event = ::Gapic::Config::Method.new get_event_config
|
2693
3097
|
delete_event_config = parent_rpcs.delete_event if parent_rpcs.respond_to? :delete_event
|
2694
3098
|
@delete_event = ::Gapic::Config::Method.new delete_event_config
|
3099
|
+
list_clips_config = parent_rpcs.list_clips if parent_rpcs.respond_to? :list_clips
|
3100
|
+
@list_clips = ::Gapic::Config::Method.new list_clips_config
|
3101
|
+
get_clip_config = parent_rpcs.get_clip if parent_rpcs.respond_to? :get_clip
|
3102
|
+
@get_clip = ::Gapic::Config::Method.new get_clip_config
|
3103
|
+
create_clip_config = parent_rpcs.create_clip if parent_rpcs.respond_to? :create_clip
|
3104
|
+
@create_clip = ::Gapic::Config::Method.new create_clip_config
|
3105
|
+
delete_clip_config = parent_rpcs.delete_clip if parent_rpcs.respond_to? :delete_clip
|
3106
|
+
@delete_clip = ::Gapic::Config::Method.new delete_clip_config
|
2695
3107
|
create_asset_config = parent_rpcs.create_asset if parent_rpcs.respond_to? :create_asset
|
2696
3108
|
@create_asset = ::Gapic::Config::Method.new create_asset_config
|
2697
3109
|
delete_asset_config = parent_rpcs.delete_asset if parent_rpcs.respond_to? :delete_asset
|