Skip to content

Commit ae31977

Browse files
committed
chore(codegen): generate nested clients only if no glob provided
1 parent 2b34613 commit ae31977

File tree

3 files changed

+58
-58
lines changed

3 files changed

+58
-58
lines changed

clients/client-s3/src/commands/DeleteObjectCommand.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -167,28 +167,28 @@ export interface DeleteObjectCommandOutput extends DeleteObjectOutput, __Metadat
167167
* <p>Base exception class for all service exceptions from S3 service.</p>
168168
*
169169
* @public
170-
* @example To delete an object
170+
* @example To delete an object (from a non-versioned bucket)
171171
* ```javascript
172-
* // The following example deletes an object from an S3 bucket.
172+
* // The following example deletes an object from a non-versioned bucket.
173173
* const input = {
174-
* "Bucket": "examplebucket",
175-
* "Key": "objectkey.jpg"
174+
* "Bucket": "ExampleBucket",
175+
* "Key": "HappyFace.jpg"
176176
* };
177177
* const command = new DeleteObjectCommand(input);
178178
* await client.send(command);
179-
* // example id: to-delete-an-object-1472850136595
179+
* // example id: to-delete-an-object-from-a-non-versioned-bucket-1481588533089
180180
* ```
181181
*
182-
* @example To delete an object (from a non-versioned bucket)
182+
* @example To delete an object
183183
* ```javascript
184-
* // The following example deletes an object from a non-versioned bucket.
184+
* // The following example deletes an object from an S3 bucket.
185185
* const input = {
186-
* "Bucket": "ExampleBucket",
187-
* "Key": "HappyFace.jpg"
186+
* "Bucket": "examplebucket",
187+
* "Key": "objectkey.jpg"
188188
* };
189189
* const command = new DeleteObjectCommand(input);
190190
* await client.send(command);
191-
* // example id: to-delete-an-object-from-a-non-versioned-bucket-1481588533089
191+
* // example id: to-delete-an-object-1472850136595
192192
* ```
193193
*
194194
*/

