@codiac.io/codiac-cli 1.3.59 → 1.3.61

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 (34) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/codiac-relay/gen/client.d.ts +5 -2
  3. package/dist/apis/codiac-relay/gen/client.js +28 -0
  4. package/dist/apis/codiac-relay/gen/client.js.map +1 -1
  5. package/dist/apis/codiac-relay/gen/contracts.d.ts +12 -0
  6. package/dist/apis/codiac-relay/gen/contracts.js.map +1 -1
  7. package/dist/codiac-entities/cluster-capture-def.d.ts +2 -0
  8. package/dist/codiac-entities/cluster-capture-def.js +3 -0
  9. package/dist/codiac-entities/cluster-capture-def.js.map +1 -0
  10. package/dist/command-base-exec-tenant.d.ts +3 -2
  11. package/dist/command-base-exec-tenant.js +3 -2
  12. package/dist/command-base-exec-tenant.js.map +1 -1
  13. package/dist/commands/cabinet/create.js +2 -2
  14. package/dist/commands/cluster/connect.d.ts +0 -1
  15. package/dist/commands/cluster/connect.js +2 -3
  16. package/dist/commands/cluster/connect.js.map +1 -1
  17. package/dist/commands/noc/cluster/capture.d.ts +30 -0
  18. package/dist/commands/noc/cluster/capture.js +165 -0
  19. package/dist/commands/noc/cluster/capture.js.map +1 -0
  20. package/dist/commands/noc/cluster/forget.d.ts +18 -5
  21. package/dist/commands/noc/cluster/forget.js +117 -49
  22. package/dist/commands/noc/cluster/forget.js.map +1 -1
  23. package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.d.ts +7 -1
  24. package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.js +5 -0
  25. package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.js.map +1 -1
  26. package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.d.ts +8 -1
  27. package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.js +102 -5
  28. package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.js.map +1 -1
  29. package/dist/uilogic/i-cluster-configurator.d.ts +6 -1
  30. package/dist/uilogic/type-safety-utils.d.ts +22 -0
  31. package/dist/uilogic/type-safety-utils.js +59 -0
  32. package/dist/uilogic/type-safety-utils.js.map +1 -0
  33. package/oclif.manifest.json +151 -14
  34. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.59",
