@ibm-cloud/secrets-manager 1.0.3 → 1.0.33

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.
@@ -39,7 +39,7 @@ var __assign = (this && this.__assign) || function () {
39
39
  return __assign.apply(this, arguments);
40
40
  };
41
41
  /**
42
- * IBM OpenAPI SDK Code Generator Version: 3.44.0-98838c07-20220128-151531
42
+ * IBM OpenAPI SDK Code Generator Version: 3.48.0-e80b60a1-20220414-145125
43
43
  */
44
44
  var extend = require("extend");
45
45
  var ibm_cloud_sdk_core_1 = require("ibm-cloud-sdk-core");
@@ -49,7 +49,7 @@ var common_1 = require("../lib/common");
49
49
  * services or your custom-built applications. Secrets are stored in a dedicated instance of Secrets Manager, which is
50
50
  * built on open source HashiCorp Vault.
51
51
  *
52
- * API Version: 1.0.0
52
+ * API Version: 1.0.33
53
53
  * See: https://cloud.ibm.com/docs/secrets-manager
54
54
  */
55
55
  var SecretsManagerV1 = /** @class */ (function (_super) {
@@ -71,9 +71,6 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
71
71
  if (options.serviceUrl) {
72
72
  _this.setServiceUrl(options.serviceUrl);
73
73
  }
74
- else {
75
- _this.setServiceUrl(SecretsManagerV1.DEFAULT_SERVICE_URL);
76
- }
77
74
  return _this;
78
75
  }
79
76
  /*************************
@@ -109,7 +106,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
109
106
  /**
110
107
  * Create a secret group.
111
108
  *
112
- * Creates a secret group that you can use to organize secrets and control who on your team has access to them.
109
+ * Create a secret group that you can use to organize secrets and control who on your team has access to them.
113
110
  *
114
111
  * A successful request returns the ID value of the secret group, along with other metadata. To learn more about
115
112
  * secret groups, check out the
@@ -152,7 +149,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
152
149
  /**
153
150
  * List secret groups.
154
151
  *
155
- * Retrieves the list of secret groups that are available in your Secrets Manager instance.
152
+ * List the secret groups that are available in your Secrets Manager instance.
156
153
  *
157
154
  * @param {Object} [params] - The parameters to send to the service.
158
155
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
@@ -183,7 +180,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
183
180
  /**
184
181
  * Get a secret group.
185
182
  *
186
- * Retrieves the metadata of an existing secret group by specifying the ID of the group.
183
+ * Get the metadata of an existing secret group by specifying the ID of the group.
187
184
  *
188
185
  * @param {Object} params - The parameters to send to the service.
189
186
  * @param {string} params.id - The v4 UUID that uniquely identifies the secret group.
@@ -219,7 +216,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
219
216
  /**
220
217
  * Update a secret group.
221
218
  *
222
- * Updates the metadata of an existing secret group, such as its name or description.
219
+ * Update the metadata of an existing secret group, such as its name or description.
223
220
  *
224
221
  * @param {Object} params - The parameters to send to the service.
225
222
  * @param {string} params.id - The v4 UUID that uniquely identifies the secret group.
@@ -263,7 +260,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
263
260
  /**
264
261
  * Delete a secret group.
265
262
  *
266
- * Deletes a secret group by specifying the ID of the secret group.
263
+ * Delete a secret group by specifying the ID of the secret group.
267
264
  *
268
265
  * **Note:** To delete a secret group, it must be empty. If you need to remove a secret group that contains secrets,
269
266
  * you must first [delete the secrets](#delete-secret) that are associated with the group.
@@ -355,7 +352,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
355
352
  /**
356
353
  * List secrets by type.
357
354
  *
358
- * Retrieves a list of secrets based on the type that you specify.
355
+ * List the secrets in your Secrets Manager instance based on the type that you specify.
359
356
  *
360
357
  * @param {Object} params - The parameters to send to the service.
361
358
  * @param {string} params.secretType - The secret type.
@@ -407,7 +404,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
407
404
  /**
408
405
  * List all secrets.
409
406
  *
410
- * Retrieves a list of all secrets in your Secrets Manager instance.
407
+ * List all of the secrets in your Secrets Manager instance.
411
408
  *
412
409
  * @param {Object} [params] - The parameters to send to the service.
413
410
  * @param {number} [params.limit] - The number of secrets to retrieve. By default, list operations return the first
@@ -515,10 +512,11 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
515
512
  /**
516
513
  * Invoke an action on a secret.
517
514
  *
518
- * Invokes an action on a specified secret. This method supports the following actions:
515
+ * Invoke an action on a specified secret. This method supports the following actions:
519
516
  *
520
517
  * - `rotate`: Replace the value of a secret.
521
518
  * - `restore`: Restore a previous version of an `iam_credentials` secret.
519
+ * - `revoke`: Revoke a private certificate.
522
520
  * - `delete_credentials`: Delete the API key that is associated with an `iam_credentials` secret.
523
521
  *
524
522
  * @param {Object} params - The parameters to send to the service.
@@ -566,7 +564,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
566
564
  /**
567
565
  * Delete a secret.
568
566
  *
569
- * Deletes a secret by specifying the ID of the secret.
567
+ * Delete a secret by specifying the ID of the secret.
570
568
  *
571
569
  * @param {Object} params - The parameters to send to the service.
572
570
  * @param {string} params.secretType - The secret type.
@@ -602,7 +600,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
602
600
  /**
603
601
  * List versions of a secret.
604
602
  *
605
- * Retrieves a list of the versions of a secret.
603
+ * List the versions of a secret.
606
604
  *
607
605
  * A successful request returns the list of the versions along with the metadata of each version.
608
606
  *
@@ -642,7 +640,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
642
640
  /**
643
641
  * Get a version of a secret.
644
642
  *
645
- * Retrieves a version of a secret by specifying the ID of the version or the alias `previous`.
643
+ * Get a version of a secret by specifying the ID of the version or the alias `previous`.
646
644
  *
647
645
  * A successful request returns the secret data that is associated with the specified version of your secret, along
648
646
  * with other metadata.
@@ -686,10 +684,61 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
686
684
  };
687
685
  return this.createRequest(parameters);
688
686
  };
687
+ /**
688
+ * Invoke an action on a version of a secret.
689
+ *
690
+ * Invoke an action on a specified version of a secret. This method supports the following actions:
691
+ *
692
+ * - `revoke`: Revoke a version of a private certificate.
693
+ *
694
+ * @param {Object} params - The parameters to send to the service.
695
+ * @param {string} params.secretType - The secret type.
696
+ * @param {string} params.id - The v4 UUID that uniquely identifies the secret.
697
+ * @param {string} params.versionId - The v4 UUID that uniquely identifies the secret version. You can also use
698
+ * `previous` to retrieve the previous version.
699
+ *
700
+ * **Note:** To find the version ID of a secret, use the [Get secret metadata](#get-secret-metadata) method and check
701
+ * the response details.
702
+ * @param {string} params.action - The action to perform on the specified secret version.
703
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
704
+ * @returns {Promise<SecretsManagerV1.Response<SecretsManagerV1.GetSecret>>}
705
+ */
706
+ SecretsManagerV1.prototype.updateSecretVersion = function (params) {
707
+ var _params = __assign({}, params);
708
+ var _requiredParams = ['secretType', 'id', 'versionId', 'action'];
709
+ var _validParams = ['secretType', 'id', 'versionId', 'action', 'headers'];
710
+ var _validationErrors = ibm_cloud_sdk_core_1.validateParams(_params, _requiredParams, _validParams);
711
+ if (_validationErrors) {
712
+ return Promise.reject(_validationErrors);
713
+ }
714
+ var query = {
715
+ 'action': _params.action,
716
+ };
717
+ var path = {
718
+ 'secret_type': _params.secretType,
719
+ 'id': _params.id,
720
+ 'version_id': _params.versionId,
721
+ };
722
+ var sdkHeaders = common_1.getSdkHeaders(SecretsManagerV1.DEFAULT_SERVICE_NAME, 'v1', 'updateSecretVersion');
723
+ var parameters = {
724
+ options: {
725
+ url: '/api/v1/secrets/{secret_type}/{id}/versions/{version_id}',
726
+ method: 'POST',
727
+ qs: query,
728
+ path: path,
729
+ },
730
+ defaultOptions: extend(true, {}, this.baseOptions, {
731
+ headers: extend(true, sdkHeaders, {
732
+ 'Accept': 'application/json',
733
+ }, _params.headers),
734
+ }),
735
+ };
736
+ return this.createRequest(parameters);
737
+ };
689
738
  /**
690
739
  * Get secret version metadata.
691
740
  *
692
- * Retrieves secret version metadata by specifying the ID of the version or the alias `previous`.
741
+ * Get the metadata of a secret version by specifying the ID of the version or the alias `previous`.
693
742
  *
694
743
  * A successful request returns the metadata that is associated with the specified version of your secret.
695
744
  *
@@ -735,7 +784,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
735
784
  /**
736
785
  * Get secret metadata.
737
786
  *
738
- * Retrieves the details of a secret by specifying the ID.
787
+ * Get the details of a secret by specifying its ID.
739
788
  *
740
789
  * A successful request returns only metadata about the secret, such as its name and creation date. To retrieve the
741
790
  * value of a secret, use the [Get a secret](#get-secret) or [Get a version of a secret](#get-secret-version) methods.
@@ -776,7 +825,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
776
825
  /**
777
826
  * Update secret metadata.
778
827
  *
779
- * Updates the metadata of a secret, such as its name or description.
828
+ * Update the metadata of a secret, such as its name or description.
780
829
  *
781
830
  * To update the actual contents of a secret, rotate the secret by using the [Invoke an action on a
782
831
  * secret](#update-secret) method.
@@ -828,9 +877,9 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
828
877
  /**
829
878
  * Set secret policies.
830
879
  *
831
- * Creates or updates one or more policies, such as an [automatic rotation
832
- * policy](http://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-rotate-secrets#auto-rotate-secret), for the
833
- * specified secret.
880
+ * Create or update one or more policies, such as an [automatic rotation
881
+ * policy](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-automatic-rotation), for the specified
882
+ * secret.
834
883
  *
835
884
  * @param {Object} params - The parameters to send to the service.
836
885
  * @param {string} params.secretType - The secret type.
@@ -881,7 +930,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
881
930
  /**
882
931
  * List secret policies.
883
932
  *
884
- * Retrieves a list of policies that are associated with a specified secret.
933
+ * List the rotation policies that are associated with a specified secret.
885
934
  *
886
935
  * @param {Object} params - The parameters to send to the service.
887
936
  * @param {string} params.secretType - The secret type.
@@ -927,11 +976,11 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
927
976
  /**
928
977
  * Set the configuration of a secret type.
929
978
  *
930
- * Sets the configuration for the specified secret type.
979
+ * Set the configuration for the specified secret type.
931
980
  *
932
981
  * Use this method to configure the IAM credentials (`iam_credentials`) engine for your service instance. Looking to
933
- * set up certificate ordering? To configure the public certificates (`public_cert`) engine, use the [Add a
934
- * configuration](#create_config_element) method.
982
+ * order or generate certificates? To configure the public certificates (`public_cert`) or private certificates
983
+ * (`private_cert`) engines, use the [Add a configuration](#create_config_element) method.
935
984
  *
936
985
  * @param {Object} params - The parameters to send to the service.
937
986
  * @param {string} params.secretType - The secret type.
@@ -970,7 +1019,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
970
1019
  /**
971
1020
  * Get the configuration of a secret type.
972
1021
  *
973
- * Retrieves the configuration that is associated with the specified secret type.
1022
+ * Get the configuration that is associated with the specified secret type.
974
1023
  *
975
1024
  * @param {Object} params - The parameters to send to the service.
976
1025
  * @param {string} params.secretType - The secret type.
@@ -1006,10 +1055,18 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1006
1055
  /**
1007
1056
  * Add a configuration.
1008
1057
  *
1009
- * Adds a configuration element to the specified secret type.
1058
+ * Add a configuration element to the specified secret type.
1010
1059
  *
1011
1060
  * Use this method to define the configurations that are required to enable the public certificates (`public_cert`)
1012
- * engine. You can add up to 10 certificate authority and DNS provider configurations for your instance.
1061
+ * and private certificates (`private_cert`) engines.
1062
+ *
1063
+ * You can add multiple configurations for your instance as follows:
1064
+ *
1065
+ * - Up to 10 public certificate authority configurations
1066
+ * - Up to 10 DNS provider configurations
1067
+ * - Up to 10 private root certificate authority configurations
1068
+ * - Up to 10 private intermediate certificate authority configurations
1069
+ * - Up to 10 certificate templates.
1013
1070
  *
1014
1071
  * @param {Object} params - The parameters to send to the service.
1015
1072
  * @param {string} params.secretType - The secret type.
@@ -1017,7 +1074,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1017
1074
  * @param {string} params.name - The human-readable name to assign to your configuration.
1018
1075
  * @param {string} params.type - The type of configuration. Value options differ depending on the `config_element`
1019
1076
  * property that you want to define.
1020
- * @param {JsonObject} params.config - The configuration to define for the specified secret type.
1077
+ * @param {ConfigElementDefConfig} params.config - The configuration to define for the specified secret type.
1021
1078
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1022
1079
  * @returns {Promise<SecretsManagerV1.Response<SecretsManagerV1.GetSingleConfigElement>>}
1023
1080
  */
@@ -1058,7 +1115,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1058
1115
  /**
1059
1116
  * List configurations.
1060
1117
  *
1061
- * Lists the configuration elements that are associated with a specified secret type.
1118
+ * List the configuration elements that are associated with a specified secret type.
1062
1119
  *
1063
1120
  * @param {Object} params - The parameters to send to the service.
1064
1121
  * @param {string} params.secretType - The secret type.
@@ -1096,7 +1153,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1096
1153
  /**
1097
1154
  * Get a configuration.
1098
1155
  *
1099
- * Retrieves the details of a specific configuration that is associated with a secret type.
1156
+ * Get the details of a specific configuration that is associated with a secret type.
1100
1157
  *
1101
1158
  * @param {Object} params - The parameters to send to the service.
1102
1159
  * @param {string} params.secretType - The secret type.
@@ -1136,7 +1193,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1136
1193
  /**
1137
1194
  * Update a configuration.
1138
1195
  *
1139
- * Updates a configuration element that is associated with the specified secret type.
1196
+ * Update a configuration element that is associated with the specified secret type.
1140
1197
  *
1141
1198
  * @param {Object} params - The parameters to send to the service.
1142
1199
  * @param {string} params.secretType - The secret type.
@@ -1182,10 +1239,74 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1182
1239
  };
1183
1240
  return this.createRequest(parameters);
1184
1241
  };
1242
+ /**
1243
+ * Invoke an action on a configuration.
1244
+ *
1245
+ * Invoke an action on a specified configuration element. This method supports the following actions:
1246
+ *
1247
+ * - `sign_intermediate`: Sign an intermediate certificate authority.
1248
+ * - `sign_csr`: Sign a certificate signing request.
1249
+ * - `set_signed`: Set a signed intermediate certificate authority.
1250
+ * - `revoke`: Revoke an internally signed intermediate certificate authority certificate.
1251
+ * - `rotate_crl`: Rotate the certificate revocation list (CRL) of an intermediate certificate authority.
1252
+ *
1253
+ * @param {Object} params - The parameters to send to the service.
1254
+ * @param {string} params.secretType - The secret type.
1255
+ * @param {string} params.configElement - The configuration element on which the action is applied.
1256
+ * @param {string} params.configName - The name of the certificate authority.
1257
+ * @param {string} params.action - The action to perform on the specified configuration element.
1258
+ * @param {ConfigAction} [params.config] - Properties that describe an action on a configuration element.
1259
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1260
+ * @returns {Promise<SecretsManagerV1.Response<SecretsManagerV1.ConfigElementActionResult>>}
1261
+ */
1262
+ SecretsManagerV1.prototype.actionOnConfigElement = function (params) {
1263
+ var _params = __assign({}, params);
1264
+ var _requiredParams = ['secretType', 'configElement', 'configName', 'action'];
1265
+ var _validParams = [
1266
+ 'secretType',
1267
+ 'configElement',
1268
+ 'configName',
1269
+ 'action',
1270
+ 'config',
1271
+ 'headers',
1272
+ ];
1273
+ var _validationErrors = ibm_cloud_sdk_core_1.validateParams(_params, _requiredParams, _validParams);
1274
+ if (_validationErrors) {
1275
+ return Promise.reject(_validationErrors);
1276
+ }
1277
+ var body = {
1278
+ 'config': _params.config,
1279
+ };
1280
+ var query = {
1281
+ 'action': _params.action,
1282
+ };
1283
+ var path = {
1284
+ 'secret_type': _params.secretType,
1285
+ 'config_element': _params.configElement,
1286
+ 'config_name': _params.configName,
1287
+ };
1288
+ var sdkHeaders = common_1.getSdkHeaders(SecretsManagerV1.DEFAULT_SERVICE_NAME, 'v1', 'actionOnConfigElement');
1289
+ var parameters = {
1290
+ options: {
1291
+ url: '/api/v1/config/{secret_type}/{config_element}/{config_name}',
1292
+ method: 'POST',
1293
+ body: body,
1294
+ qs: query,
1295
+ path: path,
1296
+ },
1297
+ defaultOptions: extend(true, {}, this.baseOptions, {
1298
+ headers: extend(true, sdkHeaders, {
1299
+ 'Accept': 'application/json',
1300
+ 'Content-Type': 'application/json',
1301
+ }, _params.headers),
1302
+ }),
1303
+ };
1304
+ return this.createRequest(parameters);
1305
+ };
1185
1306
  /**
1186
1307
  * Delete a configuration.
1187
1308
  *
1188
- * Deletes a configuration element from the specified secret type.
1309
+ * Delete a configuration element from the specified secret type.
1189
1310
  *
1190
1311
  * @param {Object} params - The parameters to send to the service.
1191
1312
  * @param {string} params.secretType - The secret type.
@@ -1220,7 +1341,159 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1220
1341
  };
1221
1342
  return this.createRequest(parameters);
1222
1343
  };
1223
- SecretsManagerV1.DEFAULT_SERVICE_URL = 'https://secrets-manager.cloud.ibm.com';
1344
+ /*************************
1345
+ * notifications
1346
+ ************************/
1347
+ /**
1348
+ * Register with Event Notifications.
1349
+ *
1350
+ * Create a registration between a Secrets Manager instance and [Event
1351
+ * Notifications](https://cloud.ibm.com/apidocs/event-notifications).
1352
+ *
1353
+ * A successful request adds Secrets Manager as a source that you can reference from your Event Notifications
1354
+ * instance. For more information about enabling notifications for Secrets Manager, check out the
1355
+ * [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-event-notifications).
1356
+ *
1357
+ * @param {Object} params - The parameters to send to the service.
1358
+ * @param {string} params.eventNotificationsInstanceCrn - The Cloud Resource Name (CRN) of the connected Event
1359
+ * Notifications instance.
1360
+ * @param {string} params.eventNotificationsSourceName - The name that is displayed as a source in your Event
1361
+ * Notifications instance.
1362
+ * @param {string} [params.eventNotificationsSourceDescription] - An optional description for the source in your Event
1363
+ * Notifications instance.
1364
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1365
+ * @returns {Promise<SecretsManagerV1.Response<SecretsManagerV1.GetNotificationsSettings>>}
1366
+ */
1367
+ SecretsManagerV1.prototype.createNotificationsRegistration = function (params) {
1368
+ var _params = __assign({}, params);
1369
+ var _requiredParams = ['eventNotificationsInstanceCrn', 'eventNotificationsSourceName'];
1370
+ var _validParams = [
1371
+ 'eventNotificationsInstanceCrn',
1372
+ 'eventNotificationsSourceName',
1373
+ 'eventNotificationsSourceDescription',
1374
+ 'headers',
1375
+ ];
1376
+ var _validationErrors = ibm_cloud_sdk_core_1.validateParams(_params, _requiredParams, _validParams);
1377
+ if (_validationErrors) {
1378
+ return Promise.reject(_validationErrors);
1379
+ }
1380
+ var body = {
1381
+ 'event_notifications_instance_crn': _params.eventNotificationsInstanceCrn,
1382
+ 'event_notifications_source_name': _params.eventNotificationsSourceName,
1383
+ 'event_notifications_source_description': _params.eventNotificationsSourceDescription,
1384
+ };
1385
+ var sdkHeaders = common_1.getSdkHeaders(SecretsManagerV1.DEFAULT_SERVICE_NAME, 'v1', 'createNotificationsRegistration');
1386
+ var parameters = {
1387
+ options: {
1388
+ url: '/api/v1/notifications/registration',
1389
+ method: 'POST',
1390
+ body: body,
1391
+ },
1392
+ defaultOptions: extend(true, {}, this.baseOptions, {
1393
+ headers: extend(true, sdkHeaders, {
1394
+ 'Accept': 'application/json',
1395
+ 'Content-Type': 'application/json',
1396
+ }, _params.headers),
1397
+ }),
1398
+ };
1399
+ return this.createRequest(parameters);
1400
+ };
1401
+ /**
1402
+ * Get Event Notifications registration details.
1403
+ *
1404
+ * Get the details of an existing registration between a Secrets Manager instance and Event Notifications.
1405
+ *
1406
+ * @param {Object} [params] - The parameters to send to the service.
1407
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1408
+ * @returns {Promise<SecretsManagerV1.Response<SecretsManagerV1.GetNotificationsSettings>>}
1409
+ */
1410
+ SecretsManagerV1.prototype.getNotificationsRegistration = function (params) {
1411
+ var _params = __assign({}, params);
1412
+ var _requiredParams = [];
1413
+ var _validParams = ['headers'];
1414
+ var _validationErrors = ibm_cloud_sdk_core_1.validateParams(_params, _requiredParams, _validParams);
1415
+ if (_validationErrors) {
1416
+ return Promise.reject(_validationErrors);
1417
+ }
1418
+ var sdkHeaders = common_1.getSdkHeaders(SecretsManagerV1.DEFAULT_SERVICE_NAME, 'v1', 'getNotificationsRegistration');
1419
+ var parameters = {
1420
+ options: {
1421
+ url: '/api/v1/notifications/registration',
1422
+ method: 'GET',
1423
+ },
1424
+ defaultOptions: extend(true, {}, this.baseOptions, {
1425
+ headers: extend(true, sdkHeaders, {
1426
+ 'Accept': 'application/json',
1427
+ }, _params.headers),
1428
+ }),
1429
+ };
1430
+ return this.createRequest(parameters);
1431
+ };
1432
+ /**
1433
+ * Unregister from Event Notifications.
1434
+ *
1435
+ * Delete a registration between a Secrets Manager instance and Event Notifications.
1436
+ *
1437
+ * A successful request removes your Secrets Manager instance as a source in Event Notifications.
1438
+ *
1439
+ * @param {Object} [params] - The parameters to send to the service.
1440
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1441
+ * @returns {Promise<SecretsManagerV1.Response<SecretsManagerV1.Empty>>}
1442
+ */
1443
+ SecretsManagerV1.prototype.deleteNotificationsRegistration = function (params) {
1444
+ var _params = __assign({}, params);
1445
+ var _requiredParams = [];
1446
+ var _validParams = ['headers'];
1447
+ var _validationErrors = ibm_cloud_sdk_core_1.validateParams(_params, _requiredParams, _validParams);
1448
+ if (_validationErrors) {
1449
+ return Promise.reject(_validationErrors);
1450
+ }
1451
+ var sdkHeaders = common_1.getSdkHeaders(SecretsManagerV1.DEFAULT_SERVICE_NAME, 'v1', 'deleteNotificationsRegistration');
1452
+ var parameters = {
1453
+ options: {
1454
+ url: '/api/v1/notifications/registration',
1455
+ method: 'DELETE',
1456
+ },
1457
+ defaultOptions: extend(true, {}, this.baseOptions, {
1458
+ headers: extend(true, sdkHeaders, {}, _params.headers),
1459
+ }),
1460
+ };
1461
+ return this.createRequest(parameters);
1462
+ };
1463
+ /**
1464
+ * Send a test event.
1465
+ *
1466
+ * Send a test event from a Secrets Manager instance to a configured [Event
1467
+ * Notifications](https://cloud.ibm.com/apidocs/event-notifications) instance.
1468
+ *
1469
+ * A successful request sends a test event to the Event Notifications instance. For more information about enabling
1470
+ * notifications for Secrets Manager, check out the
1471
+ * [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-event-notifications).
1472
+ *
1473
+ * @param {Object} [params] - The parameters to send to the service.
1474
+ * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
1475
+ * @returns {Promise<SecretsManagerV1.Response<SecretsManagerV1.Empty>>}
1476
+ */
1477
+ SecretsManagerV1.prototype.sendTestNotification = function (params) {
1478
+ var _params = __assign({}, params);
1479
+ var _requiredParams = [];
1480
+ var _validParams = ['headers'];
1481
+ var _validationErrors = ibm_cloud_sdk_core_1.validateParams(_params, _requiredParams, _validParams);
1482
+ if (_validationErrors) {
1483
+ return Promise.reject(_validationErrors);
1484
+ }
1485
+ var sdkHeaders = common_1.getSdkHeaders(SecretsManagerV1.DEFAULT_SERVICE_NAME, 'v1', 'sendTestNotification');
1486
+ var parameters = {
1487
+ options: {
1488
+ url: '/api/v1/notifications/test',
1489
+ method: 'GET',
1490
+ },
1491
+ defaultOptions: extend(true, {}, this.baseOptions, {
1492
+ headers: extend(true, sdkHeaders, {}, _params.headers),
1493
+ }),
1494
+ };
1495
+ return this.createRequest(parameters);
1496
+ };
1224
1497
  SecretsManagerV1.DEFAULT_SERVICE_NAME = 'secrets_manager';
1225
1498
  return SecretsManagerV1;
1226
1499
  }(ibm_cloud_sdk_core_1.BaseService));
