def Run(self, args): client = devices.DevicesClient() device_ref = args.CONCEPTS.device.Parse() data = util.ReadConfigData(args) response = client.ModifyConfig(device_ref, data, args.version_to_update) log.UpdatedResource(device_ref.Name(), 'configuration for device') return response
def Run(self, args): client = devices.DevicesClient() device_ref = util.ParseDevice(args.device, registry=args.registry, region=args.region) data = util.ReadConfigData(args) return client.ModifyConfig(device_ref, data, args.version_to_update)