Method: Google::Cloud::VisionAI::V1::AppPlatform::Rest::Client#list_prebuilt_processors
- Defined in:
- lib/google/cloud/vision_ai/v1/app_platform/rest/client.rb
#list_prebuilt_processors(request, options = nil) ⇒ ::Google::Cloud::VisionAI::V1::ListPrebuiltProcessorsResponse #list_prebuilt_processors(parent: nil) ⇒ ::Google::Cloud::VisionAI::V1::ListPrebuiltProcessorsResponse
ListPrebuiltProcessors is a custom pass-through verb that Lists Prebuilt Processors.
2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 |
# File 'lib/google/cloud/vision_ai/v1/app_platform/rest/client.rb', line 2364 def list_prebuilt_processors request, = nil raise ::ArgumentError, "request must be provided" if request.nil? request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VisionAI::V1::ListPrebuiltProcessorsRequest # Converts hash and nil to an options object = ::Gapic::CallOptions.new(**.to_h) if .respond_to? :to_h # Customize the options with defaults = @config.rpcs.list_prebuilt_processors..to_h # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers [:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ lib_name: @config.lib_name, lib_version: @config.lib_version, gapic_version: ::Google::Cloud::VisionAI::V1::VERSION, transports_version_send: [:rest] [:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? [:"x-goog-user-project"] = @quota_project_id if @quota_project_id .apply_defaults timeout: @config.rpcs.list_prebuilt_processors.timeout, metadata: , retry_policy: @config.rpcs.list_prebuilt_processors.retry_policy .apply_defaults timeout: @config.timeout, metadata: @config., retry_policy: @config.retry_policy @app_platform_stub.list_prebuilt_processors request, do |result, operation| yield result, operation if block_given? end rescue ::Gapic::Rest::Error => e raise ::Google::Cloud::Error.from_error(e) end |