api: remove deprecated grant_scope_id field (#4886)
* api: remove deprecated grant_scope_id field The grant_scope_id field was deprecated in 0.15.0, so we can remove it for 0.17.0. * Fix tests * Fix more tests * Remove an option and some related code that stuck around * Fix bats tests --------- Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com>
This commit is contained in:
1 parent
d547e0d459
commit
c6f3c375f3
21 files changed
+107
-297
No files matched your search
@@ -115,18 +115,6 @@ func DefaultDescription() Option {
|
||||
}
|
||||
}
|
||||
|
||||
func WithGrantScopeId(inGrantScopeId string) Option {
|
||||
return func(o *options) {
|
||||
o.postMap["grant_scope_id"] = inGrantScopeId
|
||||
}
|
||||
}
|
||||
|
||||
func DefaultGrantScopeId() Option {
|
||||
return func(o *options) {
|
||||
o.postMap["grant_scope_id"] = nil
|
||||
}
|
||||
}
|
||||
|
||||
func WithName(inName string) Option {
|
||||
return func(o *options) {
|
||||
o.postMap["name"] = inName
|
||||
|
||||
@@ -26,7 +26,6 @@ type Role struct {
|
||||
CreatedTime time.Time `json:"created_time,omitempty"`
|
||||
UpdatedTime time.Time `json:"updated_time,omitempty"`
|
||||
Version uint32 `json:"version,omitempty"`
|
||||
GrantScopeId string `json:"grant_scope_id,omitempty"`
|
||||
GrantScopeIds []string `json:"grant_scope_ids,omitempty"`
|
||||
PrincipalIds []string `json:"principal_ids,omitempty"`
|
||||
Principals []*Principal `json:"principals,omitempty"`
|
||||
|
||||
Reference in new issue
Block a user