@@ -1238,6 +1511,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1238
1511
  SecretType["IAM_CREDENTIALS"] = "iam_credentials";
1239
1512
  SecretType["IMPORTED_CERT"] = "imported_cert";
1240
1513
  SecretType["PUBLIC_CERT"] = "public_cert";
1514
+ SecretType["PRIVATE_CERT"] = "private_cert";
1241
1515
  SecretType["USERNAME_PASSWORD"] = "username_password";
1242
1516
  SecretType["KV"] = "kv";
1243
1517
  })(SecretType = CreateSecretConstants.SecretType || (CreateSecretConstants.SecretType = {}));
@@ -1252,6 +1526,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1252
1526
  SecretType["IAM_CREDENTIALS"] = "iam_credentials";
1253
1527
  SecretType["IMPORTED_CERT"] = "imported_cert";
1254
1528
  SecretType["PUBLIC_CERT"] = "public_cert";
1529
+ SecretType["PRIVATE_CERT"] = "private_cert";
1255
1530
  SecretType["USERNAME_PASSWORD"] = "username_password";
1256
1531
  SecretType["KV"] = "kv";
1257
1532
  })(SecretType = ListSecretsConstants.SecretType || (ListSecretsConstants.SecretType = {}));
@@ -1279,6 +1554,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1279
1554
  SecretType["IAM_CREDENTIALS"] = "iam_credentials";
