Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="jobs_v2.html">Cloud Talent Solution API</a> . <a href="jobs_v2.v2.html">v2</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#complete">complete(languageCode=None, pageSize=None, companyName=None, type=None, scope=None, query=None, x__xgafv=None)</a></code></p> |
| 79 | <p class="firstline">Completes the specified prefix with job keyword suggestions.</p> |
| 80 | <h3>Method Details</h3> |
| 81 | <div class="method"> |
| 82 | <code class="details" id="complete">complete(languageCode=None, pageSize=None, companyName=None, type=None, scope=None, query=None, x__xgafv=None)</code> |
| 83 | <pre>Completes the specified prefix with job keyword suggestions. |
| 84 | Intended for use by a job search auto-complete search box. |
| 85 | |
| 86 | Args: |
| 87 | languageCode: string, Required. |
| 88 | |
| 89 | The language of the query. This is |
| 90 | the BCP-47 language code, such as "en-US" or "sr-Latn". |
| 91 | For more information, see |
| 92 | [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). |
| 93 | |
| 94 | For CompletionType.JOB_TITLE type, only open jobs with same |
| 95 | language_code are returned. |
| 96 | |
| 97 | For CompletionType.COMPANY_NAME type, |
| 98 | only companies having open jobs with same language_code are |
| 99 | returned. |
| 100 | |
| 101 | For CompletionType.COMBINED type, only open jobs with same |
| 102 | language_code or companies having open jobs with same |
| 103 | language_code are returned. |
| 104 | pageSize: integer, Required. |
| 105 | |
| 106 | Completion result count. |
| 107 | The maximum allowed page size is 10. |
| 108 | companyName: string, Optional. |
| 109 | |
| 110 | If provided, restricts completion to the specified company. |
| 111 | type: string, Optional. |
| 112 | |
| 113 | The completion topic. The default is CompletionType.COMBINED. |
| 114 | scope: string, Optional. |
| 115 | |
| 116 | The scope of the completion. The defaults is CompletionScope.PUBLIC. |
| 117 | query: string, Required. |
| 118 | |
| 119 | The query used to generate suggestions. |
| 120 | x__xgafv: string, V1 error format. |
| 121 | Allowed values |
| 122 | 1 - v1 error format |
| 123 | 2 - v2 error format |
| 124 | |
| 125 | Returns: |
| 126 | An object of the form: |
| 127 | |
| 128 | { # Output only. |
| 129 | # |
| 130 | # Response of auto-complete query. |
| 131 | "completionResults": [ # Results of the matching job/company candidates. |
| 132 | { # Output only. |
| 133 | # |
| 134 | # Resource that represents completion results. |
| 135 | "imageUrl": "A String", # The URL for the company logo if `type=COMPANY_NAME`. |
| 136 | "type": "A String", # The completion topic. |
| 137 | "suggestion": "A String", # The suggestion for the query. |
| 138 | }, |
| 139 | ], |
| 140 | "metadata": { # Output only. # Additional information for the API invocation, such as the request |
| 141 | # tracking id. |
| 142 | # |
| 143 | # Additional information returned to client, such as debugging |
| 144 | # information. |
| 145 | "requestId": "A String", # A unique id associated with this call. |
| 146 | # This id is logged for tracking purposes. |
| 147 | "experimentIdList": [ # Identifiers for the versions of the search algorithm used during |
| 148 | # this API invocation if multiple algorithms are used. |
| 149 | # The default value is empty. |
| 150 | # For search response only. |
| 151 | 42, |
| 152 | ], |
| 153 | "mode": "A String", # For search response only. Indicates the mode of a performed search. |
| 154 | }, |
| 155 | }</pre> |
| 156 | </div> |
| 157 | |
| 158 | </body></html> |