Debian Codegraph @

docs/dyn/retail_v2alpha.projects.html

raw
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="retail_v2alpha.html">Vertex AI Search for commerce API</a> . <a href="retail_v2alpha.projects.html">projects</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="retail_v2alpha.projects.locations.html">locations()</a></code>
79 </p>
80 <p class="firstline">Returns the locations Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="retail_v2alpha.projects.operations.html">operations()</a></code>
84 </p>
85 <p class="firstline">Returns the operations Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="retail_v2alpha.projects.retailProject.html">retailProject()</a></code>
89 </p>
90 <p class="firstline">Returns the retailProject Resource.</p>
91
92 <p class="toc_element">
93 <code><a href="#close">close()</a></code></p>
94 <p class="firstline">Close httplib2 connections.</p>
95 <p class="toc_element">
96 <code><a href="#enrollSolution">enrollSolution(project, body=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">The method enrolls a solution of type Retail Search into a project. The Recommendations AI solution type is enrolled by default when your project enables Retail API, so you don't need to call the enrollSolution method for recommendations.</p>
98 <p class="toc_element">
99 <code><a href="#getAlertConfig">getAlertConfig(name, x__xgafv=None)</a></code></p>
100 <p class="firstline">Get the AlertConfig of the requested project.</p>
101 <p class="toc_element">
102 <code><a href="#getLoggingConfig">getLoggingConfig(name, x__xgafv=None)</a></code></p>
103 <p class="firstline">Gets the LoggingConfig of the requested project.</p>
104 <p class="toc_element">
105 <code><a href="#getRetailProject">getRetailProject(name, x__xgafv=None)</a></code></p>
106 <p class="firstline">Gets the project. Throws `NOT_FOUND` if the project wasn't initialized for the Retail API service.</p>
107 <p class="toc_element">
108 <code><a href="#listEnrolledSolutions">listEnrolledSolutions(parent, x__xgafv=None)</a></code></p>
109 <p class="firstline">Lists all the retail API solutions the project has enrolled.</p>
110 <p class="toc_element">
111 <code><a href="#updateAlertConfig">updateAlertConfig(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
112 <p class="firstline">Update the alert config of the requested project.</p>
113 <p class="toc_element">
114 <code><a href="#updateLoggingConfig">updateLoggingConfig(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
115 <p class="firstline">Updates the LoggingConfig of the requested project.</p>
116 <h3>Method Details</h3>
117 <div class="method">
118 <code class="details" id="close">close()</code>
119 <pre>Close httplib2 connections.</pre>
120 </div>
121
122 <div class="method">
123 <code class="details" id="enrollSolution">enrollSolution(project, body=None, x__xgafv=None)</code>
124 <pre>The method enrolls a solution of type Retail Search into a project. The Recommendations AI solution type is enrolled by default when your project enables Retail API, so you don&#x27;t need to call the enrollSolution method for recommendations.
125
126 Args:
127 project: string, Required. Full resource name of parent. Format: `projects/{project_number_or_id}` (required)
128 body: object, The request body.
129 The object takes the form of:
130
131 { # Request for EnrollSolution method.
132 &quot;solution&quot;: &quot;A String&quot;, # Required. Solution to enroll.
133 }
134
135 x__xgafv: string, V1 error format.
136 Allowed values
137 1 - v1 error format
138 2 - v2 error format
139
140 Returns:
141 An object of the form:
142
143 { # This resource represents a long-running operation that is the result of a network API call.
144 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
145 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
146 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
147 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
148 {
149 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
150 },
151 ],
152 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
153 },
154 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
155 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
156 },
157 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
158 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
159 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
160 },
161 }</pre>
162 </div>
163
164 <div class="method">
165 <code class="details" id="getAlertConfig">getAlertConfig(name, x__xgafv=None)</code>
166 <pre>Get the AlertConfig of the requested project.
167
168 Args:
169 name: string, Required. Full AlertConfig resource name. Format: projects/{project_number}/alertConfig (required)
170 x__xgafv: string, V1 error format.
171 Allowed values
172 1 - v1 error format
173 2 - v2 error format
174
175 Returns:
176 An object of the form:
177
178 { # Project level alert config.
179 &quot;alertPolicies&quot;: [ # Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]
180 { # Alert policy for a customer.
181 &quot;alertGroup&quot;: &quot;A String&quot;, # The feature that provides alerting capability. Supported value: - `search-data-quality` for retail search customers. - `conv-data-quality` for retail conversation customers.
182 &quot;enrollStatus&quot;: &quot;A String&quot;, # The enrollment status of a customer.
183 &quot;recipients&quot;: [ # Recipients for the alert policy. One alert policy should not exceed 20 recipients.
184 { # Recipient contact information.
185 &quot;emailAddress&quot;: &quot;A String&quot;, # Email address of the recipient.
186 },
187 ],
188 },
189 ],
190 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the AlertConfig singleton resource. Format: projects/*/alertConfig
191 }</pre>
192 </div>
193
194 <div class="method">
195 <code class="details" id="getLoggingConfig">getLoggingConfig(name, x__xgafv=None)</code>
196 <pre>Gets the LoggingConfig of the requested project.
197
198 Args:
199 name: string, Required. Full LoggingConfig resource name. Format: projects/{project_number}/loggingConfig (required)
200 x__xgafv: string, V1 error format.
201 Allowed values
202 1 - v1 error format
203 2 - v2 error format
204
205 Returns:
206 An object of the form:
207
208 { # Project level logging config to control what level of log will be generated and written to Cloud Logging.
209 &quot;defaultLogGenerationRule&quot;: { # The logging configurations for services supporting log generation. # The log generation rule that applies by default to all services supporting log generation. It can be overridden by ServiceLogGenerationRule for service level control.
210 &quot;infoLogSampleRate&quot;: 3.14, # The log sample rate for INFO level log entries. You can use this to reduce the number of entries generated for INFO level logs. DO NOT set this field if the logging_level is not LoggingLevel.LOG_ALL. Otherwise, an INVALID_ARGUMENT error is returned. Sample rate for INFO logs defaults to 1 when unset (generate and send all INFO logs to Cloud Logging). Its value must be greater than 0 and less than or equal to 1.
211 &quot;loggingLevel&quot;: &quot;A String&quot;, # The logging level. By default it is set to `LOG_WARNINGS_AND_ABOVE`.
212 },
213 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the LoggingConfig singleton resource. Format: projects/*/loggingConfig
214 &quot;serviceLogGenerationRules&quot;: [ # Controls logging configurations more granularly for each supported service. This overrides the default_log_generation_rule for the services specified. For those not mentioned, they will fallback to the default log generation rule.
215 { # The granular logging configurations for supported services.
216 &quot;logGenerationRule&quot;: { # The logging configurations for services supporting log generation. # The log generation rule that applies to this service.
217 &quot;infoLogSampleRate&quot;: 3.14, # The log sample rate for INFO level log entries. You can use this to reduce the number of entries generated for INFO level logs. DO NOT set this field if the logging_level is not LoggingLevel.LOG_ALL. Otherwise, an INVALID_ARGUMENT error is returned. Sample rate for INFO logs defaults to 1 when unset (generate and send all INFO logs to Cloud Logging). Its value must be greater than 0 and less than or equal to 1.
218 &quot;loggingLevel&quot;: &quot;A String&quot;, # The logging level. By default it is set to `LOG_WARNINGS_AND_ABOVE`.
219 },
220 &quot;serviceName&quot;: &quot;A String&quot;, # Required. Supported service names: &quot;CatalogService&quot;, &quot;CompletionService&quot;, &quot;ControlService&quot;, &quot;MerchantCenterStreaming&quot;, &quot;ModelService&quot;, &quot;PredictionService&quot;, &quot;ProductService&quot;, &quot;ServingConfigService&quot;, &quot;UserEventService&quot;,
221 },
222 ],
223 }</pre>
224 </div>
225
226 <div class="method">
227 <code class="details" id="getRetailProject">getRetailProject(name, x__xgafv=None)</code>
228 <pre>Gets the project. Throws `NOT_FOUND` if the project wasn&#x27;t initialized for the Retail API service.
229
230 Args:
231 name: string, Required. Full resource name of the project. Format: `projects/{project_number_or_id}/retailProject` (required)
232 x__xgafv: string, V1 error format.
233 Allowed values
234 1 - v1 error format
235 2 - v2 error format
236
237 Returns:
238 An object of the form:
239
240 { # Metadata that describes a Cloud Retail Project.
241 &quot;enrolledSolutions&quot;: [ # Output only. Retail API solutions that the project has enrolled.
242 &quot;A String&quot;,
243 ],
244 &quot;name&quot;: &quot;A String&quot;, # Output only. Full resource name of the retail project, such as `projects/{project_id_or_number}/retailProject`.
245 }</pre>
246 </div>
247
248 <div class="method">
249 <code class="details" id="listEnrolledSolutions">listEnrolledSolutions(parent, x__xgafv=None)</code>
250 <pre>Lists all the retail API solutions the project has enrolled.
251
252 Args:
253 parent: string, Required. Full resource name of parent. Format: `projects/{project_number_or_id}` (required)
254 x__xgafv: string, V1 error format.
255 Allowed values
256 1 - v1 error format
257 2 - v2 error format
258
259 Returns:
260 An object of the form:
261
262 { # Response for ListEnrolledSolutions method.
263 &quot;enrolledSolutions&quot;: [ # Retail API solutions that the project has enrolled.
264 &quot;A String&quot;,
265 ],
266 }</pre>
267 </div>
268
269 <div class="method">
270 <code class="details" id="updateAlertConfig">updateAlertConfig(name, body=None, updateMask=None, x__xgafv=None)</code>
271 <pre>Update the alert config of the requested project.
272
273 Args:
274 name: string, Required. Immutable. The name of the AlertConfig singleton resource. Format: projects/*/alertConfig (required)
275 body: object, The request body.
276 The object takes the form of:
277
278 { # Project level alert config.
279 &quot;alertPolicies&quot;: [ # Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]
280 { # Alert policy for a customer.
281 &quot;alertGroup&quot;: &quot;A String&quot;, # The feature that provides alerting capability. Supported value: - `search-data-quality` for retail search customers. - `conv-data-quality` for retail conversation customers.
282 &quot;enrollStatus&quot;: &quot;A String&quot;, # The enrollment status of a customer.
283 &quot;recipients&quot;: [ # Recipients for the alert policy. One alert policy should not exceed 20 recipients.
284 { # Recipient contact information.
285 &quot;emailAddress&quot;: &quot;A String&quot;, # Email address of the recipient.
286 },
287 ],
288 },
289 ],
290 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the AlertConfig singleton resource. Format: projects/*/alertConfig
291 }
292
293 updateMask: string, Indicates which fields in the provided AlertConfig to update. If not set, all supported fields are updated.
294 x__xgafv: string, V1 error format.
295 Allowed values
296 1 - v1 error format
297 2 - v2 error format
298
299 Returns:
300 An object of the form:
301
302 { # Project level alert config.
303 &quot;alertPolicies&quot;: [ # Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]
304 { # Alert policy for a customer.
305 &quot;alertGroup&quot;: &quot;A String&quot;, # The feature that provides alerting capability. Supported value: - `search-data-quality` for retail search customers. - `conv-data-quality` for retail conversation customers.
306 &quot;enrollStatus&quot;: &quot;A String&quot;, # The enrollment status of a customer.
307 &quot;recipients&quot;: [ # Recipients for the alert policy. One alert policy should not exceed 20 recipients.
308 { # Recipient contact information.
309 &quot;emailAddress&quot;: &quot;A String&quot;, # Email address of the recipient.
310 },
311 ],
312 },
313 ],
314 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the AlertConfig singleton resource. Format: projects/*/alertConfig
315 }</pre>
316 </div>
317
318 <div class="method">
319 <code class="details" id="updateLoggingConfig">updateLoggingConfig(name, body=None, updateMask=None, x__xgafv=None)</code>
320 <pre>Updates the LoggingConfig of the requested project.
321
322 Args:
323 name: string, Required. Immutable. The name of the LoggingConfig singleton resource. Format: projects/*/loggingConfig (required)
324 body: object, The request body.
325 The object takes the form of:
326
327 { # Project level logging config to control what level of log will be generated and written to Cloud Logging.
328 &quot;defaultLogGenerationRule&quot;: { # The logging configurations for services supporting log generation. # The log generation rule that applies by default to all services supporting log generation. It can be overridden by ServiceLogGenerationRule for service level control.
329 &quot;infoLogSampleRate&quot;: 3.14, # The log sample rate for INFO level log entries. You can use this to reduce the number of entries generated for INFO level logs. DO NOT set this field if the logging_level is not LoggingLevel.LOG_ALL. Otherwise, an INVALID_ARGUMENT error is returned. Sample rate for INFO logs defaults to 1 when unset (generate and send all INFO logs to Cloud Logging). Its value must be greater than 0 and less than or equal to 1.
330 &quot;loggingLevel&quot;: &quot;A String&quot;, # The logging level. By default it is set to `LOG_WARNINGS_AND_ABOVE`.
331 },
332 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the LoggingConfig singleton resource. Format: projects/*/loggingConfig
333 &quot;serviceLogGenerationRules&quot;: [ # Controls logging configurations more granularly for each supported service. This overrides the default_log_generation_rule for the services specified. For those not mentioned, they will fallback to the default log generation rule.
334 { # The granular logging configurations for supported services.
335 &quot;logGenerationRule&quot;: { # The logging configurations for services supporting log generation. # The log generation rule that applies to this service.
336 &quot;infoLogSampleRate&quot;: 3.14, # The log sample rate for INFO level log entries. You can use this to reduce the number of entries generated for INFO level logs. DO NOT set this field if the logging_level is not LoggingLevel.LOG_ALL. Otherwise, an INVALID_ARGUMENT error is returned. Sample rate for INFO logs defaults to 1 when unset (generate and send all INFO logs to Cloud Logging). Its value must be greater than 0 and less than or equal to 1.
337 &quot;loggingLevel&quot;: &quot;A String&quot;, # The logging level. By default it is set to `LOG_WARNINGS_AND_ABOVE`.
338 },
339 &quot;serviceName&quot;: &quot;A String&quot;, # Required. Supported service names: &quot;CatalogService&quot;, &quot;CompletionService&quot;, &quot;ControlService&quot;, &quot;MerchantCenterStreaming&quot;, &quot;ModelService&quot;, &quot;PredictionService&quot;, &quot;ProductService&quot;, &quot;ServingConfigService&quot;, &quot;UserEventService&quot;,
340 },
341 ],
342 }
343
344 updateMask: string, Indicates which fields in the provided LoggingConfig to update. The following are the only supported fields: * LoggingConfig.default_log_generation_rule * LoggingConfig.service_log_generation_rules If not set, all supported fields are updated.
345 x__xgafv: string, V1 error format.
346 Allowed values
347 1 - v1 error format
348 2 - v2 error format
349
350 Returns:
351 An object of the form:
352
353 { # Project level logging config to control what level of log will be generated and written to Cloud Logging.
354 &quot;defaultLogGenerationRule&quot;: { # The logging configurations for services supporting log generation. # The log generation rule that applies by default to all services supporting log generation. It can be overridden by ServiceLogGenerationRule for service level control.
355 &quot;infoLogSampleRate&quot;: 3.14, # The log sample rate for INFO level log entries. You can use this to reduce the number of entries generated for INFO level logs. DO NOT set this field if the logging_level is not LoggingLevel.LOG_ALL. Otherwise, an INVALID_ARGUMENT error is returned. Sample rate for INFO logs defaults to 1 when unset (generate and send all INFO logs to Cloud Logging). Its value must be greater than 0 and less than or equal to 1.
356 &quot;loggingLevel&quot;: &quot;A String&quot;, # The logging level. By default it is set to `LOG_WARNINGS_AND_ABOVE`.
357 },
358 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the LoggingConfig singleton resource. Format: projects/*/loggingConfig
359 &quot;serviceLogGenerationRules&quot;: [ # Controls logging configurations more granularly for each supported service. This overrides the default_log_generation_rule for the services specified. For those not mentioned, they will fallback to the default log generation rule.
360 { # The granular logging configurations for supported services.
361 &quot;logGenerationRule&quot;: { # The logging configurations for services supporting log generation. # The log generation rule that applies to this service.
362 &quot;infoLogSampleRate&quot;: 3.14, # The log sample rate for INFO level log entries. You can use this to reduce the number of entries generated for INFO level logs. DO NOT set this field if the logging_level is not LoggingLevel.LOG_ALL. Otherwise, an INVALID_ARGUMENT error is returned. Sample rate for INFO logs defaults to 1 when unset (generate and send all INFO logs to Cloud Logging). Its value must be greater than 0 and less than or equal to 1.
363 &quot;loggingLevel&quot;: &quot;A String&quot;, # The logging level. By default it is set to `LOG_WARNINGS_AND_ABOVE`.
364 },
365 &quot;serviceName&quot;: &quot;A String&quot;, # Required. Supported service names: &quot;CatalogService&quot;, &quot;CompletionService&quot;, &quot;ControlService&quot;, &quot;MerchantCenterStreaming&quot;, &quot;ModelService&quot;, &quot;PredictionService&quot;, &quot;ProductService&quot;, &quot;ServingConfigService&quot;, &quot;UserEventService&quot;,
366 },
367 ],
368 }</pre>
369 </div>
370
371 </body></html>