1280
1555
  SecretType["IMPORTED_CERT"] = "imported_cert";
1281
1556
  SecretType["PUBLIC_CERT"] = "public_cert";
1557
+ SecretType["PRIVATE_CERT"] = "private_cert";
1282
1558
  SecretType["USERNAME_PASSWORD"] = "username_password";
1283
1559
  SecretType["KV"] = "kv";
1284
1560
  })(SecretType = GetSecretConstants.SecretType || (GetSecretConstants.SecretType = {}));
@@ -1293,6 +1569,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1293
1569
  SecretType["IAM_CREDENTIALS"] = "iam_credentials";
1294
1570
  SecretType["IMPORTED_CERT"] = "imported_cert";
1295
1571
  SecretType["PUBLIC_CERT"] = "public_cert";
1572
+ SecretType["PRIVATE_CERT"] = "private_cert";
1296
1573
  SecretType["USERNAME_PASSWORD"] = "username_password";
1297
1574
  SecretType["KV"] = "kv";
1298
1575
  })(SecretType = UpdateSecretConstants.SecretType || (UpdateSecretConstants.SecretType = {}));
@@ -1301,6 +1578,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1301
1578
  (function (Action) {
1302
1579
  Action["ROTATE"] = "rotate";
1303
1580
  Action["RESTORE"] = "restore";
1581
+ Action["REVOKE"] = "revoke";
1304
1582
  Action["DELETE_CREDENTIALS"] = "delete_credentials";
1305
1583
  })(Action = UpdateSecretConstants.Action || (UpdateSecretConstants.Action = {}));
