def Run(self, args): client = endpoints.EndpointsClient() endpoint_ref = args.CONCEPTS.endpoint.Parse() annotations = util.ParseAnnotationsArg(args.annotations, _RESOURCE_TYPE) result = client.Update(endpoint_ref, args.address, args.port, annotations) log.UpdatedResource(endpoint_ref.endpointsId, _RESOURCE_TYPE) return result
def Run(self, args): client = services.ServicesClient() service_ref = args.CONCEPTS.service.Parse() annotations = util.ParseAnnotationsArg(args.annotations, _RESOURCE_TYPE) result = client.Update(service_ref, annotations) log.UpdatedResource(service_ref.servicesId, _RESOURCE_TYPE) return result