Debian Codegraph @

docs/dyn/discoveryengine_v1alpha.projects.locations.authorizations.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="discoveryengine_v1alpha.html">Discovery Engine API</a> . <a href="discoveryengine_v1alpha.projects.html">projects</a> . <a href="discoveryengine_v1alpha.projects.locations.html">locations</a> . <a href="discoveryengine_v1alpha.projects.locations.authorizations.html">authorizations</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, authorizationId=None, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates an Authorization.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes an Authorization.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets an Authorization.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists all Authorizations under an Engine.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates an Authorization</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, authorizationId=None, body=None, x__xgafv=None)</code>
106 <pre>Creates an Authorization.
107
108 Args:
109 parent: string, Required. The parent resource name. Format: `projects/{project}/locations/{location}` (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # Discovery Engine Authorization resource.
114 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the authorization. It must be a UTF-8 encoded string with a length limit of 128 characters.
115 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the authorization. Format: `projects/{project}/locations/{location}/authorizations/{authorization}` It must be a UTF-8 encoded string with a length limit of 1024 characters.
116 &quot;serverSideOauth2&quot;: { # OAuth2 configuration. # Server-side OAuth2 configuration.
117 &quot;authorizationUri&quot;: &quot;A String&quot;, # Required. The URI the user is directed to when they need to authorize. Should include everything required for a successful authorization: OAuth ID, extra flags, etc. Example: `https://accounts.google.com/o/oauth2/v2/auth?client_id=OAUTH_ID&amp;scope=https://www.googleapis.com/auth/calendar.events&amp;response_type=code&amp;access_type=offline&amp;prompt=consent` The `redirect_uri` parameter will be overwritten by the Vertex AI Search frontend.
118 &quot;clientId&quot;: &quot;A String&quot;, # Required. The OAuth2 client ID.
119 &quot;clientSecret&quot;: &quot;A String&quot;, # Required. The OAuth2 client secret. Encrypted at rest.
120 &quot;pkceVerificationEnabled&quot;: True or False, # Optional. Whether to enable PKCE verification. https://datatracker.ietf.org/doc/html/rfc7636#section-3.1/
121 &quot;scopes&quot;: [ # Optional. The scopes to request. Example: `https://www.googleapis.com/auth/calendar.events` If omitted, no additional scopes are requested beyond those required by the authorization uri. If set, it will overwrite the scopes in the authorization uri when acquiring user authorization.
122 &quot;A String&quot;,
123 ],
124 &quot;tokenUri&quot;: &quot;A String&quot;, # Required. The HTTP endpoint that exchanges a client authorization for an access token.
125 },
126 }
127
128 authorizationId: string, Required. The ID to use for the authorization, which will become the final component of the resource name. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) with a length limit of 63 characters.
129 x__xgafv: string, V1 error format.
130 Allowed values
131 1 - v1 error format
132 2 - v2 error format
133
134 Returns:
135 An object of the form:
136
137 { # Discovery Engine Authorization resource.
138 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the authorization. It must be a UTF-8 encoded string with a length limit of 128 characters.
139 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the authorization. Format: `projects/{project}/locations/{location}/authorizations/{authorization}` It must be a UTF-8 encoded string with a length limit of 1024 characters.
140 &quot;serverSideOauth2&quot;: { # OAuth2 configuration. # Server-side OAuth2 configuration.
141 &quot;authorizationUri&quot;: &quot;A String&quot;, # Required. The URI the user is directed to when they need to authorize. Should include everything required for a successful authorization: OAuth ID, extra flags, etc. Example: `https://accounts.google.com/o/oauth2/v2/auth?client_id=OAUTH_ID&amp;scope=https://www.googleapis.com/auth/calendar.events&amp;response_type=code&amp;access_type=offline&amp;prompt=consent` The `redirect_uri` parameter will be overwritten by the Vertex AI Search frontend.
142 &quot;clientId&quot;: &quot;A String&quot;, # Required. The OAuth2 client ID.
143 &quot;clientSecret&quot;: &quot;A String&quot;, # Required. The OAuth2 client secret. Encrypted at rest.
144 &quot;pkceVerificationEnabled&quot;: True or False, # Optional. Whether to enable PKCE verification. https://datatracker.ietf.org/doc/html/rfc7636#section-3.1/
145 &quot;scopes&quot;: [ # Optional. The scopes to request. Example: `https://www.googleapis.com/auth/calendar.events` If omitted, no additional scopes are requested beyond those required by the authorization uri. If set, it will overwrite the scopes in the authorization uri when acquiring user authorization.
146 &quot;A String&quot;,
147 ],
148 &quot;tokenUri&quot;: &quot;A String&quot;, # Required. The HTTP endpoint that exchanges a client authorization for an access token.
149 },
150 }</pre>
151 </div>
152
153 <div class="method">
154 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
155 <pre>Deletes an Authorization.
156
157 Args:
158 name: string, Required. Resource name of Authorization. Format: `projects/{project}/locations/{location}/authorizations/{authorization}` If the caller does not have permission to delete the authorization, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the authorization to delete does not exist, a `NOT_FOUND` error is returned. (required)
159 x__xgafv: string, V1 error format.
160 Allowed values
161 1 - v1 error format
162 2 - v2 error format
163
164 Returns:
165 An object of the form:
166
167 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
168 }</pre>
169 </div>
170
171 <div class="method">
172 <code class="details" id="get">get(name, x__xgafv=None)</code>
173 <pre>Gets an Authorization.
174
175 Args:
176 name: string, Required. Resource name of Authorization. Format: `projects/{project}/locations/{location}/authorizations/{authorization}` (required)
177 x__xgafv: string, V1 error format.
178 Allowed values
179 1 - v1 error format
180 2 - v2 error format
181
182 Returns:
183 An object of the form:
184
185 { # Discovery Engine Authorization resource.
186 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the authorization. It must be a UTF-8 encoded string with a length limit of 128 characters.
187 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the authorization. Format: `projects/{project}/locations/{location}/authorizations/{authorization}` It must be a UTF-8 encoded string with a length limit of 1024 characters.
188 &quot;serverSideOauth2&quot;: { # OAuth2 configuration. # Server-side OAuth2 configuration.
189 &quot;authorizationUri&quot;: &quot;A String&quot;, # Required. The URI the user is directed to when they need to authorize. Should include everything required for a successful authorization: OAuth ID, extra flags, etc. Example: `https://accounts.google.com/o/oauth2/v2/auth?client_id=OAUTH_ID&amp;scope=https://www.googleapis.com/auth/calendar.events&amp;response_type=code&amp;access_type=offline&amp;prompt=consent` The `redirect_uri` parameter will be overwritten by the Vertex AI Search frontend.
190 &quot;clientId&quot;: &quot;A String&quot;, # Required. The OAuth2 client ID.
191 &quot;clientSecret&quot;: &quot;A String&quot;, # Required. The OAuth2 client secret. Encrypted at rest.
192 &quot;pkceVerificationEnabled&quot;: True or False, # Optional. Whether to enable PKCE verification. https://datatracker.ietf.org/doc/html/rfc7636#section-3.1/
193 &quot;scopes&quot;: [ # Optional. The scopes to request. Example: `https://www.googleapis.com/auth/calendar.events` If omitted, no additional scopes are requested beyond those required by the authorization uri. If set, it will overwrite the scopes in the authorization uri when acquiring user authorization.
194 &quot;A String&quot;,
195 ],
196 &quot;tokenUri&quot;: &quot;A String&quot;, # Required. The HTTP endpoint that exchanges a client authorization for an access token.
197 },
198 }</pre>
199 </div>
200
201 <div class="method">
202 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
203 <pre>Lists all Authorizations under an Engine.
204
205 Args:
206 parent: string, Required. The parent resource name. Format: `projects/{project}/locations/{location}` (required)
207 pageSize: integer, Maximum number of Authorizations to return. If unspecified, defaults to 100. The maximum allowed value is 1000; anything above that will be coerced down to 1000.
208 pageToken: string, A page token ListAuthorizationsResponse.next_page_token, received from a previous AuthorizationService.ListAuthorizations call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListAuthorizations must match the call that provided the page token.
209 x__xgafv: string, V1 error format.
210 Allowed values
211 1 - v1 error format
212 2 - v2 error format
213
214 Returns:
215 An object of the form:
216
217 { # Response message for the AuthorizationService.ListAuthorizations method.
218 &quot;authorizations&quot;: [ # All the customer&#x27;s Authorizations.
219 { # Discovery Engine Authorization resource.
220 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the authorization. It must be a UTF-8 encoded string with a length limit of 128 characters.
221 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the authorization. Format: `projects/{project}/locations/{location}/authorizations/{authorization}` It must be a UTF-8 encoded string with a length limit of 1024 characters.
222 &quot;serverSideOauth2&quot;: { # OAuth2 configuration. # Server-side OAuth2 configuration.
223 &quot;authorizationUri&quot;: &quot;A String&quot;, # Required. The URI the user is directed to when they need to authorize. Should include everything required for a successful authorization: OAuth ID, extra flags, etc. Example: `https://accounts.google.com/o/oauth2/v2/auth?client_id=OAUTH_ID&amp;scope=https://www.googleapis.com/auth/calendar.events&amp;response_type=code&amp;access_type=offline&amp;prompt=consent` The `redirect_uri` parameter will be overwritten by the Vertex AI Search frontend.
224 &quot;clientId&quot;: &quot;A String&quot;, # Required. The OAuth2 client ID.
225 &quot;clientSecret&quot;: &quot;A String&quot;, # Required. The OAuth2 client secret. Encrypted at rest.
226 &quot;pkceVerificationEnabled&quot;: True or False, # Optional. Whether to enable PKCE verification. https://datatracker.ietf.org/doc/html/rfc7636#section-3.1/
227 &quot;scopes&quot;: [ # Optional. The scopes to request. Example: `https://www.googleapis.com/auth/calendar.events` If omitted, no additional scopes are requested beyond those required by the authorization uri. If set, it will overwrite the scopes in the authorization uri when acquiring user authorization.
228 &quot;A String&quot;,
229 ],
230 &quot;tokenUri&quot;: &quot;A String&quot;, # Required. The HTTP endpoint that exchanges a client authorization for an access token.
231 },
232 },
233 ],
234 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as ListAuthorizationsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
235 }</pre>
236 </div>
237
238 <div class="method">
239 <code class="details" id="list_next">list_next()</code>
240 <pre>Retrieves the next page of results.
241
242 Args:
243 previous_request: The request for the previous page. (required)
244 previous_response: The response from the request for the previous page. (required)
245
246 Returns:
247 A request object that you can call &#x27;execute()&#x27; on to request the next
248 page. Returns None if there are no more items in the collection.
249 </pre>
250 </div>
251
252 <div class="method">
253 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
254 <pre>Updates an Authorization
255
256 Args:
257 name: string, Identifier. Resource name of the authorization. Format: `projects/{project}/locations/{location}/authorizations/{authorization}` It must be a UTF-8 encoded string with a length limit of 1024 characters. (required)
258 body: object, The request body.
259 The object takes the form of:
260
261 { # Discovery Engine Authorization resource.
262 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the authorization. It must be a UTF-8 encoded string with a length limit of 128 characters.
263 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the authorization. Format: `projects/{project}/locations/{location}/authorizations/{authorization}` It must be a UTF-8 encoded string with a length limit of 1024 characters.
264 &quot;serverSideOauth2&quot;: { # OAuth2 configuration. # Server-side OAuth2 configuration.
265 &quot;authorizationUri&quot;: &quot;A String&quot;, # Required. The URI the user is directed to when they need to authorize. Should include everything required for a successful authorization: OAuth ID, extra flags, etc. Example: `https://accounts.google.com/o/oauth2/v2/auth?client_id=OAUTH_ID&amp;scope=https://www.googleapis.com/auth/calendar.events&amp;response_type=code&amp;access_type=offline&amp;prompt=consent` The `redirect_uri` parameter will be overwritten by the Vertex AI Search frontend.
266 &quot;clientId&quot;: &quot;A String&quot;, # Required. The OAuth2 client ID.
267 &quot;clientSecret&quot;: &quot;A String&quot;, # Required. The OAuth2 client secret. Encrypted at rest.
268 &quot;pkceVerificationEnabled&quot;: True or False, # Optional. Whether to enable PKCE verification. https://datatracker.ietf.org/doc/html/rfc7636#section-3.1/
269 &quot;scopes&quot;: [ # Optional. The scopes to request. Example: `https://www.googleapis.com/auth/calendar.events` If omitted, no additional scopes are requested beyond those required by the authorization uri. If set, it will overwrite the scopes in the authorization uri when acquiring user authorization.
270 &quot;A String&quot;,
271 ],
272 &quot;tokenUri&quot;: &quot;A String&quot;, # Required. The HTTP endpoint that exchanges a client authorization for an access token.
273 },
274 }
275
276 updateMask: string, The list of fields to update.
277 x__xgafv: string, V1 error format.
278 Allowed values
279 1 - v1 error format
280 2 - v2 error format
281
282 Returns:
283 An object of the form:
284
285 { # Discovery Engine Authorization resource.
286 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the authorization. It must be a UTF-8 encoded string with a length limit of 128 characters.
287 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the authorization. Format: `projects/{project}/locations/{location}/authorizations/{authorization}` It must be a UTF-8 encoded string with a length limit of 1024 characters.
288 &quot;serverSideOauth2&quot;: { # OAuth2 configuration. # Server-side OAuth2 configuration.
289 &quot;authorizationUri&quot;: &quot;A String&quot;, # Required. The URI the user is directed to when they need to authorize. Should include everything required for a successful authorization: OAuth ID, extra flags, etc. Example: `https://accounts.google.com/o/oauth2/v2/auth?client_id=OAUTH_ID&amp;scope=https://www.googleapis.com/auth/calendar.events&amp;response_type=code&amp;access_type=offline&amp;prompt=consent` The `redirect_uri` parameter will be overwritten by the Vertex AI Search frontend.
290 &quot;clientId&quot;: &quot;A String&quot;, # Required. The OAuth2 client ID.
291 &quot;clientSecret&quot;: &quot;A String&quot;, # Required. The OAuth2 client secret. Encrypted at rest.
292 &quot;pkceVerificationEnabled&quot;: True or False, # Optional. Whether to enable PKCE verification. https://datatracker.ietf.org/doc/html/rfc7636#section-3.1/
293 &quot;scopes&quot;: [ # Optional. The scopes to request. Example: `https://www.googleapis.com/auth/calendar.events` If omitted, no additional scopes are requested beyond those required by the authorization uri. If set, it will overwrite the scopes in the authorization uri when acquiring user authorization.
294 &quot;A String&quot;,
295 ],
296 &quot;tokenUri&quot;: &quot;A String&quot;, # Required. The HTTP endpoint that exchanges a client authorization for an access token.
297 },
298 }</pre>
299 </div>
300
301 </body></html>