1306
1584
  })(UpdateSecretConstants = SecretsManagerV1.UpdateSecretConstants || (SecretsManagerV1.UpdateSecretConstants = {}));
@@ -1314,6 +1592,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1314
1592
  SecretType["IAM_CREDENTIALS"] = "iam_credentials";
1315
1593
  SecretType["IMPORTED_CERT"] = "imported_cert";
1316
1594
  SecretType["PUBLIC_CERT"] = "public_cert";
1595
+ SecretType["PRIVATE_CERT"] = "private_cert";
1317
1596
  SecretType["USERNAME_PASSWORD"] = "username_password";
1318
1597
  SecretType["KV"] = "kv";
1319
1598
  })(SecretType = DeleteSecretConstants.SecretType || (DeleteSecretConstants.SecretType = {}));
@@ -1328,6 +1607,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1328
1607
  SecretType["IAM_CREDENTIALS"] = "iam_credentials";
1329
1608
  SecretType["IMPORTED_CERT"] = "imported_cert";
1330
1609
  SecretType["PUBLIC_CERT"] = "public_cert";
1610
+ SecretType["PRIVATE_CERT"] = "private_cert";
1331
1611
  SecretType["USERNAME_PASSWORD"] = "username_password";
1332
1612
  SecretType["KV"] = "kv";
