Skip to content

Commit

Permalink
feat(Enterprise Management): re-gen service after update trait object
Browse files Browse the repository at this point in the history
Signed-off-by: namratabhadauriya <[email protected]>
  • Loading branch information
namratabhadauriya committed Jul 5, 2023
1 parent c5ff79c commit a3b4e5b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
20 changes: 13 additions & 7 deletions enterprise-management/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,9 @@ class EnterpriseManagementV1 extends BaseService {
* @param {string} params.name - The name of the account. This field must have 3 - 60 characters.
* @param {string} params.ownerIamId - The IAM ID of the account owner, such as `IBMid-0123ABC`. The IAM ID must
* already exist.
* @param {CreateAccountRequestTraits} [params.traits] - The traits object can be used to opt-out of Multi-Factor
* Authentication setting when creating a child account in the enterprise. This is an optional field.
* @param {CreateAccountRequestTraits} [params.traits] - The traits object can be used to set properties on child
* accounts of an enterprise. You can pass a field to opt-out of Multi-Factor Authentication setting or setup
* enterprise IAM settings when creating a child account in the enterprise. This is an optional field.
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
* @returns {Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.CreateAccountResponse>>}
*/
Expand Down Expand Up @@ -1157,8 +1158,9 @@ namespace EnterpriseManagementV1 {
name: string;
/** The IAM ID of the account owner, such as `IBMid-0123ABC`. The IAM ID must already exist. */
ownerIamId: string;
/** The traits object can be used to opt-out of Multi-Factor Authentication setting when creating a child
* account in the enterprise. This is an optional field.
/** The traits object can be used to set properties on child accounts of an enterprise. You can pass a field to
* opt-out of Multi-Factor Authentication setting or setup enterprise IAM settings when creating a child account in
* the enterprise. This is an optional field.
*/
traits?: CreateAccountRequestTraits;
headers?: OutgoingHttpHeaders;
Expand Down Expand Up @@ -1351,12 +1353,16 @@ namespace EnterpriseManagementV1 {
account_group_id?: string;
}

/** The traits object can be used to opt-out of Multi-Factor Authentication setting when creating a child account in the enterprise. This is an optional field. */
/** The traits object can be used to set properties on child accounts of an enterprise. You can pass a field to opt-out of Multi-Factor Authentication setting or setup enterprise IAM settings when creating a child account in the enterprise. This is an optional field. */
export interface CreateAccountRequestTraits {
/** By default MFA will be set on the account. To opt out, pass the traits object with the mfa field set to
* empty string.
/** By default MFA will be enabled on a child account. To opt out, pass the traits object with the mfa field set
* to empty string. This is an optional field.
*/
mfa?: string;
/** The Enterprise IAM settings property will be turned off for a newly created child account by default. You
* can enable this property by passing 'true' in this boolean field. This is an optional field.
*/
enterprise_iam_managed?: boolean;
}

/** A newly-created account. */
Expand Down
1 change: 1 addition & 0 deletions test/unit/enterprise-management.v1.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ describe('EnterpriseManagementV1', () => {
// CreateAccountRequestTraits
const createAccountRequestTraitsModel = {
mfa: 'testString',
enterprise_iam_managed: true,
};

function __createAccountTest() {
Expand Down

0 comments on commit a3b4e5b

Please sign in to comment.