diff --git a/examples/global-tagging.v1.test.js b/examples/global-tagging.v1.test.js index 4533d9a..8188554 100644 --- a/examples/global-tagging.v1.test.js +++ b/examples/global-tagging.v1.test.js @@ -139,7 +139,12 @@ describe('GlobalTaggingV1', () => { originalLog('attachTag() result:'); // begin-attach_tag + const resourceModel = { + resource_id: resourceCrn, + }; + const params = { + resources: [resourceModel], tagNames: ["tag_test_1", "tag_test_2"], tagType: 'user', }; @@ -167,7 +172,12 @@ describe('GlobalTaggingV1', () => { originalLog('detachTag() result:'); // begin-detach_tag + const resourceModel = { + resource_id: resourceCrn, + }; + const params = { + resources: [resourceModel], tagNames: ["tag_test_1", "tag_test_2"], tagType: 'user', }; diff --git a/global-tagging/v1.ts b/global-tagging/v1.ts index 914eba0..5701901 100644 --- a/global-tagging/v1.ts +++ b/global-tagging/v1.ts @@ -1,5 +1,5 @@ /** - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,7 +15,7 @@ */ /** - * IBM OpenAPI SDK Code Generator Version: 3.105.0-3c13b041-20250605-193116 + * IBM OpenAPI SDK Code Generator Version: 3.111.0-1bfb72c2-20260206-185521 */ import * as extend from 'extend'; @@ -1137,6 +1137,8 @@ namespace GlobalTaggingV1 { resource_id: string; /** It is `true` if the operation exits with an error. */ is_error?: boolean; + /** Error message returned when the operation fails. */ + message?: string; } } diff --git a/test/integration/global-tagging.v1.test.js b/test/integration/global-tagging.v1.test.js index f654002..916169e 100644 --- a/test/integration/global-tagging.v1.test.js +++ b/test/integration/global-tagging.v1.test.js @@ -419,7 +419,8 @@ describe('GlobalTaggingV1_integration', () => { expect(result.results).toBeDefined(); result.results.forEach((elem) => { - expect(elem.is_error).toBe(false); + // tags are already deleted at detach time if not attached to any resource + expect(elem.is_error).toBe(true); }); });