@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20230227 → 0.0.20230310

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.
Files changed (3) hide show
  1. package/index.d.ts +327 -34
  2. package/package.json +1 -1
  3. package/tests.ts +50 -31
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=v1beta
12
- // Revision: 20230227
12
+ // Revision: 20230310
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -72,6 +72,67 @@ declare namespace gapi.client {
72
72
  /** Human-readable name of a function or method—for example, `google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend`. */
73
73
  functionName?: string;
74
74
  }
75
+ interface GoogleCloudDiscoveryengineV1alphaCondition {
76
+ /** Optional. Range of time(s) specifying when condition is active. Maximum of 10 time ranges. */
77
+ activeTimeRange?: GoogleCloudDiscoveryengineV1alphaConditionTimeRange[];
78
+ /** Optional. Search only A list of terms to match the query on. Maximum of 10 query terms. */
79
+ queryTerms?: GoogleCloudDiscoveryengineV1alphaConditionQueryTerm[];
80
+ }
81
+ interface GoogleCloudDiscoveryengineV1alphaConditionQueryTerm {
82
+ /** Whether the search query needs to exactly match the query term. */
83
+ fullMatch?: boolean;
84
+ /**
85
+ * The specific query value to match against Must be lowercase, must be UTF-8. Can have at most 3 space separated terms if full_match is true. Cannot be an empty string. Maximum length
86
+ * of 5000 characters.
87
+ */
88
+ value?: string;
89
+ }
90
+ interface GoogleCloudDiscoveryengineV1alphaConditionTimeRange {
91
+ /** End of time range. Range is inclusive. Must be in the future. */
92
+ endTime?: string;
93
+ /** Start of time range. Range is inclusive. */
94
+ startTime?: string;
95
+ }
96
+ interface GoogleCloudDiscoveryengineV1alphaControl {
97
+ /** Output only. List of all [ServingConfig] ids this control is attached to. May take up to 10 minutes to update after changes. */
98
+ associatedServingConfigIds?: string[];
99
+ /** Defines a boost-type control */
100
+ boostAction?: GoogleCloudDiscoveryengineV1alphaControlBoostAction;
101
+ /**
102
+ * Determines when the associated action will trigger. Omit to always apply the action. Currently only a single condition may be specified. Otherwise an INVALID ARGUMENT error is
103
+ * thrown.
104
+ */
105
+ conditions?: GoogleCloudDiscoveryengineV1alphaCondition[];
106
+ /** Required. Human readable name. The identifier used in UI views. Must be UTF-8 encoded string. Length limit is 128 characters. Otherwise an INVALID ARGUMENT error is thrown. */
107
+ displayName?: string;
108
+ /** Defines a filter-type control Currently not supported by Recommendation */
109
+ filterAction?: GoogleCloudDiscoveryengineV1alphaControlFilterAction;
110
+ /** Immutable. Fully qualified name `projects/*‍/locations/global/dataStore/*‍/controls/*` */
111
+ name?: string;
112
+ /** Required. What solution the control belongs to. Must be compatible with vertical of resource. Otherwise an INVALID ARGUMENT error is thrown. */
113
+ solutionType?: string;
114
+ /**
115
+ * Specifies the use case for the control. Affects what condition fields can be set. Only applies to SOLUTION_TYPE_SEARCH. Currently only allow one use case per control. Must be set
116
+ * when solution_type is SolutionType.SOLUTION_TYPE_SEARCH.
117
+ */
118
+ useCases?: string[];
119
+ }
120
+ interface GoogleCloudDiscoveryengineV1alphaControlBoostAction {
121
+ /** Required. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op). */
122
+ boost?: number;
123
+ /**
124
+ * Required. Specifies which products to apply the boost to. If no filter is provided all products will be boosted (No-op). Syntax documentation:
125
+ * https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown.
126
+ */
127
+ filter?: string;
128
+ }
129
+ interface GoogleCloudDiscoveryengineV1alphaControlFilterAction {
130
+ /**
131
+ * Required. A filter to apply on the matching condition results. Required Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000
132
+ * characters. Otherwise an INVALID ARGUMENT error is thrown.
133
+ */
134
+ filter?: string;
135
+ }
75
136
  interface GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata {
76
137
  /** Operation create time. */
77
138
  createTime?: string;
@@ -192,13 +253,15 @@ declare namespace gapi.client {
192
253
  }
193
254
  interface GoogleCloudDiscoveryengineV1betaGcsSource {
194
255
  /**
195
- * The schema to use when parsing the data from the source. Supported values for imports: * `user_event` (default): One JSON UserEvent per line. * `document` (default): One JSON
196
- * Document per line. Each document must have a valid Document.id.
256
+ * The schema to use when parsing the data from the source. Supported values for document imports: * `document` (default): One JSON Document per line. Each document must have a valid
257
+ * Document.id. * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris` will become a document, with the ID set to the first 128 bits of SHA256(URI) encoded
258
+ * as a hex string. Supported values for user even imports: * `user_event` (default): One JSON UserEvent per line.
197
259
  */
198
260
  dataSchema?: string;
199
261
  /**
200
262
  * Required. Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a
201
- * pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files, and each file can be up to 2 GB.
263
+ * pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files or 100000 files if the data_schema is `content`. And each file
264
+ * can be up to 2 GB.
202
265
  */
203
266
  inputUris?: string[];
204
267
  }
@@ -886,8 +949,198 @@ declare namespace gapi.client {
886
949
  },
887
950
  body: GoogleCloudDiscoveryengineV1betaDocument): Request<GoogleCloudDiscoveryengineV1betaDocument>;