clients/client-s3/src/commands/PutObjectCommand.ts

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -302,149 +302,149 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
302302
* <p>Base exception class for all service exceptions from S3 service.</p>
303303
*
304304
* @public
305-
* @example To create an object.
305+
* @example To upload an object and specify canned ACL.
306306
* ```javascript
307-
* // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
307+
* // The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
308308
* const input = {
309+
* "ACL": "authenticated-read",
309310
* "Body": "filetoupload",
310311
* "Bucket": "examplebucket",
311-
* "Key": "objectkey"
312+
* "Key": "exampleobject"
312313
* };
313314
* const command = new PutObjectCommand(input);
314315
* const response = await client.send(command);
315316
* /* response ==
316317
* {
317318
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
318-
* "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
319+
* "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
319320
* }
320321
* *\/
321-
* // example id: to-create-an-object-1483147613675
322+
* // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
322323
* ```
323324
*
324-
* @example To upload an object
325+
* @example To create an object.
325326
* ```javascript
326-
* // The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.
327+
* // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
327328
* const input = {
328-
* "Body": "HappyFace.jpg",
329+
* "Body": "filetoupload",
329330
* "Bucket": "examplebucket",
330-
* "Key": "HappyFace.jpg"
331+
* "Key": "objectkey"
331332
* };
332333
* const command = new PutObjectCommand(input);
333334
* const response = await client.send(command);
334335
* /* response ==
335336
* {
336337
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
337-
* "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
338+
* "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
338339
* }
339340
* *\/
340-
* // example id: to-upload-an-object-1481760101010
341+
* // example id: to-create-an-object-1483147613675
341342
* ```
342343
*
343-
* @example To upload an object and specify server-side encryption and object tags
344+
* @example To upload an object and specify optional tags
344345
* ```javascript
345-
* // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
346+
* // The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore S3 returns version ID of the newly created object.
346347
* const input = {
347-
* "Body": "filetoupload",
348+
* "Body": "c:\\HappyFace.jpg",
348349
* "Bucket": "examplebucket",
349-
* "Key": "exampleobject",
350-
* "ServerSideEncryption": "AES256",
350+
* "Key": "HappyFace.jpg",
351351
* "Tagging": "key1=value1&key2=value2"
352352
* };
353353
* const command = new PutObjectCommand(input);
354354
* const response = await client.send(command);
355355
* /* response ==
356356
* {
357357
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
358-
* "ServerSideEncryption": "AES256",
359-
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
358+
* "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
360359
* }
361360
* *\/
362-
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
361+
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
363362
* ```
364363
*
365-
* @example To upload object and specify user-defined metadata
364+
* @example To upload an object and specify server-side encryption and object tags
366365
* ```javascript
367-
* // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
366+
* // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
368367
* const input = {
369368
* "Body": "filetoupload",
370369
* "Bucket": "examplebucket",
371370
* "Key": "exampleobject",
372-
* "Metadata": {
373-
* "metadata1": "value1",
374-
* "metadata2": "value2"
375-
* }
371+
* "ServerSideEncryption": "AES256",
372+
* "Tagging": "key1=value1&key2=value2"
376373
* };
377374
* const command = new PutObjectCommand(input);
378375
* const response = await client.send(command);
379376
* /* response ==
380377
* {
381378
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
382-
* "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
379+
* "ServerSideEncryption": "AES256",
380+
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
383381
* }
384382
* *\/
385-
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
383+
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
386384
* ```
387385
*
388-
* @example To upload an object and specify optional tags
386+
* @example To upload an object (specify optional headers)
389387
* ```javascript
390-
* // The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore S3 returns version ID of the newly created object.
388+
* // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption.
391389
* const input = {
392-
* "Body": "c:\\HappyFace.jpg",
390+
* "Body": "HappyFace.jpg",
393391
* "Bucket": "examplebucket",
394392
* "Key": "HappyFace.jpg",
395-
* "Tagging": "key1=value1&key2=value2"
393+
* "ServerSideEncryption": "AES256",
394+
* "StorageClass": "STANDARD_IA"
396395
* };
397396
* const command = new PutObjectCommand(input);
398397
* const response = await client.send(command);
399398
* /* response ==
400399
* {
401400
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
402-
* "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
401+
* "ServerSideEncryption": "AES256",
402+
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
403403
* }
404404
* *\/
405-
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
405+
* // example id: to-upload-an-object-(specify-optional-headers)
406406
* ```
407407
*
408-
* @example To upload an object (specify optional headers)
408+
* @example To upload an object
409409
* ```javascript
410-
* // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption.
410+
* // The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.
411411
* const input = {
412412
* "Body": "HappyFace.jpg",
413413
* "Bucket": "examplebucket",
414-
* "Key": "HappyFace.jpg",
415-
* "ServerSideEncryption": "AES256",
416-
* "StorageClass": "STANDARD_IA"
414+
* "Key": "HappyFace.jpg"
417415
* };
418416
* const command = new PutObjectCommand(input);
419417
* const response = await client.send(command);
420418
* /* response ==
421419
* {
422420
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
423-
* "ServerSideEncryption": "AES256",
424-
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
421+
* "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
425422
* }
426423
* *\/
427-
* // example id: to-upload-an-object-(specify-optional-headers)
424+
* // example id: to-upload-an-object-1481760101010
428425
* ```
429426
*
430-
* @example To upload an object and specify canned ACL.
427+
* @example To upload object and specify user-defined metadata
431428
* ```javascript
432-
* // The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
429+
* // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
433430
* const input = {
434-
* "ACL": "authenticated-read",
435431
* "Body": "filetoupload",
436432
* "Bucket": "examplebucket",
437-
* "Key": "exampleobject"
433+
* "Key": "exampleobject",
434+
* "Metadata": {
435+
* "metadata1": "value1",
436+
* "metadata2": "value2"
437+
* }
438438
* };
439439
* const command = new PutObjectCommand(input);
440440
* const response = await client.send(command);
441441
* /* response ==
442442
* {
443443
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
444-
* "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
444+
* "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
445445
* }
446446
* *\/
447-
* // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
447+
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
448448
* ```
449449
*
450450
*/

scripts/generate-clients/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const {
144144

145145
require("./customizations/workspaces-thin-client")();
146146

147-
if (!protocolTestsOnly) {
147+
if (!protocolTestsOnly && !globs) {
148148
await generateNestedClients();
149149
}
150150

0 commit comments

Comments
 (0)