@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20230227 → 0.0.20230306

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 +322 -31
  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=v1alpha
12
- // Revision: 20230227
12
+ // Revision: 20230306
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -98,6 +98,67 @@ declare namespace gapi.client {
98
98
  /** End user selected CompleteQueryResponse.CompletionResult.suggestion. */
99
99
  selectedSuggestion?: string;
100
100
  }
101
+ interface GoogleCloudDiscoveryengineV1alphaCondition {
102
+ /** Optional. Range of time(s) specifying when condition is active. Maximum of 10 time ranges. */
103
+ activeTimeRange?: GoogleCloudDiscoveryengineV1alphaConditionTimeRange[];
104
+ /** Optional. Search only A list of terms to match the query on. Maximum of 10 query terms. */
105
+ queryTerms?: GoogleCloudDiscoveryengineV1alphaConditionQueryTerm[];
106
+ }
107
+ interface GoogleCloudDiscoveryengineV1alphaConditionQueryTerm {
108
+ /** Whether the search query needs to exactly match the query term. */
109
+ fullMatch?: boolean;
110
+ /**
111
+ * 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
112
+ * of 5000 characters.
113
+ */
114
+ value?: string;
115
+ }
116
+ interface GoogleCloudDiscoveryengineV1alphaConditionTimeRange {
117
+ /** End of time range. Range is inclusive. Must be in the future. */
118
+ endTime?: string;
119
+ /** Start of time range. Range is inclusive. */
120
+ startTime?: string;
121
+ }
122
+ interface GoogleCloudDiscoveryengineV1alphaControl {
123
+ /** Output only. List of all [ServingConfig] ids this control is attached to. May take up to 10 minutes to update after changes. */
124
+ associatedServingConfigIds?: string[];
125
+ /** Defines a boost-type control */
126
+ boostAction?: GoogleCloudDiscoveryengineV1alphaControlBoostAction;
127
+ /**
128
+ * 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
129
+ * thrown.
130
+ */
131
+ conditions?: GoogleCloudDiscoveryengineV1alphaCondition[];
132
+ /** 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. */
133
+ displayName?: string;
134
+ /** Defines a filter-type control Currently not supported by Recommendation */
135
+ filterAction?: GoogleCloudDiscoveryengineV1alphaControlFilterAction;
136
+ /** Immutable. Fully qualified name `projects/*‍/locations/global/dataStore/*‍/controls/*` */
137
+ name?: string;
138
+ /** Required. What solution the control belongs to. Must be compatible with vertical of resource. Otherwise an INVALID ARGUMENT error is thrown. */
139
+ solutionType?: string;
140
+ /**
141
+ * 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
142
+ * when solution_type is SolutionType.SOLUTION_TYPE_SEARCH.
143
+ */
144
+ useCases?: string[];
145
+ }
146
+ interface GoogleCloudDiscoveryengineV1alphaControlBoostAction {
147
+ /** Required. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op). */
148
+ boost?: number;
149
+ /**
150
+ * Required. Specifies which products to apply the boost to. If no filter is provided all products will be boosted (No-op). Syntax documentation:
151
+ * https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown.
152
+ */
153
+ filter?: string;
154
+ }
155
+ interface GoogleCloudDiscoveryengineV1alphaControlFilterAction {
156
+ /**
157
+ * 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
158
+ * characters. Otherwise an INVALID ARGUMENT error is thrown.
159
+ */
160
+ filter?: string;
161
+ }
101
162
  interface GoogleCloudDiscoveryengineV1alphaCustomAttribute {
102
163
  /**
103
164
  * The numerical values of this custom attribute. For example, `[2.3, 15.4]` when the key is "lengths_cm". Exactly one of text or numbers should be set. Otherwise, an INVALID_ARGUMENT
@@ -886,8 +947,198 @@ declare namespace gapi.client {
886
947
  },
887
948
  body: GoogleCloudDiscoveryengineV1alphaDocument): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
888
949
  }
950
+ interface OperationsResource {
951
+ /** 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. */
952
+ get(request?: {
953
+ /** V1 error format. */
954
+ "$.xgafv"?: string;
955
+ /** OAuth access token. */
956
+ access_token?: string;
957
+ /** Data format for response. */
958
+ alt?: string;
959
+ /** JSONP */
960
+ callback?: string;
961
+ /** Selector specifying which fields to include in a partial response. */
962
+ fields?: string;
963
+ /** 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. */
964
+ key?: string;
965
+ /** The name of the operation resource. */
966
+ name: string;
967
+ /** OAuth 2.0 token for the current user. */
968
+ oauth_token?: string;
969
+ /** Returns response with indentations and line breaks. */
970
+ prettyPrint?: boolean;
971
+ /** 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. */
972
+ quotaUser?: string;
973
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
974
+ upload_protocol?: string;
975
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
976
+ uploadType?: string;
977
+ }): Request<GoogleLongrunningOperation>;
978
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
979
+ list(request?: {
980
+ /** V1 error format. */
981
+ "$.xgafv"?: string;
982
+ /** OAuth access token. */
983
+ access_token?: string;
984
+ /** Data format for response. */
985
+ alt?: string;
986
+ /** JSONP */
987
+ callback?: string;
988
+ /** Selector specifying which fields to include in a partial response. */
989
+ fields?: string;
990
+ /** The standard list filter. */
991
+ filter?: string;
992
+ /** 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. */
993
+ key?: string;
994
+ /** The name of the operation's parent resource. */
995
+ name: string;
996
+ /** OAuth 2.0 token for the current user. */
997
+ oauth_token?: string;
998
+ /** The standard list page size. */
999
+ pageSize?: number;
1000
+ /** The standard list page token. */
1001
+ pageToken?: string;
1002
+ /** Returns response with indentations and line breaks. */
1003
+ prettyPrint?: boolean;
1004
+ /** 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. */
1005
+ quotaUser?: string;
1006
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1007
+ upload_protocol?: string;
1008
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1009
+ uploadType?: string;
1010
+ }): Request<GoogleLongrunningListOperationsResponse>;
1011
+ }
889
1012
  interface BranchesResource {
890
1013
  documents: DocumentsResource;
1014
+ operations: OperationsResource;
1015
+ }
1016
+ interface OperationsResource {
1017
+ /** 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. */
1018
+ get(request?: {
1019
+ /** V1 error format. */
1020
+ "$.xgafv"?: string;
1021
+ /** OAuth access token. */
1022
+ access_token?: string;
1023
+ /** Data format for response. */
1024
+ alt?: string;
1025
+ /** JSONP */
1026
+ callback?: string;
1027
+ /** Selector specifying which fields to include in a partial response. */
1028
+ fields?: string;
1029
+ /** 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. */
1030
+ key?: string;
1031
+ /** The name of the operation resource. */
1032
+ name: string;
1033
+ /** OAuth 2.0 token for the current user. */
1034
+ oauth_token?: string;
1035
+ /** Returns response with indentations and line breaks. */
1036
+ prettyPrint?: boolean;
1037
+ /** 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. */
1038
+ quotaUser?: string;
1039
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1040
+ upload_protocol?: string;
1041
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1042
+ uploadType?: string;
1043
+ }): Request<GoogleLongrunningOperation>;
1044
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1045
+ list(request?: {
1046
+ /** V1 error format. */
1047
+ "$.xgafv"?: string;
1048
+ /** OAuth access token. */
1049
+ access_token?: string;
1050
+ /** Data format for response. */
1051
+ alt?: string;
1052
+ /** JSONP */
1053
+ callback?: string;
1054
+ /** Selector specifying which fields to include in a partial response. */
1055
+ fields?: string;
1056
+ /** The standard list filter. */
1057
+ filter?: string;
1058
+ /** 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. */
1059
+ key?: string;
1060
+ /** The name of the operation's parent resource. */
1061
+ name: string;
1062
+ /** OAuth 2.0 token for the current user. */
1063
+ oauth_token?: string;
1064
+ /** The standard list page size. */
1065
+ pageSize?: number;
1066
+ /** The standard list page token. */
1067
+ pageToken?: string;
1068
+ /** Returns response with indentations and line breaks. */
1069
+ prettyPrint?: boolean;
1070
+ /** 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. */
1071
+ quotaUser?: string;
1072
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1073
+ upload_protocol?: string;
1074
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1075
+ uploadType?: string;
1076
+ }): Request<GoogleLongrunningListOperationsResponse>;
1077
+ }
1078
+ interface ModelsResource {
1079
+ operations: OperationsResource;
1080
+ }
1081
+ interface OperationsResource {
1082
+ /** 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. */
1083
+ get(request?: {
1084
+ /** V1 error format. */
1085
+ "$.xgafv"?: string;
1086
+ /** OAuth access token. */
1087
+ access_token?: string;
1088
+ /** Data format for response. */
1089
+ alt?: string;
1090
+ /** JSONP */
1091
+ callback?: string;
1092
+ /** Selector specifying which fields to include in a partial response. */
1093
+ fields?: string;
1094
+ /** 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. */
1095
+ key?: string;
1096
+ /** The name of the operation resource. */
1097
+ name: string;
1098
+ /** OAuth 2.0 token for the current user. */
1099
+ oauth_token?: string;
1100
+ /** Returns response with indentations and line breaks. */
1101
+ prettyPrint?: boolean;
1102
+ /** 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. */
1103
+ quotaUser?: string;
1104
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1105
+ upload_protocol?: string;
1106
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1107
+ uploadType?: string;
1108
+ }): Request<GoogleLongrunningOperation>;
1109
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1110
+ list(request?: {
1111
+ /** V1 error format. */
1112
+ "$.xgafv"?: string;
1113
+ /** OAuth access token. */
1114
+ access_token?: string;
1115
+ /** Data format for response. */
1116
+ alt?: string;
1117
+ /** JSONP */
1118
+ callback?: string;
1119
+ /** Selector specifying which fields to include in a partial response. */
1120
+ fields?: string;
1121
+ /** The standard list filter. */
1122
+ filter?: string;
1123
+ /** 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. */
1124
+ key?: string;
1125
+ /** The name of the operation's parent resource. */
1126
+ name: string;
1127
+ /** OAuth 2.0 token for the current user. */
1128
+ oauth_token?: string;
1129
+ /** The standard list page size. */
1130
+ pageSize?: number;
1131
+ /** The standard list page token. */
1132
+ pageToken?: string;
1133
+ /** Returns response with indentations and line breaks. */
1134
+ prettyPrint?: boolean;
1135
+ /** 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. */
1136
+ quotaUser?: string;
1137
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1138
+ upload_protocol?: string;
1139
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1140
+ uploadType?: string;
1141
+ }): Request<GoogleLongrunningListOperationsResponse>;
891
1142
  }
892
1143
  interface ServingConfigsResource {
893
1144
  /** Makes a recommendation, which requires a contextual user event. */
@@ -1111,11 +1362,76 @@ declare namespace gapi.client {
1111
1362
  }
1112
1363
  interface DataStoresResource {
1113
1364
  branches: BranchesResource;
1365
+ models: ModelsResource;
1366
+ operations: OperationsResource;
1114
1367
  servingConfigs: ServingConfigsResource;
1115
1368
  userEvents: UserEventsResource;
1116
1369
  }
1370
+ interface OperationsResource {
1371
+ /** 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. */
1372
+ get(request?: {
1373
+ /** V1 error format. */
1374
+ "$.xgafv"?: string;
1375
+ /** OAuth access token. */
1376
+ access_token?: string;
1377
+ /** Data format for response. */
1378
+ alt?: string;
1379
+ /** JSONP */
1380
+ callback?: string;
1381
+ /** Selector specifying which fields to include in a partial response. */
1382
+ fields?: string;
1383
+ /** 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. */
1384
+ key?: string;
1385
+ /** The name of the operation resource. */
1386
+ name: string;
1387
+ /** OAuth 2.0 token for the current user. */
1388
+ oauth_token?: string;
1389
+ /** Returns response with indentations and line breaks. */
1390
+ prettyPrint?: boolean;
1391
+ /** 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. */
1392
+ quotaUser?: string;
1393
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1394
+ upload_protocol?: string;
1395
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1396
+ uploadType?: string;
1397
+ }): Request<GoogleLongrunningOperation>;
1398
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1399
+ list(request?: {
1400
+ /** V1 error format. */
1401
+ "$.xgafv"?: string;
1402
+ /** OAuth access token. */
1403
+ access_token?: string;
1404
+ /** Data format for response. */
1405
+ alt?: string;
1406
+ /** JSONP */
1407
+ callback?: string;
1408
+ /** Selector specifying which fields to include in a partial response. */
1409
+ fields?: string;
1410
+ /** The standard list filter. */
1411
+ filter?: string;
1412
+ /** 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. */
1413
+ key?: string;
1414
+ /** The name of the operation's parent resource. */
1415
+ name: string;
1416
+ /** OAuth 2.0 token for the current user. */
1417
+ oauth_token?: string;
1418
+ /** The standard list page size. */
1419
+ pageSize?: number;
1420
+ /** The standard list page token. */
1421
+ pageToken?: string;
1422
+ /** Returns response with indentations and line breaks. */
1423
+ prettyPrint?: boolean;
1424
+ /** 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. */
1425
+ quotaUser?: string;
1426
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1427
+ upload_protocol?: string;
1428
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1429
+ uploadType?: string;
1430
+ }): Request<GoogleLongrunningListOperationsResponse>;
1431
+ }
1117
1432
  interface CollectionsResource {
1118
1433
  dataStores: DataStoresResource;
1434
+ operations: OperationsResource;
1119
1435
  }
1120
1436
  interface DocumentsResource {
1121
1437
  /** Creates a Document. */
@@ -1453,12 +1769,7 @@ declare namespace gapi.client {
1453
1769
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1454
1770
  uploadType?: string;
1455
1771
  }): 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
- */
1772
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1462
1773
  list(request?: {
1463
1774
  /** V1 error format. */
1464
1775
  "$.xgafv"?: string;
@@ -1524,12 +1835,7 @@ declare namespace gapi.client {
1524
1835
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1525
1836
  uploadType?: string;
1526
1837
  }): 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
- */
1838
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1533
1839
  list(request?: {
1534
1840
  /** V1 error format. */
1535
1841
  "$.xgafv"?: string;
@@ -1594,12 +1900,7 @@ declare namespace gapi.client {
1594
1900
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1595
1901
  uploadType?: string;
1596
1902
  }): 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
- */
1903
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1603
1904
  list(request?: {
1604
1905
  /** V1 error format. */
1605
1906
  "$.xgafv"?: string;
@@ -1888,12 +2189,7 @@ declare namespace gapi.client {
1888
2189
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1889
2190
  uploadType?: string;
1890
2191
  }): 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
- */
2192
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1897
2193
  list(request?: {
1898
2194
  /** V1 error format. */
1899
2195
  "$.xgafv"?: string;
@@ -1960,12 +2256,7 @@ declare namespace gapi.client {
1960
2256
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1961
2257
  uploadType?: string;
1962
2258
  }): 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
- */
2259
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1969
2260
  list(request?: {
1970
2261
  /** V1 error format. */
1971
2262
  "$.xgafv"?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.0.20230227",
3
+ "version": "0.0.20230306",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
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: 20230306
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",