Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions examples/global-tagging.v1.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
Expand Down Expand Up @@ -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',
};
Expand Down
6 changes: 4 additions & 2 deletions global-tagging/v1.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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';
Expand Down Expand Up @@ -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;
}
}

Expand Down
3 changes: 2 additions & 1 deletion test/integration/global-tagging.v1.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

Expand Down