1333
1613
  })(SecretType = ListSecretVersionsConstants.SecretType || (ListSecretVersionsConstants.SecretType = {}));
@@ -1342,10 +1622,25 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1342
1622
  SecretType["IAM_CREDENTIALS"] = "iam_credentials";
1343
1623
  SecretType["IMPORTED_CERT"] = "imported_cert";
1344
1624
  SecretType["PUBLIC_CERT"] = "public_cert";
1625
+ SecretType["PRIVATE_CERT"] = "private_cert";
1345
1626
  SecretType["USERNAME_PASSWORD"] = "username_password";
1346
1627
  SecretType["KV"] = "kv";
1347
1628
  })(SecretType = GetSecretVersionConstants.SecretType || (GetSecretVersionConstants.SecretType = {}));
1348
1629
  })(GetSecretVersionConstants = SecretsManagerV1.GetSecretVersionConstants || (SecretsManagerV1.GetSecretVersionConstants = {}));
1630
+ /** Constants for the `updateSecretVersion` operation. */
1631
+ var UpdateSecretVersionConstants;
1632
+ (function (UpdateSecretVersionConstants) {
1633
+ /** The secret type. */
1634
+ var SecretType;
1635
+ (function (SecretType) {
1636
+ SecretType["PRIVATE_CERT"] = "private_cert";
1637
+ })(SecretType = UpdateSecretVersionConstants.SecretType || (UpdateSecretVersionConstants.SecretType = {}));
1638
+ /** The action to perform on the specified secret version. */
1639
+ var Action;
1640
+ (function (Action) {
1641
+ Action["REVOKE"] = "revoke";
1642
+ })(Action = UpdateSecretVersionConstants.Action || (UpdateSecretVersionConstants.Action = {}));
1643
+ })(UpdateSecretVersionConstants = SecretsManagerV1.UpdateSecretVersionConstants || (SecretsManagerV1.UpdateSecretVersionConstants = {}));
1349
1644
  /** Constants for the `getSecretVersionMetadata` operation. */