888
951
  }
952
+ interface OperationsResource {
953
+ /** 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. */
954
+ get(request?: {
955
+ /** V1 error format. */
956
+ "$.xgafv"?: string;
957
+ /** OAuth access token. */
958
+ access_token?: string;
959
+ /** Data format for response. */
960
+ alt?: string;
961
+ /** JSONP */
962
+ callback?: string;
963
+ /** Selector specifying which fields to include in a partial response. */
964
+ fields?: string;
965
+ /** 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. */
966
+ key?: string;
967
+ /** The name of the operation resource. */
968
+ name: string;
969
+ /** OAuth 2.0 token for the current user. */
970
+ oauth_token?: string;
971
+ /** Returns response with indentations and line breaks. */
972
+ prettyPrint?: boolean;
973
+ /** 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. */
974
+ quotaUser?: string;
975
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
976
+ upload_protocol?: string;
977
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
978
+ uploadType?: string;
979
+ }): Request<GoogleLongrunningOperation>;
980
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
981
+ list(request?: {
982
+ /** V1 error format. */
983
+ "$.xgafv"?: string;
984
+ /** OAuth access token. */
985
+ access_token?: string;
986
+ /** Data format for response. */
987
+ alt?: string;
988
+ /** JSONP */
989
+ callback?: string;
990
+ /** Selector specifying which fields to include in a partial response. */
991
+ fields?: string;
992
+ /** The standard list filter. */
993
+ filter?: string;
994
+ /** 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. */
995
+ key?: string;
996
+ /** The name of the operation's parent resource. */
997
+ name: string;
998
+ /** OAuth 2.0 token for the current user. */
999
+ oauth_token?: string;
1000
+ /** The standard list page size. */
1001
+ pageSize?: number;
1002
+ /** The standard list page token. */
1003
+ pageToken?: string;
1004
+ /** Returns response with indentations and line breaks. */
1005
+ prettyPrint?: boolean;
1006
+ /** 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. */
1007
+ quotaUser?: string;
1008
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1009
+ upload_protocol?: string;
1010
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1011
+ uploadType?: string;
1012
+ }): Request<GoogleLongrunningListOperationsResponse>;
1013
+ }
889
1014
  interface BranchesResource {
890
1015
  documents: DocumentsResource;
1016
+ operations: OperationsResource;
1017
+ }
1018
+ interface OperationsResource {
1019
+ /** 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. */
1020
+ get(request?: {
1021
+ /** V1 error format. */
1022
+ "$.xgafv"?: string;
1023
+ /** OAuth access token. */
1024
+ access_token?: string;
1025
+ /** Data format for response. */
1026
+ alt?: string;
1027
+ /** JSONP */
1028
+ callback?: string;
1029
+ /** Selector specifying which fields to include in a partial response. */
1030
+ fields?: string;
1031
+ /** 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. */
1032
+ key?: string;
1033
+ /** The name of the operation resource. */
1034
+ name: string;
1035
+ /** OAuth 2.0 token for the current user. */
1036
+ oauth_token?: string;
1037
+ /** Returns response with indentations and line breaks. */
1038
+ prettyPrint?: boolean;
1039
+ /** 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. */
1040
+ quotaUser?: string;
1041
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1042
+ upload_protocol?: string;
1043
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1044
+ uploadType?: string;
1045
+ }): Request<GoogleLongrunningOperation>;
1046
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1047
+ list(request?: {
1048
+ /** V1 error format. */
1049
+ "$.xgafv"?: string;
1050
+ /** OAuth access token. */
1051
+ access_token?: string;
1052
+ /** Data format for response. */
1053
+ alt?: string;
1054
+ /** JSONP */
1055
+ callback?: string;
1056
+ /** Selector specifying which fields to include in a partial response. */
1057
+ fields?: string;
1058
+ /** The standard list filter. */
1059
+ filter?: string;
1060
+ /** 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. */
1061
+ key?: string;
1062
+ /** The name of the operation's parent resource. */
1063
+ name: string;
1064
+ /** OAuth 2.0 token for the current user. */
1065
+ oauth_token?: string;
1066
+ /** The standard list page size. */
1067
+ pageSize?: number;
1068
+ /** The standard list page token. */
1069
+ pageToken?: string;
1070
+ /** Returns response with indentations and line breaks. */
1071
+ prettyPrint?: boolean;
1072
+ /** 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. */
1073
+ quotaUser?: string;
1074
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1075
+ upload_protocol?: string;
1076
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1077
+ uploadType?: string;
1078
+ }): Request<GoogleLongrunningListOperationsResponse>;
1079
+ }
1080
+ interface ModelsResource {
1081
+ operations: OperationsResource;
1082
+ }
1083
+ interface OperationsResource {
1084
+ /** 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. */
1085
+ get(request?: {
1086
+ /** V1 error format. */
1087
+ "$.xgafv"?: string;
1088
+ /** OAuth access token. */
1089
+ access_token?: string;
1090
+ /** Data format for response. */
1091
+ alt?: string;
1092
+ /** JSONP */
1093
+ callback?: string;
1094
+ /** Selector specifying which fields to include in a partial response. */
1095
+ fields?: string;
1096
+ /** 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. */
1097
+ key?: string;
1098
+ /** The name of the operation resource. */
1099
+ name: string;
1100
+ /** OAuth 2.0 token for the current user. */
1101
+ oauth_token?: string;
1102
+ /** Returns response with indentations and line breaks. */
1103
+ prettyPrint?: boolean;
1104
+ /** 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. */
1105
+ quotaUser?: string;
1106
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1107
+ upload_protocol?: string;
1108
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1109
+ uploadType?: string;
1110
+ }): Request<GoogleLongrunningOperation>;
1111
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1112
+ list(request?: {
1113
+ /** V1 error format. */
1114
+ "$.xgafv"?: string;
1115
+ /** OAuth access token. */
1116
+ access_token?: string;
1117
+ /** Data format for response. */
1118
+ alt?: string;
1119
+ /** JSONP */
1120
+ callback?: string;
1121
+ /** Selector specifying which fields to include in a partial response. */
1122
+ fields?: string;
1123
+ /** The standard list filter. */
1124
+ filter?: string;
1125
+ /** 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. */
1126
+ key?: string;
1127
+ /** The name of the operation's parent resource. */
1128
+ name: string;
1129
+ /** OAuth 2.0 token for the current user. */
1130
+ oauth_token?: string;
1131
+ /** The standard list page size. */
1132
+ pageSize?: number;
1133
+ /** The standard list page token. */
1134
+ pageToken?: string;
1135
+ /** Returns response with indentations and line breaks. */
1136
+ prettyPrint?: boolean;
1137
+ /** 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. */
1138
+ quotaUser?: string;
1139
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1140
+ upload_protocol?: string;
1141
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1142
+ uploadType?: string;
1143
+ }): Request<GoogleLongrunningListOperationsResponse>;
891
1144
  }
892
1145
  interface ServingConfigsResource {
893
1146
  /** Makes a recommendation, which requires a contextual user event. */
@@ -1111,11 +1364,76 @@ declare namespace gapi.client {
1111
1364
  }
1112
1365
  interface DataStoresResource {
1113
1366
  branches: BranchesResource;
1367
+ models: ModelsResource;
1368
+ operations: OperationsResource;
1114
1369
  servingConfigs: ServingConfigsResource;
1115
1370
  userEvents: UserEventsResource;
1116
1371
  }
1372
+ interface OperationsResource {
1373
+ /** 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. */
1374
+ get(request?: {
1375
+ /** V1 error format. */
1376
+ "$.xgafv"?: string;
1377
+ /** OAuth access token. */
1378
+ access_token?: string;
1379
+ /** Data format for response. */
1380
+ alt?: string;
1381
+ /** JSONP */
1382
+ callback?: string;
1383
+ /** Selector specifying which fields to include in a partial response. */
1384
+ fields?: string;
1385
+ /** 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. */
1386
+ key?: string;
1387
+ /** The name of the operation resource. */
1388
+ name: string;
1389
+ /** OAuth 2.0 token for the current user. */
1390
+ oauth_token?: string;
1391
+ /** Returns response with indentations and line breaks. */
1392
+ prettyPrint?: boolean;
1393
+ /** 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. */
1394
+ quotaUser?: string;
1395
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1396
+ upload_protocol?: string;
1397
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1398
+ uploadType?: string;
1399
+ }): Request<GoogleLongrunningOperation>;
1400
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1401
+ list(request?: {
1402
+ /** V1 error format. */
1403
+ "$.xgafv"?: string;
1404
+ /** OAuth access token. */
1405
+ access_token?: string;
1406
+ /** Data format for response. */
1407
+ alt?: string;
1408
+ /** JSONP */
1409
+ callback?: string;
1410
+ /** Selector specifying which fields to include in a partial response. */
1411
+ fields?: string;
1412
+ /** The standard list filter. */
1413
+ filter?: string;
1414
+ /** 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. */
1415
+ key?: string;
1416
+ /** The name of the operation's parent resource. */
1417
+ name: string;
1418
+ /** OAuth 2.0 token for the current user. */
1419
+ oauth_token?: string;
1420
+ /** The standard list page size. */
1421
+ pageSize?: number;
1422
+ /** The standard list page token. */
1423
+ pageToken?: string;
1424
+ /** Returns response with indentations and line breaks. */
1425
+ prettyPrint?: boolean;
1426
+ /** 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. */
1427
+ quotaUser?: string;
1428
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1429
+ upload_protocol?: string;
1430
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1431
+ uploadType?: string;
1432
+ }): Request<GoogleLongrunningListOperationsResponse>;
1433
+ }
1117
1434
  interface CollectionsResource {
1118
1435
  dataStores: DataStoresResource;
1436
+ operations: OperationsResource;
1119
1437
  }
1120
1438
  interface DocumentsResource {
1121
1439
  /** Creates a Document. */
@@ -1453,12 +1771,7 @@ declare namespace gapi.client {
1453
1771
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1454
1772
  uploadType?: string;
1455
1773
  }): Request<GoogleLongrunningOperation>;
1456
- /**
1457
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
1458
- * to override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
1459
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
1460
- * ensure the name binding is the parent resource, without the operations collection id.
1461
- */
1774
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1462
1775
  list(request?: {
1463
1776
  /** V1 error format. */
1464
1777
  "$.xgafv"?: string;
@@ -1524,12 +1837,7 @@ declare namespace gapi.client {
1524
1837
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1525
1838
  uploadType?: string;
1526
1839
  }): Request<GoogleLongrunningOperation>;
1527
- /**
1528
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
1529
- * to override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
1530
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
1531
- * ensure the name binding is the parent resource, without the operations collection id.
1532
- */
1840
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1533
1841
  list(request?: {
1534
1842
  /** V1 error format. */
1535
1843
  "$.xgafv"?: string;
@@ -1594,12 +1902,7 @@ declare namespace gapi.client {
1594
1902
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1595
1903
  uploadType?: string;
1596
1904
  }): Request<GoogleLongrunningOperation>;
1597
- /**
1598
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
1599
- * to override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
1600
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
1601
- * ensure the name binding is the parent resource, without the operations collection id.
1602
- */
1905
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1603
1906
  list(request?: {
1604
1907
  /** V1 error format. */
1605
1908
  "$.xgafv"?: string;
@@ -1888,12 +2191,7 @@ declare namespace gapi.client {
1888
2191
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1889
2192
  uploadType?: string;
1890
2193
  }): Request<GoogleLongrunningOperation>;
1891
- /**
1892
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
1893
- * to override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
1894
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
1895
- * ensure the name binding is the parent resource, without the operations collection id.
1896
- */
2194
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1897
2195
  list(request?: {
1898
2196
  /** V1 error format. */
1899
2197
  "$.xgafv"?: string;
@@ -1960,12 +2258,7 @@ declare namespace gapi.client {
1960
2258
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1961
2259
  uploadType?: string;
1962
2260
  }): Request<GoogleLongrunningOperation>;
1963
- /**
1964
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
1965
- * to override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
1966
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
1967
- * ensure the name binding is the parent resource, without the operations collection id.
1968
- */
2261
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1969
2262
  list(request?: {
1970
2263
  /** V1 error format. */
1971
2264
  "$.xgafv"?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1beta",
3
- "version": "0.0.20230227",
3
+ "version": "0.0.20230310",
4
4
  "description": "TypeScript typings for Discovery Engine API v1beta",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230227
6
+ // Revision: 20230310
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -115,6 +115,39 @@ gapi.load('client', async () => {
115
115
  A: 42
116
116
  },
117
117
  });
118
+ /** 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. */
119
+ await gapi.client.discoveryengine.projects.locations.collections.dataStores.branches.operations.get({
120
+ name: "Test string",
121
+ });
122
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
123
+ await gapi.client.discoveryengine.projects.locations.collections.dataStores.branches.operations.list({
124
+ filter: "Test string",
125
+ name: "Test string",
126
+ pageSize: 42,
127
+ pageToken: "Test string",
128
+ });
129
+ /** 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. */
130
+ await gapi.client.discoveryengine.projects.locations.collections.dataStores.models.operations.get({
131
+ name: "Test string",
132
+ });
133
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
134
+ await gapi.client.discoveryengine.projects.locations.collections.dataStores.models.operations.list({
135
+ filter: "Test string",
136
+ name: "Test string",
137
+ pageSize: 42,
138
+ pageToken: "Test string",
139
+ });
140
+ /** 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. */
141
+ await gapi.client.discoveryengine.projects.locations.collections.dataStores.operations.get({
142
+ name: "Test string",
143
+ });
144
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
145
+ await gapi.client.discoveryengine.projects.locations.collections.dataStores.operations.list({
146
+ filter: "Test string",
147
+ name: "Test string",
148
+ pageSize: 42,
149
+ pageToken: "Test string",
150
+ });
118
151
  /** Makes a recommendation, which requires a contextual user event. */
119
152
  await gapi.client.discoveryengine.projects.locations.collections.dataStores.servingConfigs.recommend({
120
153
  servingConfig: "Test string",
@@ -391,6 +424,17 @@ gapi.load('client', async () => {
391
424
  },
392
425
  userPseudoId: "Test string",
393
426
  });
427
+ /** 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. */
428
+ await gapi.client.discoveryengine.projects.locations.collections.operations.get({
429
+ name: "Test string",
430
+ });
431
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
432
+ await gapi.client.discoveryengine.projects.locations.collections.operations.list({
433
+ filter: "Test string",
434
+ name: "Test string",
435
+ pageSize: 42,
436
+ pageToken: "Test string",
437
+ });
394
438
  /** Creates a Document. */
395
439
  await gapi.client.discoveryengine.projects.locations.dataStores.branches.documents.create({
396
440
  documentId: "Test string",
@@ -481,12 +525,7 @@ gapi.load('client', async () => {
481
525
  await gapi.client.discoveryengine.projects.locations.dataStores.branches.operations.get({
482
526
  name: "Test string",
483
527
  });
484
- /**
485
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
486
- * override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
487
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
488
- * ensure the name binding is the parent resource, without the operations collection id.
489
- */
528
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
490
529
  await gapi.client.discoveryengine.projects.locations.dataStores.branches.operations.list({
491
530
  filter: "Test string",
492
531
  name: "Test string",
@@ -497,12 +536,7 @@ gapi.load('client', async () => {
497
536
  await gapi.client.discoveryengine.projects.locations.dataStores.models.operations.get({
498
537
  name: "Test string",
499
538
  });
500
- /**
501
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
502
- * override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
503
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
504
- * ensure the name binding is the parent resource, without the operations collection id.
505
- */
539
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
506
540
  await gapi.client.discoveryengine.projects.locations.dataStores.models.operations.list({
507
541
  filter: "Test string",
508
542
  name: "Test string",
@@ -513,12 +547,7 @@ gapi.load('client', async () => {
513
547
  await gapi.client.discoveryengine.projects.locations.dataStores.operations.get({
514
548
  name: "Test string",
515
549
  });
516
- /**
517
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
518
- * override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
519
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
520
- * ensure the name binding is the parent resource, without the operations collection id.
521
- */
550
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
522
551
  await gapi.client.discoveryengine.projects.locations.dataStores.operations.list({
523
552
  filter: "Test string",
524
553
  name: "Test string",
@@ -805,12 +834,7 @@ gapi.load('client', async () => {
805
834
  await gapi.client.discoveryengine.projects.locations.operations.get({
806
835
  name: "Test string",
807
836
  });
808
- /**
809
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
810
- * override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
811
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
812
- * ensure the name binding is the parent resource, without the operations collection id.
813
- */
837
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
814
838
  await gapi.client.discoveryengine.projects.locations.operations.list({
815
839
  filter: "Test string",
816
840
  name: "Test string",
@@ -821,12 +845,7 @@ gapi.load('client', async () => {
821
845
  await gapi.client.discoveryengine.projects.operations.get({
822
846
  name: "Test string",
823
847
  });
824
- /**
825
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
826
- * override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
827
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
828
- * ensure the name binding is the parent resource, without the operations collection id.
829
- */
848
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
830
849
  await gapi.client.discoveryengine.projects.operations.list({
831
850
  filter: "Test string",
832
851
  name: "Test string",