-
Notifications
You must be signed in to change notification settings - Fork 676
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
Add new API param to provider #2610
Conversation
@@ -117,7 +123,6 @@ func dataSourceIbmIamAccountSettingsRead(context context.Context, d *schema.Reso | |||
} | |||
|
|||
getAccountSettingsOptions := &iamidentityv1.GetAccountSettingsOptions{} | |||
//getAccountSettingsOptions.SetIncludeHistory(d.Get("include_history").(bool)) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
9ac9ad7
to
6ecc00e
Compare
Update provider to include a new parameter
max_sessions_per_identity
in the Account Settings APIRelevant tests are passing.
![Screenshot 2021-05-11 at 15 28 45](https://user-images.githubusercontent.com/9368984/117832987-e0f0f800-b26d-11eb-9272-1d0864736ca6.png)