1350
1645
  var GetSecretVersionMetadataConstants;
1351
1646
  (function (GetSecretVersionMetadataConstants) {
@@ -1356,6 +1651,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1356
1651
  SecretType["IAM_CREDENTIALS"] = "iam_credentials";
1357
1652
  SecretType["IMPORTED_CERT"] = "imported_cert";
1358
1653
  SecretType["PUBLIC_CERT"] = "public_cert";
1654
+ SecretType["PRIVATE_CERT"] = "private_cert";
1359
1655
  SecretType["USERNAME_PASSWORD"] = "username_password";
1360
1656
  SecretType["KV"] = "kv";
1361
1657
  })(SecretType = GetSecretVersionMetadataConstants.SecretType || (GetSecretVersionMetadataConstants.SecretType = {}));
@@ -1370,6 +1666,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1370
1666
  SecretType["IAM_CREDENTIALS"] = "iam_credentials";
1371
1667
  SecretType["IMPORTED_CERT"] = "imported_cert";
1372
1668
  SecretType["PUBLIC_CERT"] = "public_cert";
1669
+ SecretType["PRIVATE_CERT"] = "private_cert";
1373
1670
  SecretType["USERNAME_PASSWORD"] = "username_password";
1374
1671
  SecretType["KV"] = "kv";
1375
1672
  })(SecretType = GetSecretMetadataConstants.SecretType || (GetSecretMetadataConstants.SecretType = {}));
@@ -1384,6 +1681,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1384
1681
  SecretType["IAM_CREDENTIALS"] = "iam_credentials";
1385
1682
  SecretType["IMPORTED_CERT"] = "imported_cert";
1386
1683
  SecretType["PUBLIC_CERT"] = "public_cert";
1684
+ SecretType["PRIVATE_CERT"] = "private_cert";
1387
1685
  SecretType["USERNAME_PASSWORD"] = "username_password";
1388
1686
  SecretType["KV"] = "kv";
1389
1687
  })(SecretType = UpdateSecretMetadataConstants.SecretType || (UpdateSecretMetadataConstants.SecretType = {}));
@@ -1396,6 +1694,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1396
1694
  (function (SecretType) {
1397
1695
  SecretType["USERNAME_PASSWORD"] = "username_password";
1398
1696
  SecretType["PUBLIC_CERT"] = "public_cert";
1697
+ SecretType["PRIVATE_CERT"] = "private_cert";
1399
1698
  })(SecretType = PutPolicyConstants.SecretType || (PutPolicyConstants.SecretType = {}));
1400
1699
  /** The type of policy that is associated with the specified secret. */
1401
1700
  var Policy;
@@ -1411,6 +1710,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1411
1710
  (function (SecretType) {
1412
1711
  SecretType["USERNAME_PASSWORD"] = "username_password";
1413
1712
  SecretType["PUBLIC_CERT"] = "public_cert";
1713
+ SecretType["PRIVATE_CERT"] = "private_cert";
1414
1714
  })(SecretType = GetPolicyConstants.SecretType || (GetPolicyConstants.SecretType = {}));
1415
1715
  /** The type of policy that is associated with the specified secret. */
