def Run(self, args):
    """This is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
      command invocation.

    Returns:
      Status of command execution.
    """
    org_resource = args.CONCEPTS.organization_id.Parse()
    return iam_lib.AddIamPolicyBinding(
        resource_resource=util.GetTaxonomyStoreFromOrgResource(org_resource),
        role=args.role,
        member=args.member,
        module=store)
Пример #2
0
def GetOrgIamPolicy(org_resource):
  """Get Iam policy with an organization reference."""
  return store.GetIamPolicy(util.GetTaxonomyStoreFromOrgResource(org_resource))