@googleapis/discoveryengine 28.5.0 → 30.0.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
@@ -34,16 +34,103 @@ var discoveryengine_v1beta;
34
34
  */
35
35
  class Discoveryengine {
36
36
  context;
37
+ billingAccounts;
37
38
  projects;
38
39
  constructor(options, google) {
39
40
  this.context = {
40
41
  _options: options || {},
41
42
  google,
42
43
  };
44
+ this.billingAccounts = new Resource$Billingaccounts(this.context);
43
45
  this.projects = new Resource$Projects(this.context);
44
46
  }
45
47
  }
46
48
  discoveryengine_v1beta.Discoveryengine = Discoveryengine;
49
+ class Resource$Billingaccounts {
50
+ context;
51
+ billingAccountLicenseConfigs;
52
+ constructor(context) {
53
+ this.context = context;
54
+ this.billingAccountLicenseConfigs =
55
+ new Resource$Billingaccounts$Billingaccountlicenseconfigs(this.context);
56
+ }
57
+ }
58
+ discoveryengine_v1beta.Resource$Billingaccounts = Resource$Billingaccounts;
59
+ class Resource$Billingaccounts$Billingaccountlicenseconfigs {
60
+ context;
61
+ constructor(context) {
62
+ this.context = context;
63
+ }
64
+ distributeLicenseConfig(paramsOrCallback, optionsOrCallback, callback) {
65
+ let params = (paramsOrCallback ||
66
+ {});
67
+ let options = (optionsOrCallback || {});
68
+ if (typeof paramsOrCallback === 'function') {
69
+ callback = paramsOrCallback;
70
+ params =
71
+ {};
72
+ options = {};
73
+ }
74
+ if (typeof optionsOrCallback === 'function') {
75
+ callback = optionsOrCallback;
76
+ options = {};
77
+ }
78
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
79
+ const parameters = {
80
+ options: Object.assign({
81
+ url: (rootUrl +
82
+ '/v1beta/{+billingAccountLicenseConfig}:distributeLicenseConfig').replace(/([^:]\/)\/+/g, '$1'),
83
+ method: 'POST',
84
+ apiVersion: '',
85
+ }, options),
86
+ params,
87
+ requiredParams: ['billingAccountLicenseConfig'],
88
+ pathParams: ['billingAccountLicenseConfig'],
89
+ context: this.context,
90
+ };
91
+ if (callback) {
92
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
93
+ }
94
+ else {
95
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
96
+ }
97
+ }
98
+ retractLicenseConfig(paramsOrCallback, optionsOrCallback, callback) {
99
+ let params = (paramsOrCallback ||
100
+ {});
101
+ let options = (optionsOrCallback || {});
102
+ if (typeof paramsOrCallback === 'function') {
103
+ callback = paramsOrCallback;
104
+ params =
105
+ {};
106
+ options = {};
107
+ }
108
+ if (typeof optionsOrCallback === 'function') {
109
+ callback = optionsOrCallback;
110
+ options = {};
111
+ }
112
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
113
+ const parameters = {
114
+ options: Object.assign({
115
+ url: (rootUrl +
116
+ '/v1beta/{+billingAccountLicenseConfig}:retractLicenseConfig').replace(/([^:]\/)\/+/g, '$1'),
117
+ method: 'POST',
118
+ apiVersion: '',
119
+ }, options),
120
+ params,
121
+ requiredParams: ['billingAccountLicenseConfig'],
122
+ pathParams: ['billingAccountLicenseConfig'],
123
+ context: this.context,
124
+ };
125
+ if (callback) {
126
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
127
+ }
128
+ else {
129
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
130
+ }
131
+ }
132
+ }
133
+ discoveryengine_v1beta.Resource$Billingaccounts$Billingaccountlicenseconfigs = Resource$Billingaccounts$Billingaccountlicenseconfigs;
47
134
  class Resource$Projects {
48
135
  context;
49
136
  locations;
@@ -3748,6 +3835,39 @@ var discoveryengine_v1beta;
3748
3835
  return (0, googleapis_common_1.createAPIRequest)(parameters);
3749
3836
  }
3750
3837
  }
3838
+ getIamPolicy(paramsOrCallback, optionsOrCallback, callback) {
3839
+ let params = (paramsOrCallback ||
3840
+ {});
3841
+ let options = (optionsOrCallback || {});
3842
+ if (typeof paramsOrCallback === 'function') {
3843
+ callback = paramsOrCallback;
3844
+ params =
3845
+ {};
3846
+ options = {};
3847
+ }
3848
+ if (typeof optionsOrCallback === 'function') {
3849
+ callback = optionsOrCallback;
3850
+ options = {};
3851
+ }
3852
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
3853
+ const parameters = {
3854
+ options: Object.assign({
3855
+ url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'),
3856
+ method: 'GET',
3857
+ apiVersion: '',
3858
+ }, options),
3859
+ params,
3860
+ requiredParams: ['resource'],
3861
+ pathParams: ['resource'],
3862
+ context: this.context,
3863
+ };
3864
+ if (callback) {
3865
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
3866
+ }
3867
+ else {
3868
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
3869
+ }
3870
+ }
3751
3871
  list(paramsOrCallback, optionsOrCallback, callback) {
3752
3872
  let params = (paramsOrCallback ||
3753
3873
  {});
@@ -3880,6 +4000,39 @@ var discoveryengine_v1beta;
3880
4000
  return (0, googleapis_common_1.createAPIRequest)(parameters);
3881
4001
  }
