@googleapis/discoveryengine 26.1.0 → 27.1.0

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/build/v1beta.js CHANGED
@@ -8990,9 +8990,12 @@ var discoveryengine_v1beta;
8990
8990
  discoveryengine_v1beta.Resource$Projects$Locations$Userevents = Resource$Projects$Locations$Userevents;
8991
8991
  class Resource$Projects$Locations$Userstores {
8992
8992
  context;
8993
+ licenseConfigsUsageStats;
8993
8994
  userLicenses;
8994
8995
  constructor(context) {
8995
8996
  this.context = context;
8997
+ this.licenseConfigsUsageStats =
8998
+ new Resource$Projects$Locations$Userstores$Licenseconfigsusagestats(this.context);
8996
8999
  this.userLicenses =
8997
9000
  new Resource$Projects$Locations$Userstores$Userlicenses(this.context);
8998
9001
  }
@@ -9029,8 +9032,176 @@ var discoveryengine_v1beta;
9029
9032
  return (0, googleapis_common_1.createAPIRequest)(parameters);
9030
9033
  }
9031
9034
  }
9035
+ create(paramsOrCallback, optionsOrCallback, callback) {
9036
+ let params = (paramsOrCallback ||
9037
+ {});
9038
+ let options = (optionsOrCallback || {});
9039
+ if (typeof paramsOrCallback === 'function') {
9040
+ callback = paramsOrCallback;
9041
+ params = {};
9042
+ options = {};
9043
+ }
9044
+ if (typeof optionsOrCallback === 'function') {
9045
+ callback = optionsOrCallback;
9046
+ options = {};
9047
+ }
9048
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
9049
+ const parameters = {
9050
+ options: Object.assign({
9051
+ url: (rootUrl + '/v1beta/{+parent}/userStores').replace(/([^:]\/)\/+/g, '$1'),
9052
+ method: 'POST',
9053
+ apiVersion: '',
9054
+ }, options),
9055
+ params,
9056
+ requiredParams: ['parent'],
9057
+ pathParams: ['parent'],
9058
+ context: this.context,
9059
+ };
9060
+ if (callback) {
9061
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
9062
+ }
9063
+ else {
9064
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
9065
+ }
9066
+ }
9067
+ delete(paramsOrCallback, optionsOrCallback, callback) {
9068
+ let params = (paramsOrCallback ||
9069
+ {});
9070
+ let options = (optionsOrCallback || {});
9071
+ if (typeof paramsOrCallback === 'function') {
9072
+ callback = paramsOrCallback;
9073
+ params = {};
9074
+ options = {};
9075
+ }
9076
+ if (typeof optionsOrCallback === 'function') {
9077
+ callback = optionsOrCallback;
9078
+ options = {};
9079
+ }
9080
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
9081
+ const parameters = {
9082
+ options: Object.assign({
9083
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
9084
+ method: 'DELETE',
9085
+ apiVersion: '',
9086
+ }, options),
9087
+ params,
9088
+ requiredParams: ['name'],
9089
+ pathParams: ['name'],
9090
+ context: this.context,
9091
+ };
9092
+ if (callback) {
9093
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
9094
+ }
9095
+ else {
9096
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
9097
+ }
9098
+ }
9099
+ get(paramsOrCallback, optionsOrCallback, callback) {
9100
+ let params = (paramsOrCallback ||
9101
+ {});
9102
+ let options = (optionsOrCallback || {});
9103
+ if (typeof paramsOrCallback === 'function') {
9104
+ callback = paramsOrCallback;
9105
+ params = {};
9106
+ options = {};
9107
+ }
9108
+ if (typeof optionsOrCallback === 'function') {
9109
+ callback = optionsOrCallback;
9110
+ options = {};
9111
+ }
9112
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
9113
+ const parameters = {
9114
+ options: Object.assign({
9115
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
9116
+ method: 'GET',
9117
+ apiVersion: '',
9118
+ }, options),
9119
+ params,
9120
+ requiredParams: ['name'],
9121
+ pathParams: ['name'],
9122
+ context: this.context,
9123
+ };
9124
+ if (callback) {
9125
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
9126
+ }
9127
+ else {
9128
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
9129
+ }
9130
+ }
9131
+ patch(paramsOrCallback, optionsOrCallback, callback) {
9132
+ let params = (paramsOrCallback ||
9133
+ {});
9134
+ let options = (optionsOrCallback || {});
9135
+ if (typeof paramsOrCallback === 'function') {
9136
+ callback = paramsOrCallback;
9137
+ params = {};
9138
+ options = {};
9139
+ }
9140
+ if (typeof optionsOrCallback === 'function') {
9141
+ callback = optionsOrCallback;
9142
+ options = {};
9143
+ }
9144
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
9145
+ const parameters = {
9146
+ options: Object.assign({
9147
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
9148
+ method: 'PATCH',
9149
+ apiVersion: '',
9150
+ }, options),
9151
+ params,
9152
+ requiredParams: ['name'],
9153
+ pathParams: ['name'],
9154
+ context: this.context,
9155
+ };
9156
+ if (callback) {
9157
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
9158
+ }
9159
+ else {
9160
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
9161
+ }
9162
+ }
9032
9163
  }
9033
9164
  discoveryengine_v1beta.Resource$Projects$Locations$Userstores = Resource$Projects$Locations$Userstores;
9165
+ class Resource$Projects$Locations$Userstores$Licenseconfigsusagestats {
9166
+ context;
9167
+ constructor(context) {
9168
+ this.context = context;
9169
+ }
9170
+ list(paramsOrCallback, optionsOrCallback, callback) {
9171
+ let params = (paramsOrCallback ||
9172
+ {});
9173
+ let options = (optionsOrCallback || {});
9174
+ if (typeof paramsOrCallback === 'function') {
9175
+ callback = paramsOrCallback;
9176
+ params =
9177
+ {};
9178
+ options = {};
9179
+ }
9180
+ if (typeof optionsOrCallback === 'function') {
9181
+ callback = optionsOrCallback;
9182
+ options = {};
9183
+ }
9184
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
9185
+ const parameters = {
9186
+ options: Object.assign({
9187
+ url: (rootUrl + '/v1beta/{+parent}/licenseConfigsUsageStats').replace(/([^:]\/)\/+/g, '$1'),
9188
+ method: 'GET',
9189
+ apiVersion: '',
9190
+ }, options),
9191
+ params,
9192
+ requiredParams: ['parent'],
9193
+ pathParams: ['parent'],
9194
+ context: this.context,
9195
+ };
9196
+ if (callback) {
9197
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
9198
+ }
9199
+ else {
9200
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
9201
+ }
9202
+ }
9203
+ }
9204
+ discoveryengine_v1beta.Resource$Projects$Locations$Userstores$Licenseconfigsusagestats = Resource$Projects$Locations$Userstores$Licenseconfigsusagestats;
9034
9205
  class Resource$Projects$Locations$Userstores$Userlicenses {
9035
9206
  context;
9036
9207
  constructor(context) {