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

Add new API param to provider #2610

Merged
merged 2 commits into from
May 13, 2021

Conversation

Daniel-Byrne
Copy link
Contributor

Update provider to include a new parameter max_sessions_per_identity in the Account Settings API

Relevant tests are passing.
Screenshot 2021-05-11 at 15 28 45

@@ -117,7 +123,6 @@ func dataSourceIbmIamAccountSettingsRead(context context.Context, d *schema.Reso
}

getAccountSettingsOptions := &iamidentityv1.GetAccountSettingsOptions{}
//getAccountSettingsOptions.SetIncludeHistory(d.Get("include_history").(bool))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why include_history is removed from option struct...we have it has a optioanl argument

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was commented out originally, but I have re-added it now and included it in the list of args in the md file.

@@ -47,3 +47,4 @@ In addition to all arguments above, the following attributes are exported:

* `session_invalidation_in_seconds` - Defines the period of time in seconds in which a session will be invalidated due to inactivity. Valid values: * Any whole number between '900' and '7200' * NOT_SET - To unset account setting and use service default.

* `max_sessions_per_identity` - Defines the max allowed sessions per identity required by the account. Value values: * Any whole number greater than '0' * NOT_SET - To unset account setting and use service default
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This description of what values should go into resource doc...datasource we just set back the value which we get from API

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I've moved these to the resource doc.

@Daniel-Byrne Daniel-Byrne force-pushed the iam-iden-max-sessions branch from 9ac9ad7 to 6ecc00e Compare May 12, 2021 11:07
@Daniel-Byrne Daniel-Byrne requested a review from hkantare May 12, 2021 12:39
@hkantare hkantare merged commit 1407c83 into IBM-Cloud:master May 13, 2021
@Daniel-Byrne Daniel-Byrne deleted the iam-iden-max-sessions branch May 13, 2021 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants