Skip to content

Commit

Permalink
fix(IAM Access Groups): update service after recent api changes (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamillapalle authored Jun 25, 2021
1 parent 2d6e35c commit 513d1b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions iam-access-groups/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

/**
* IBM OpenAPI SDK Code Generator Version: 3.29.1-b338fb38-20210313-010605
* IBM OpenAPI SDK Code Generator Version: 3.34.1-ad041667-20210617-195430
*/

import * as extend from 'extend';
Expand Down Expand Up @@ -107,8 +107,8 @@ class IamAccessGroupsV2 extends BaseService {
* @param {string} params.accountId - Account ID of the API keys(s) to query. If a service IAM ID is specified in
* iam_id then account_id must match the account of the IAM ID. If a user IAM ID is specified in iam_id then then
* account_id must match the account of the Authorization token.
* @param {string} params.name - Assign the specified name to the access group. This field is case-sensitive and has a
* limit of 100 characters. The group name has to be unique within an account.
* @param {string} params.name - Assign the specified name to the access group. This field is case-insensitive and has
* a limit of 100 characters. The group name has to be unique within an account.
* @param {string} [params.description] - Assign an optional description for the access group. This field has a limit
* of 250 characters.
* @param {string} [params.transactionId] - An optional transaction ID can be passed to your request, which can be
Expand Down Expand Up @@ -320,8 +320,8 @@ class IamAccessGroupsV2 extends BaseService {
* @param {string} params.accessGroupId - The access group identifier.
* @param {string} params.ifMatch - The current revision number of the group being updated. This can be found in the
* Create/Get access group response ETag header.
* @param {string} [params.name] - Assign the specified name to the access group. This field is case-sensitive and has
* a limit of 100 characters. The group name has to be unique within an account.
* @param {string} [params.name] - Assign the specified name to the access group. This field is case-insensitive and
* has a limit of 100 characters. The group name has to be unique within an account.
* @param {string} [params.description] - Assign an optional description for the access group. This field has a limit
* of 250 characters.
* @param {string} [params.transactionId] - An optional transaction ID can be passed to your request, which can be
Expand Down Expand Up @@ -1428,7 +1428,7 @@ namespace IamAccessGroupsV2 {
* account of the Authorization token.
*/
accountId: string;
/** Assign the specified name to the access group. This field is case-sensitive and has a limit of 100
/** Assign the specified name to the access group. This field is case-insensitive and has a limit of 100
* characters. The group name has to be unique within an account.
*/
name: string;
Expand Down Expand Up @@ -1495,7 +1495,7 @@ namespace IamAccessGroupsV2 {
* response ETag header.
*/
ifMatch: string;
/** Assign the specified name to the access group. This field is case-sensitive and has a limit of 100
/** Assign the specified name to the access group. This field is case-insensitive and has a limit of 100
* characters. The group name has to be unique within an account.
*/
name?: string;
Expand Down
4 changes: 2 additions & 2 deletions test/unit/iam-access-groups.v2.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ const {
checkUserHeader,
} = unitTestUtils;

const service = {
const iamAccessGroupsServiceOptions = {
authenticator: new NoAuthAuthenticator(),
url: 'https://iam.cloud.ibm.com/v2',
};

const iamAccessGroupsService = new IamAccessGroupsV2(service);
const iamAccessGroupsService = new IamAccessGroupsV2(iamAccessGroupsServiceOptions);

// dont actually create a request
const createRequestMock = jest.spyOn(iamAccessGroupsService, 'createRequest');
Expand Down

0 comments on commit 513d1b7

Please sign in to comment.