def get_service(self, project_id, service_id):
"""Gets information about a specific service.
Args:
project_id (str): The id of the project.
service_id (str): The id of the service to query.
Returns:
dict: A Service resource dict for a given project_id and
service_id.
"""
try:
return self.repository.app_services.get(
project_id, target=service_id)
except (errors.HttpError, HttpLib2Error) as e:
if isinstance(e, errors.HttpError) and e.resp.status == 404:
return {}
raise api_errors.ApiExecutionError(project_id, e)
评论列表
文章目录