generated/google-apis-jobs_v4/lib/google/apis/jobs_v4/service.rb
# Completes the specified prefix with keyword suggestions. Intended for use by a
# job search auto-complete search box.
# @param [String] tenant
#   Required. Resource name of tenant the completion is performed within. The
#   format is "projects/`project_id`/tenants/`tenant_id`", for example, "projects/
#   foo/tenants/bar".
# @param [String] company
#   If provided, restricts completion to specified company. The format is "
#   projects/`project_id`/tenants/`tenant_id`/companies/`company_id`", for example,
#   "projects/foo/tenants/bar/companies/baz".
# @param [Array<String>, String] language_codes
#   The list of languages of the query. This is the BCP-47 language code, such as "
#   en-US" or "sr-Latn". For more information, see [Tags for Identifying Languages]
#   (https://tools.ietf.org/html/bcp47). The maximum number of allowed characters
#   is 255.
# @param [Fixnum] page_size
#   Required. Completion result count. The maximum allowed page size is 10.
# @param [String] query
#   Required. The query used to generate suggestions. The maximum number of
#   allowed characters is 255.
# @param [String] scope
#   The scope of the completion. The defaults is CompletionScope.PUBLIC.
# @param [String] type
#   The completion topic. The default is CompletionType.COMBINED.
# @param [String] fields
#   Selector specifying which fields to include in a partial response.
# @param [String] quota_user
#   Available to use for quota purposes for server-side applications. Can be any
#   arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
#   Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::JobsV4::CompleteQueryResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::JobsV4::CompleteQueryResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
Completes the specified prefix with keyword suggestions. Intended for use by a
job search auto-complete search box.
Completes the specified prefix with keyword suggestions . Intended for use by a job search auto - complete search box .
def complete_project_tenant_query(tenant, company: nil, language_codes: nil, page_size: nil, query: nil, scope: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v4/{+tenant}:completeQuery', options)
          command.response_representation = Google::Apis::JobsV4::CompleteQueryResponse::Representation
          command.response_class = Google::Apis::JobsV4::CompleteQueryResponse
          command.params['tenant'] = tenant unless tenant.nil?
          command.query['company'] = company unless company.nil?
          command.query['languageCodes'] = language_codes unless language_codes.nil?
          command.query['pageSize'] = page_size unless page_size.nil?
          command.query['query'] = query unless query.nil?
          command.query['scope'] = scope unless scope.nil?
          command.query['type'] = type unless type.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
def complete_project_tenant_query ( tenant , company : nil , language_codes : nil , page_size : nil , query : nil , scope : nil , type : nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :get , 'v4/{+tenant}:completeQuery' , options ) command . response_representation = Google :: Apis :: JobsV4 :: CompleteQueryResponse :: Representation command . response_class = Google :: Apis :: JobsV4 :: CompleteQueryResponse command . params [ 'tenant' ] = tenant unless tenant . nil? command . query [ 'company' ] = company unless company . nil? command . query [ 'languageCodes' ] = language_codes unless language_codes . nil? command . query [ 'pageSize' ] = page_size unless page_size . nil? command . query [ 'query' ] = query unless query . nil? command . query [ 'scope' ] = scope unless scope . nil? command . query [ 'type' ] = type unless type . nil? command . query [ 'fields' ] = fields unless fields . nil? command . query [ 'quotaUser' ] = quota_user unless quota_user . nil? execute_or_queue_command ( command , & block ) end
Completes the specified prefix with keyword suggestions.
Completes the specified prefix with keyword suggestions .
None
Google::Apis::JobsV4::CompleteQueryResponse
[Google::Apis::ServerError] An error occurred on the server and the request can be retried
[ Google :: Apis :: ServerError ] An error occurred on the server and the request can be retried
[Google::Apis::ClientError] The request is invalid and should not be retried without modification
[ Google :: Apis :: ClientError ] The request is invalid and should not be retried without modification
[Google::Apis::AuthorizationError] Authorization is required
[ Google :: Apis :: AuthorizationError ] Authorization is required
tenant
company
language_codes
page_size
query
scope
type
fields
quota_user
options
block
options Request-specific options
options Request - specific options
]
Result & error if block supplied
Result & error if block supplied
result
parsed result object
parsed result object
err
error object if request failed
error object if request failed