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.
    """
        store_resource_ref = flags.GetStoreResourceFromArgs(args)
        return store.GetIamPolicy(store_resource_ref)
Example #2
0
def GetOrgIamPolicy(org_resource):
  """Get Iam policy with an organization reference."""
  return store.GetIamPolicy(util.GetTaxonomyStoreFromOrgResource(org_resource))