3882
4002
  }
4003
+ setIamPolicy(paramsOrCallback, optionsOrCallback, callback) {
4004
+ let params = (paramsOrCallback ||
4005
+ {});
4006
+ let options = (optionsOrCallback || {});
4007
+ if (typeof paramsOrCallback === 'function') {
4008
+ callback = paramsOrCallback;
4009
+ params =
4010
+ {};
4011
+ options = {};
4012
+ }
4013
+ if (typeof optionsOrCallback === 'function') {
4014
+ callback = optionsOrCallback;
4015
+ options = {};
4016
+ }
4017
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
4018
+ const parameters = {
4019
+ options: Object.assign({
4020
+ url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'),
4021
+ method: 'POST',
4022
+ apiVersion: '',
4023
+ }, options),
4024
+ params,
4025
+ requiredParams: ['resource'],
4026
+ pathParams: ['resource'],
4027
+ context: this.context,
4028
+ };
4029
+ if (callback) {
4030
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
4031
+ }
4032
+ else {
4033
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
4034
+ }
4035
+ }
3883
4036
  tune(paramsOrCallback, optionsOrCallback, callback) {
3884
4037
  let params = (paramsOrCallback ||
3885
4038
  {});
@@ -8582,6 +8735,38 @@ var discoveryengine_v1beta;
8582
8735
  return (0, googleapis_common_1.createAPIRequest)(parameters);
8583
8736
  }
8584
8737
  }
8738
+ list(paramsOrCallback, optionsOrCallback, callback) {
8739
+ let params = (paramsOrCallback ||
8740
+ {});
8741
+ let options = (optionsOrCallback || {});
8742
+ if (typeof paramsOrCallback === 'function') {
8743
+ callback = paramsOrCallback;
8744
+ params = {};
8745
+ options = {};
8746
+ }
8747
+ if (typeof optionsOrCallback === 'function') {
8748
+ callback = optionsOrCallback;
8749
+ options = {};
8750
+ }
8751
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
8752
+ const parameters = {
8753
+ options: Object.assign({
8754
+ url: (rootUrl + '/v1beta/{+parent}/licenseConfigs').replace(/([^:]\/)\/+/g, '$1'),
8755
+ method: 'GET',
8756
+ apiVersion: '',
8757
+ }, options),
8758
+ params,
8759
+ requiredParams: ['parent'],
8760
+ pathParams: ['parent'],
8761
+ context: this.context,
8762
+ };
8763
+ if (callback) {
8764
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
8765
+ }
8766
+ else {
8767
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
8768
+ }
8769
+ }
8585
8770
  patch(paramsOrCallback, optionsOrCallback, callback) {
8586
8771
  let params = (paramsOrCallback ||
8587
8772
  {});
@@ -9342,70 +9527,6 @@ var discoveryengine_v1beta;
9342
9527
  return (0, googleapis_common_1.createAPIRequest)(parameters);
9343
9528
  }
9344
9529
  }
9345
- create(paramsOrCallback, optionsOrCallback, callback) {
9346
- let params = (paramsOrCallback ||
9347
- {});
9348
- let options = (optionsOrCallback || {});
9349
- if (typeof paramsOrCallback === 'function') {
9350
- callback = paramsOrCallback;
9351
- params = {};
9352
- options = {};
9353
- }
9354
- if (typeof optionsOrCallback === 'function') {
9355
- callback = optionsOrCallback;
9356
- options = {};
9357
- }
9358
- const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
9359
- const parameters = {
9360
- options: Object.assign({
9361
- url: (rootUrl + '/v1beta/{+parent}/userStores').replace(/([^:]\/)\/+/g, '$1'),
9362
- method: 'POST',
9363
- apiVersion: '',
9364
- }, options),
9365
- params,
9366
- requiredParams: ['parent'],
9367
- pathParams: ['parent'],
9368
- context: this.context,
9369
- };
9370
- if (callback) {
9371
- (0, googleapis_common_1.createAPIRequest)(parameters, callback);
9372
- }
9373
- else {
9374
- return (0, googleapis_common_1.createAPIRequest)(parameters);
9375
- }
9376
- }
9377
- delete(paramsOrCallback, optionsOrCallback, callback) {
9378
- let params = (paramsOrCallback ||
9379
- {});
9380
- let options = (optionsOrCallback || {});
9381
- if (typeof paramsOrCallback === 'function') {
9382
- callback = paramsOrCallback;
9383
- params = {};
9384
- options = {};
9385
- }
9386
- if (typeof optionsOrCallback === 'function') {
9387
- callback = optionsOrCallback;
9388
- options = {};
9389
- }
9390
- const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
9391
- const parameters = {
9392
- options: Object.assign({
9393
- url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
9394
- method: 'DELETE',
9395
- apiVersion: '',
9396
- }, options),
9397
- params,
9398
- requiredParams: ['name'],
9399
- pathParams: ['name'],
9400
- context: this.context,
9401
- };
9402
- if (callback) {
9403
- (0, googleapis_common_1.createAPIRequest)(parameters, callback);
9404
- }
9405
- else {
9406
- return (0, googleapis_common_1.createAPIRequest)(parameters);
9407
- }
9408
- }
9409
9530
  get(paramsOrCallback, optionsOrCallback, callback) {
9410
9531
  let params = (paramsOrCallback ||
9411
9532
  {});