1416
1716
  var Policy;
@@ -1435,6 +1735,7 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1435
1735
  (function (SecretType) {
1436
1736
  SecretType["IAM_CREDENTIALS"] = "iam_credentials";
1437
1737
  SecretType["PUBLIC_CERT"] = "public_cert";
1738
+ SecretType["PRIVATE_CERT"] = "private_cert";
1438
1739
  })(SecretType = GetConfigConstants.SecretType || (GetConfigConstants.SecretType = {}));
1439
1740
  })(GetConfigConstants = SecretsManagerV1.GetConfigConstants || (SecretsManagerV1.GetConfigConstants = {}));
1440
1741
  /** Constants for the `createConfigElement` operation. */
@@ -1444,12 +1745,16 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1444
1745
  var SecretType;
1445
1746
  (function (SecretType) {
1446
1747
  SecretType["PUBLIC_CERT"] = "public_cert";
1748
+ SecretType["PRIVATE_CERT"] = "private_cert";
1447
1749
  })(SecretType = CreateConfigElementConstants.SecretType || (CreateConfigElementConstants.SecretType = {}));
1448
1750
  /** The configuration element to define or manage. */
1449
1751
  var ConfigElement;
1450
1752
  (function (ConfigElement) {
1451
1753
  ConfigElement["CERTIFICATE_AUTHORITIES"] = "certificate_authorities";
1452
1754
  ConfigElement["DNS_PROVIDERS"] = "dns_providers";
1755
+ ConfigElement["ROOT_CERTIFICATE_AUTHORITIES"] = "root_certificate_authorities";
1756
+ ConfigElement["INTERMEDIATE_CERTIFICATE_AUTHORITIES"] = "intermediate_certificate_authorities";
1757
+ ConfigElement["CERTIFICATE_TEMPLATES"] = "certificate_templates";
1453
1758
  })(ConfigElement = CreateConfigElementConstants.ConfigElement || (CreateConfigElementConstants.ConfigElement = {}));
1454
1759
  /** The type of configuration. Value options differ depending on the `config_element` property that you want to define. */
1455
1760
  var Type;
@@ -1458,6 +1763,9 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1458
1763
  Type["LETSENCRYPT_STAGE"] = "letsencrypt-stage";
1459
1764
  Type["CIS"] = "cis";
1460
1765
  Type["CLASSIC_INFRASTRUCTURE"] = "classic_infrastructure";
1766
+ Type["ROOT_CERTIFICATE_AUTHORITY"] = "root_certificate_authority";
1767
+ Type["INTERMEDIATE_CERTIFICATE_AUTHORITY"] = "intermediate_certificate_authority";
1768
+ Type["CERTIFICATE_TEMPLATE"] = "certificate_template";
1461
1769
  })(Type = CreateConfigElementConstants.Type || (CreateConfigElementConstants.Type = {}));
1462
1770
  })(CreateConfigElementConstants = SecretsManagerV1.CreateConfigElementConstants || (SecretsManagerV1.CreateConfigElementConstants = {}));
1463
1771
  /** Constants for the `getConfigElements` operation. */
@@ -1467,12 +1775,16 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1467
1775
  var SecretType;
1468
1776
  (function (SecretType) {
1469
1777
  SecretType["PUBLIC_CERT"] = "public_cert";
1778
+ SecretType["PRIVATE_CERT"] = "private_cert";
1470
1779
  })(SecretType = GetConfigElementsConstants.SecretType || (GetConfigElementsConstants.SecretType = {}));
1471
1780
  /** The configuration element to define or manage. */
1472
1781
  var ConfigElement;
1473
1782
  (function (ConfigElement) {
1474
1783
  ConfigElement["CERTIFICATE_AUTHORITIES"] = "certificate_authorities";
1475
1784
  ConfigElement["DNS_PROVIDERS"] = "dns_providers";
1785
+ ConfigElement["ROOT_CERTIFICATE_AUTHORITIES"] = "root_certificate_authorities";
1786
+ ConfigElement["INTERMEDIATE_CERTIFICATE_AUTHORITIES"] = "intermediate_certificate_authorities";
1787
+ ConfigElement["CERTIFICATE_TEMPLATES"] = "certificate_templates";
1476
1788
  })(ConfigElement = GetConfigElementsConstants.ConfigElement || (GetConfigElementsConstants.ConfigElement = {}));
1477
1789
  })(GetConfigElementsConstants = SecretsManagerV1.GetConfigElementsConstants || (SecretsManagerV1.GetConfigElementsConstants = {}));
1478
1790
  /** Constants for the `getConfigElement` operation. */
@@ -1482,12 +1794,16 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1482
1794
  var SecretType;
1483
1795
  (function (SecretType) {
1484
1796
  SecretType["PUBLIC_CERT"] = "public_cert";
1797
+ SecretType["PRIVATE_CERT"] = "private_cert";
1485
1798
  })(SecretType = GetConfigElementConstants.SecretType || (GetConfigElementConstants.SecretType = {}));
1486
1799
  /** The configuration element to define or manage. */
1487
1800
  var ConfigElement;
1488
1801
  (function (ConfigElement) {
1489
1802
  ConfigElement["CERTIFICATE_AUTHORITIES"] = "certificate_authorities";
1490
1803
  ConfigElement["DNS_PROVIDERS"] = "dns_providers";
1804
+ ConfigElement["ROOT_CERTIFICATE_AUTHORITIES"] = "root_certificate_authorities";
1805
+ ConfigElement["INTERMEDIATE_CERTIFICATE_AUTHORITIES"] = "intermediate_certificate_authorities";
1806
+ ConfigElement["CERTIFICATE_TEMPLATES"] = "certificate_templates";
1491
1807
  })(ConfigElement = GetConfigElementConstants.ConfigElement || (GetConfigElementConstants.ConfigElement = {}));
1492
1808
  })(GetConfigElementConstants = SecretsManagerV1.GetConfigElementConstants || (SecretsManagerV1.GetConfigElementConstants = {}));
