@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20230711 → 0.0.20230713
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +191 -1
- package/package.json +1 -1
- package/tests.ts +23 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://discoveryengine.googleapis.com/$discovery/rest?version=v1alpha
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230713
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1979,6 +1979,194 @@ declare namespace gapi.client {
|
|
|
1979
1979
|
},
|
|
1980
1980
|
body: GoogleCloudDiscoveryengineV1alphaRecommendRequest): Request<GoogleCloudDiscoveryengineV1alphaRecommendResponse>;
|
|
1981
1981
|
}
|
|
1982
|
+
interface OperationsResource {
|
|
1983
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
1984
|
+
get(request?: {
|
|
1985
|
+
/** V1 error format. */
|
|
1986
|
+
"$.xgafv"?:
|
|
1987
|
+
string;
|
|
1988
|
+
/** OAuth access token. */
|
|
1989
|
+
access_token?:
|
|
1990
|
+
string;
|
|
1991
|
+
/** Data format for response. */
|
|
1992
|
+
alt?:
|
|
1993
|
+
string;
|
|
1994
|
+
/** JSONP */
|
|
1995
|
+
callback?:
|
|
1996
|
+
string;
|
|
1997
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1998
|
+
fields?:
|
|
1999
|
+
string;
|
|
2000
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2001
|
+
key?:
|
|
2002
|
+
string;
|
|
2003
|
+
/** The name of the operation resource. */
|
|
2004
|
+
name:
|
|
2005
|
+
string;
|
|
2006
|
+
/** OAuth 2.0 token for the current user. */
|
|
2007
|
+
oauth_token?:
|
|
2008
|
+
string;
|
|
2009
|
+
/** Returns response with indentations and line breaks. */
|
|
2010
|
+
prettyPrint?:
|
|
2011
|
+
boolean;
|
|
2012
|
+
/** 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. */
|
|
2013
|
+
quotaUser?:
|
|
2014
|
+
string;
|
|
2015
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2016
|
+
upload_protocol?:
|
|
2017
|
+
string;
|
|
2018
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2019
|
+
uploadType?:
|
|
2020
|
+
string;
|
|
2021
|
+
}): Request<GoogleLongrunningOperation>;
|
|
2022
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
2023
|
+
list(request?: {
|
|
2024
|
+
/** V1 error format. */
|
|
2025
|
+
"$.xgafv"?:
|
|
2026
|
+
string;
|
|
2027
|
+
/** OAuth access token. */
|
|
2028
|
+
access_token?:
|
|
2029
|
+
string;
|
|
2030
|
+
/** Data format for response. */
|
|
2031
|
+
alt?:
|
|
2032
|
+
string;
|
|
2033
|
+
/** JSONP */
|
|
2034
|
+
callback?:
|
|
2035
|
+
string;
|
|
2036
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2037
|
+
fields?:
|
|
2038
|
+
string;
|
|
2039
|
+
/** The standard list filter. */
|
|
2040
|
+
filter?:
|
|
2041
|
+
string;
|
|
2042
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2043
|
+
key?:
|
|
2044
|
+
string;
|
|
2045
|
+
/** The name of the operation's parent resource. */
|
|
2046
|
+
name:
|
|
2047
|
+
string;
|
|
2048
|
+
/** OAuth 2.0 token for the current user. */
|
|
2049
|
+
oauth_token?:
|
|
2050
|
+
string;
|
|
2051
|
+
/** The standard list page size. */
|
|
2052
|
+
pageSize?:
|
|
2053
|
+
number;
|
|
2054
|
+
/** The standard list page token. */
|
|
2055
|
+
pageToken?:
|
|
2056
|
+
string;
|
|
2057
|
+
/** Returns response with indentations and line breaks. */
|
|
2058
|
+
prettyPrint?:
|
|
2059
|
+
boolean;
|
|
2060
|
+
/** 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. */
|
|
2061
|
+
quotaUser?:
|
|
2062
|
+
string;
|
|
2063
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2064
|
+
upload_protocol?:
|
|
2065
|
+
string;
|
|
2066
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2067
|
+
uploadType?:
|
|
2068
|
+
string;
|
|
2069
|
+
}): Request<GoogleLongrunningListOperationsResponse>;
|
|
2070
|
+
}
|
|
2071
|
+
interface OperationsResource {
|
|
2072
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
2073
|
+
get(request?: {
|
|
2074
|
+
/** V1 error format. */
|
|
2075
|
+
"$.xgafv"?:
|
|
2076
|
+
string;
|
|
2077
|
+
/** OAuth access token. */
|
|
2078
|
+
access_token?:
|
|
2079
|
+
string;
|
|
2080
|
+
/** Data format for response. */
|
|
2081
|
+
alt?:
|
|
2082
|
+
string;
|
|
2083
|
+
/** JSONP */
|
|
2084
|
+
callback?:
|
|
2085
|
+
string;
|
|
2086
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2087
|
+
fields?:
|
|
2088
|
+
string;
|
|
2089
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2090
|
+
key?:
|
|
2091
|
+
string;
|
|
2092
|
+
/** The name of the operation resource. */
|
|
2093
|
+
name:
|
|
2094
|
+
string;
|
|
2095
|
+
/** OAuth 2.0 token for the current user. */
|
|
2096
|
+
oauth_token?:
|
|
2097
|
+
string;
|
|
2098
|
+
/** Returns response with indentations and line breaks. */
|
|
2099
|
+
prettyPrint?:
|
|
2100
|
+
boolean;
|
|
2101
|
+
/** 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. */
|
|
2102
|
+
quotaUser?:
|
|
2103
|
+
string;
|
|
2104
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2105
|
+
upload_protocol?:
|
|
2106
|
+
string;
|
|
2107
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2108
|
+
uploadType?:
|
|
2109
|
+
string;
|
|
2110
|
+
}): Request<GoogleLongrunningOperation>;
|
|
2111
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
2112
|
+
list(request?: {
|
|
2113
|
+
/** V1 error format. */
|
|
2114
|
+
"$.xgafv"?:
|
|
2115
|
+
string;
|
|
2116
|
+
/** OAuth access token. */
|
|
2117
|
+
access_token?:
|
|
2118
|
+
string;
|
|
2119
|
+
/** Data format for response. */
|
|
2120
|
+
alt?:
|
|
2121
|
+
string;
|
|
2122
|
+
/** JSONP */
|
|
2123
|
+
callback?:
|
|
2124
|
+
string;
|
|
2125
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2126
|
+
fields?:
|
|
2127
|
+
string;
|
|
2128
|
+
/** The standard list filter. */
|
|
2129
|
+
filter?:
|
|
2130
|
+
string;
|
|
2131
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2132
|
+
key?:
|
|
2133
|
+
string;
|
|
2134
|
+
/** The name of the operation's parent resource. */
|
|
2135
|
+
name:
|
|
2136
|
+
string;
|
|
2137
|
+
/** OAuth 2.0 token for the current user. */
|
|
2138
|
+
oauth_token?:
|
|
2139
|
+
string;
|
|
2140
|
+
/** The standard list page size. */
|
|
2141
|
+
pageSize?:
|
|
2142
|
+
number;
|
|
2143
|
+
/** The standard list page token. */
|
|
2144
|
+
pageToken?:
|
|
2145
|
+
string;
|
|
2146
|
+
/** Returns response with indentations and line breaks. */
|
|
2147
|
+
prettyPrint?:
|
|
2148
|
+
boolean;
|
|
2149
|
+
/** 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. */
|
|
2150
|
+
quotaUser?:
|
|
2151
|
+
string;
|
|
2152
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2153
|
+
upload_protocol?:
|
|
2154
|
+
string;
|
|
2155
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2156
|
+
uploadType?:
|
|
2157
|
+
string;
|
|
2158
|
+
}): Request<GoogleLongrunningListOperationsResponse>;
|
|
2159
|
+
}
|
|
2160
|
+
interface TargetSitesResource {
|
|
2161
|
+
operations:
|
|
2162
|
+
OperationsResource;
|
|
2163
|
+
}
|
|
2164
|
+
interface SiteSearchEngineResource {
|
|
2165
|
+
operations:
|
|
2166
|
+
OperationsResource;
|
|
2167
|
+
targetSites:
|
|
2168
|
+
TargetSitesResource;
|
|
2169
|
+
}
|
|
1982
2170
|
interface UserEventsResource {
|
|
1983
2171
|
/**
|
|
1984
2172
|
* Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery
|
|
@@ -2301,6 +2489,8 @@ declare namespace gapi.client {
|
|
|
2301
2489
|
SchemasResource;
|
|
2302
2490
|
servingConfigs:
|
|
2303
2491
|
ServingConfigsResource;
|
|
2492
|
+
siteSearchEngine:
|
|
2493
|
+
SiteSearchEngineResource;
|
|
2304
2494
|
userEvents:
|
|
2305
2495
|
UserEventsResource;
|
|
2306
2496
|
}
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230713
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -259,6 +259,28 @@ gapi.load('client', async () => {
|
|
|
259
259
|
},
|
|
260
260
|
validateOnly: true,
|
|
261
261
|
});
|
|
262
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
263
|
+
await gapi.client.discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.get({
|
|
264
|
+
name: "Test string",
|
|
265
|
+
});
|
|
266
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
267
|
+
await gapi.client.discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.list({
|
|
268
|
+
filter: "Test string",
|
|
269
|
+
name: "Test string",
|
|
270
|
+
pageSize: 42,
|
|
271
|
+
pageToken: "Test string",
|
|
272
|
+
});
|
|
273
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
274
|
+
await gapi.client.discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.get({
|
|
275
|
+
name: "Test string",
|
|
276
|
+
});
|
|
277
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
278
|
+
await gapi.client.discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.list({
|
|
279
|
+
filter: "Test string",
|
|
280
|
+
name: "Test string",
|
|
281
|
+
pageSize: 42,
|
|
282
|
+
pageToken: "Test string",
|
|
283
|
+
});
|
|
262
284
|
/**
|
|
263
285
|
* Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery Engine
|
|
264
286
|
* API JavaScript pixel and Google Tag Manager. Users should not call this method directly.
|