Skip to content

Commit 9951e4f

Browse files
authored
Revert "Add retrieved_at field (#230)" (#231)
This reverts commit bea96a3.
1 parent bea96a3 commit 9951e4f

2 files changed

Lines changed: 5 additions & 94 deletions

File tree

secrets-manager/v2.ts

Lines changed: 3 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
/**
18-
* IBM OpenAPI SDK Code Generator Version: 3.107.0-b68ebf7a-20250811-145645
18+
* IBM OpenAPI SDK Code Generator Version: 3.104.0-b4a47c49-20250418-184351
1919
*/
2020

2121
/* eslint-disable max-classes-per-file */
@@ -494,7 +494,7 @@ class SecretsManagerV2 extends BaseService {
494494
* descending order use the `-` character
495495
*
496496
*
497-
* **Available values:** id | created_at | updated_at | retrieved_at | expiration_date | secret_type | name
497+
* **Available values:** id | created_at | updated_at | expiration_date | secret_type | name
498498
*
499499
* **Usage:** To sort a list of secrets by their creation date, use
500500
* `../secrets?sort=created_at`.
@@ -2804,7 +2804,7 @@ namespace SecretsManagerV2 {
28042804
* `-` character
28052805
*
28062806
*
2807-
* **Available values:** id | created_at | updated_at | retrieved_at | expiration_date | secret_type | name
2807+
* **Available values:** id | created_at | updated_at | expiration_date | secret_type | name
28082808
*
28092809
* **Usage:** To sort a list of secrets by their creation date, use
28102810
* `../secrets?sort=created_at`.
@@ -4564,10 +4564,6 @@ namespace SecretsManagerV2 {
45644564
created_by: string;
45654565
/** The date when the resource was created. The date format follows `RFC 3339`. */
45664566
created_at: string;
4567-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
4568-
* there is no record of secret data retrieval.
4569-
*/
4570-
retrieved_at?: string;
45714567
/** A CRN that uniquely identifies an IBM Cloud resource. */
45724568
crn: string;
45734569
/** The secret metadata that a user can customize. */
@@ -4654,10 +4650,6 @@ namespace SecretsManagerV2 {
46544650
created_by: string;
46554651
/** The date when the resource was created. The date format follows `RFC 3339`. */
46564652
created_at: string;
4657-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
4658-
* there is no record of secret data retrieval.
4659-
*/
4660-
retrieved_at?: string;
46614653
/** A CRN that uniquely identifies an IBM Cloud resource. */
46624654
crn: string;
46634655
/** The secret metadata that a user can customize. */
@@ -4960,18 +4952,6 @@ namespace SecretsManagerV2 {
49604952

49614953
/**
49624954
* This field indicates whether Secrets Manager rotates your secrets automatically.
4963-
*
4964-
* Rotation interval cannot exceed the assiged TTL value.
4965-
*
4966-
* Custom Credentials: Minimum 6 hours, Maximum 3 months.
4967-
*
4968-
* Service Credentials: Minimum 1 day, Maximum 3 months.
4969-
*
4970-
* IAM Credentials: Minimum 1 day, Maximum 3 months.
4971-
*
4972-
* Private certificate: Minimum 1 day, Maximum 24 months.
4973-
*
4974-
* User credentials: Minimum 1 day, Maximum 24 months.
49754955
*/
49764956
export interface CommonRotationPolicy extends RotationPolicy {
49774957
/** This field indicates whether Secrets Manager rotates your secret automatically.
@@ -4991,7 +4971,6 @@ namespace SecretsManagerV2 {
49914971
export enum Unit {
49924972
DAY = 'day',
49934973
MONTH = 'month',
4994-
HOUR = 'hour',
49954974
}
49964975
}
49974976
}
@@ -5195,10 +5174,6 @@ namespace SecretsManagerV2 {
51955174
created_by: string;
51965175
/** The date when the resource was created. The date format follows `RFC 3339`. */
51975176
created_at: string;
5198-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
5199-
* there is no record of secret data retrieval.
5200-
*/
5201-
retrieved_at?: string;
52025177
/** A CRN that uniquely identifies an IBM Cloud resource. */
52035178
crn: string;
52045179
/** The secret metadata that a user can customize. */
@@ -5278,8 +5253,6 @@ namespace SecretsManagerV2 {
52785253
queued_task_count?: number;
52795254
/** A Secret Manager task identifier. */
52805255
last_failed_task_id?: string;
5281-
/** Indicates if the last rotation (automatic or manual) for the secret failed. */
5282-
last_rotation_failed?: boolean;
52835256
/** The name of the custom credentials configuration. */
52845257
configuration: string;
52855258
/** The fields that can be passed to and from the custom credentials engine. Allowed types are 'string',
@@ -5324,10 +5297,6 @@ namespace SecretsManagerV2 {
53245297
created_by: string;
53255298
/** The date when the resource was created. The date format follows `RFC 3339`. */
53265299
created_at: string;
5327-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
5328-
* there is no record of secret data retrieval.
5329-
*/
5330-
retrieved_at?: string;
53315300
/** A CRN that uniquely identifies an IBM Cloud resource. */
53325301
crn: string;
53335302
/** The secret metadata that a user can customize. */
@@ -5407,8 +5376,6 @@ namespace SecretsManagerV2 {
54075376
queued_task_count?: number;
54085377
/** A Secret Manager task identifier. */
54095378
last_failed_task_id?: string;
5410-
/** Indicates if the last rotation (automatic or manual) for the secret failed. */
5411-
last_rotation_failed?: boolean;
54125379
/** The name of the custom credentials configuration. */
54135380
configuration: string;
54145381
/** The fields that can be passed to and from the custom credentials engine. Allowed types are 'string',
@@ -5880,10 +5847,6 @@ namespace SecretsManagerV2 {
58805847
created_by: string;
58815848
/** The date when the resource was created. The date format follows `RFC 3339`. */
58825849
created_at: string;
5883-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
5884-
* there is no record of secret data retrieval.
5885-
*/
5886-
retrieved_at?: string;
58875850
/** A CRN that uniquely identifies an IBM Cloud resource. */
58885851
crn: string;
58895852
/** The secret metadata that a user can customize. */
@@ -6030,10 +5993,6 @@ namespace SecretsManagerV2 {
60305993
created_by: string;
60315994
/** The date when the resource was created. The date format follows `RFC 3339`. */
60325995
created_at: string;
6033-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
6034-
* there is no record of secret data retrieval.
6035-
*/
6036-
retrieved_at?: string;
60375996
/** A CRN that uniquely identifies an IBM Cloud resource. */
60385997
crn: string;
60395998
/** The secret metadata that a user can customize. */
@@ -6482,10 +6441,6 @@ namespace SecretsManagerV2 {
64826441
created_by: string;
64836442
/** The date when the resource was created. The date format follows `RFC 3339`. */
64846443
created_at: string;
6485-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
6486-
* there is no record of secret data retrieval.
6487-
*/
6488-
retrieved_at?: string;
64896444
/** A CRN that uniquely identifies an IBM Cloud resource. */
64906445
crn: string;
64916446
/** The secret metadata that a user can customize. */
@@ -6608,10 +6563,6 @@ namespace SecretsManagerV2 {
66086563
created_by: string;
66096564
/** The date when the resource was created. The date format follows `RFC 3339`. */
66106565
created_at: string;
6611-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
6612-
* there is no record of secret data retrieval.
6613-
*/
6614-
retrieved_at?: string;
66156566
/** A CRN that uniquely identifies an IBM Cloud resource. */
66166567
crn: string;
66176568
/** The secret metadata that a user can customize. */
@@ -6976,10 +6927,6 @@ namespace SecretsManagerV2 {
69766927
created_by: string;
69776928
/** The date when the resource was created. The date format follows `RFC 3339`. */
69786929
created_at: string;
6979-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
6980-
* there is no record of secret data retrieval.
6981-
*/
6982-
retrieved_at?: string;
69836930
/** A CRN that uniquely identifies an IBM Cloud resource. */
69846931
crn: string;
69856932
/** The secret metadata that a user can customize. */
@@ -7061,10 +7008,6 @@ namespace SecretsManagerV2 {
70617008
created_by: string;
70627009
/** The date when the resource was created. The date format follows `RFC 3339`. */
70637010
created_at: string;
7064-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
7065-
* there is no record of secret data retrieval.
7066-
*/
7067-
retrieved_at?: string;
70687011
/** A CRN that uniquely identifies an IBM Cloud resource. */
70697012
crn: string;
70707013
/** The secret metadata that a user can customize. */
@@ -7360,10 +7303,6 @@ namespace SecretsManagerV2 {
73607303
created_by: string;
73617304
/** The date when the resource was created. The date format follows `RFC 3339`. */
73627305
created_at: string;
7363-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
7364-
* there is no record of secret data retrieval.
7365-
*/
7366-
retrieved_at?: string;
73677306
/** A CRN that uniquely identifies an IBM Cloud resource. */
73687307
crn: string;
73697308
/** The secret metadata that a user can customize. */
@@ -9761,10 +9700,6 @@ namespace SecretsManagerV2 {
97619700
created_by: string;
97629701
/** The date when the resource was created. The date format follows `RFC 3339`. */
97639702
created_at: string;
9764-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
9765-
* there is no record of secret data retrieval.
9766-
*/
9767-
retrieved_at?: string;
97689703
/** A CRN that uniquely identifies an IBM Cloud resource. */
97699704
crn: string;
97709705
/** The secret metadata that a user can customize. */
@@ -10207,10 +10142,6 @@ namespace SecretsManagerV2 {
1020710142
created_by: string;
1020810143
/** The date when the resource was created. The date format follows `RFC 3339`. */
1020910144
created_at: string;
10210-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
10211-
* there is no record of secret data retrieval.
10212-
*/
10213-
retrieved_at?: string;
1021410145
/** A CRN that uniquely identifies an IBM Cloud resource. */
1021510146
crn: string;
1021610147
/** The secret metadata that a user can customize. */
@@ -10961,10 +10892,6 @@ namespace SecretsManagerV2 {
1096110892
created_by: string;
1096210893
/** The date when the resource was created. The date format follows `RFC 3339`. */
1096310894
created_at: string;
10964-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
10965-
* there is no record of secret data retrieval.
10966-
*/
10967-
retrieved_at?: string;
1096810895
/** A CRN that uniquely identifies an IBM Cloud resource. */
1096910896
crn: string;
1097010897
/** The secret metadata that a user can customize. */
@@ -11419,10 +11346,6 @@ namespace SecretsManagerV2 {
1141911346
created_by: string;
1142011347
/** The date when the resource was created. The date format follows `RFC 3339`. */
1142111348
created_at: string;
11422-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
11423-
* there is no record of secret data retrieval.
11424-
*/
11425-
retrieved_at?: string;
1142611349
/** A CRN that uniquely identifies an IBM Cloud resource. */
1142711350
crn: string;
1142811351
/** The secret metadata that a user can customize. */
@@ -11532,10 +11455,6 @@ namespace SecretsManagerV2 {
1153211455
created_by: string;
1153311456
/** The date when the resource was created. The date format follows `RFC 3339`. */
1153411457
created_at: string;
11535-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
11536-
* there is no record of secret data retrieval.
11537-
*/
11538-
retrieved_at?: string;
1153911458
/** A CRN that uniquely identifies an IBM Cloud resource. */
1154011459
crn: string;
1154111460
/** The secret metadata that a user can customize. */
@@ -11893,10 +11812,6 @@ namespace SecretsManagerV2 {
1189311812
created_by: string;
1189411813
/** The date when the resource was created. The date format follows `RFC 3339`. */
1189511814
created_at: string;
11896-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
11897-
* there is no record of secret data retrieval.
11898-
*/
11899-
retrieved_at?: string;
1190011815
/** A CRN that uniquely identifies an IBM Cloud resource. */
1190111816
crn: string;
1190211817
/** The secret metadata that a user can customize. */
@@ -11997,10 +11912,6 @@ namespace SecretsManagerV2 {
1199711912
created_by: string;
1199811913
/** The date when the resource was created. The date format follows `RFC 3339`. */
1199911914
created_at: string;
12000-
/** The date when the data of the secret was last retrieved. The date format follows RFC 3339. Epoch date if
12001-
* there is no record of secret data retrieval.
12002-
*/
12003-
retrieved_at?: string;
1200411915
/** A CRN that uniquely identifies an IBM Cloud resource. */
1200511916
crn: string;
1200611917
/** The secret metadata that a user can customize. */

test/unit/secrets-manager.v2.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,9 +730,9 @@ describe('SecretsManagerV2', () => {
730730
const serviceUrl = secretsManagerServiceOptions.url;
731731
const path = '/api/v2/secrets';
732732
const mockPagerResponse1 =
733-
'{"next":{"href":"https://myhost.com/somePath?offset=1"},"total_count":2,"limit":1,"secrets":[{"created_by":"iam-ServiceId-e4a2f0a4-3c76-4bef-b1f2-fbeae11c0f21","created_at":"2022-04-12T23:20:50.520Z","retrieved_at":"2025-04-12T23:20:50.520Z","crn":"crn","custom_metadata":{"anyKey":"anyValue"},"description":"Extended description for this secret.","downloaded":true,"id":"b49ad24d-81d4-5ebc-b9b9-b0937d1c84d5","labels":["my-label"],"locks_total":0,"name":"my-secret","secret_group_id":"default","secret_type":"arbitrary","state":0,"state_description":"active","updated_at":"2022-04-12T23:20:50.520Z","versions_total":0,"referenced_by":["my-example-engine-config"],"expiration_date":"2033-04-12T23:20:50.520Z"}]}';
733+
'{"next":{"href":"https://myhost.com/somePath?offset=1"},"total_count":2,"limit":1,"secrets":[{"created_by":"iam-ServiceId-e4a2f0a4-3c76-4bef-b1f2-fbeae11c0f21","created_at":"2022-04-12T23:20:50.520Z","crn":"crn","custom_metadata":{"anyKey":"anyValue"},"description":"Extended description for this secret.","downloaded":true,"id":"b49ad24d-81d4-5ebc-b9b9-b0937d1c84d5","labels":["my-label"],"locks_total":0,"name":"my-secret","secret_group_id":"default","secret_type":"arbitrary","state":0,"state_description":"active","updated_at":"2022-04-12T23:20:50.520Z","versions_total":0,"referenced_by":["my-example-engine-config"],"expiration_date":"2033-04-12T23:20:50.520Z"}]}';
734734
const mockPagerResponse2 =
735-
'{"total_count":2,"limit":1,"secrets":[{"created_by":"iam-ServiceId-e4a2f0a4-3c76-4bef-b1f2-fbeae11c0f21","created_at":"2022-04-12T23:20:50.520Z","retrieved_at":"2025-04-12T23:20:50.520Z","crn":"crn","custom_metadata":{"anyKey":"anyValue"},"description":"Extended description for this secret.","downloaded":true,"id":"b49ad24d-81d4-5ebc-b9b9-b0937d1c84d5","labels":["my-label"],"locks_total":0,"name":"my-secret","secret_group_id":"default","secret_type":"arbitrary","state":0,"state_description":"active","updated_at":"2022-04-12T23:20:50.520Z","versions_total":0,"referenced_by":["my-example-engine-config"],"expiration_date":"2033-04-12T23:20:50.520Z"}]}';
735+
'{"total_count":2,"limit":1,"secrets":[{"created_by":"iam-ServiceId-e4a2f0a4-3c76-4bef-b1f2-fbeae11c0f21","created_at":"2022-04-12T23:20:50.520Z","crn":"crn","custom_metadata":{"anyKey":"anyValue"},"description":"Extended description for this secret.","downloaded":true,"id":"b49ad24d-81d4-5ebc-b9b9-b0937d1c84d5","labels":["my-label"],"locks_total":0,"name":"my-secret","secret_group_id":"default","secret_type":"arbitrary","state":0,"state_description":"active","updated_at":"2022-04-12T23:20:50.520Z","versions_total":0,"referenced_by":["my-example-engine-config"],"expiration_date":"2033-04-12T23:20:50.520Z"}]}';
736736

737737
beforeEach(() => {
738738
unmock_createRequest();

0 commit comments

Comments
 (0)