@googleapis/networkservices 34.0.0 → 34.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/v1beta1.js CHANGED
@@ -55,6 +55,7 @@ var networkservices_v1beta1;
55
55
  networkservices_v1beta1.Resource$Projects = Resource$Projects;
56
56
  class Resource$Projects$Locations {
57
57
  context;
58
+ agentConnectivityTemplates;
58
59
  agentGateways;
59
60
  authzExtensions;
60
61
  endpointPolicies;
@@ -74,6 +75,8 @@ var networkservices_v1beta1;
74
75
  wasmPlugins;
75
76
  constructor(context) {
76
77
  this.context = context;
78
+ this.agentConnectivityTemplates =
79
+ new Resource$Projects$Locations$Agentconnectivitytemplates(this.context);
77
80
  this.agentGateways = new Resource$Projects$Locations$Agentgateways(this.context);
78
81
  this.authzExtensions = new Resource$Projects$Locations$Authzextensions(this.context);
79
82
  this.endpointPolicies = new Resource$Projects$Locations$Endpointpolicies(this.context);
@@ -161,6 +164,178 @@ var networkservices_v1beta1;
161
164
  }
162
165
  }
163
166
  networkservices_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations;
167
+ class Resource$Projects$Locations$Agentconnectivitytemplates {
168
+ context;
169
+ constructor(context) {
170
+ this.context = context;
171
+ }
172
+ create(paramsOrCallback, optionsOrCallback, callback) {
173
+ let params = (paramsOrCallback ||
174
+ {});
175
+ let options = (optionsOrCallback || {});
176
+ if (typeof paramsOrCallback === 'function') {
177
+ callback = paramsOrCallback;
178
+ params =
179
+ {};
180
+ options = {};
181
+ }
182
+ if (typeof optionsOrCallback === 'function') {
183
+ callback = optionsOrCallback;
184
+ options = {};
185
+ }
186
+ const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/';
187
+ const parameters = {
188
+ options: Object.assign({
189
+ url: (rootUrl + '/v1beta1/{+parent}/agentConnectivityTemplates').replace(/([^:]\/)\/+/g, '$1'),
190
+ method: 'POST',
191
+ apiVersion: '',
192
+ }, options),
193
+ params,
194
+ requiredParams: ['parent'],
195
+ pathParams: ['parent'],
196
+ context: this.context,
197
+ };
198
+ if (callback) {
199
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
200
+ }
201
+ else {
202
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
203
+ }
204
+ }
205
+ delete(paramsOrCallback, optionsOrCallback, callback) {
206
+ let params = (paramsOrCallback ||
207
+ {});
208
+ let options = (optionsOrCallback || {});
209
+ if (typeof paramsOrCallback === 'function') {
210
+ callback = paramsOrCallback;
211
+ params =
212
+ {};
213
+ options = {};
214
+ }
215
+ if (typeof optionsOrCallback === 'function') {
216
+ callback = optionsOrCallback;
217
+ options = {};
218
+ }
219
+ const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/';
220
+ const parameters = {
221
+ options: Object.assign({
222
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
223
+ method: 'DELETE',
224
+ apiVersion: '',
225
+ }, options),
226
+ params,
227
+ requiredParams: ['name'],
228
+ pathParams: ['name'],
229
+ context: this.context,
230
+ };
231
+ if (callback) {
232
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
233
+ }
234
+ else {
235
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
236
+ }
237
+ }
238
+ get(paramsOrCallback, optionsOrCallback, callback) {
239
+ let params = (paramsOrCallback ||
240
+ {});
241
+ let options = (optionsOrCallback || {});
242
+ if (typeof paramsOrCallback === 'function') {
243
+ callback = paramsOrCallback;
244
+ params =
245
+ {};
246
+ options = {};
247
+ }
248
+ if (typeof optionsOrCallback === 'function') {
249
+ callback = optionsOrCallback;
250
+ options = {};
251
+ }
252
+ const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/';
253
+ const parameters = {
254
+ options: Object.assign({
255
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
256
+ method: 'GET',
257
+ apiVersion: '',
258
+ }, options),
259
+ params,
260
+ requiredParams: ['name'],
261
+ pathParams: ['name'],
262
+ context: this.context,
263
+ };
264
+ if (callback) {
265
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
266
+ }
267
+ else {
268
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
269
+ }
270
+ }
271
+ list(paramsOrCallback, optionsOrCallback, callback) {
272
+ let params = (paramsOrCallback ||
273
+ {});
274
+ let options = (optionsOrCallback || {});
275
+ if (typeof paramsOrCallback === 'function') {
276
+ callback = paramsOrCallback;
277
+ params =
278
+ {};
279
+ options = {};
280
+ }
281
+ if (typeof optionsOrCallback === 'function') {
282
+ callback = optionsOrCallback;
283
+ options = {};
284
+ }
285
+ const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/';
286
+ const parameters = {
287
+ options: Object.assign({
288
+ url: (rootUrl + '/v1beta1/{+parent}/agentConnectivityTemplates').replace(/([^:]\/)\/+/g, '$1'),
289
+ method: 'GET',
290
+ apiVersion: '',
291
+ }, options),
292
+ params,
293
+ requiredParams: ['parent'],
294
+ pathParams: ['parent'],
295
+ context: this.context,
296
+ };
297
+ if (callback) {
298
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
299
+ }
300
+ else {
301
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
302
+ }
303
+ }
304
+ patch(paramsOrCallback, optionsOrCallback, callback) {
305
+ let params = (paramsOrCallback ||
306
+ {});
307
+ let options = (optionsOrCallback || {});
308
+ if (typeof paramsOrCallback === 'function') {
309
+ callback = paramsOrCallback;
310
+ params =
311
+ {};
312
+ options = {};
313
+ }
314
+ if (typeof optionsOrCallback === 'function') {
315
+ callback = optionsOrCallback;
316
+ options = {};
317
+ }
318
+ const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/';
319
+ const parameters = {
320
+ options: Object.assign({
321
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
322
+ method: 'PATCH',
323
+ apiVersion: '',
324
+ }, options),
325
+ params,
326
+ requiredParams: ['name'],
327
+ pathParams: ['name'],
328
+ context: this.context,
329
+ };
330
+ if (callback) {
331
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
332
+ }
333
+ else {
334
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
335
+ }
336
+ }
337
+ }
338
+ networkservices_v1beta1.Resource$Projects$Locations$Agentconnectivitytemplates = Resource$Projects$Locations$Agentconnectivitytemplates;
164
339
  class Resource$Projects$Locations$Agentgateways {
165
340
  context;
166
341
  constructor(context) {