2
+ "version": "1.3.61",
3
3
  "commands": {
4
4
  "branch": {
5
5
  "id": "branch",
@@ -2363,11 +2363,11 @@
2363
2363
  "hiddenAliases": [],
2364
2364
  "examples": [
2365
2365
  {
2366
- "description": "Create a cabinet interativley.",
2366
+ "description": "Create a cabinet interatively.",
2367
2367
  "command": "cod cabinet create"
2368
2368
  },
2369
2369
  {
2370
- "description": "Create a cabinet interativley and assemble a non-interactive command string.",
2370
+ "description": "Create a cabinet interatively and assemble a non-interactive command string.",
2371
2371
  "command": "cod cabinet create --echo"
2372
2372
  },
2373
2373
  {
@@ -2627,13 +2627,6 @@
2627
2627
  "<%= config.bin %> <%= command.id %> my-fav-cluster"
2628
2628
  ],
2629
2629
  "flags": {
2630
- "force-refresh": {
2631
- "name": "force-refresh",
2632
- "type": "boolean",
2633
- "char": "f",
2634
- "description": "Prevents a cache hit for the cluster connection and forces a new fetch from the remote cluster itself.",
2635
- "allowNo": false
2636
- },
2637
2630
  "silent": {
2638
2631
  "name": "silent",
2639
2632
  "type": "boolean",
@@ -8391,6 +8384,127 @@
8391
8384
  }
8392
8385
  }
8393
8386
  },
8387
+ "noc:cluster:capture": {
8388
+ "id": "noc:cluster:capture",
8389
+ "description": "Creates a new record in Codiac for a cluster that already physically exists in a cloud subscription. You will need credentials for the cloud service provider subscription you are drawing the cluster from. Use `cod csp login` to capture your credentials. Use `cod cluster forget ---running` to undo this operation.",
8390
+ "strict": true,
8391
+ "pluginName": "@codiac.io/codiac-cli",
8392
+ "pluginAlias": "@codiac.io/codiac-cli",
8393
+ "pluginType": "core",
8394
+ "aliases": [
8395
+ "cluster:capture"
8396
+ ],
8397
+ "hiddenAliases": [],
8398
+ "examples": [
8399
+ {
8400
+ "description": "Capture a cluster interatively.",
8401
+ "command": "cod cluster capture"
8402
+ },
8403
+ {
8404
+ "description": "Capture an Azure cluster silently.",
8405
+ "command": "cod cluster capture -n my-cluster -p azure -s abcd123-xyzpdq-5678-pdq345 -l eastus -g our-dev-stuff"
8406
+ },
8407
+ {
8408
+ "description": "Capture an AWS cluster silently.",
8409
+ "command": "cod cluster capture -n my-cluster -p aws -s 123456789012 -l us-east-1"
8410
+ }
8411
+ ],
8412
+ "flags": {
8413
+ "help": {
8414
+ "name": "help",
8415
+ "type": "boolean",
8416
+ "char": "h",
8417
+ "description": "Show CLI help.",
8418
+ "allowNo": false
8419
+ },
8420
+ "name": {
8421
+ "name": "name",
8422
+ "type": "option",
8423
+ "char": "n",
8424
+ "description": "Name of the cluster to capture",
8425
+ "multiple": false
8426
+ },
8427
+ "provider": {
8428
+ "name": "provider",
8429
+ "type": "option",
8430
+ "char": "p",
8431
+ "description": "Cloud service provider on which to find the cluster",
8432
+ "required": false,
8433
+ "multiple": false,
8434
+ "options": [
8435
+ "azure",
8436
+ "aws"
8437
+ ]
8438
+ },
8439
+ "providerSubscription": {
8440
+ "name": "providerSubscription",
8441
+ "type": "option",
8442
+ "char": "s",
8443
+ "description": "The cloud provider subscription Id under which to find the cluster (eg: SubscriptionId for azure, AccountId for aws).",
8444
+ "required": false,
8445
+ "multiple": false
8446
+ },
8447
+ "location": {
8448
+ "name": "location",
8449
+ "type": "option",
8450
+ "char": "l",
8451
+ "description": "The short name of the regional data center in which the cliuster resides.",
8452
+ "required": false,
8453
+ "multiple": false
8454
+ },
8455
+ "azResourceGroup": {
8456
+ "name": "azResourceGroup",
8457
+ "type": "option",
8458
+ "char": "g",
8459
+ "description": "(required for Azure) The Azure resource group in which to find the cluster.",
8460
+ "required": false,
8461
+ "multiple": false
8462
+ },
8463
+ "silent": {
8464
+ "name": "silent",
8465
+ "type": "boolean",
8466
+ "description": "Non-Interactive mode; executes without any user interaction and fails on any missing or invalid arguments.",
8467
+ "allowNo": false,
8468
+ "dependsOn": [
8469
+ "name",
8470
+ "provider",
8471
+ "providerSubscription",
8472
+ "location"
8473
+ ],
8474
+ "exclusive": [
8475
+ "echo",
8476
+ "to-script"
8477
+ ]
8478
+ },
8479
+ "echo": {
8480
+ "name": "echo",
8481
+ "type": "boolean",
8482
+ "description": "Echo interaction mode; renders the equivalent non-interactive cli command for future use before final execution.",
8483
+ "allowNo": false,
8484
+ "exclusive": [
8485
+ "to-script",
8486
+ "silent"
8487
+ ]
8488
+ },
8489
+ "to-script": {
8490
+ "name": "to-script",
8491
+ "type": "boolean",
8492
+ "description": "Toscript interaction mode; renders the equivalent non-interactive cli command WITHOUT any execution.",
8493
+ "allowNo": false,
8494
+ "exclusive": [
8495
+ "echo",
8496
+ "silent"
8497
+ ]
8498
+ }
8499
+ },
8500
+ "args": {},
8501
+ "dependsOn": [
8502
+ "name",
8503
+ "provider",
8504
+ "providerSubscription",
8505
+ "location"
8506
+ ]
8507
+ },
8394
8508
  "noc:cluster:create": {
8395
8509
  "id": "noc:cluster:create",
8396
8510
  "description": "Provisions the physical cluster",
@@ -8692,6 +8806,28 @@
8692
8806
  "cluster:forget"
8693
8807
  ],
8694
8808
  "hiddenAliases": [],
8809
+ "examples": [
8810
+ {
8811
+ "description": "Forget a cluster using interactive prompts:",
8812
+ "command": "<%= config.bin %> <%= command.id %>"
8813
+ },
8814
+ {
8815
+ "description": "Forget an aws cluster:",
8816
+ "command": "<%= config.bin %> <%= command.id %> --provider aws --name my-cluster"
8817
+ },
8818
+ {
8819
+ "description": "Forget an azure cluster:",
8820
+ "command": "<%= config.bin %> <%= command.id %> --provider azure --name my-other-cluster"
8821
+ },
8822
+ {
8823
+ "description": "Forget an azure cluster in silent mode:",
8824
+ "command": "<%= config.bin %> <%= command.id %> --provider azure --name my-other-cluster --silent"
8825
+ },
8826
+ {
8827
+ "description": "Forget a cluster that is not destroyed yet:",
8828
+ "command": "<%= config.bin %> <%= command.id %> --running"
8829
+ }
8830
+ ],
8695
8831
  "flags": {
8696
8832
  "name": {
8697
8833
  "name": "name",
@@ -8716,11 +8852,12 @@
8716
8852
  "other"
8717
8853
  ]
8718
8854
  },
8719
- "force": {
8720
- "name": "force",
8855
+ "running": {
8856
+ "name": "running",
8721
8857
  "type": "boolean",
8722
- "char": "f",
8723
- "description": "Allows inclusion of clusters with physical instances.",
8858
+ "char": "r",
8859
+ "description": "Include clusters that still have a running instance.",
8860
+ "required": false,
8724
8861
  "allowNo": false
8725
8862
  },
8726
8863
  "silent": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codiac.io/codiac-cli",
3
3
  "description": "Local command line interface for managing enterprise assets and environments.",
4
- "version": "1.3.59",
4
+ "version": "1.3.61",
5
5
  "author": "Codiac",
6
6
  "bin": {
7
7
  "codiac": "./bin/run",