def Run(self, args):
     locations_client = locations.Locations()
     location_ref = parsers.ParseLocation(args.location)
     return locations_client.Get(location_ref)
 def __init__(self, api_version):
     self.client = apis.GetClientInstance(API_NAME, api_version)
     self.messages = self.client.MESSAGES_MODULE
     self.locations = locations.Locations(self.client.MESSAGES_MODULE,
                                          self.client.projects_locations)
Exemple #3
0
 def Run(self, args):
   locations_client = locations.Locations()
   project_ref = parsers.ParseProject()
   return locations_client.List(project_ref, args.limit, args.page_size)