1493
1809
  /** Constants for the `updateConfigElement` operation. */
@@ -1497,12 +1813,16 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1497
1813
  var SecretType;
1498
1814
  (function (SecretType) {
1499
1815
  SecretType["PUBLIC_CERT"] = "public_cert";
1816
+ SecretType["PRIVATE_CERT"] = "private_cert";
1500
1817
  })(SecretType = UpdateConfigElementConstants.SecretType || (UpdateConfigElementConstants.SecretType = {}));
1501
1818
  /** The configuration element to define or manage. */
1502
1819
  var ConfigElement;
1503
1820
  (function (ConfigElement) {
1504
1821
  ConfigElement["CERTIFICATE_AUTHORITIES"] = "certificate_authorities";
1505
1822
  ConfigElement["DNS_PROVIDERS"] = "dns_providers";
1823
+ ConfigElement["ROOT_CERTIFICATE_AUTHORITIES"] = "root_certificate_authorities";
1824
+ ConfigElement["INTERMEDIATE_CERTIFICATE_AUTHORITIES"] = "intermediate_certificate_authorities";
1825
+ ConfigElement["CERTIFICATE_TEMPLATES"] = "certificate_templates";
1506
1826
  })(ConfigElement = UpdateConfigElementConstants.ConfigElement || (UpdateConfigElementConstants.ConfigElement = {}));
1507
1827
  /** The type of configuration. Value options differ depending on the `config_element` property that you want to define. */
1508
1828
  var Type;
@@ -1511,8 +1831,35 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1511
1831
  Type["LETSENCRYPT_STAGE"] = "letsencrypt-stage";
1512
1832
  Type["CIS"] = "cis";
1513
1833
  Type["CLASSIC_INFRASTRUCTURE"] = "classic_infrastructure";
1834
+ Type["ROOT_CERTIFICATE_AUTHORITY"] = "root_certificate_authority";
1835
+ Type["INTERMEDIATE_CERTIFICATE_AUTHORITY"] = "intermediate_certificate_authority";
1836
+ Type["CERTIFICATE_TEMPLATE"] = "certificate_template";
1514
1837
  })(Type = UpdateConfigElementConstants.Type || (UpdateConfigElementConstants.Type = {}));
1515
1838
  })(UpdateConfigElementConstants = SecretsManagerV1.UpdateConfigElementConstants || (SecretsManagerV1.UpdateConfigElementConstants = {}));
1839
+ /** Constants for the `actionOnConfigElement` operation. */
1840
+ var ActionOnConfigElementConstants;
1841
+ (function (ActionOnConfigElementConstants) {
1842
+ /** The secret type. */
1843
+ var SecretType;
1844
+ (function (SecretType) {
1845
+ SecretType["PRIVATE_CERT"] = "private_cert";
1846
+ })(SecretType = ActionOnConfigElementConstants.SecretType || (ActionOnConfigElementConstants.SecretType = {}));
1847
+ /** The configuration element on which the action is applied. */
1848
+ var ConfigElement;
1849
+ (function (ConfigElement) {
1850
+ ConfigElement["ROOT_CERTIFICATE_AUTHORITIES"] = "root_certificate_authorities";
1851
+ ConfigElement["INTERMEDIATE_CERTIFICATE_AUTHORITIES"] = "intermediate_certificate_authorities";
1852
+ })(ConfigElement = ActionOnConfigElementConstants.ConfigElement || (ActionOnConfigElementConstants.ConfigElement = {}));
1853
+ /** The action to perform on the specified configuration element. */
1854
+ var Action;
1855
+ (function (Action) {
1856
+ Action["SIGN_INTERMEDIATE"] = "sign_intermediate";
1857
+ Action["SIGN_CSR"] = "sign_csr";
1858
+ Action["SET_SIGNED"] = "set_signed";
1859
+ Action["REVOKE"] = "revoke";
1860
+ Action["ROTATE_CRL"] = "rotate_crl";
1861
+ })(Action = ActionOnConfigElementConstants.Action || (ActionOnConfigElementConstants.Action = {}));
1862
+ })(ActionOnConfigElementConstants = SecretsManagerV1.ActionOnConfigElementConstants || (SecretsManagerV1.ActionOnConfigElementConstants = {}));
1516
1863
  /** Constants for the `deleteConfigElement` operation. */
1517
1864
  var DeleteConfigElementConstants;
1518
1865
  (function (DeleteConfigElementConstants) {
@@ -1520,12 +1867,16 @@ var SecretsManagerV1 = /** @class */ (function (_super) {
1520
1867
  var SecretType;
1521
1868
  (function (SecretType) {
1522
1869
  SecretType["PUBLIC_CERT"] = "public_cert";
1870
+ SecretType["PRIVATE_CERT"] = "private_cert";
1523
1871
  })(SecretType = DeleteConfigElementConstants.SecretType || (DeleteConfigElementConstants.SecretType = {}));
1524
1872
  /** The configuration element to define or manage. */
1525
1873
  var ConfigElement;
1526
1874
  (function (ConfigElement) {
1527
1875
  ConfigElement["CERTIFICATE_AUTHORITIES"] = "certificate_authorities";
1528
1876
  ConfigElement["DNS_PROVIDERS"] = "dns_providers";
1877
+ ConfigElement["ROOT_CERTIFICATE_AUTHORITIES"] = "root_certificate_authorities";
1878
+ ConfigElement["INTERMEDIATE_CERTIFICATE_AUTHORITIES"] = "intermediate_certificate_authorities";
1879
+ ConfigElement["CERTIFICATE_TEMPLATES"] = "certificate_templates";
1529
1880
  })(ConfigElement = DeleteConfigElementConstants.ConfigElement || (DeleteConfigElementConstants.ConfigElement = {}));
1530
1881
  })(DeleteConfigElementConstants = SecretsManagerV1.DeleteConfigElementConstants || (SecretsManagerV1.DeleteConfigElementConstants = {}));
1531
1882
  })(SecretsManagerV1 || (SecretsManagerV1 = {}));