63ea9b2637ce8e478c854b68d8af7ca42e19abcf,iam/api-client/quickstart.py,,quickstart,#,18

Before Change


    roles = response["roles"]

    // Process the response
    for role in roles:
        print("Title: " + role["title"])
        print("Name: " + role["name"])
        if "description" in role:
            print("Description: " + role["description"])
        print("")
    // [END iam_quickstart]


if __name__ == "__main__":
    quickstart()

After Change



    // Gets the project"s policy and prints all members with the "Log Writer" role.
    policy = get_policy(crm_service, project_id)
    binding = next(b for b in policy["bindings"] if b["role"] == role)
    print(f"Role: {(binding["role"])}")
    print("Members: ")
    for m in binding["members"]:
        print(f"[{m}]")

    // Removes the member from the "Log Writer" role.
    modify_policy_remove_member(crm_service, project_id, role, member)


def initialize_service():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 63ea9b2637ce8e478c854b68d8af7ca42e19abcf
Time: 2020-09-22
Author: 35782177+melaniedejong@users.noreply.github.com
File Name: iam/api-client/quickstart.py
Class Name:
Method Name: quickstart


Project Name: geekcomputers/Python
Commit Name: 6a40871d5bd21bd8786bc340008dfa8d8bf02b05
Time: 2020-03-17
Author: 62071377+Msubboti@users.noreply.github.com
File Name: Print_List_of_Odd_Numbers.py
Class Name:
Method Name:


Project Name: geekcomputers/Python
Commit Name: 6a40871d5bd21bd8786bc340008dfa8d8bf02b05
Time: 2020-03-17
Author: 62071377+Msubboti@users.noreply.github.com
File Name: Print_List_of_Even_Numbers.py
Class Name:
Method Name: