@@ -3741,40 +3741,40 @@ def delete(self, apiclient):
37413741 def list (cls , apiclient , ** kwargs ):
37423742 cmd = listIAMGroups .listIAMGroupsCmd ()
37433743 [setattr (cmd , k , v ) for k , v in kwargs .items ()]
3744- return apiclient .listIAMGroups (cmd )
3745-
3744+ return apiclient .listIAMGroups (cmd )
3745+
37463746 def addAccount (self , apiclient , accts ):
37473747 """Add accounts to iam group"""
37483748 cmd = addAccountToIAMGroup .addAccountToIAMGroupCmd ()
37493749 cmd .id = self .id
37503750 cmd .accounts = [str (acct .id ) for acct in accts ]
37513751 apiclient .addAccountToIAMGroup (cmd )
3752- return
3752+ return
37533753
37543754 def removeAccount (self , apiclient , accts ):
37553755 """ Remove accounts from iam group"""
37563756 cmd = removeAccountFromIAMGroup .removeAccountFromIAMGroupCmd ()
37573757 cmd .id = self .id
37583758 cmd .accounts = [str (acct .id ) for acct in accts ]
37593759 apiclient .removeAccountFromIAMGroup (cmd )
3760- return
3761-
3760+ return
3761+
37623762 def attachPolicy (self , apiclient , policies ):
37633763 """Add policies to iam group"""
37643764 cmd = attachIAMPolicyToIAMGroup .attachIAMPolicyToIAMGroupCmd ()
37653765 cmd .id = self .id
37663766 cmd .policies = [str (policy .id ) for policy in policies ]
37673767 apiclient .attachIAMPolicyToIAMGroup (cmd )
3768- return
3769-
3768+ return
3769+
37703770 def detachPolicy (self , apiclient , policies ):
37713771 """Remove policies from iam group"""
37723772 cmd = removeIAMPolicyFromIAMGroup .removeIAMPolicyFromIAMGroupCmd ()
37733773 cmd .id = self .id
37743774 cmd .policies = [str (policy .id ) for policy in policies ]
37753775 apiclient .removeIAMPolicyFromIAMGroup (cmd )
3776- return
3777-
3776+ return
3777+
37783778class IAMPolicy :
37793779 def __init__ (self , items ):
37803780 self .__dict__ .update (items )
@@ -3802,7 +3802,7 @@ def delete(self, apiclient):
38023802 def list (cls , apiclient , ** kwargs ):
38033803 cmd = listIAMPolicies .listIAMPoliciesCmd ()
38043804 [setattr (cmd , k , v ) for k , v in kwargs .items ()]
3805- return apiclient .listIAMPolicies (cmd )
3805+ return apiclient .listIAMPolicies (cmd )
38063806
38073807 def addPermission (self , apiclient , permission ):
38083808 """Add permission to iam policy"""
@@ -3813,7 +3813,7 @@ def addPermission(self, apiclient, permission):
38133813 cmd .scope = permission ['scope' ]
38143814 cmd .scopeid = permission ['scopeid' ]
38153815 apiclient .addIAMPermissionToIAMPolicy (cmd )
3816- return
3816+ return
38173817
38183818 def removePermission (self , apiclient , permission ):
38193819 """Remove permission from iam policy"""
@@ -3824,16 +3824,16 @@ def removePermission(self, apiclient, permission):
38243824 cmd .scope = permission ['scope' ]
38253825 cmd .scopeid = permission ['scopeid' ]
38263826 apiclient .removeIAMPermissionFromIAMPolicy (cmd )
3827- return
3828-
3827+ return
3828+
38293829 def attachAccount (self , apiclient , accts ):
38303830 """Attach iam policy to accounts"""
38313831 cmd = attachIAMPolicyToAccount .attachIAMPolicyToAccountCmd ()
38323832 cmd .id = self .id
38333833 cmd .accounts = [str (acct .id ) for acct in accts ]
38343834 apiclient .attachIAMPolicyToAccount (cmd )
3835- return
3836-
3835+ return
3836+
38373837 def detachAccount (self , apiclient , accts ):
38383838 """Detach iam policy from accounts"""
38393839 cmd = removeIAMPolicyFromAccount .removeIAMPolicyFromAccountCmd ()
0 commit comments