You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: `Flag that indicates whether Application wraps the response in an envelope JSON object. Some API clients cannot access the HTTP response headers or status code. To remediate this, set envelope=true in the query. Endpoints that return a list of results use the results object as an envelope. Application adds the status parameter to the response body.`,
326
327
Required: false,
327
-
Type: ParameterType{
328
+
Type: shared_api.ParameterType{
328
329
IsArray: false,
329
330
Type: `bool`,
330
331
},
@@ -333,7 +334,7 @@ var getCollStatsLatencyNamespaceClusterMeasurementsCommand = Command{
333
334
Name: `metrics`,
334
335
Description: `List that contains the metrics that you want to retrieve for the associated data series. If you don't set this parameter, this resource returns data series for all Coll Stats Latency metrics.`,
335
336
Required: false,
336
-
Type: ParameterType{
337
+
Type: shared_api.ParameterType{
337
338
IsArray: true,
338
339
Type: `string`,
339
340
},
@@ -342,7 +343,7 @@ var getCollStatsLatencyNamespaceClusterMeasurementsCommand = Command{
342
343
Name: `start`,
343
344
Description: `Date and time when MongoDB Cloud begins reporting the metrics. This parameter expresses its value in the ISO 8601 timestamp format in UTC. Include this parameter when you do not set period.`,
344
345
Required: false,
345
-
Type: ParameterType{
346
+
Type: shared_api.ParameterType{
346
347
IsArray: false,
347
348
Type: `string`,
348
349
},
@@ -351,7 +352,7 @@ var getCollStatsLatencyNamespaceClusterMeasurementsCommand = Command{
351
352
Name: `end`,
352
353
Description: `Date and time when MongoDB Cloud stops reporting the metrics. This parameter expresses its value in the ISO 8601 timestamp format in UTC. Include this parameter when you do not set period.`,
353
354
Required: false,
354
-
Type: ParameterType{
355
+
Type: shared_api.ParameterType{
355
356
IsArray: false,
356
357
Type: `string`,
357
358
},
@@ -360,21 +361,21 @@ var getCollStatsLatencyNamespaceClusterMeasurementsCommand = Command{
360
361
Name: `period`,
361
362
Description: `Duration over which Atlas reports the metrics. This parameter expresses its value in the ISO 8601 duration format in UTC. Include this parameter when you do not set start and end.`,
362
363
Required: false,
363
-
Type: ParameterType{
364
+
Type: shared_api.ParameterType{
364
365
IsArray: false,
365
366
Type: `string`,
366
367
},
367
368
},
368
369
},
369
-
URLParameters: []Parameter{
370
+
URLParameters: []shared_api.Parameter{
370
371
{
371
372
Name: `groupId`,
372
373
Description: `Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
373
374
374
375
375
376
NOTE: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups.`,
376
377
Required: true,
377
-
Type: ParameterType{
378
+
Type: shared_api.ParameterType{
378
379
IsArray: false,
379
380
Type: `string`,
380
381
},
@@ -383,7 +384,7 @@ NOTE: Groups and projects are synonymous terms. Your group id is the same as you
383
384
Name: `clusterName`,
384
385
Description: `Human-readable label that identifies the cluster to retrieve metrics for.`,
385
386
Required: true,
386
-
Type: ParameterType{
387
+
Type: shared_api.ParameterType{
387
388
IsArray: false,
388
389
Type: `string`,
389
390
},
@@ -392,7 +393,7 @@ NOTE: Groups and projects are synonymous terms. Your group id is the same as you
392
393
Name: `clusterView`,
393
394
Description: `Human-readable label that identifies the cluster topology to retrieve metrics for.`,
394
395
Required: true,
395
-
Type: ParameterType{
396
+
Type: shared_api.ParameterType{
396
397
IsArray: false,
397
398
Type: `string`,
398
399
},
@@ -401,7 +402,7 @@ NOTE: Groups and projects are synonymous terms. Your group id is the same as you
401
402
Name: `databaseName`,
402
403
Description: `Human-readable label that identifies the database.`,
403
404
Required: true,
404
-
Type: ParameterType{
405
+
Type: shared_api.ParameterType{
405
406
IsArray: false,
406
407
Type: `string`,
407
408
},
@@ -410,15 +411,15 @@ NOTE: Groups and projects are synonymous terms. Your group id is the same as you
410
411
Name: `collectionName`,
411
412
Description: `Human-readable label that identifies the collection.`,
412
413
Required: true,
413
-
Type: ParameterType{
414
+
Type: shared_api.ParameterType{
414
415
IsArray: false,
415
416
Type: `string`,
416
417
},
417
418
},
418
419
},
419
420
Verb: http.MethodGet,
420
421
},
421
-
Versions: []Version{
422
+
Versions: []shared_api.Version{
422
423
{
423
424
Version: `2023-11-15`,
424
425
RequestContentType: ``,
@@ -429,17 +430,17 @@ NOTE: Groups and projects are synonymous terms. Your group id is the same as you
429
430
},
430
431
}
431
432
432
-
varcreateClusterCommand=Command{
433
+
varcreateClusterCommand=shared_api.Command{
433
434
OperationID: `createCluster`,
434
435
Description: `Creates one cluster in the specified project. Clusters contain a group of hosts that maintain the same data set. This resource can create clusters with asymmetrically-sized shards. Each project supports up to 25 database deployments. To use this resource, the requesting API Key must have the Project Owner role. This feature is not available for serverless clusters.`,
435
-
RequestParameters: RequestParameters{
436
+
RequestParameters: shared_api.RequestParameters{
436
437
URL: `/api/atlas/v2/groups/{groupId}/clusters`,
437
-
QueryParameters: []Parameter{
438
+
QueryParameters: []shared_api.Parameter{
438
439
{
439
440
Name: `envelope`,
440
441
Description: `Flag that indicates whether Application wraps the response in an envelope JSON object. Some API clients cannot access the HTTP response headers or status code. To remediate this, set envelope=true in the query. Endpoints that return a list of results use the results object as an envelope. Application adds the status parameter to the response body.`,
441
442
Required: false,
442
-
Type: ParameterType{
443
+
Type: shared_api.ParameterType{
443
444
IsArray: false,
444
445
Type: `bool`,
445
446
},
@@ -448,29 +449,29 @@ var createClusterCommand = Command{
448
449
Name: `pretty`,
449
450
Description: `Flag that indicates whether the response body should be in the prettyprint format.`,
450
451
Required: false,
451
-
Type: ParameterType{
452
+
Type: shared_api.ParameterType{
452
453
IsArray: false,
453
454
Type: `bool`,
454
455
},
455
456
},
456
457
},
457
-
URLParameters: []Parameter{
458
+
URLParameters: []shared_api.Parameter{
458
459
{
459
460
Name: `groupId`,
460
461
Description: `Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
461
462
462
463
463
464
NOTE: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups.`,
@@ -80,9 +81,9 @@ func NewWatcher(executor CommandExecutor, requestParams map[string][]string, res
80
81
//
81
82
// - `allCommands`, array with all command definitions, realistically this will always be the static `Commands` variable, but this allows easier unit testing
82
83
// See `NewWatcher` for other parameter descriptions.
0 commit comments