Skip to content

Commit 9c5e142

Browse files
author
awstools
committed
feat(client-omics): Add Etag Support for Omics Storage in ListReadSets and GetReadSetMetadata API
1 parent e884a76 commit 9c5e142

File tree

5 files changed

+186
-40
lines changed

5 files changed

+186
-40
lines changed

clients/client-omics/src/commands/GetReadSetMetadataCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ export interface GetReadSetMetadataCommandOutput extends GetReadSetMetadataRespo
8787
* // },
8888
* // statusMessage: "STRING_VALUE",
8989
* // creationType: "STRING_VALUE",
90+
* // etag: { // ETag
91+
* // algorithm: "STRING_VALUE",
92+
* // source1: "STRING_VALUE",
93+
* // source2: "STRING_VALUE",
94+
* // },
9095
* // };
9196
*
9297
* ```

clients/client-omics/src/commands/ListReadSetsCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ export interface ListReadSetsCommandOutput extends ListReadSetsResponse, __Metad
8585
* // creationTime: new Date("TIMESTAMP"), // required
8686
* // statusMessage: "STRING_VALUE",
8787
* // creationType: "STRING_VALUE",
88+
* // etag: { // ETag
89+
* // algorithm: "STRING_VALUE",
90+
* // source1: "STRING_VALUE",
91+
* // source2: "STRING_VALUE",
92+
* // },
8893
* // },
8994
* // ],
9095
* // };

clients/client-omics/src/models/models_0.ts

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3385,6 +3385,52 @@ export interface DeleteWorkflowRequest {
33853385
id: string | undefined;
33863386
}
33873387

3388+
/**
3389+
* @public
3390+
* @enum
3391+
*/
3392+
export const ETagAlgorithm = {
3393+
BAM_MD5UP: "BAM_MD5up",
3394+
CRAM_MD5UP: "CRAM_MD5up",
3395+
FASTQ_MD5UP: "FASTQ_MD5up",
3396+
} as const;
3397+
3398+
/**
3399+
* @public
3400+
*/
3401+
export type ETagAlgorithm = (typeof ETagAlgorithm)[keyof typeof ETagAlgorithm];
3402+
3403+
/**
3404+
* @public
3405+
* <p>
3406+
* The entity tag (ETag) is a hash of the object representing its semantic content.
3407+
* </p>
3408+
*/
3409+
export interface ETag {
3410+
/**
3411+
* @public
3412+
* <p>
3413+
* The algorithm used to calculate the read set’s ETag(s). </p>
3414+
*/
3415+
algorithm?: ETagAlgorithm | string;
3416+
3417+
/**
3418+
* @public
3419+
* <p>
3420+
* The ETag hash calculated on Source1 of the read set.
3421+
* </p>
3422+
*/
3423+
source1?: string;
3424+
3425+
/**
3426+
* @public
3427+
* <p>
3428+
* The ETag hash calculated on Source2 of the read set.
3429+
* </p>
3430+
*/
3431+
source2?: string;
3432+
}
3433+
33883434
/**
33893435
* @public
33903436
* <p>A read set.</p>
@@ -4162,6 +4208,14 @@ export interface GetReadSetMetadataResponse {
41624208
* </p>
41634209
*/
41644210
creationType?: CreationType | string;
4211+
4212+
/**
4213+
* @public
4214+
* <p>
4215+
* The entity tag (ETag) is a hash of the object meant to represent its semantic content.
4216+
* </p>
4217+
*/
4218+
etag?: ETag;
41654219
}
41664220

41674221
/**
@@ -6092,6 +6146,14 @@ export interface ReadSetListItem {
60926146
* </p>
60936147
*/
60946148
creationType?: CreationType | string;
6149+
6150+
/**
6151+
* @public
6152+
* <p>
6153+
* The entity tag (ETag) is a hash of the object representing its semantic content.
6154+
* </p>
6155+
*/
6156+
etag?: ETag;
60956157
}
60966158

60976159
/**

clients/client-omics/src/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5726,6 +5726,7 @@ export const de_GetReadSetMetadataCommand = async (
57265726
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
57275727
creationType: __expectString,
57285728
description: __expectString,
5729+
etag: _json,
57295730
fileType: __expectString,
57305731
files: _json,
57315732
id: __expectString,
@@ -9509,6 +9510,8 @@ const de_AnnotationStoreVersionItems = (output: any, context: __SerdeContext): A
95099510
return retVal;
95109511
};
95119512

9513+
// de_ETag omitted.
9514+
95129515
// de_ExportReadSetDetail omitted.
95139516

95149517
// de_ExportReadSetDetailList omitted.
@@ -9665,6 +9668,7 @@ const de_ReadSetListItem = (output: any, context: __SerdeContext): ReadSetListIt
96659668
creationTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
96669669
creationType: __expectString,
96679670
description: __expectString,
9671+
etag: _json,
96689672
fileType: __expectString,
96699673
id: __expectString,
96709674
name: __expectString,

0 commit comments

Comments
 (0)