Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Enterprise Management): re-gen service after update trait object #213

Merged
merged 1 commit into from
Jul 5, 2023
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
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