def get_organization(self, org_name):
"""Get organization by org_name.
Args:
org_name (str): The org name with format "organizations/$ORG_ID"
Returns:
dict: The org response object if found, otherwise False.
"""
name = self.repository.organizations.get_name(org_name)
try:
return self.repository.organizations.get(name)
except (errors.HttpError, HttpLib2Error) as e:
raise api_errors.ApiExecutionError(org_name, e)
cloud_resource_manager.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录